5 description of operation – Panasonic MN103001G/F01K User Manual

Page 361

Advertising
background image

A/D Converter

14-7

14.5 Description of Operation

Operating mode selection

(1) Any one channel/one-time conversion

If "any one channel/one-time conversion" is selected as the operating mode (ADMD1 to 0), one AN input is

converted one time only. Set the conversion channel in the conversion channel selection bits (ADSC1 to 0).

(ADMC1 to 0 are ignored.) An A/D interrupt request is generated simultaneously with the completion of conversion.

When starting up conversion through software, set the conversion start trigger selection bits (ADST1 to 0) to

"00", and set the conversion start/execution flag (ADEN) to "1".

If the conversion start trigger selection bits (ADST1 to 0) are set to "external trigger", then the conversion

start/execution flag (ADEN) is set to "1" when a falling edge is input to the ADTRG pin, A/D conversion then

starts.

If the conversion start trigger selection bits (ADST1 to 0) are set to "timer trigger," then the conversion start/

execution flag (ADEN) is set to "1" when a timer 2 underflow occurs, A/D conversion then starts.

The conversion start/execution flag (ADEN) is "1" while conversion is in progress, and is then set to "0"

after conversion is completed.

Fig. 14-5-1 External Trigger Input Conversion Example

N channel

conversion

Reset automatically when
conversion is completed

Set

External trigger input

(ADTRG pin)

ADEN flag

Interrupt request

Status

Advertising