Panasonic MN103001G/F01K Personal Computer User Manual


 
A/D Converter
14-12
[Notes]
If a falling edge is input to the ADTRG pin before the conversion start trigger selection (ADST1 to 0) is
switched to "external trigger" ("01"), the ADEN flag is set at the same time that the switch is made, and A/D
conversion starts.
Fig. 14-5-7 shows an example of a single conversion. In this case, the ADEN conversion start/execution
flag is set at the same time that ADST1 to 0 are switched, and is reset when A/D conversion is completed.
Fig. 14-5-7 Example of Conversion by Switching to External Trigger Mode (Single Conversion)
Fig. 14-5-8 shows an example of continuous conversion. The ADEN flag is set at the same time that
ADST1 to 0 are switched, and then A/D conversion starts. In the case of continuous conversion, conversion is
stopped by writing "0" to the ADEN flag.
Fig. 14-5-8 Example of Conversion by Switching to External Trigger Mode (Continuous Conversion)
Set
b'00 or b'10 b'01
Reset automatically when
conversion is completed
External trigger input
(ADTRG pin)
ADEN flag
Interrupt request
Status
ADST1 to 0
N channel
conversion
N channel
conversion
Set
b'00 or b'10 b'01
Clear by software when
stopping the conversion
operation
N channel
conversion
N channel
conversion
N channel
conversion
N channel
conversion
N channel
conversion
N channel
conversion
External trigger input
(ADTRG pin)
ADEN flag
Interrupt request
Status
ADST1 to 0