![NEC V854 UPD703006 User Manual Download Page 311](http://html.mh-extra.com/html/nec/v854-upd703006/v854-upd703006_user-manual_249287311.webp)
CHAPTER 9 A/D CONVERTER
User’s Manual U11969EJ3V0UM00
311
9.6 Operation in the Timer Trigger Mode
The A/D converter can set conversion timings with the coincidence interrupt signals of the RPU compare register.
TM0 and the capture/compare register (CC03) are used for the timer for specifying the analog conversion trigger.
The following two modes are provided according to the specification of the TMC00 register.
(1) One-shot mode
To use the one-shot mode, 1 should be set to the OST0 bit of the TMC00 register (one-shot mode).
When the A/D conversion period is longer than the TM0 period, the TM0 generates an overflow, holds 000000H
and stops. Thereafter, TM00 does not output the coincidence interrupt signal INTCC03 (A/D conversion
trigger) of the compare register, and the A/D converter goes into the A/D conversion standby state. The TM0
count operation restarts when the valid edge of the TCLR0 pin input is detected or when 1 is written to the
CE0 bit of the TMC00 register.
(2) Loop mode
To use the loop mode, 0 should be set to the OST0 bit (normal mode) of the TMC00 register.
When the TM0 generates an overflow, the TM0 starts counting from 000000H again, and the coincidence
interrupt signal INTCC03 (A/D conversion trigger) of the compare register is repeatedly output and A/D
conversion is also repeated.
Coincidence of the compare register can also clear TM0 and restart it.
9.6.1 Select mode operation
The A/D converter converts an analog input (ANI0 to ANI15) specified by the ADM0 register. The conversion results
are stored in the ADCRn register corresponding to the analog input. For the select mode, the one-buffer mode and
four-buffer mode are provided according to the storing method employed for the A/D conversion results.
(1) 1-buffer mode operation (Timer trigger select: 1-buffer)
The A/D converter converts one analog input once and stores the conversion results in one ADCRn register
(Refer to Table 9-4, Figure 9-9).
The A/D converter converts one analog input once using the trigger of the coincidence interrupt signal
(INTCC03) and stores the results in one ADCRn register.
An INTAD interrupt is generated for each A/D conversion and the A/D conversion is ended.
When TM0 is set to the one-shot mode, A/D conversion is ended after one conversion operation. To restart
the A/D conversion, input the valid edge to the TCLR0 pin or write 1 to the CE0 bit of the TMC00 register.
When TM0 is set to the loop mode, A/D conversion is repeated each time the coincidence interrupt is generated,
unless the CE bit of the ADM0 register is set to 0.
Summary of Contents for V854 UPD703006
Page 2: ...2 User s Manual U11969EJ3V0UM00 MEMO ...
Page 22: ...22 User s Manual U11969EJ3V0UM00 MEMO ...
Page 80: ...80 User s Manual U11969EJ3V0UM00 MEMO ...
Page 134: ...134 User s Manual U11969EJ3V0UM00 MEMO ...
Page 156: ...156 User s Manual U11969EJ3V0UM00 MEMO ...
Page 294: ...294 User s Manual U11969EJ3V0UM00 MEMO ...
Page 320: ...320 User s Manual U11969EJ3V0UM00 MEMO ...
Page 324: ...324 User s Manual U11969EJ3V0UM00 MEMO ...
Page 336: ...336 User s Manual U11969EJ3V0UM00 MEMO ...
Page 376: ...376 User s Manual U11969EJ3V0UM00 MEMO ...
Page 382: ...382 User s Manual U11969EJ3V0UM00 MEMO ...
Page 394: ...394 User s Manual U11969EJ3V0UM00 MEMO ...