mc68hc908jw32 Freescale Semiconductor, Inc, mc68hc908jw32 Datasheet - Page 140

no-image

mc68hc908jw32

Manufacturer Part Number
mc68hc908jw32
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc68hc908jw32FAE
Manufacturer:
FREESCALE
Quantity:
20 000
Serial Peripheral Interface Module (SPI)
10.12.5 CGND (Clock Ground)
CGND is the ground return for the serial clock pin, SPSCK, and the ground for the port output buffers. It
is internally connected to V
10.13 I/O Registers
Three registers control and monitor SPI operation:
10.13.1 SPI Control Register
The SPI control register:
SPRIE — SPI Receiver Interrupt Enable Bit
SPMSTR — SPI Master Bit
CPOL — Clock Polarity Bit
CPHA — Clock Phase Bit
140
This read/write bit enables CPU interrupt requests generated by the SPRF bit. The SPRF bit is set
when a byte transfers from the shift register to the receive data register. Reset clears the SPRIE bit.
This read/write bit selects master mode operation or slave mode operation. Reset sets the SPMSTR bit.
This read/write bit determines the logic state of the SPSCK pin between transmissions. (See
Figure 10-4
identical CPOL values. Reset clears the CPOL bit.
This read/write bit controls the timing relationship between the serial clock and SPI data. (See
Figure 10-4
identical CPHA values. When CPHA = 0, the SS pin of the slave SPI module must be set to logic 1
between bytes. (See
1 = SPRF CPU interrupt requests enabled
0 = SPRF CPU interrupt requests disabled
1 = Master mode
0 = Slave mode
SPI control register (SPCR)
SPI status and control register (SPSCR)
SPI data register (SPDR)
Enables SPI module interrupt requests
Configures the SPI module as master or slave
Selects serial clock polarity and phase
Configures the SPSCK, MOSI, and MISO pins as open-drain outputs
Enables the SPI module
Address:
and
and
Reset:
Read:
Write:
Figure
Figure
$004C
SPRIE
Bit 7
Figure
R
0
10-6.) To transmit data between SPI modules, the SPI modules must have
10-6.) To transmit data between SPI modules, the SPI modules must have
SS
Figure 10-13. SPI Control Register (SPCR)
as shown in
= Reserved
10-12.) Reset sets the CPHA bit.
R
6
0
MC68HC908JW32 Data Sheet, Rev. 5
SPMSTR
5
1
Table
10-1.
CPOL
4
0
CPHA
3
1
SPWOM
2
0
SPE
1
0
Freescale Semiconductor
SPTIE
Bit 0
0

Related parts for mc68hc908jw32