công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN2737 bảng dữ liệu(PDF) 11 Page - STMicroelectronics

tên linh kiện AN2737
Giải thích chi tiết về linh kiện  Basic in-application programming example
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2737 bảng dữ liệu(HTML) 11 Page - STMicroelectronics

Back Button AN2737 Datasheet HTML 7Page - STMicroelectronics AN2737 Datasheet HTML 8Page - STMicroelectronics AN2737 Datasheet HTML 9Page - STMicroelectronics AN2737 Datasheet HTML 10Page - STMicroelectronics AN2737 Datasheet HTML 11Page - STMicroelectronics AN2737 Datasheet HTML 12Page - STMicroelectronics AN2737 Datasheet HTML 13Page - STMicroelectronics AN2737 Datasheet HTML 14Page - STMicroelectronics AN2737 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 16 page
background image
AN2737
IAP example with SPI
11/16
2
IAP example with SPI
This section describes how to perform basic IAP with the STM8 SPI peripheral. The STM8
device behaves like a standard SPI EEPROM slave which can communicate with any
master. In this application note, the Aardvark PC host adapter is used as the SPI master.
2.1
Hardware description
Figure 9 shows a typical hardware connection between the Aardvark host adapter as master
and the STM8 SPI peripheral as slave. This type of communication uses hardware NSS
management for the slave.
The following pins are connected together:
Aardvark MOSI and STM8 SPI MOSI.
Aardvark MISO and STM8 SPI MISO.
Aardvark SCK and STM8 SPI SCK.
Aardvark SS and STM8 SPI NSS.
Note:
When the STM8 evaluation board (STM8/128-EVAL) is used, the R34 resistor has to be
soldered on the R35 placement. This is to put the I/O of the micro-SD card level shifter in
high impedance state. To use the micro-SD card, the R34 resistor has to be soldered back
to its original place.
Figure 9.
Hardware connection between the Ardvark host adapter and the STM8
SPI
2.2
Firmware description
The current example is provided in the ZIP file attached to this AN.
It includes:
The SPI driver that supports all basic SPI communications.
The Flash, CLK, GPIO and LCD screen drivers.
The STM8 clock is set to 16 MHz. The baudrate is automatically set to FCPU/2 (because the
STM8 SPI peripheral is the slave). As a result, the maximum STM8 SPI speed is 8 MHz.
The firmware follows standard serial SPI EEPROM protocol rules. However, not all features
of a real serial SPI EEPROM are implemented here. For example, the firmware does not
R/W
Aardvark
host adapter
USB
MOSI
MISO
SCK
SS/NSS
PC + Aardvark
software
SPI
Slave
Master
STM8 device
Flash program
memory and
data EEPROM



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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