| 전자부품 데이터시트 검색엔진 |
|
PM0222 데이터시트(PDF) 29 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0222 데이터시트(HTML) 29 Page - STMicroelectronics |
|
29 / 33 page ![]() DocID025476 Rev 1 29/33 PM0222 SPI 33 11 SPI All SPI registers are described in a structure defined in the Brain header file (.h) provided by STMicroelectronics. Brain has one SPI available at the following address in the memory map: SPI APB base address: 0xA300_0000 11.1 FIFO management The transmit and receive paths are buffered with internal FIFO memory enabling up to 16 bytes to be stored independently in both transmit and receive modes.. FIFO status can be checked using the SSPSR register. It contains status about full/empty FIFO conditions. There are also two interrupts which can be set when the transmit FIFO is half empty and when the receive FIFO is half full. This set of information is useful to manage large data transfers. 11.2 Clock rate calculation example There are two fields that define the SPI baud rate: the SCR field in the SSPCR0 register and the CPSDVR field in the SSPCPSR register. We can calculate the clock rate using this formula: Clock rate = FSSPCLK / (CPSDVR x ( SCR + 1 ) ) where: FSSPCLK is the SPI reference clock frequency, clocked on the processor clock (see Brain reference manual, Clock and reset management unit chapter) CPSDVR is an even value from 2-254 programmed in the SSPCPSR register SCR is a value from 0-255 programmed in the SSPCR0 register Example: programming a clock rate If the FSSPCLK = 16 MHz and the CPSDVR = 2 then: the clock rate has a frequency range from 8 MHz (SCR = 0) to 31.25 kHz (SCR = 255). Note: In master mode the processor clock frequency must be at least two times bigger than the SPI clock rate. Note: In slave mode the clock rate must be twelve times smaller than the processor clock frequency to guarantee the data transfer. |
|
링크 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 |