数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

PM0222 数据表(PDF) 31 Page - STMicroelectronics

部件名 PM0222
功能描述  Brain smart hub family
PDF  33 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

PM0222 数据表(HTML) 31 Page - STMicroelectronics

Back Button PM0222 Datasheet HTML 25Page - STMicroelectronics PM0222 Datasheet HTML 26Page - STMicroelectronics PM0222 Datasheet HTML 27Page - STMicroelectronics PM0222 Datasheet HTML 28Page - STMicroelectronics PM0222 Datasheet HTML 29Page - STMicroelectronics PM0222 Datasheet HTML 30Page - STMicroelectronics PM0222 Datasheet HTML 31Page - STMicroelectronics PM0222 Datasheet HTML 32Page - STMicroelectronics PM0222 Datasheet HTML 33Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 31 / 33 page
background image
DocID025476 Rev 1
31/33
PM0222
SPI
33
Simple FIFO protocol is:
to wait until the transmit FIFO is empty
then write to the transmit FIFO
wait until the receive FIFO is not empty to guarantee the reception of data and
read the receive FIFO
All FIFO status bits are available through the SSPSR register.
11.3.2
Slave SPI
This section will show an example of configuring the SPI IP in Motorola slave mode with bit
phase and polarity (only for Motorola protocol) to zero (see Brain reference manual, SPI
chapter for more details) and 16-bit data size.
// SCR to zero, Motorola protocol, bit phase to zero, polarity to zero and 16-bit data
// transfer.
SPI1->SSPCR0 = 0x0<<8 | 0x0<<7 | 0x0<<6 | 0x00<<4 | 0xF
// select the slave mode and enable the SPI
SPI1->SSPCR1 = 0x1<<2 | 0x1<<1
After this configuration the SPI is ready to work as a slave. To manage receive and transmit
information from the SPI slave, an interrupt routine can be used. TXIM and RXIM SPI
interrupts (see Brain reference manual, SPI chapter for more details) can be set respectively
when the transmit FIFO is half empty and when the receive FIFO is half full.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com