Control Registers - NEC UPD703116 User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

13.3 Control Registers

(1) A/D scan mode registers 00 and 10 (ADSCM00, ADSCM10)
The ADSCMn0 registers are 16-bit registers that select analog input pins, specify operation modes, and
control conversion operation.
The ADSCMn0 register can be read/written in 16-bit units.
When the higher 8 bits of the ADSCMn0 register are used as the ADSCMn0H register, and the lower 8 bits
are used as the ADSCMn0L register, they can be read/written in 8-bit or 1-bit units.
However, writing to an ADSCMn0 register during A/D conversion operation initializes conversion operation
and starts the conversion over from the beginning. At this time, overwrite the ADSCMn0 register with the
same value. If writing a different value, be sure to clear the ADCEn bit to 0 first before overwriting.
Caution Before changing the trigger mode by using the ADPLMn and TRG2 to TRG0 bits, clear the
ADCEn bit to 0 (n = 0 or 1). The operation is not guaranteed if the trigger mode is changed
and the ADCEn bit is cleared at the same time (by the same instruction). Be sure to access
the register twice.
646
CHAPTER 13 A/D CONVERTER
User's Manual U14492EJ5V0UD

Advertisement

Table of Contents
loading

Table of Contents