Hello, the current #include <16F18877.h> have ADC missing channels, only i can see ADC channels in PortA, PortB and PortC and missing the ADC channels in PortD and PortE.
The PIC16F18877 have up to 35 ADC channels.
The compiler version is 5.070
Maybe, can I use the channel HEX code number to use these missing channels ?
Thanks!
John
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
Posted: Mon Oct 01, 2018 6:49 am
That's not 'the current #include'. We are on 5.081 now....
Quite probably just adding the defines would do it. These are there only a couple of compiler releases later. you have the problem of 'new chip', and the first compiler versions often miss things. However there may be 'deeper' issues...
Note that the E port mappings are handled differently and use a second parameter. These are very unlikely to work with the older compiler... :(
There is a note of an opcode fix for the 16x188xx chips in 5.075, and it is also at this point that the adc channels are fixed. I'd honestly suggest getting an upgrade to at least this version if using this chip.
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