272
CHAPTER 12 A/D CONVERTER
12.5
Interrupt of A/D Converter
A factor for an interrupt of the A/D converter is the following.
• Completion of conversion when A/D conversion functions are enabled
■
Interrupt when A/D Conversion Functions are Enabled
When A/D conversion is completed, the interrupt request flag bit (ADC1: ADI) is set to "1". At this time, if
the bit for enabling an interrupt request is enabled (ADC2: ADIE = 1), an interrupt request to the CPU
(IRQ8) occurs. Write "0" to the ADI bit using the routine for interrupt handling to clear the interrupt
request.
The ADI bit is set when A/D conversion is completed, irrespective of the value of the ADIE bit.
Note:
When the ADI bit is "1", if the ADIE bit is enabled (changed from "0" to "1"), an interrupt request
occurs immediately.
■
Register and Vector Table Related to the Interrupt of the A/D Converter
See Section "3.4.2 Steps in the Interrupt Operation " for the interrupt operation.
Table 12.5-1 Register and Vector Table Related to the Interrupt of the A/D Converter
Interrupt name
Register to set the interrupt level
Address of the vector table
Register
Bit to be set
High order
Low order
IRQ8
ILR3 (007D
H
)
L81 (bit1)
L80 (bit0)
FFEA
H
FFEB
H
Summary of Contents for F2MC-8L F202RA
Page 2: ......
Page 4: ......
Page 32: ...16 CHAPTER 1 OVERVIEW ...
Page 90: ...74 CHAPTER 3 CPU ...
Page 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Page 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Page 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Page 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Page 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Page 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Page 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Page 390: ...374 CHAPTER 17 FLASH MEMORY ...
Page 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 434: ...418 INDEX ...
Page 436: ......