![Renesas M16C/62P Group Скачать руководство пользователя страница 255](http://html1.mh-extra.com/html/renesas/m16c-62p-group/m16c-62p-group_hardware-manual_1440174255.webp)
M16C/62P Group (M16C/62P, M16C/62PT)
18. A/D Converter
Rev.2.41
Jan 10, 2006
Page 240 of 390
REJ09B0185-0241
18.1.2
Repeat Mode
In repeat mode, analog voltage applied to a selected pin is repeatedly converted to a digital code. Table 18.3
shows the Repeat Mode Specifications. Figure 18.6 shows the ADCON0 and ADCON1 Registers (Repeat
Mode).
NOTES:
1. If VCC2 < VCC1, do not use AN0_0 to AN0_7 and AN2_0 to AN2_7 as analog input pins.
Table 18.3
Repeat Mode Specifications
Item
Specification
Function
The CH2 to CH0 bits in the ADCON0 register, the ADGSEL1 to ADGSEL0 bits
in the ADCON2 register and the OPA1 to OPA0 bits in the ADCON1 register
select a pin. Analog voltage applied to this pin is repeatedly converted to a
digital code.
A/D Conversion Start
Condition
• When the TRG bit in the ADCON0 register is “0” (software trigger)
The ADST bit in the ADCON0 register is set to “1” (A/D conversion starts)
• When the TRG bit is “1” (ADTRG trigger)
Input on the ADTRG pin changes state from high to low after the ADST bit is
set to “1” (A/D conversion starts)
A/D Conversion Stop
Condition
Set the ADST bit to “0” (A/D conversion halted)
Interrupt Request
Generation timing
None generated
Analog Input Pin
(1)
Select one pin from AN0 to AN7, AN0_0 to AN0_7, AN2_0 to AN2_7,
ANEX0 to ANEX1
Reading of Result of A/D
Converter
Read one of the AD0 to AD7 registers that corresponds to the selected pin
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655