Mode Description; One-Shot Mode - Renesas M16C/62P Hardware Manual

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)

18.1 Mode Description

18.1.1 One-Shot Mode

In one-shot mode, analog voltage applied to a selected pin is converted to a digital code once. Table 18.2
shows the specifications of one-shot mode. Figure 18.4 shows the ADCON0 to ADCON1 registers in
one-shot mode.
Table 18.2 One-Shot Mode Specifications
Item
Function
A/D Conversion Start
Condition
A/D Conversion Stop
Condition
Interrupt Request Generation Timing Completion of A/D conversion
(1)
Analog input pin
Reading of Result of A/D Converter
NOTES:
1. If VCC2 < VCC1, do not use AN0_0 to AN0_7 and AN2_0 to AN2_7 as analog input pins.
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
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 the pin is converted to a
digital code once.
• 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)
• Completion of A/D conversion (If a software trigger is selected, the
ADST bit is cleared to "0" (A/D conversion halted))
• Set the ADST bit to "0"
Select one pin from AN0 to AN7, AN0_0 to AN0_7, AN2_0 to AN2_7,
ANEX0 to ANEX1
Read one of the AD0 to AD7 registers that corresponds to the selected pin
page 211
f o
3
6
4
Specification
____________
____________
18. A/D Converter

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents