Spi Data Register - Motorola MC68HC908GP32 Technical Data Manual

Table of Contents

Advertisement

20.14.3 SPI Data Register

NOTE:
MC68HC908GP32
MC68HC08GP32
MOTOROLA
Freescale Semiconductor, Inc.
Table 20-4. SPI Master Baud Rate Selection
SPR1 and SPR0
00
01
10
11
Use this formula to calculate the SPI baud rate:
Baud rate
where:
CGMOUT = base clock output of the clock generator module (CGM)
BD = baud rate divisor
The SPI data register consists of the read-only receive data register and
the write-only transmit data register. Writing to the SPI data register
writes data into the transmit data register. Reading the SPI data register
reads data from the receive data register. The transmit data and receive
data registers are separate registers that can contain different values.
(See Figure
20-2.)
Address: $0012
Bit 7
6
Read:
R7
R6
Write:
T7
T6
Reset:
Figure 20-15. SPI Data Register (SPDR)
R7–R0/T7–T0 — Receive/Transmit Data Bits
Do not use read-modify-write instructions on the SPI data register since
the register read is not the same as the register written.
Rev. 6
Serial Peripheral Interface Module (SPI)
For More Information On This Product,
Go to: www.freescale.com
Serial Peripheral Interface Module (SPI)
Baud Rate Divisor (BD)
CGMOUT
=
------------------------- -
×
2
BD
5
4
3
R5
R4
R3
T5
T4
T3
Unaffected by reset
I/O Registers
2
8
32
128
2
1
Bit 0
R2
R1
R0
T2
T1
T0
Technical Data
333

Advertisement

Table of Contents
loading

Table of Contents