| 전자부품 데이터시트 검색엔진 |
|
ST95HF 데이터시트(PDF) 15 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST95HF 데이터시트(HTML) 15 Page - STMicroelectronics |
|
15 / 93 page ![]() DocID025630 Rev 4 15/93 ST95HF Communication protocols 92 4 Communication protocols 4.1 Serial peripheral interface (SPI) 4.1.1 Polling mode In order to send commands and receive replies, the application software has to perform 3 steps. 1. Send the command to the ST95HF. 2. Poll the ST95HF until it is ready to transmit the response. 3. Read the response. The application software should never read data from the ST95HF without being sure that the ST95HF is ready to send the response. The maximum allowed SPI communication speed is fSCK. A Control byte is used to specify a communication type and direction: • 0x00: Send command to the ST95HF • 0x03: Poll the ST95HF • 0x02: Read data from the ST95HF • 0x01: Reset the ST95HF The SPI_SS line is used to select a device on the common SPI bus. The SPI_SS pin is active low. When the SPI_SS line is inactive, all data sent by the Master device is ignored and the MISO line remains in High Impedance state. In Slave mode, the phase and polarization are defined with CPOL = 1 and CPHA = 1 or CPOL = 0 and CPHA = 0. Figure 6. Sending command to ST95HF Figure 7. Polling the ST95HF until it is ready MOSI 0 0 0 0 0 0 0 0 CMD LEN DATA DATA Control Byte MISO X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Several data bytes MOSI 0 0 0 0 0 0 1 1 X X X X X X 1 1 X X X X X X 1 1 X X X X X X 1 1 Control Byte MISO X X X X X X X X Flag Flag Flags are polled until data is ready (Bit 3 is set when data is ready) 0 0 0 0 0 X X X 0 0 0 0 0 X X X 0 0 0 0 1 X X X |
|
링크 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 |