Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN3254 Datasheet(PDF) 4 Page - STMicroelectronics

Part # AN3254
Description  SPI protocol for the STPMC1 metering device
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3254 Datasheet(HTML) 4 Page - STMicroelectronics

  AN3254 Datasheet HTML 1Page - STMicroelectronics AN3254 Datasheet HTML 2Page - STMicroelectronics AN3254 Datasheet HTML 3Page - STMicroelectronics AN3254 Datasheet HTML 4Page - STMicroelectronics AN3254 Datasheet HTML 5Page - STMicroelectronics AN3254 Datasheet HTML 6Page - STMicroelectronics AN3254 Datasheet HTML 7Page - STMicroelectronics AN3254 Datasheet HTML 8Page - STMicroelectronics AN3254 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 4 / 24 page
background image
SPI module description
AN3254
4/24
Doc ID 17783 Rev 1
1.1
Connection to microcontroller
The SPI master should be implemented by a host system, a PC, or a microcontroller.
The microcontroller’s SPI bus is usually a 4-wire bus with full duplex functionality, whose
signals are usually named as:
●
SCLK: serial clock (output from master)
●
MOSI: master output, slave input (output from master)
●
MISO: master input, slave output (output from slave)
●
SS: slave select (active low, output from master)
The best way to connect this standard SPI port to the STPMC1 SPI is to have SCS and SYN
driven from some general purpose I/O port and SCL and SDA driven from SPI pins.
The suggested connection between the microcontroller and the STPMC1 is the following:
●
MISO connected to SDA
●
MOSI not connected
●
SCLK connected to SCL
●
SS connected to SCS
●
a general purpose I/O pin connected to SYN.
In this way, the SPI peripheral unit of the microprocessor should operate as 2-wire (simplex
synchronous transfers) SPI.
The microprocessor SPI peripheral can be used during STPMC1 device reading, while
during the writing process it is possible to implement the SPI protocol via firmware.
In fact, in real applications the meter is calibrated and configured during meter production,
so the main microcontroller task is to read from the device and, more rarely, to reset the
device.
Moreover the reading time is crucial for a correct evaluation of the device data, it is advisable
to emulate the writing procedure by firmware and to read using the SPI peripheral
functionality, therefore exploiting all the port performances to reach very fast reading.



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


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