Download View - Onset

Transcript
Section 7 - Application Notes for the Model 8
ANSI-C
Tattletale Installation and Operation Manual
A-D,
I/O line, or
op amp
input
Figure 7-11: Input Protection with a Zener Diode
NOTICE
Lightning! - If you connect your Tattletale to a long
cable somewhere outside, lightning damage is a
possibility. The strike does not need to hit the wire
directly, just near enough to induce a large voltage
transient. To protect against lightning, place a spark
gap at the input. Since there is no room in the Tattletale
for the spark gap, you would have to mount it on a
terminal block external to the Tattletale.
Using Flash Memory for Non-Volatile Data Storage
This application note provides generic flash programming routines that allow the flash
to be burned when running from flash. This is done by moving the actual burn routine
into RAM at 2F0000H, and copying/programming the 256 bytes pointed to in RAM to
flash. Make sure the move to address (2F0000H) is not a problem with your system. As
it is a define, (RAMMOVESTART), it may be readily changed. Note that RMSHI and
RMSLO must also be changed.
This code will not allow blocks below 2000H to be written in order to avoid clobbering
the TOM8 Monitor. Remove this protection at your own risk. For that matter, use this
code at your own risk. The program is loaded at 2000H and therefore is fair game to
be overwritten - there is no protection for your code!
The program can be located in the EXAMPLES directory.
/*****************************************************************************
**
**
flashbrn.c
Tattletale Model-8 code for reading and writing flash
**
for non-volatile data storage
PLEASE NOTE!
These routines have the potential for causing great distress use them carefully!!
FLASH HAS A LIMITED NUMBER OF WRITES CYCLES - 10,000
Page 7-10
Onset Computer Corporation - Model 8 with C
D-3285-C