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

X  

AN1796 Datasheet(PDF) 7 Page - STMicroelectronics

Part # AN1796
Description  FIELD UPDATES FOR FLASH BASED ST7 APPLICATIONS USING A PC COMM PORT
PDF  17 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1796 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button AN1796 Datasheet HTML 3Page - STMicroelectronics AN1796 Datasheet HTML 4Page - STMicroelectronics AN1796 Datasheet HTML 5Page - STMicroelectronics AN1796 Datasheet HTML 6Page - STMicroelectronics AN1796 Datasheet HTML 7Page - STMicroelectronics AN1796 Datasheet HTML 8Page - STMicroelectronics AN1796 Datasheet HTML 9Page - STMicroelectronics AN1796 Datasheet HTML 10Page - STMicroelectronics AN1796 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 17 page
background image
7/17
FIELD UPDATES FOR FLASH BASED ST7 APPLICATIONS USING A PC COMM PORT
4 DECISION POINT
At the label “bootupwait” the program enters a five second loop where it continually polls to
see if a UART character has been received. If a character is detected then execution jumps to
the label “doupdate” where the flash memory is unlocked and the program waits patiently to
receive the S-Records update file. If the five second period expires without detection of a
UART character then execution escapes to the entry point for sector1 code (the “jp $FDFC” in-
struction). While this is a good method to use for an example program because it will run prop-
erly “out of the box” on any ST7 based system that has a RS232 port it may not be the best
choice in all situations. It may be undesirable, for example, that the system will always delay
for five seconds after power up before starting to execute the normal program or it may be dif-
ficult to arrange for the triggering character to be send to the board within five seconds after
power up reset.
One alternative method would be to dedicate a general purpose port pin to control the func-
tion. In the hardware, we could include a pull-up resistor to Vcc at the pin and provide a jumper
that would ground the pin if installed. The jumper would normally be installed and we would
only remove it if an update was desired. The code at “bootupwait” can be changed so that the
port pin is examined. If the input is logic low, execute the jump to $FDFC without delay to start
normal operation. If the pin is high then the program can wait until the jumper is re-installed
and then jump to “doupdate” to receive a new program. Normally, the jumper would always be
installed. To do an update we would remove the jumper, power up (reset) the ST7, replace the
jumper and then transmit the file. After the file has been received a cold reset will follow and,
because the jumper is installed, normal execution will commence.
If an application is tight on I/O and cannot afford to dedicate a pin to this function another ap-
proach is to insert a jumper between the output of the RS232 line receiver and the Rx input of
the ST7 and then provide a 10k pull down resistor to ground at the pin of the ST7. Normally,
the jumper would be installed. Since the normal marking state of the Rx signal is logic high, the
code at the decision point can examine the pin (as just a general I/O pin) and, if it is high, exit
normally to sector1. If the pin is low (jumper has been removed) then the program would wait
until the pin goes high, then jump to doupdate and wait to receive a new file. To perform an up-
date one would then remove the jumper and power up (reset) the ST7, install the jumper, and
then transmit the file. After the file has been received a cold reset will follow and, because the
jumper is installed, normal execution will commence.



Html Pages

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


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