DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16F1513T-I/SS 查看數據表(PDF) - Microchip Technology

零件编号
产品描述 (功能)
生产厂家
PIC16F1513T-I/SS
Microchip
Microchip Technology 
PIC16F1513T-I/SS Datasheet PDF : 360 Pages
First Prev 121 122 123 124 125 126 127 128 129 130 Next Last
PIC16(L)F1512/3
16.1.5 INTERRUPTS
The ADC module allows for the ability to generate an
interrupt upon completion of an Analog-to-Digital
conversion. The ADC Interrupt Flag is the ADIF bit in
the PIR1 register. The ADC Interrupt Enable is the
ADIE bit in the PIE1 register. The ADIF bit must be
cleared in software.
Note 1: The ADIF bit is set at the completion of
every conversion, regardless of whether
or not the ADC interrupt is enabled.
2: The ADC operates during Sleep only
when the FRC oscillator is selected.
This interrupt can be generated while the device is
operating or while in Sleep. If the device is in Sleep, the
interrupt will wake-up the device. Upon waking from
Sleep, the next instruction following the SLEEP
instruction is always executed. If the user is attempting
to wake-up from Sleep and resume in-line code
execution, the GIE and PEIE bits of the INTCON
register must be disabled. If the GIE and PEIE bits of
the INTCON register are enabled, execution will switch
to the Interrupt Service Routine.
16.1.6 RESULT FORMATTING
The 10-bit A/D conversion result can be supplied in two
formats, left justified or right justified. The ADFM bit of
the ADCON1 register controls the output format.
Figure 16-3 shows the two output formats.
FIGURE 16-3:
10-BIT A/D CONVERSION RESULT FORMAT
ADRESH
(ADFM = 0) MSB
bit 7
bit 0
10-bit A/D Result
(ADFM = 1)
bit 7
MSB
bit 0
Unimplemented: Read as ‘0
ADRESL
LSB
bit 7
bit 0
Unimplemented: Read as ‘0
LSB
bit 7
bit 0
10-bit A/D Result
2012-2014 Microchip Technology Inc.
DS40001624C-page 127

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]