A/D Converter Interrupts - Fujitsu F2MC-8L MB89620 Series Hardware Manual

8-bit microcontroller
Table of Contents

Advertisement

4
13.

A/D Converter Interrupts

The A/D converter has the following two interrupts:
• Conversion completion for the A/D conversion function
• Match of the input voltage and the comparison condition
n Interrupt for A/D Conversion Function
When A/D conversion completes, the interrupt request flag bit (ADC1: ADI) is set to "1". At this
time, an interrupt request (IRQ9) to the CPU is generated if the interrupt request enable bit is
enabled (ADC2: ADIE = "1"). Write "0" to the ADI bit in the interrupt processing routine to clear
the interrupt request.
The ADI bit is set after completion of A/D conversion, regardless of the ADIE bit value.
Note: An interrupt request is generated immediately if the ADI bit is "1" when the ADIE bit is changed from
disabled to enabled ("0" → "1").
n Interrupt for Sense Function
When the specified comparison condition is satisfied after completion of comparison of the input
voltage and compare voltage, the interrupt request flag bit (ADC1: ADI) is set to "1".
At this time, an interrupt request (IRQ9) to the CPU is generated if the interrupt request enable
bit is enabled (ADC2: ADIE = "1"). Write "0" to the ADI bit in the interrupt processing routine to
clear the interrupt request.
The ADI bit is set when the comparison condition is satisfied, regardless of the ADIE bit value.
Note: An interrupt request is generated immediately if the ADI bit is "1" when the ADIE bit is changed from
disabled to enabled ("0" → "1").
n Register and Vector Table for A/D Converter Interrupt
Table 13.4 Register and Vector Table for A/D Converter Interrupt
Interrupt
IRQ9
Reference: See Section 3.4.2, "Interrupt Processing" for details on the interrupt operation.
MB89620 series
Interrupt level setting register
Register
ILR3 (007E
)
L91 (Bit 3)
H
Setting bits
L90 (Bit 2)
CHAPTER 13 A/D CONVERTER
Vector table address
Upper
Lower
FFE8
FFE9
H
H
255
13

Advertisement

Table of Contents
loading

Table of Contents