Fujitsu F2MC-8FX Hardware Manual page 444

F2mc-8fx 8-bit microcontroller
Hide thumbs Also See for F2MC-8FX:
Table of Contents

Advertisement

CHAPTER 23 10-BIT A/D CONVERTER
Checking the completion of conversion
The following two methods can be used to check whether conversion has been completed.
• Checking with the interrupt request flag bit (ADC1.ADI)
• Checking with the conversion flag bit (ADC1.ADMV)
Interrupted related register
Use the following interrupt level setting register to set the interrupt level.
AD
Enabling, disabling, and clearing interrupts
Interrupt request enable flag and interrupt request flag
To enable interrupts, use the interrupt request enable bit (ADC2.ADIE).
To disable interrupt requests
To enable interrupt requests
To clear interrupt requests, use the interrupt request bit (ADC1.ADI).
To clear an interrupt request
430
(ADI)
The value read is "0".
The value read is "1".
(ADMV)
The value read is "0".
The value read is "1".
Interrupt level setting register
Interrupt level register (ILR4)
Address: 0007D
A/D conversion completed with no interrupt request
A/D conversion completed with interrupt request generated
A/D conversion completed (suspended)
A/D conversion in progress
H
Interrupt request enable bit (ADIE)
Set the bit to "0".
Set the bit to "1".
Interrupt request bit (ADI)
Write "0" to the bit or activate A/D.
Meaning
Setting
Interrupt vector
#18
Address: 0FFD6
H

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents