SPI
SC32442B RISC MICROPROCESSOR
22-8
SPI is configured as a master, SPIMISO (MISO) is the master data input line, SPIMOSI (MOSI) is the master data
output line, and SPICLK (SCK) is the clock output line. When SPI becomes a slave, these pins perform reverse
roles. In a multiple-master system, SPICLK (SCK) pins, SPIMOSI (MOSI) pins, and SPIMISO (MISO) pins are tied
to configure a group respectively. A master SPI can experience a multi master error, when other SPI device
working as a master selects the SC32442B SPI as a slave. When this error is detected, the following actions are
taken immediately. But you must previously set SPPINn’s ENMUL bit if you want to detect this error.
1. The SPCONn's MSTR bit is forced to 0 to operate in slave mode.
2. The SPSTAn's MULF flag is set, and an SPI interrupt is generated.
SPI BAUD RATE PRESCALER REGISTER
Register Address R/W
Description
Reset
Value
SPPRE0
0x5900000C
R/W
SPI cannel 0 baud rate prescaler register
0x00
SPPRE1
0x5900002C
R/W
SPI cannel 1 baud rate prescaler register
0x00
SPPREn Bit
Description
Initial
State
Prescaler Value
[7:0]
Determine SPI clock rate.
Baud rate = PCLK / 2 / (Prescaler value + 1)
0x00
NOTE
: Baud rate should be less than 25 MHz.
SPI TX DATA REGISTER
Register Address R/W
Description
Reset
Value
SPTDAT0 0x59000010 R/W
SPI
channel
0 Tx data register
0x00
SPTDAT1 0x59000030 R/W
SPI
channel
1 Tx data register
0x00
SPTDATn Bit
Description
Initial
State
Tx Data Register
[7:0]
This field contains the data to be transmitted over the SPI channel.
0x00
SPI RX DATA REGISTER
Register Address R/W
Description
Reset
Value
SPRDAT0 0x59000014 R
SPI
channel
0 Rx data register
0xFF
SPRDAT1 0x59000034 R
SPI
channel
1 Rx data register
0xFF
SPRDATn Bit
Description
Initial
State
Rx Data Register
[7:0]
This field contains the data to be received over the SPI channel.
0xFF
Summary of Contents for SC32442B54
Page 1: ...SC32442B54 USER S MANUAL Revision 1 0 ...
Page 43: ...PRODUCT OVERVIEW SC32442B RISC MICROPROCESSOR 1 42 NOTES ...
Page 59: ...PROGRAMMER S MODEL SC32442B RISC MICROPROCESSOR 2 16 NOTES ...
Page 123: ...ARM INSTRUCTION SET SC32442B RISC MICROPROCESSOR 3 64 NOTES ...
Page 167: ...THUMB INSTRUCTION SET SC32442B RISC MICROPROCESSOR 4 44 NOTES ...
Page 187: ...MEMORY CONTROLLER SC32442B RISC MICROPROCESSOR 5 20 NOTES ...
Page 250: ...DMA SC32442B RISC MICROPROCESSOR 8 14 NOTES ...
Page 308: ...PWM TIMER SC32442B RISC MICROPROCESSOR 10 20 NOTES ...
Page 330: ...UART SC32442B RISC MICROPROCESSOR 11 22 NOTES ...
Page 417: ...SC32442B RISC MICROPROCESSOR LCD CONTROLLER 15 45 NOTES ...
Page 427: ...ADC AND TOUCH SCREEN INTERFACE SC32442B RISC MICROPROCESSOR 16 10 NOTES ...
Page 511: ...BUS PRIORITIES SC32442B RISC MICROPROCESSOR 24 2 NOTES ...
Page 562: ...K5D2G13ACM D075 Revision 1 0 December 2006 7 MCP MEMORY 2Gb 256Mb x8 NAND Flash Memory A Die ...
Page 599: ...K5D2G13ACM D075 Revision 1 0 December 2006 44 MCP MEMORY 512Mb 16Mb x32 Mobile SDRAM C Die ...