EasyManua.ls Logo

Panasonic MN103S

Panasonic MN103S
552 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 5
Interrupt Controller
Interrupt Controller Operation V - 39
5.3.4 Cautions for Programming
External Interrupt Request Signal
Maintain the external pin of the interrupt request signal for a minimum of 3 cycles of a system clock (MCLK).
The level detection can not be achieved if the signal is not maintained for at least that long.
When the GnICR register is changed
Clear the IE flag of the PSW to “0” to change the GnICR.
Processing in Interrupt program
When the GnIR and GnID flags of the GnICR register are cleared and restored from the interrupt program, write
the instruction for the I/O bus access between the clear processing instruction (movhu etc., ) of the GnICR register
and the restore instruction to synchronize with the store buffer of the bus controller.
When there is no instruction for the I/O bus access, the restore operation from the interrupt is not guaranteed.
When the restore instruction is written right after the clear processing instruction of the GnICR register, a mal-
function that the interrupt program is executed occurs.
(6) Enable all maskable interrupts.
PSW
bp11: IE = 1
(6) Set the IE flag of PSW to “1” to enable maskable
interrupts.
mov 0x0f:b,d0 d0=clear data
movbu d0,(GnICR) GnIR and GnID flags of the GnICR register
movhu (GnICR),d1 I/O bus access
rti Restore instruction
mov 0x0f:b,d0 d0=clear data
movbu d0,(GnICR) Clear the GnIR and GnID flag of the GnICR register
rti Restore instruction
Setup Procedure Description

Table of Contents

Other manuals for Panasonic MN103S

Related product manuals