データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

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
Logo 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


リンク URL



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