art
Joined: 21 May 2015 Posts: 181
|
EX_ADMM10.C example |
Posted: Wed Jan 15, 2020 2:50 am |
|
|
Hi,
I would like to know, what does " #device ADC=16 " mean ?
In EX_ADMM10.C example it shows that for PCM and PCH, both use this setting. Is it referring to 16 Bit ADC ? if YES, does it mean that PIC18F452 can be set as 16bit ADC ? Follow to datasheet , this PIC18 is a 10 bit ADC.
Code: |
#if defined(__PCM__)
#include <16F877.h>
#device ADC=16
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#elif defined(__PCH__)
#include <18F452.h>
#device ADC=16
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#elif defined(__PCD__)
#include <30F2010.h>
#device ADC=16
#fuses HS,NOWDT,NOPROTECT
#use delay(clock=20000000)
#use rs232(baud=9600, UART1A)
#endif
|
|
|