数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN2159 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN2159
功能描述  SPI protocol for STPM01/STPM10 metering devices
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2159 数据表(HTML) 9 Page - STMicroelectronics

Back Button 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 AN2159 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 23 page
background image
AN2159
SPI operations
Doc ID 11400 Rev 3
9/23
1.
disable the SPI peripheral;
2.
set MISO, SCLK and SS to be output;
3.
set the pin which is connected to SYN to be output high;
4.
activate SCS first and then SYN;
5.
activate SCL;
6.
apply a bit value to SDA and deactivate SCL;
7.
repeat the last two steps seven times to complete one byte transfer;
8.
repeat the last three steps for any remaining byte transfer;
9.
deactivate SYN and the SCS;
10. enable again the SPI module;
Note:
For STPM01 only: To temporary set any bit, it is necessary to set the RD system signal
before any other bit. This bit determines the device functioning from OTP shadow latches
and not from OTP memory. The procedure to set this signal is that shown above. For
permanent writing of any bit see next paragraph.
In case of Precharge command (0xFF), emulation above is not necessary, it can be send
before any reading command. In fact, due to the pull up device on the SDA pin the processor
needs to perform the following steps:
1.
activate SYN first in order to latch the results;
2.
after at least 1 µs activate SCS;
3.
write one byte to the transmitter of SPI (this will produce 8 pulses on SCL with SDA=1);
4.
deactivate SYN;
5.
read the data records as shown in paragraph 4.4 (the sequence of reading will be
altered);
6.
deactivate 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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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