Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN3254 Datasheet(PDF) 7 Page - STMicroelectronics

Part # AN3254
Description  SPI protocol for the STPMC1 metering device
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3254 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button AN3254 Datasheet HTML 3Page - STMicroelectronics AN3254 Datasheet HTML 4Page - STMicroelectronics AN3254 Datasheet HTML 5Page - STMicroelectronics AN3254 Datasheet HTML 6Page - STMicroelectronics AN3254 Datasheet HTML 7Page - STMicroelectronics AN3254 Datasheet HTML 8Page - STMicroelectronics AN3254 Datasheet HTML 9Page - STMicroelectronics AN3254 Datasheet HTML 10Page - STMicroelectronics AN3254 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 24 page
background image
AN3254
SPI operations
Doc ID 17783 Rev 1
7/24
For example, to set the STPMC1 configuration bit 47 (part of the R-phase current channel
calibrator) to 1, the decimal 47 must be converted to its 7-bit binary value: 0101111. The
byte command is then composed as:
1 bit DATA value+7 bits address = 10101111 (0xAF)
The same procedure should be applied for the mode signals, which also have their specific
address.
The LSB of the command is also called EXE bit because, instead of a data bit value, the
corresponding serial clock pulse is used to generate the necessary latching signal. In this
way, the writing mechanism does not need the measurement clock in order to operate,
which makes the operation of the SPI module of the STPMC1 completely independent from
the rest of the device logic, except from the signal POR.
The writing procedure timing is shown in Figure 3.
t1 →t2 (> 30 ns): SPI out of idle state
t2 →t3 (> 30 ns): SPI enabled for write operation
t3: data value is placed in SDA
t4: SDA value is stable and shifted into the device
t3 →t5 (> 10 µs): writing clock period
t3 →t5: 1-bit data value
t5 →t6: 6-bit address of the destination latch
t6 →t7: 1-bit EXE command
t8: end of SPI writing
t9: SPI enters idle state
Figure 3.
Timing for writing configuration bits and mode signals
t
2
t
1
t
4
t
3
t
6
t
5
t
8
t
7
t
9
SDA
SCL
SYN
SCS



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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