Samsung YP-P10 User Manual Page 507

  • Download
  • Add to my manuals
  • Print
  • Page
    / 596
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 506
SPI S3C2440A RISC MICROPROCESSOR
22-8
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
Reserved [1] Reserved 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 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 S3C2440A 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.
Page view 506
1 2 ... 502 503 504 505 506 507 508 509 510 511 512 ... 595 596

Comments to this Manuals

No comments