mc68hc908gr8vp Freescale Semiconductor, Inc, mc68hc908gr8vp Datasheet - Page 206

no-image

mc68hc908gr8vp

Manufacturer Part Number
mc68hc908gr8vp
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Serial Peripheral Interface (SPI)
20.3 Pin Name Conventions and I/O Register Addresses
The text that follows describes the SPI. The SPI I/O pin names are SS (slave select), SPSCK (SPI serial
clock), MOSI (master out slave in), and MISO (master in/slave out). The SPI shares four I/O pins with four
parallel I/O ports.
The full names of the SPI I/O pins are shown in
follows.
20.4 Functional Description
Figure 20-1
The SPI module allows full-duplex, synchronous, serial communication between the MCU and peripheral
devices, including other MCUs. Software can poll the SPI status flags or SPI operation can be
interrupt-driven.
If a port bit is configured for input, then an internal pullup device may be enabled for that port bit. See
16.5.3 Port D Input Pullup Enable
The following paragraphs describe the operation of the SPI module.
206
Addr.
$0010
$0011
$0012
Register Name
SPI Status and Control
summarizes the SPI I/O registers and
SPI Control Register
Register (SPSCR)
Pin Names:
SPI Data Register
Full SPI
SPI Generic
Pin Names:
(SPCR)
(SPDR)
SPI
Reset:
Reset:
Reset:
Read:
Read:
Read:
Write:
Write:
Write:
MC68HC908GR8 • MC68HC908GR4 Data Sheet, Rev. 7
Figure 20-1. SPI I/O Register Summary
PTD1/ATD9
Table 20-1. Pin Name Conventions
Register.
SPRIE
MISO
Bit 7
SPRF
R7
T7
0
0
= Unimplemented
ERRIE
PTD2/ATD10
R6
T6
6
R
0
0
Table
MOSI
Figure 20-2
SPMSTR
OVRF
20-1. The generic pin names appear in the text that
R5
T5
5
1
0
PTD0/ATD8
MODF
CPOL
Unaffected by reset
SS
shows the structure of the SPI module.
R4
T4
4
R
0
0
= Reserved
PTD3/ATD11
CPHA
SPTE
R3
T3
3
1
1
SPSCK
MODFEN
SPWOM
R2
T2
2
0
0
Freescale Semiconductor
CGND
V
SS
SPR1
SPE
R1
T1
1
0
0
SPTIE
Bit 0
SPR0
R0
T0
0
0

Related parts for mc68hc908gr8vp