Fujitsu F2MC-16LX Hardware Manual page 113

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

I Processing Specifications of Sample Program for Extended Intelligent I/O Service (EI
❍ Processing Specifications
This program detects the "H" level signal input to the INT0 pin and activates the extended
intelligent I/O service (EI
When the "H" level is input to the INT0 pin, El
0 to the memory at the "3000
The number of transfer data bytes is 100 bytes. After 100 bytes are transferred, an interrupt
is generated because EI
❍ Sample coding
DDR1
ENIR
EIRR
ELVR
ICR00
BAPL
BAPM
BAPH
ISCS
I/OAL
I/OAH
DCTL
DCTH
ER0
STACK
STACK_T RW
STACK
;-------------------Main program-------------------------------------------------
CODE
START:
2
OS).
" address.
H
2
OS transfer has terminated.
EQU
000011H
;Port 1-direction register
EQU
000030H
;DTP/interrupt permission register
EQU
000031H
;DTP/interrupt cause register
EQU
000032H
;Request level setting register
EQU
0000B0H
;Interrupt control register 00
EQU
000100H
;Lower buffer address pointer
EQU
000101H
;Middle buffer address pointer
EQU
000102H
;Upper buffer address pointer
EQU
000103H
;EI
EQU
000104H
;Lower I/O address pointer
EQU
000105H
;Upper I/O address pointer
EQU
000106H
;Low-order data counter
EQU
000107H
;High-order data counter
EQU
EIRR:0
;Definition of external interrupt request flag bit
SSEG
;Stack
RW
100
1
ENDS
CSEG
AND
CCR, #0BFH
MOV
RP, #00
MOV
A, #!STACK_T
MOV
SSB, A
MOVW
A, #STACK_T
MOVW
SP, A
MOV
I:DDR1, #00000000B ;Sets the P10/INT0 pin to input.
MOV
BAPL, #00H
MOV
BAPM, #30H
MOV
BAPH, #00H
MOV
ISCS, #00010001B
MOV
IOAL, #00H
MOV
IOAH, #00H
MOV
DCTL, #64H
MOV
DCTH, #00H
2
OS is activated. Data is transferred from port
2
OS status
;Clears the I flag of the CCR in the PS and
;prohibits interrupts.
;Sets the register bank pointer.
;Sets the system stack.
;Sets the stack pointer, then
;Sets SSP because the S flag = 1.
;Sets the buffer address (003000H).
;No I/O address update, byte transfer, buffer
;address updated, I/O -> buffer transfer,
;terminated by the peripheral function(resource).
;Sets the transfer source address
;(port 0:000000H).
;Sets the number of transfer bytes (100 bytes).
CHAPTER 3 INTERRUPT
2
OS)
97

Advertisement

Table of Contents
loading

Table of Contents