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

X  

AN2737 数据表(PDF) 3 Page - STMicroelectronics

部件名 AN2737
功能描述  Basic in-application programming example
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2737 数据表(HTML) 3 Page - STMicroelectronics

  AN2737 Datasheet HTML 1Page - STMicroelectronics AN2737 Datasheet HTML 2Page - STMicroelectronics AN2737 Datasheet HTML 3Page - STMicroelectronics AN2737 Datasheet HTML 4Page - STMicroelectronics AN2737 Datasheet HTML 5Page - STMicroelectronics AN2737 Datasheet HTML 6Page - STMicroelectronics AN2737 Datasheet HTML 7Page - STMicroelectronics AN2737 Datasheet HTML 8Page - STMicroelectronics AN2737 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 3 / 16 page
background image
AN2737
IAP example with I2C
3/16
1
IAP example with I2C
This section describes how to perform basic IAP with the STM8 I²C peripheral. The STM8
device behaves like a standard I²C EEPROM slave which can communicate with any
master. In this application note, the Aardvark PC host adapter is used as the I²C master.
1.1
Hardware description
Figure 1 shows a typical hardware connection between the Aardvark host adapter as master
and the STM8 I²C peripheral as slave.
The Aardvark host adapter and the STM8 I²C are connected together via the data (SDA)
and clock (SCL) pins.
A 4.7 k
Ω pull-up resistor must be connected to both the SDA and SCL lines
Note:
If the STM8/128-EVAL board is used, the pull-up resistors are present by default.
Figure 1.
Hardware connection between the Ardvark host adapter the STM8 I2C
1.2
Firmware description
The current firmware is provided in the ZIP file attached to this AN.
It includes:
●
The I²C driver that supports all basic I²C communication.
●
The Flash, GPIO, I2C and LCD screen drivers.
●
STM8A and STM8S firmware libraries
The firmware uses 7-bit addressing mode which has been validated at 100 kHz and 400
kHz for the I2C SCL line frequency.
The STM8 address has been set to A2h using the ‘I2C own address register’. As bit 0 of this
register is used for read/write operation selection, the value 51h must be entered in the
Aardvark software.
R/W
SCL
SDA
USB
PC + Aardvark
software
Aardvark
host adapter
STM8 device
I2C
Flash program
memory and
Master
Slave
data EEPROM



Html Pages

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


数据表 下载

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