Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

PM0222 Datenblatt(PDF) 29 Page - STMicroelectronics

Teilenummer PM0222
Bauteilbeschribung  Brain smart hub family
PDF  33 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0222 Datenblatt(HTML) 29 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
 29 / 33 page
background image
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.



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


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
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