Fig. 14-5-7 Example Of Conversion By Switching To; Fig. 14-5-8 Example Of Conversion By Switching To - Panasonic MN103001G/F01K User Manual

Panax series microcomputer
Table of Contents

Advertisement

A/D Converter
[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.
ADST1 to 0
External trigger input
(ADTRG pin)
ADEN flag
Interrupt request
Status
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.
ADST1 to 0
External trigger input
(ADTRG pin)
ADEN flag
Interrupt request
Status
Fig. 14-5-8 Example of Conversion by Switching to External Trigger Mode (Continuous Conversion)
14-12
b'00 or b'10
b'01
Set
Reset automatically when
conversion is completed
N channel
conversion
b'00 or b'10
b'01
Set
N channel
N channel
conversion
conversion
N channel
conversion
N channel
N channel
N channel
N channel
conversion
conversion
conversion
conversion
Clear by software when
stopping the conversion
operation

Advertisement

Table of Contents
loading

Table of Contents