Renesas M16C/6NM Network Card User Manual


 
Rev.2.00 Nov 28, 2005 page 208 of 378
REJ09B0124-0200
M16C/6N Group (M16C/6NK, M16C/6NM) 16. A/D Converter
Under development
This document is under development and its contents are subject to change.
16.1.2 Repeat Mode
In repeat mode, analog voltage applied to a selected pin is repeatedly converted to a digital code.
Table 16.3 lists the specifications of repeat mode. Figure 16.5 shows the ADCON0 and ADCON1 registers
in repeat mode.
Table 16.3 Repeat Mode Specifications
Item Specification
Function
T
he 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 When the TRG bit in the ADCON0 register is 0 (software trigger)
Start Condition 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 Set the ADST bit to 0 (A/D conversion halted)
Stop Condition
Interrupt Request None generated
Generation Timing
Analog Input Pin Select one pin from AN0 to AN7, AN0_0 to AN0_7, AN2_0 to AN2_7,
ANEX0 to ANEX1
Reading of Result of Read one of the AD0 to AD7 registers that corresponds to the selected pin
A/D Converter