Download Print this page

Renesas M16C/50 Series User Manual page 669

Advertisement

M16C/5L Group, M16C/56 Group
24.4.2
Repeat Mode
In repeat mode, the analog voltage applied to a selected pin is repeatedly converted to a digital code.
Table 24.9 lists Repeat Mode Specifications.
Table 24.9
Repeat Mode Specifications
Item
Function
A/D conversion start
conditions
A/D conversion stop
condition
Interrupt request
generation timing
Analog input pin
Reading of A/D conversion
result
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Bits CH2 to CH0 in the ADCON0 register and bits ADGSEL1 to ADGSEL0
in the ADCON2 register are used to select a pin. The analog voltage
applied to the pin is repeatedly converted to a digital code.
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 start).
When the TRG bit is 1 ( ADTRG trigger)
the input level at the ADTRG pin changes from high to low after the ADST
bit is set to 1 (A/D conversion start).
Set the ADST bit to 0 (A/D conversion stop).
No interrupt requests generated
Select one pin from among AN0 to AN7, AN0_0 to AN0_7, AN2_0 to
AN2_7, or AN3_0 to AN3_2.
Read the register among AD0 to AD7 that corresponds to the selected pin.
Specification
24. A/D Converter
Page 632 of 803

Advertisement

loading