MC9S08JM16CGTE FREESCALE [Freescale Semiconductor, Inc], MC9S08JM16CGTE Datasheet - Page 241

no-image

MC9S08JM16CGTE

Manufacturer Part Number
MC9S08JM16CGTE
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Freescale Semiconductor
Write:
Write:
Write:
Write:
Write:
Write:
After SPI master initiates transfer by checking that SPTEF = 1 and then writing data to SPIDH/L:
Data transmissions can be 8- or 16-bits long, and mode fault detection can be enabled for master mode in cases where
more than one SPI device might become a master at the same time. Also, some applications may utilize the receive data
buffer hardware match feature to trigger specific actions, such as when command data can be sent through the SPI or to
indicate the end of an SPI transmission.
Write:
Wait for SPRF, then read from SPIDH/L
Wait for SPTEF, then write to SPIDH/L
SPIxMH
SPIxDH
SPIxBR
SPIxML
SPIxC1
SPIxC2
SPIxDL
SPIxS
SPIxC1
SPIxC2
SPIxMH:SPIxML
SPIxC1
SPIxC2
SPIxBR
SPIxMH:SPIxML
Hardware Match Value
Module/interrupt enables and configuration
Additional configuration options.
Baud rate = (BUSCLK/SPPR[2:0])/SPR2[2:0]
SPRF
SPIE
SPMIE
Bit 15
Bit 15
Bit 7
Bit 7
SPIMODE
SPPR2
SPE
SPMF
Bit 14
Bit 14
Bit 6
Bit 6
Figure 15-2. SPI Module Quick Start
MC9S08JM16 Series Data Sheet, Rev. 2
to configure
to configure
to set
to configure
to set
to configure
to set
Module Initialization
Module Initialization (Slave):
SPTIE
SPTEF
SPPR1
Bit 13
Bit 13
Bit 5
Bit 5
Module Use:
MODFEN
MODF
MSTR
SPPR0
Bit 12
Bit 12
Bit 4
Bit 4
interrupts, set primary SPI options, slave mode select, and
system enable.
optional SPI features, hardware match interrupt enable,
and 8- or 16-bit data transmission length
hardware compare value that triggers SPMF (optional)
when value in receive data buffer equals this value.
interrupts, set primary SPI options, master mode select,
and system enable.
optional SPI features, hardware match interrupt enable,
and 8- or 16-bit data transmission length
baud rate
hardware compare value that triggers SPMF (optional)
when value in receive data buffer equals this value.
BIDIROE
CPOL
(Master):
Bit 11
Bit 11
Bit 3
Bit 3
CPHA
SPR2
Bit 10
Bit 10
Bit 2
Bit 2
Serial Peripheral Interface (S08SPI16V1)
SPISWAI
SSOE
SPR1
Bit 9
Bit 1
Bit 9
Bit 1
SPC0
SPR0
LSBFE
Bit 0
Bit 8
Bit 8
Bit 0
241

Related parts for MC9S08JM16CGTE