BAT32G1x9 user manual | Chapter 21 Serial interface SPI
823 / 1149
Rev.1.02
21.3.5
Transmit buffer register (SDROn).
The register is set to send data.
When setting bits 7 (SPIE n) and bit 6 (TRMDn) of the serial operating mode register (SPIMn) to 1 When
sending/receiving starts by writing data to SDROn.
Serial I/O shift registers convert data in SDROn from parallel to serial data and output to the serial output
pin.
SDROn can be written to or read with 8-bit or 16-bit storage operation instructions.
A reset signal is generated to clear the register to 0000H.
Figure 21-5 Format of the transmit buffer register (SDROn).
Address: SPI0:0x40046C08 SPI1:0x40047008 After Reset:
0000H R/W
symbol
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ROSS n
ROSS n
21.3.6
Receive buffer register (SDRIn).
This register stores the received data.
If bit 6 (TRMDn) of the serial operating mode register (SPIMn) is set to 0, the reception begins by reading
data from the SDRI.
During reception, data is read from the serial input pin into SDRIn.
SDRI n can be read with 8-bit or 16-bit memory manipulation instructions.
A reset signal is generated to clear the register to 0000H.
Figure 21-6 Format of the receive buffer register (SDRIn).
Address: SPI0: 0x40046C0C SPI1: 0x4004700C After reset:
0000H R
symbol
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
SDRIn
SDRIn
Note: n=0,1