Description: /* Basic A2D sample code for an PIC16F87x device.
* This code willl set up the A2D module to return an
* 8-Bit result. If greater precision is needed, a 10-Bit
* result can be returned if read_a2d() is modified to
* return the short ((ADRESH<<8)+(ADRESL)). Note also that
* ADCON1 should be set to 0x80 in the init_a2d() routine
* instead of zero.
*
* This code will sample an A2D value on analog port RA0, and it s value
* will be used to move a LED s position across PORTB.
*
* This project can be demonstrated on the Microchip PICDEM2 board.
*/
To Search:
File list (Check if you may need any files):
adc\a2demo.c
...\adc.c
...\adc.h
adc