586
Chapter 14
A/D Converter
User’s Manual U16580EE3V1UD00
14.4.2 Operation mode and trigger mode
Various conversion operations can be specified for the A/D converter by specifying the operation mode
and trigger mode. The operation mode and trigger mode are set by the ADMn0 and ADMn1registers.
The following table shows the relationship between the operation mode and trigger mode.
Table 14-2:
Relationship Between Operation Mode and Trigger Mode
(1)
Trigger mode
There are three types of trigger modes that serve as the start timing of A/D conversion processing:
A/D trigger mode, timer trigger mode, and external trigger mode. These trigger modes are set by
the TRGn1 and TRGn0 bits of the ADMn1 register.
(a) A/D trigger mode
This mode starts the conversion timing of the analog input set to the ANIn0 to ANIn9 pins, and by
setting the ADCEn bit of the ADMn0 register to 1, starts A/D conversion. Unless the ADCEn bit is
cleared to 0 after conversion, the next conversion operation is repeated. If data is written to the
ADMn0 to ADMn2 registers during conversion, conversion is stopped and then executed from the
beginning again.
(b) Timer trigger mode
This mode specifies the conversion timing of the analog input set for the ANIn0 to ANIn9 pins
using signals from the inverter timer R (TMR0, TMR1).
The ADTRSELn register specifies the analog input conversion timing by selecting either one of the
A/D converter trigger signals (TR0ADTRG0, TR0ADTRG1, TR1ADTRG0, TR1ADTRG1) or one of
the top and bottom reversal interrupts (INTTR0CD, INTR0OD, INTTR1CD, INTTR1OD) connected
to the 16-bit inverter timer R (TMR0, TMR1).
If the ADCEn bit of the ADMn0 register is set to 1, the A/D converter waits for an event input
(TR0ADTRG0, TR0ADTRG1, TR1ADTRG0, TR1ADTRG1, INTTR0CD, INTR0OD, INTTR1CD, or
INTTR1OD), and starts conversion when the event occurs (ADCSn bit of the ADMn0 register = 1).
When conversion has finished, the converter waits for an event input again (ADCSn bit = 0). If data
is written to the ADMn0 to ADMn2 registers during conversion, conversion is stopped and then
executed from the beginning again.
Trigger Mode
Operation Mode
Register Set Value
ADMn0
ADMn1
A/D trigger
Select
1 buffer
xx010000B
xx000xxxB
4 buffers
xx110000B
Scan
xx000000B
Timer trigger
Select
1 buffer
xx010000B
xx010xxxB
4 buffers
xx110000B
Scan
xx000000B
External trigger
Select
1 buffer
xx010000B
xx100xxxB
4 buffers
xx110000B
Scan
xx000000B
Summary of Contents for V850E/PH2
Page 6: ...6 Preface User s Manual U16580EE3V1UD00...
Page 16: ...16 User s Manual U16580EE3V1UD00...
Page 28: ...28 User s Manual U16580EE3V1UD00...
Page 32: ...32 User s Manual U16580EE3V1UD00...
Page 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO...
Page 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO...
Page 192: ...192 Chapter 5 Memory Access Control Function PD70F3187 only User s Manual U16580EE3V1UD00 MEMO...
Page 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO...
Page 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00...
Page 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO...
Page 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00...
Page 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO...
Page 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO...
Page 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO...
Page 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO...
Page 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO...
Page 1052: ...1052 User s Manual U16580EE3V1UD00...
Page 1053: ......