TA600032-EN0/0
- 42 -
5.2.2.3.7
Port change interrupt setting writing
"Write-in data" can be output to a "Port change interrupt setting memory" by specifying the "Memory address".
MOSI
Control
Command
(0110 ss00)
Memory
Address
Write-in
Data
(7:0)
The "ss" bit is the "Slave number" (SN) bit of the "Control command".
The "Memory address" is from "0" to "31".
When the "Write-in data" is 2 bytes or more, the "Write-in data" is output while incrementing the "Memory address".
When the "Memory address" is incremented from "31", it becomes "0".
The "Write-in data" can be output in 1-byte units.
For example, when outputting "Write-in data" that from "Device number 0" (DN0) to "Device number 7" (DN7), output the
following data:
MOSI
0110 0000
0000 0000
DN1, DN0
DN3, DN2
DN5, DN4
DN7, DN6
This is the data when the "ss" bit is "00".
For details on "Port change interrupt setting memory", see "5.2.7 Port change interrupt setting memory".
Writing to the "Port change interrupt setting memory" is executed each time "G9006" receives 1-byte data.
When the "write-in data" exceeds 32 bytes, the first data is overwritten.
5.2.2.3.8
Port change interrupt setting reading
"Read-out data" can be input from a "Port change interrupt setting memory" by specifying the "Memory address".
MOSI
Control
Command
(0111 ss00)
Memory
Address
Dummy
Data
(0000 0000)
MISO
Hi-Z
Hi-Z
Read-out
Data
(7:0)
The "ss" bit is the "Slave number" (SN) bit of the "Control command".
The "Memory address" is from "0" to "31".
When the "Read-out data" is 2 bytes or more, the "Read-out data" is input while incrementing the "Memory address".
When the "Memory address" is incremented from "31", it becomes "0".
The "Read-out data" can be input unlimitedly in 1-byte units.
For example, when inputting "Read-out data" that from "Device number 0" (DN0) to "Device number 7" (DN7), output the
following data:
MOSI
0111 0000
0000 0000
0000 0000
0000 0000
0000 0000
0000 0000
MISO
Hi-Z
Hi-Z
DN1, DN0
DN3, DN2
DN5, DN4
DN7, DN6
This is the data when the "ss" bit is "00".
For details on "Port change interrupt setting memory", see "5.2.7 Port change interrupt setting memory".