Example Of Ei Os Activation In Successive Mode; Example Of Ei 2 Os Activation In Successive 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.2 Example of EI
In successive mode, the EI
• Obtain two pieces of conversion data for each channel by converting analog inputs
(AN3 to AN5).
• Transfer conversion data to the addresses 600H to 60CH sequentially
• Activate with external edge input
• Maximum interrupt level
■ Example of EI
2
OS Activation in Successive Mode
Table 15.3-2 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
246
2
OS Activation in Successive Mode
2
OS is activated in the following manner:
2
OS Activation in Successive Mode
Example of
programming
Setting of maximum interrupt, activation of EI
MOV ICR0, #08H
interrupt, and setting of descriptor address.
MOV BAPL, #00H
MOV BAPM, #06H
Destination address of conversion data.
MOV BAPH, #00H
Transfers word data and increments destination address
MOV ISCS, #18H
after transmission. Transfer from I/O to memory.
Terminates by a request from a resource.
MOV IOAL, #3EH
Destination address
MOV IOAH, #00H
MOV DCTL, #06H
Transfers data six times with EI
channels × 2.
MOV DCTH, #00H
MOV ADCS0, #9DH
Single mode, start channel AN3, end channel AN5.
MOV ADCS1, #A4H
Activation with external edge, start of A/D converter.
-
MOV ADCS1, #80H
Recover from interrupt.
RETI
Description of operation
2
OS. Transfers data of 3
-
2
OS at

Advertisement

Table of Contents
loading

Table of Contents