Example Of Ei Os Activation In Single Mode - Fujitsu F2MC-16LX Hardware Manual

Mb90550a/b series, 16-bit
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

CHAPTER 15 A/D CONVERTER
15.3.1 Example of EI
In single mode, the EI
• Terminate after converting analog input (AN1 to AN3)
• Transfer conversion data to the addresses 200
• Activate with software
• Maximum interrupt level
2
■ Example of EI
OS Activation in Single Mode
Table 15.3-1 Example of EI
Items set
2
Setting of EI
OS
Setting of A/D
converter
Other processing
2
EI
OS termination
interrupt sequence
ICR3: Interrupt control register
BAPL: Low-order byte of the buffer address pointer
BAPM: Middle-order byte of the buffer address pointer
BAPH: High-order byte of the buffer address pointer
ISCS: EI
244
2
OS Activation in Single Mode
2
OS is activated in the following procedure:
2
OS Activation in Single Mode
Example of
programming
MOV ICR0, #08H
MOV BAPL, #00H
MOV BAPM, #02H
MOV BAPH, #00H
MOV ISCS, #18H
MOV IOAL, #3EH
MOV IOAH, #00H
MOV DCTL, #03H
MOV DCTH, #00H
MOV ADCS0, #0BH
MOV ADCS1, #A2H
-
MOV ADCS1, #80H
RETI
2
OS status register
to 206
H
H
Description of operation
Setting of maximum interrupt, activation of EI
interrupt, and setting of descriptor address.
Destination address of conversion data.
Transfers word data and increments destination address
after transmission. Transfer from I/O to memory.
Setting of result register of A/D converter.
Transfers data three times with EI
transfers is the same as the number of conversions.
Single mode, start channel AN1, end channel AN3.
Activation with software, start of A/D conversion
Recover from interrupt.
sequentially
2
OS at
2
OS. The number of data
-
-

Advertisement

Table of Contents
loading

Table of Contents