Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN2737 Datasheet(PDF) 5 Page - STMicroelectronics

Part # AN2737
Description  Basic in-application programming example
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2737 Datasheet(HTML) 5 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
 5 / 16 page
background image
AN2737
IAP example with I2C
5/16
1.3.2
Current read command
The current read command allows data from the Flash program memory of the STM8 to be
read, starting from the current address. This address is set to 4000h after a firmware reset.
The packet sequence to achieve a ‘current read’ is summarized in Figure 2.
Figure 2.
Current read packet sequence
The following points explain how to read different bytes using the Aardvark software, starting
from the reset address (4000h):
1.
Select the master tabsheet.
2.
Set the bitrate to 100 kHz or 400 kHz using the ‘bitrate’ field and the ‘set’ button.
3.
Set the slave address to 51h (corresponding to the firmware address A2h) in the slave
address field.
4.
Uncheck the ‘10-bit addressing mode’ option because the firmware uses 7-bit
addressing mode only.
5.
Uncheck the ‘no stop’ option.
6.
Enter the number of bytes to be read in the ‘number of bytes’ field. A value from 1 to
255 can be entered.
7.
Press the ‘master read’ button.
8.
The number of bytes to be read can be changed by pressing the master read button
again.
The read values are displayed in the transaction log window of the Aardvark software.
At the end of this command, the LCD displays the message ‘reading done’.
Figure 3 illustrates points 1 to 8 of a current read command.
START
ADD SLV DEVICE-R
ACK-S
Bytes read from STM8
STOP
ACK-M
ACKF



Html Pages

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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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