Operation Mode And Trigger Mode - NEC V850E/MS1 UPD703100 User Manual

32-/16-bit single-chip microcontrollers
Table of Contents

Advertisement

11.4.2 Operation mode and trigger mode

The A/D converter can specify various conversion operations by specifying the operation mode and trigger mode.
The operation mode and trigger mode are set by the ADM0 and ADM1 registers.
The following shows the relationship between the operation mode and trigger mode.
Trigger Mode
A/D trigger
Timer trigger
1 trigger
4 triggers
External trigger
(1) Trigger mode
There are three types of trigger modes that serve as the start timing of the A/D conversion processing: A/D
trigger mode, timer trigger mode, and external trigger mode. The ANI0 to ANI3 pins are able to specify all of
these modes, but pins ANI4 to ANI7 can only specify the A/D trigger mode. The timer trigger mode consists of
the 1-trigger mode and 4-trigger mode as the sub-trigger mode. These trigger modes are set by the ADM1
register.
(a) A/D trigger mode
Generates the conversion timing of the analog input for the ANI0 to ANI7 pins inside the A/D converter
unit. ANI4 to ANI7 pins are always set in this mode.
(b) Timer trigger mode
Specifies the conversion timing of the analog input set for the ANI0 to ANI3 pins using the values set to
the TM11 compare register. This mode can only be specified by pins ANI0 to ANI3.
This register creates the analog input conversion timing by generating the match interrupts of the four
capture/compare registers (CC110 to CC113) connected to the 16-bit TM11.
There are two types of sub-trigger modes: 1-trigger mode and 4-trigger mode.
324
CHAPTER 11 A/D CONVERTER
Operation Mode
Select
1 buffer
4 buffers
Scan
Select
1 buffer
4 buffers
Scan
Select
1 buffer
4 buffers
Scan
Select
1 buffer
4 buffers
Scan
User's Manual U12688EJ4V0UM00
Setting Value
ADM0 register
ADM1 register
xx010xxxB
000x0xxxB
xx110xxxB
000x0xxxB
xxx00xxxB
000x0xxxB
xx010xxxB
00100xxxB
xx110xxxB
00100xxxB
xxx00xxxB
00100xxxB
xx010xxxB
00110xxxB
xx110xxxB
00110xxxB
xxx00xxxB
00110xxxB
xx010xxxB
01100xxxB
xx110xxxB
01100xxxB
xxx00xxxB
01100xxxB
Analog Input
ANI0 to ANI7
ANI0 to ANI3

Advertisement

Table of Contents
loading

Table of Contents