I'm having a huge problem. I'm using the code below on an ICD2 to read a value from the analog input via the adc and converting it to pwm. The code works fine on the IDC2 but for some reason it will not work on my self-built board. Not working means CCP1 stays low. I'm assuming the software is fine and this is a hardware problem. I'm using a 50k pot connected to 5V and Gnd only to input on A0. The voltage at A0 varies between 0V and 5V as the pot is adjusted, but why is there no output on CCP1? Please help. I'm going crazy!!
Thanx for your help. I found the problem. The firts time (testing the blinking LED) the configuration bits settings were correct, but the secund (third, forth, etc) time the settings were changed for some reason. After changing it to the original settings, the adc worked fine.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum