📄 ce202_readme.txt
字号:
Readme File for Code Example:
CE102 - ADC Conversion in Sleep mode
----------------------------------------
This file contains the following sections:
1. Code Example Description
2. Folder Contents
3. Suggested Development Resources
4. Reconfiguring the project for a different PIC24H device
5. Revision History
1. Code Example Description:
----------------------------
In this example, ADC is set up to convert AIN5 using CH0 S/H and ADC is operating using its internal RC osc.
Start of conversion is issued in the background loop and device enters sleep mode immediately after that.
When the ADC conversion is completed in sleep mode, it wakes up the device and enters ADC ISR.
void initAdc1(void);
ADC CH0 is set-up to covert AIN5 in 10-bit mode. ADC is configured to next sample data immediately after the conversion.
But the start of conversion is issued manually in the background loop.
void _ADC1Interrupt()
Device enters the ADC ISR after waking up from sleep mode. ADC result is read in the ISR and PORTA (RA6) pin is toggled.
2. Folder Contents:
-------------------
This folder contains the following sub-folders:
a. C:\Program Files\Microchip\MPLAB C30\support\gld
This folder will have the device GLD file, it is used for building the project.
This file was provided with the MPLAB
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -