English
Language : 

MC68HC05C9A Datasheet, PDF (71/124 Pages) Freescale Semiconductor, Inc – Microcontrollers
SPI Registers
10.5.3 Serial Peripheral Data I/O Register
The serial peripheral data I/O register (SPDR), shown in Figure 10-6, is used to transmit and receive data
on the serial bus. Only a write to this register will initiate transmission/reception of another byte and this
will only occur in the master device. At the completion of transmitting a byte of data, the SPIF status bit is
set in both the master and slave devices.
When the user reads the serial peripheral data I/O register, a buffer is actually being read. The first SPIF
must be cleared by the time a second transfer of the data from the shift register to the read buffer is
initiated or an overrun condition will exist. In cases of overrun, the byte which causes the overrun is lost.
A write to the serial peripheral data I/O register is not buffered and places data directly into the shift
register for transmission.
Address:
Read:
Write:
Reset:
$000C
Bit 7
SPD7
6
5
4
3
2
SPD6
SPD5
SPD4
SPD3
SPD2
Unaffected by reset
Figure 10-6. SPI Data Register (SPDR)
1
SPD1
Bit 0
SPD0
MC68HC05C9A Advance Information Data Sheet, Rev. 5.1
Freescale Semiconductor
71