文件名称:adc
介绍说明--下载内容均来自于网络,请自行研究使用
/* 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.
*/-/* 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.
*/
* 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.
*/-/* 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.
*/
(系统自动生成,下载前可以参看下载内容)
下载文件列表
adc\a2demo.c
...\adc.c
...\adc.h
adc