Operation In Scan Mode - NEC UPD703116 User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

13.8.2 Operation in scan mode

Using the interrupt signal specified by the A/D internal trigger selection register 0 (ITRG0) as a trigger, the
conversion start analog input pin through the conversion termination analog input pin specified by the ADSCM00 or
ADSCM10 register are sequentially selected and A/D converted. Conversion results are stored in the ADCR0n or
ADCR1n registers corresponding to the analog inputs. When all of the specified A/D conversions terminate, an A/D
conversion termination interrupt (INTAD0 or INTAD1) is generated, which terminates A/D conversion (ADCS0 or
ADCS1 = 0).
This is optimal for applications that regularly monitor multiple analog inputs in synchronization with a timer trigger.
Trigger
Interrupt specified by ITRG0 register
Remark n = 0, 1
After all of the specified A/D conversions terminate, the A/D converter changes to trigger wait status (ADCE0 or
ADCE1 = 1). It performs A/D conversion operation again when the interrupt signal specified in the ITRG0 register
occurs.
Figure 13-11. Example of Timer Trigger Scan Mode Operation (For A/D Converter 0)
INTM00
(1) ADCE0 bit of ADSCM00 = 1 (Enabled)
(2) INTTM00 interrupt generation
(3) A/D conversion of ANI01
(4) Store conversion result in ADCR01
(5) A/D conversion of ANI02
(6) Store conversion result in ADCR02
CHAPTER 13 A/D CONVERTER
Analog Input
ANIn0
ANIn1
ANIn2
ANIn3
ANIn4
ANIn5
ANIn6
ANIn7
: INTTM00 Selected by ITRG0 Register
(a) Set to scan ANI01 to ANI04
ANI00
ANI01
ANI02
ANI03
ANI04
ANI05
ANI06
ANI07
User's Manual U14492EJ5V0UD
A/D Conversion Result Register
ADCRn0
ADCRn1
ADCRn2
ADCRn3
ADCRn4
ADCRn5
ADCRn6
ADCRn7
A/D converter 0
(7) A/D conversion of ANI03
(8) Store conversion result in ADCR03
(9) A/D conversion of ANI04
(10) Store conversion result in ADCR04
(11) INTAD0 interrupt generation
ADCR00
ADCR01
ADCR02
ADCR03
ADCR04
ADCR05
ADCR06
ADCR07
665

Advertisement

Table of Contents
loading

Table of Contents