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

X  

AN3254 数据表(PDF) 13 Page - STMicroelectronics

部件名 AN3254
功能描述  SPI protocol for the STPMC1 metering device
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN3254 数据表(HTML) 13 Page - STMicroelectronics

Back Button AN3254 Datasheet HTML 9Page - STMicroelectronics AN3254 Datasheet HTML 10Page - STMicroelectronics AN3254 Datasheet HTML 11Page - STMicroelectronics AN3254 Datasheet HTML 12Page - STMicroelectronics AN3254 Datasheet HTML 13Page - STMicroelectronics AN3254 Datasheet HTML 14Page - STMicroelectronics AN3254 Datasheet HTML 15Page - STMicroelectronics AN3254 Datasheet HTML 16Page - STMicroelectronics AN3254 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 24 page
background image
AN3254
Data processing
Doc ID 17783 Rev 1
13/24
4
Data processing
4.1
Reading process
As previously mentioned, to start an SPI communication with the STPMC1 to read new
values of registers, it is necessary to apply a latching phase first. Then a shifting phase
starts, as described in Figure 4.
After that, 32 pulses of serial clocks need to be applied to pin SCL in order to read the DAP
register. If an additional 32 pulses are applied to pin SCL, the DRP register is read.
Reading can be continued by applying 32 clocks per register until all registers of interest are
read or a precharge command is applied first (8 pulses to pin SCLNLC while SYN=0 and
SDA=1) which moves ahead the internal group pointer to group 1 (register DMR) which
effectively skips DFP and PRD registers, and then reading may be continued.
The internal group pointer is incremented by 1 after each precharge command sent. If, for
example, in the previous case two precharge commands are sent, the pointer will be set to
group 2 (register DER).
It is up to an application to decide how many records should be read out from the device.
After all the registers are read, SCS can be returned to idle state which ends the shifting
phase.
The shifting phase can be repeated and it should read the same values. This repetition is
used to improve the reliability of successful reading in a strong EMI environment.
Every register is packed into 4 bytes where the most significant nibble (4 bits) is reserved for
parity code and the rest of the 28 bits are used for data. This means that every register is
protected by its own parity bit.
As shown in Figure 7, the first read out byte of the data record is the least significant byte
(LSB) of the data value and the fourth is the most significant byte (MSB) of the data value,
then it is necessary to re-order the four bytes after reading.
Figure 7.
STPMC1 data register assembling
7
0
7
0
7
0
7
0
7
0
7
0
15
8
15
8
23
16
23
16
00
24
24
8 bit SPI reading order
32 bits register assembling
1st byte - LSB
msb
lsb
4th byte - MSB
7
0
7
0
7
0
7
0
parity nibble
msb
lsb
parity nibble
28 bit data



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


数据表 下载

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