Panasonic F77G 4 A/D Ladder Resistor Control, 5 A/D Conversion Activation Factor Selection

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 485
Image 485

Chapter 15 A/D Converter

„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

ANLADE

A/D ladder resistance control

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

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

„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

A/D conversion activation factor

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

0Set the ANST flag to "1".

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 ]

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.

Table 15-3-6 A/D Conversion Starting

ANST

A/D conversion status

1A/D conversion started or in progress.

0A/D conversion completed or stopped.

Operation XV - 11

Page 485
Image 485
Panasonic F77G 4 A/D Ladder Resistor Control, 5 A/D Conversion Activation Factor Selection, 6 A/D Conversion Starting