Operation In External Trigger Mode; Operation In Select Mode - NEC UPD703116 User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

13.9 Operation in External Trigger Mode

In external trigger mode, analog input (ANI00 to ANI07, ANI10 to ANI17) is A/D converted on ADTRG0 or ADTRG1
pin input timing.
The valid edge of an external input signal in external trigger mode can be specified as a rising edge, a falling edge,
or a rising or falling edge in the ES21 or ES20 bit of the INTM1 register for A/D converter 0 and in the ES31 or ES30
bit of the INTM1 register for A/D converter 1.

13.9.1 Operation in select mode

One analog input (ANI00 to ANI07, ANI10 to ANI17) specified by the ADSCM00 or ADSCM10 register is A/D
converted. The conversion result is stored in the ADCR0n or ADCR1n register (n = 0 to 7).
Using an ADTRG0 or ADTRG1 signal as a trigger, one analog input at a time is A/D converted and the result is
stored in one ADCR0n or ADCR1n register.
registers. For each A/D conversion, an A/D conversion termination interrupt (INTAD0 or INTAD1) is generated, which
terminates A/D conversion (ADCS0 or ADCS1 bit = 0).
Trigger
ADTRGm signal
Remark
m = 0, 1
n = 0 to 7
To restart A/D conversion, a trigger must be input again from the ADTRGn pin (n = 0, 1).
This is optimal for applications that read results each time there is an A/D conversion in synchronization with an
external trigger.
Figure 13-12. Example of Select Mode (External Trigger Select) Operation (ANI02): For A/D Converter 0
ADTRG0
(1) ADCE0 bit of ADSCM00 = 1 (Enabled)
(2) External trigger generation
(3) A/D conversion of ANI02
(4) Store conversion result in ADCR02
(5) INTAD0 interrupt generation
666
CHAPTER 13 A/D CONVERTER
Analog inputs correspond one-to-one with A/D conversion result
Analog Input
ANImn
ANI00
ANI01
ANI02
ANI03
A/D converter 0
ANI04
ANI05
ANI06
ANI07
User's Manual U14492EJ5V0UD
A/D Conversion Result Register
ADCRmn
ADCR00
ADCR01
ADCR02
ADCR03
ADCR04
ADCR05
ADCR06
ADCR07

Advertisement

Table of Contents
loading

Table of Contents