Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2159 Datasheet(PDF) 8 Page - STMicroelectronics

Part # AN2159
Description  SPI protocol for STPM01/STPM10 metering devices
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2159 Datasheet(HTML) 8 Page - STMicroelectronics

Back Button AN2159 Datasheet HTML 4Page - STMicroelectronics AN2159 Datasheet HTML 5Page - STMicroelectronics AN2159 Datasheet HTML 6Page - STMicroelectronics AN2159 Datasheet HTML 7Page - STMicroelectronics AN2159 Datasheet HTML 8Page - STMicroelectronics AN2159 Datasheet HTML 9Page - STMicroelectronics AN2159 Datasheet HTML 10Page - STMicroelectronics AN2159 Datasheet HTML 11Page - STMicroelectronics AN2159 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 23 page
background image
SPI operations
AN2159
8/23
Doc ID 11400 Rev 3
The command byte will be then composed like this: 1 bit DATA value + 6-bits address +1 bit
(0 or 1). In this case the binary command will be 01011111 (0x5F) or 01011110 (0x5E).
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 bits address of the destination latch
t6 → t7: 1 bit EXE command
t8: end of SPI writing
t9: SPI enters idle state
Commands for changing configuration bits and system signals should be sent during active
signals SCS and SYN as it is shown in Figure 3.
The SYN must be put low in order to disable SDA output driver of the device and make the
SDA as an input pin. A string of commands can be send within one period of active signals
SCS and SYN or command can be followed by reading the data record but, in this case, the
SYN should be deactivated in order to enable SDA output driver and a SYN pulse should be
applied before activation of SCS in order to latch the data.
Given the connection between STPMxx and a microcontroller as shown in the previous
paragraph, it is possible to implement the writing procedure in the firmware through the
following steps:
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


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