| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PIC16F15213T-I/ST bảng dữ liệu(PDF) 323 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST bảng dữ liệu(HTML) 323 Page - Microchip Technology |
|
323 / 439 page ![]() • Set the ADIF bit • Update the ADRES registers with the new conversion result 27.2.3 ADC Operation During Sleep The ADC module can operate in Sleep. This requires the ADC clock source to be set to the ADCRC option. When the ADC oscillator source is selected, the ADC waits one additional instruction before starting the conversion. This allows the SLEEP instruction to be executed, which can reduce system noise during the conversion. If the ADC interrupt is enabled (ADIE = 1), the device will wake up from Sleep when the conversion completes. If the ADC interrupt is disabled (ADIE = 0), the device remains in Sleep and the ADC module is turned off, although the ON bit remains set. When the ADC clock source is something other than the ADCRC, a SLEEP instruction causes the present conversion to be aborted and the ADC is turned off, although the ON bit remains set. 27.2.3.1 External Trigger During Sleep If an external trigger is received when the ADC is in Sleep, the trigger will be recorded, but the conversion will not begin until the device exits Sleep. 27.2.4 Auto-Conversion Trigger The auto-conversion trigger allows periodic ADC measurements without software intervention. When a rising edge of the selected source occurs, the GO bit is set by hardware. The auto-conversion trigger source is selected with the Auto-Conversion Trigger Select (ACT) bits. Important: Using the auto-conversion trigger does not ensure proper ADC timing. It is the user’s responsibility to ensure that the ADC timing requirements are met. 27.2.5 ADC Conversion Procedure This is an example procedure for using the ADC to perform an analog-to-digital conversion: 1. Configure port: a. Disable the pin output driver (refer to the TRISx register) b. Configure the pin as analog (refer to the ANSELx register) 2. Configure the ADC module: a. Select the ADC conversion clock b. Configure the voltage reference c. Select the ADC input channel d. Configure result format e. Turn on the ADC module 3. Configure ADC interrupt (optional): a. Clear the ADC interrupt flag b. Enable the ADC interrupt c. Enable the peripheral interrupt (PEIE bit) d. Enable the global interrupt (GIE bit)(1) 4. Wait the required acquisition time(2) 5. Start conversion by setting the GO bit 6. Wait for ADC conversion to complete by one of the following: – Polling the GO bit – Waiting for the ADC interrupt (if interrupt is enabled) 7. Read ADC Result 8. Clear the ADC interrupt flag (if interrupt is enabled) PIC16F15213/14/23/24/43/44 ADC - Analog-to-Digital Converter © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 323 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |