CHAPTER 13 A/D CONVERTER
661
User’s Manual U14492EJ3V0UD
(2) Operation modes
The two operation modes, which are the modes that set the ANI00 to ANI07 and ANI10 to ANI17 pins, are
select mode and scan mode. These modes are set using the ADSCM00 and ADSCM10 registers.
(a) Select mode
Select mode A/D converts one analog input specified in the ADSCM00 or ADSCM10 register. It stores
the conversion result in the ADCR0n or ADCR1n register corresponding to the analog input (ANI1n or
ANI0n) (n = 0 to 7).
Figure 13-4. Example of Select Mode Operation Timing (ANI01): For A/D Converter 0
ANI01 (input)
A/D conversion
Data 1
(ANI01)
Data 2
(ANI01)
Data 3
(ANI01)
Data 4
(ANI01)
Data 5
(ANI01)
Data 6
(ANI01)
Data 7
(ANI01)
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
Data 1
(ANI01)
Data 2
(ANI01)
Data 3
(ANI01)
Data 4
(ANI01)
Data 6
(ANI01)
ADCR01 register
INTAD0 interrupt
Conversion start
(ADSCM0
register setting)
ADCE0
bit set
ADCE0
bit set
ADCE0
bit set
ADCE0
bit set
ADCE0
bit set
Conversion start
(ADSCM0
register setting)
ANI00
ANI01
ANI02
ANI03
ANI04
ANI05
ANI06
ANI07
ADCR00
ADCR01
ADCR02
ADCR03
ADCR04
ADCR05
ADCR06
ADCR07
AD converter 0
ADCR0n register
Analog input