Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

AN2159 Datasheet(PDF) 10 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) 10 Page - STMicroelectronics

Back Button 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 AN2159 Datasheet HTML 13Page - STMicroelectronics AN2159 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 23 page
background image
SPI operations
AN2159
10/23
Doc ID 11400 Rev 3
4.3
Data registers permanent writing (STPM01 only)
In order to make a permanent set in OTP memory of some configuration bits, the following
procedure should be conducted:
1.
collect all addresses of bits to be permanently set into some list;
2.
clear all OTP shadow latches;
3.
set the system signal RD;
4.
connect a current source of at least +14 V, 1 mA to 3 mA to VOTP pin;
5.
wait until VOTP voltage is stable;
6.
write one of the bit from the list (since RD signal is set, the bit will be written in the
corresponding OTP shadow latch);
7.
set the system signal WE;
8.
wait for 300 µs;
9.
clear the system signal WE;
10. clear the OTP shadow latch which was set in step 6;
11. until all wanted bits are permanently set, repeat steps 5 to 11;
12. disconnect the current source;
13. wait until VOTP voltage is less than 3 V;
14. clear the system signal RD;
15. read all data records, in the last two of them there is read back of all configuration bits;
16. if verification of CFG bits fails and there is still chance to pass, repeat steps 1 to 16.
For steps of set or clear apply the timing shown in Figure 3 with proper data on SDA.
For step 15 apply the timing shown in Figure 4.
For permanent set of the TSTD bit, which locks the device, the procedure above must be
conducted in such a way that steps 6 to 13 are performed in series during single period of
active SCS because the idle state of SCS would make the signal TSTD immediately
effective.
This would abort the procedure, and it would possibly destroy the device.
In fact the clearing of system signal RD would connect all gates of 3 V NMOS sense
amplifiers of already permanently set bits to the VOTP source.
4.4
Reading data registers
There are two phases of reading, called latching and shifting.
●
Latching is used to sample results into transmission latches. This is done with the
active pulse on SYN when SCS is idle. The length of pulse on SYN must be longer than
2 periods of measurement clock, i.e. more than 500 ns.
●
Shifting starts when SCS become active. In the beginning of this phase another, but
much shorter pulse (30 ns) on SYN should be applied. An alternative way is to extend
the pulse on SYN into the second phase of reading. Latching and shifting finish at the
dotted line in the timing diagram shown in Figure 4.



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