CHAPTER 22 INTERRUPT FUNCTIONS
413
User’s Manual U12697EJ3V0UM
(3) Example of use of type B
An example is shown below in which parallel data is input from port 3 in synchronization with an external signal.
The INTP4 external interrupt pin is used for synchronization with the external signal.
Figure 22-28. Parallel Data Input Synchronized with External Interrupts
64K memory space
Macro service control word,
macro service channel
(Internal RAM)
0FE6EH
Buffer area
Note
Lower 8 bits of port 3 address
– 1
+ 1
Internal bus
Port 3
P37
P36
P35
P34
P33
P32
P31
P30
INTP4
Edge
detection
Macro service request
INTP4
MSC
00H
20H
03H
Note
MP
00H
A0H
00H
SFRP
Type B, SFR
→
memory, 8-bit transfer,
interrupt request generation when
MSC = 0
Channel pointer 6EH
Mode register 18H
0A01FH
0A000H
Remark
Macro service channel addresses in the figure are the values when the LOCATION 0H instruction is
executed.
When the LOCATION 0FH instruction is executed, 0F0000H should be added to the values in the figure.