587
Chapter 14
A/D Converter
User’s Manual U16580EE3V1UD00
(c) External trigger mode
This mode specifies the conversion timing of the analog input to the ANIn0 to ANIn9 pins using the
ADTRGn pin.
The EGAn1 and EGAn0 bits of the ADMn1 register are used to specify the valid edge to be input
to the ADTRGn pin.
When the ADCEn bit of the ADMn0 register is set to 1, the A/D converter waits for an external
trigger (ADTRGn), and starts conversion when the valid edge of ADTRGn is detected (ADCSn bit
of the ADMn0 register = 1). When the converter has finished its conversion operation, it waits for
an external trigger again (ADCSn bit = 0).
If the valid edge is detected at the ADTRGn pin during conversion, conversion is executed from
the beginning again.
If data is written to the ADMn0 to ADMn2 registers during conversion, conversion is stopped and
then executed from the beginning again.
(2)
Operation mode
There are two operation modes that set the ANIn0 to ANIn9 pins: select mode and scan mode.
The select mode has sub-modes that consist of 1-buffer mode and 4-buffer mode. These modes
are set by the BSn and MSn bits of the ADMn0 register.
(a) Select mode
In this mode, one analog input specified by the ADMn2 register is A/D converted. The conversion
results are stored in the ADCRnm register corresponding to the analog input (ANInm). For this
mode, the 1-buffer mode and 4-buffer mode are provided for storing the A/D conversion results
(m = 0 to 9).
• 1-buffer mode
In this mode, one analog input specified by the ADM2 register is A/D converted. The conversion
results are stored in the ADCRnm register corresponding to the analog input (ANInm) (m = 0 to 9).
The ANInm and ADCRnm register correspond one to one, and an A/D conversion end interrupt
(INTADn) is generated each time one A/D conversion ends. After conversion has finished, the next
conversion operation is repeated, unless the ADCEn bit of the ADMn0 register is cleared to 0.
Summary of Contents for MuPD70F3187
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 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: ......