CHAPTER 11 A/D CONVERTER
User’s Manual U12688EJ4V0UM00
341
11.7 Operation in External Trigger Mode
In the external trigger mode, the analog inputs (ANI0 to ANI3) are A/D converted by the ADTRG pin input timing.
The ADTRG pin is also used as the P127 and INTP153 pins. To set the external trigger mode, set the PMC127 bit
of the PMC12 register to 1 and bits TRG2 to TRG0 of the ADM1 register to 110.
For the valid edge of the external input signal in the external trigger mode, the rising edge, falling edge, or both
rising and falling edges can be specified using bits ES531 and ES530 of the INTM6 register. For details, refer to 7.3.8
(1) External interrupt mode registers 1 to 6 (INTM1 to INTM6).
11.7.1 Select mode operations (external trigger select)
One analog input (ANI0 to ANI3) specified by the ADM0 register is A/D converted. The conversion results are
stored in the ADCRn register corresponding to the analog input. There are two select modes, 1-buffer mode and 4-
buffer mode, storing the conversion results (n = 0 to 3).
(1) 1-buffer mode (External trigger select: 1-buffer)
One analog input is A/D converted using the ADTRG signal as a trigger. The conversion results are stored in
one ADCRn register. The analog input and the A/D conversion results register correspond one to one. INTAD
interrupts are generated after each A/D conversion, and A/D conversion ends.
Trigger
Analog Input
A/D Conversion Result Register
ADTRG signal
ANIn
ADCRn
(n = 0 to 3)
While the CE bit of the ADM0 register is 1, the A/D conversion is repeated every time a trigger is input from the
ADTRG pin.
This is most appropriate for applications that read the results each time there is an A/D conversion.
Figure 11-15. Example of 1-Buffer Mode (External Trigger Select 1-Buffer) Operation
ANI0
ANI1
ANI2
ANI3
ADCR0
ADCR1
ADCR2
ADCR3
ADCR4
ADCR5
ADCR6
ADCR7
A/D converter
ADTRG
(1)
CE bit of ADM0 is set to 1 (enable)
(2)
External trigger generation
(3)
ANI2 A/D conversion
(4)
Conversion result is stored in ADCR2
(5)
INTAD interrupt generation
Содержание V850E/MS1 UPD703100
Страница 2: ...User s Manual U12688EJ4V0UM00 2 MEMO ...
Страница 6: ...User s Manual U12688EJ4V0UM00 6 MEMO ...
Страница 8: ...User s Manual U12688EJ4V0UM00 8 MEMO ...
Страница 12: ...User s Manual U12688EJ4V0UM00 12 MEMO ...
Страница 26: ...User s Manual U12688EJ4V0UM00 26 MEMO ...
Страница 68: ...User s Manual U12688EJ4V0UM00 68 MEMO ...
Страница 124: ...User s Manual U12688EJ4V0UM00 124 MEMO ...
Страница 198: ...User s Manual U12688EJ4V0UM00 198 MEMO ...
Страница 230: ...User s Manual U12688EJ4V0UM00 230 MEMO ...
Страница 422: ...User s Manual U12688EJ4V0UM00 422 MEMO ...