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

X  

AN2737 데이터시트(PDF) 14 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) 14 Page - STMicroelectronics

Back Button 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 AN2737 Datasheet HTML 16Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 14 / 16 page
background image
IAP example with SPI
AN2737
14/16
2.3.3
Write command
The write command allows data in the Flash program memory of the STM8 to be written,
starting from any Flash addressing range.
The packet sequence to achieve a ‘write’ with the Aardvark software and STM8 SPI is
explained below and is summarized in Figure 13 and Figure 14.
As per Section 2.3.2: Read command on page 12, select the master tabsheet, set the
bitrate (for write operations up to 8 MHz can be chosen), select the rising/falling polarity and
the sample/setup phase, and set the active low option for the SS pin.
Two steps are then required to carry out a write command.
Step 1: In the ‘message window’ text box enter the OPC-WREN value (06h) and press
‘send’. This byte is used to activate the write mode.
Step 2: In the ‘message window’ text box enter OPC-WRT ADD DATA-W and press ‘send’.
For example, 02 01 90 FF AA 55 BB 66 programs 4 bytes starting from address 0190FFh.
Figure 13.
Step 1 of the write packet sequence using Aardvark software
Figure 14.
Step 2 of the write packet sequence using Aardvark software
In step 2, a maximun of 128 bytes can be programmed. When step 2 is finished, the NSS
signal rises up and the Flash is programmed with the DATA-W bytes at the ADD address.
At the end of this command, the data are written in the Flash memory. They can be verified
using the STVD memory window or by performing an SPI read.
OPC-WREN
00h
MOSI line
MISO line
OPC-WRT
ADD
DATA-W
00h
00h
0x00 (1 byte per byte programmed)
MOSI line
MISO line



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