Panasonic MN101C77C User Manual

Page 485

Advertising
background image

Operation

Chapter 15 A/D Converter

XV - 11

„

Built-in Ladder Resistor Control

The ANLADE flag of the ANCTR0 register is set to "1" to send a current to the ladder resistance for A/

D conversion. As A/D converter is stopped, the ANLADE flag of the ANCTR0 register is set to "0" to save

the power consumption.

Table 15-3-4 A/D Ladder Resistor Control

„

A/D Conversion Activation Factor Selection Setup

The A/D conversion activation factor is set by the ANSTSEL flag of the ANCTR2 register. The ANSTSEL

flag of the ANCTR2 register is set to "1" to start A/D conversion by the external interrupt 3. And if the

ANST flag of the ANCTR2 register is set to "1", A/D conversion can be started.

Table 15-3-5 A/D Conversion Activation Factor Selection

„

A/D Conversion Starting Setup

A/D conversion starting is set by the ANST flag of the ANCTR2 register. The ANST flag of the ANCTR2

register is set to "1" to start A/D conversion. When the external interrupt 3 is selected as the A/D conver-

sion activation factor, the ANST flag of the ANCTR2 register is set to "1" to start A/D conversion, as the

external interrupt 3 is generated. Also, the ANST flag of the ANCTR2 register is set to "1" during A/D

conversion, then cleared to "0" as the A/D conversion complete interrupt is generated.

Table 15-3-6 A/D Conversion Starting

Specify the interrupt valid edge before the external interrupt 3 is selected as the A/D conver-

sion activation factor.

If the external interrupt 3 is selected as the A/D conversion activation factor, specify the valid

edge by the REDG3 flag of the external interrupt 3 control register (IRQ3ICR), and the

EDGSEL3 flag of the both edges interrupt control register (EDGDT).

[ Chapter 3. 3-3 External Interrupts ]

ANLADE

A/D ladder resistance control

0

A/D ladder resistance OFF (A/D conversion stopped)

1

A/D ladder resistance ON (A/D conversion operated)

ANSTSEL

A/D conversion activation factor

1

The external interrupt 3, or set the ANST flag to "1".

0

Set the ANST flag to "1".

ANST

A/D conversion status

1

A/D conversion started or in progress.

0

A/D conversion completed or stopped.

Advertising
This manual is related to the following products: