SC32442B RISC MICROPROCESSOR
SPI
22-7
SPI STATUS REGISTER
Register Address R/W
Description
Reset
Value
SPSTA0
0x59000004
R
SPI channel 0 status register
0x01
SPSTA1
0x59000024
R
SPI channel 1 status register
0x01
SPSTAn Bit
Description
Initial
State
Reserved [7:3]
Data Collision
Error Flag (DCOL)
[2]
This flag is set if the SPTDATn is written or SPRDATn is read
while a transfer is in progress and cleared by reading the SPSTAn.
0 = not detect
1 = collision error detect
0
Multi Master Error
Flag (MULF)
[1]
This flag is set if the nSS signal goes to active low while the SPI is
configured as a master, and SPPINn's ENMUL bit is multi master
error detect mode. MULF is cleared by reading SPSTAn.
0 = not detect
1 = multi master error detect
0
Transfer Ready
Flag (REDY)
[0]
This bit indicates that SPTDATn or SPRDATn is ready to transmit
or receive. This flag is automatically cleared by writing data to
SPTDATn.
0 = not ready
1 = data Tx/Rx ready
1
SPI PIN CONTROL REGISTER
When the SPI system is enabled, the direction of pins except nSS pin is controlled by MSTR bit of SPCONn
register. The direction of nSS pin is always input.
When the SPI is a master, nSS pin is used to check multi-master error, provided that the SPPIN's ENMUL bit is
active, and another GPIO should be used to select a slave.
If the SPI is configured as a slave, the nSS pin is used to select SPI as a slave by one master.
Register Address R/W
Description
Reset
Value
SPPIN0
0x59000008
R/W
SPI channel 0 pin control register
0x00
SPPIN1
0x59000028
R/W
SPI channel 1 pin control register
0x00
SPPINn Bit
Description
Initial
State
Reserved [7:3]
Multi Master error
detect Enable
(ENMUL)
[2]
The nSS pin is used as an input to detect multi master error when
the SPI system is a master.
0 = disable (general purpose) 1 = multi master error detect enable
0
SPICSn
[1]
Set “0” to activate CSn, Set “1” to deactivate CSn
0
Master Out Keep
(KEEP)
[0]
Determine MOSI drive or release when 1byte transmit is completed
(master only).
0 = release
1 = drive the previous level
0
The SPIMISO (MISO) and SPIMOSI (MOSI) data pins are used for transmitting and receiving serial data. When
Содержание SC32442B54
Страница 1: ...SC32442B54 USER S MANUAL Revision 1 0 ...
Страница 43: ...PRODUCT OVERVIEW SC32442B RISC MICROPROCESSOR 1 42 NOTES ...
Страница 59: ...PROGRAMMER S MODEL SC32442B RISC MICROPROCESSOR 2 16 NOTES ...
Страница 123: ...ARM INSTRUCTION SET SC32442B RISC MICROPROCESSOR 3 64 NOTES ...
Страница 167: ...THUMB INSTRUCTION SET SC32442B RISC MICROPROCESSOR 4 44 NOTES ...
Страница 187: ...MEMORY CONTROLLER SC32442B RISC MICROPROCESSOR 5 20 NOTES ...
Страница 250: ...DMA SC32442B RISC MICROPROCESSOR 8 14 NOTES ...
Страница 308: ...PWM TIMER SC32442B RISC MICROPROCESSOR 10 20 NOTES ...
Страница 330: ...UART SC32442B RISC MICROPROCESSOR 11 22 NOTES ...
Страница 417: ...SC32442B RISC MICROPROCESSOR LCD CONTROLLER 15 45 NOTES ...
Страница 427: ...ADC AND TOUCH SCREEN INTERFACE SC32442B RISC MICROPROCESSOR 16 10 NOTES ...
Страница 511: ...BUS PRIORITIES SC32442B RISC MICROPROCESSOR 24 2 NOTES ...
Страница 562: ...K5D2G13ACM D075 Revision 1 0 December 2006 7 MCP MEMORY 2Gb 256Mb x8 NAND Flash Memory A Die ...
Страница 599: ...K5D2G13ACM D075 Revision 1 0 December 2006 44 MCP MEMORY 512Mb 16Mb x32 Mobile SDRAM C Die ...