전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN2737 데이터시트(PDF) 9 Page - STMicroelectronics

부품명 AN2737
상세설명  Basic in-application programming example
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2737 데이터시트(HTML) 9 Page - STMicroelectronics

Back Button 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 AN2737 Datasheet HTML 10Page - STMicroelectronics AN2737 Datasheet HTML 11Page - STMicroelectronics AN2737 Datasheet HTML 12Page - STMicroelectronics AN2737 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 16 page
background image
AN2737
IAP example with I2C
9/16
1.3.4
Current write command
The current write command allows data to be written in the Flash program memory or data
EEPROM of the STM8, starting from the current address which is set to 4000h after a
firmware reset.
The packet sequence to achieve a ‘current write’ with the Aardvark software and the STM8
I2C is summarized in Figure 7.
Figure 7.
Current write packet sequence
The following points explain how to write current bytes using the Aardvark software:
1.
Select the master tabsheet, set the slave address and the bitrate, and uncheck the 10-
bit addressing as per Section 1.3.2: Current read command on page 5.
2.
Enter the data to be writen in the Flash program memory at the current address in the
‘message window’ text box.
3.
Uncheck the ‘no stop’ option.
4.
Press the ‘master write’ button to send the data to the firmware.
At the end of this command, the data are written in the Flash program memory. They can be
verified using the STVD memory window. The LCD displays the message ‘writing OK’.
1.3.5
Random write command
The random write command allows data to be written in the Flash program memory or data
EEPROM of the STM8, starting from any address in the range 8000h—027FFFh or
4000h—47FFh.
The packet sequence to achieve a ‘random write’ with the Aardvark software and the STM8
I2C is summarized in Figure 8
Figure 8.
Random write packet sequence
Two steps are required to perform a random write with the Aardvark host adapter software.
Step1 sends the first address to be writen to the firmware. This is done as follows:
1.
Select the master tabsheet, set the slave address and the bitrate, and uncheck the 10-
bit addressing mode option as per Section 1.3.2: Current read command on page 5.
2.
Enter the ‘start address’ in the ‘message window’ text box. It corresponds to the first
address to be writen to the Flash program memory.
3.
Check the ‘no stop’ option.
4.
Press the ‘master write’ button to send the start address to the firmware.
At the end of this command, the firmware has initialized its internal pointer address to the
address sent above.
ADD SLV DEVICE-W
ACK-S
Bytes sent by master
ACK-S
STOP
START
START
ADD SLV DEVICE-W
ACK-S
ACK-S
Current write
Start program address



Html Pages

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


데이터시트 다운로드

Go To PDF Page


링크 URL



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