Renesas M16C/64A Series User Manual page 661

Table of Contents

Advertisement

M16C/64A Group
27.3.2
A/D Conversion Start Conditions
An A/D conversion start trigger has a software trigger and an external trigger. Figure 27.4 shows A/D
Conversion Start Trigger.
ADST
ADTRG pin
ADST, TRG: Bits in the ADCON0 register
Figure 27.4
A/D Conversion Start Trigger
27.3.2.1
Software Trigger
The software trigger is enabled when the TRG bit in the ADCON0 register is 0 (software trigger).
A/D conversion starts by setting the ADST bit in the ADCON0 register to 1 (A/D conversion start).
27.3.2.2
External Trigger
The external trigger is enabled when the TRG bit in the ADCON0 register is 1 ( ADTRG trigger).
To use this trigger, set the following:
The direction bit of the port which shares a pin with ADTRG is 0 (input mode).
The TRG bit in the ADCON0 register is 1 ( ADTRG trigger).
The ADST bit in the ADCON0 register is 1 (A/D conversion start).
Under the above conditions, when input to the ADTRG pin is changed from high to low, A/D
conversion starts.
Set the high- and low-level durations of the pulse input to the ADTRG pin to two or more cycles of
fAD.
ADTRG input
A/D conversion
Figure 27.5
A/D Conversion Start Timing When External Trigger Input
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
TRG
0
1
1 to 1.5 fAD cycles
Start
conversion
27. A/D Converter
A/D conversion start trigger
Page 628 of 800

Advertisement

Table of Contents
loading

Table of Contents