adc on PIV 18f2553
Moderators: David Barker, Jerry Messina
adc on PIV 18f2553
I have this pic with the example from SF tested / programmed?. But it does not work. With a pic 18F2550 does it work. Do anybody have any idea?
Thank you.
Thank you.
speed64,
Check out this post http://www.sfcompiler.co.uk/forum/viewt ... highlight=
Like you I had a problem with the ADC but on the PIC18F2455.
Changing the lines in 18F2553.bas
from: #const _adc = $05 // 5 ADC channels available
to: #const _adc = $0A // 10 ADC channels available
may solve your problem.
Both of these USB PIC's have 10 ADC inputs, not 5 ADC inputs that their includes have defined.
Hope this helps,
RKP
Check out this post http://www.sfcompiler.co.uk/forum/viewt ... highlight=
Like you I had a problem with the ADC but on the PIC18F2455.
Changing the lines in 18F2553.bas
from: #const _adc = $05 // 5 ADC channels available
to: #const _adc = $0A // 10 ADC channels available
may solve your problem.
Both of these USB PIC's have 10 ADC inputs, not 5 ADC inputs that their includes have defined.
Hope this helps,
RKP
Hallo,
I have had nearby the same problems. David wrote:
CS
I have had nearby the same problems. David wrote:
Hope this helpsYou probably need to take a look at the datasheet, there are quite a few values to play with. You could start by trying something like:
Code: Select all
SetBaudrate(br19200) ADC.SetConvTime(FOSC_8) Repeat ...
CS