| 전자부품 데이터시트 검색엔진 |
|
PM0222 데이터시트(PDF) 31 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0222 데이터시트(HTML) 31 Page - STMicroelectronics |
|
31 / 33 page ![]() 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. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |