Fig. 2.4.6 Slave Serial I/O Example - Renesas 4513 User Manual

4500 series 4-bit single-chip microcomputer
Table of Contents

Advertisement

Disable Interrupts
Serial I/O interrupt is temporarily disabled.
Set Serial I/O
Clear Interrupt Request
Serial I/O interrupt activated condition is cleared.
Note when the interrupt request is cleared
When
SIOF flag, insert the NOP instruction after the SNZSI instruction.
When interrupt is
not used
Set Interrupt
Interrupts except serial I/O is enabled
(EI instruction)
Check Serial I/O Interrupt Request
SIOF flag is checked (SNZSI instruction).
" ": it can be "0" or "1."

Fig. 2.4.6 Slave serial I/O example

Interrupt enable flag INTE
Interrupt control register V2
Serial I/O mode register J1
Serial I/O transmit/receive
completion flag SIOF
is executed, considering the skip of the next instruction according to the
Set When Transmit/Receive Operation Start Enabled
Serial transfer start state (SST instruction)
System enters to control signal transmission enabled state ("L" level)
However, S
pin initial level = "H" level
CK
Start Serial I/O Operation
Serial transfer starts by clock of master side
Receive Data Processing
System enters to control signal transmission disabled state ("H" level)
Data processing received by serial transfer is executed.
Register SI
register A, register B (TABSI instruction)
When serial communication is executed,
4513/4514 Group User's Manual
"0"
All interrupts disabled (DI instruction)
b3
b0
Serial I/O interrupt occurrence disabled
0
(TV2A instruction)
b3
b0
Exernal clock selected (TJ1A instruction)
1
0
Serial I/O port selected
"0"
Serial I/O interrupt activated condition cleared
g0 h
(SNZSI instruction)
Set Interrupt
Serial I/O interrupt temporarily disabled is enabled.
Interrupt control register V2
Interrupt enable flag INTE
Serial I/O Interrupt Occur
to
are repeated.
APPLICATION
2.4 Serial I/O
When interrupt is used
b3
b0
Serial I/O interrupt occurrence
1
enabled (TV2A instruction)
All interrupts enabled
"1"
(EI instruction)
2-47

Advertisement

Table of Contents
loading

This manual is also suitable for:

4514

Table of Contents