Panasonic F77G User Manual page 485

Microcomputer mn101c series
Table of Contents

Advertisement

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.
ANLADE
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
ANSTSEL
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).
Specify the interrupt valid edge before the external interrupt 3 is selected as the A/D conver-
sion activation factor.
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.
ANST
Table 15-3-4 A/D Ladder Resistor Control
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)
A/D conversion activation factor
1
The external interrupt 3, or set the ANST flag to "1".
0
Set the ANST flag to "1".
Table 15-3-6 A/D Conversion Starting
1
A/D conversion started or in progress.
0
A/D conversion completed or stopped.
[
Chapter 3. 3-3 External Interrupts ]
A/D conversion status
Chapter 15
A/D Converter
XV - 11
Operation

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Panaxseries mn101c77cPanaxseries mn101f77g

Table of Contents