I Have a problem with the 16F876 pic.
When I read the AN0 analog input which is driven by a 1K potentiometer I can only see a value from 0 to 255 (the variable is of type int). The value I see goes from 0 to 255 3 times when I turn the potentiometer till the end. I use CCS C ver 3.26 and I use the read_adc function and it seems return only the LSB of the 10 bit value. Maybe I must use another function?
I have this device
#device *=16 ADC=10 ICD=TRUE
or
#device *=16 ADC=16 ICD=TRUE
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