Note : In Proteus both schematic work, so I made it on PCB. First variant works just fine, second none...
Note : In Proteus both schematic work, so I made it on PCB. First variant works just fine, second none...
For the code using ADCIN, is the left/right justification set correctly? I can never remember which way around it wants it so whatever you have it set to, try changing it. And, do you have DEFINE ADCBITS 10 in there?
/Henrik.
Thanks for reply !
I don't change anything in code (except values for actions) ... just the resistors from "chain" command.Code:CMCON = 7 OPTION_REG = %10000110 TRISIO = %00001100 GPIO = %00000001 ANSEL = %00010100 ADCON0 = %10001001
With first chain work ; with second not. It's because of 100 kOhms ?!?
Bookmarks