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

X  

AN970 数据表(PDF) 3 Page - STMicroelectronics

部件名 AN970
功能描述  SPI COMMUNICATION BETWEEN ST7 AND EEPROM
PDF  10 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN970 数据表(HTML) 3 Page - STMicroelectronics

  AN970 Datasheet HTML 1Page - STMicroelectronics AN970 Datasheet HTML 2Page - STMicroelectronics AN970 Datasheet HTML 3Page - STMicroelectronics AN970 Datasheet HTML 4Page - STMicroelectronics AN970 Datasheet HTML 5Page - STMicroelectronics AN970 Datasheet HTML 6Page - STMicroelectronics AN970 Datasheet HTML 7Page - STMicroelectronics AN970 Datasheet HTML 8Page - STMicroelectronics AN970 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 3 / 10 page
background image
3/10
SPI COMMUNICATION BETWEEN ST7 AND EEPROM
2 ST72264 CONFIGURATION
2.1 I/O CONTROL
Four pins of the ST72264 are used:
- The 3 data and clock SPI pins (SCK, MOSI, MISO).
- An output pin to select and deselect the M95xxx.
- SS pin to select master or slave mode.
In our application, the output for selecting the M95xxx is pin 3 of Port B. It is configured as
output push-pull (refer to the datasheet for details).
2.2 SPI PERIPHERAL
2.2.1 General
This peripheral is configured with the SPI Control Register.
The output must be enabled (SPE = 1).
If the SS pin is high (see SPICSR), the ST72264 can be declared as master by setting the
MSTR bit.
The transmission speed, in master mode, is selected using the SPR0, SPR1 and SPR2 bits.
The CPOL and CPHA bits define the timing characteristics.
When the SPIE bit is set, SPI interrupts are enabled (not used in our case).
2.2.2 SS software configuration
The SS pin can be fixed by hardware, either connected to Vss (for a slave configuration) or to
Vdd (for a master configuration). But it can also be software driven through the SPICSR reg-
ister (SSM and SSI bits) :
To set the master configuration (as in our case) : SSM=1 and SSI=1
To set the slave configuration: SSM=1 and SSI=0
70
SPIE
SPE
SPR2
MSTR
CPOL
CPHA
SPR1
SPR0
70
SPIF
WCOL
OVR
MODF
-
SOD
SSM
SSI



Html Pages

1 2 3 4 5 6 7 8 9 10


数据表 下载

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