71M6521 Demo Board User’s Manual
Page: 24 of 111
© 2005-2009 TERIDIAN Semiconductor Corporation
Revision 2.18
Code
Function
00, 02
Write CE data record, contains data and 16-bit CE address (CE data RAM is located at
0x1000).
01
End Of File (Quit) record, a file termination record. Contains no data. This record has to be the
last line of the file, and only one record per file is permitted. The byte pattern is always
':00000001FF'. Upon receipt of this record, the Demo Code will transfer the received data into
non-volatile memory (EEPROM).
03
Read CE data record, contains empty data field and 16-bit CE address (optional). CE data
RAM is located at 0x1000.
04
Write MPU or I/O RAM data record, contains data and 16-bit MPU address.
05
Read MPU or I/O RAM data record, contains empty data field and 16-bit MPU address
(optional). I/O RAM is located at 0x2000.
06
Write RTC data record, contains data and 16-bit RTC address.
07
Read RTC data record, contains empty data field and 16-bit RTC address (optional).
08
Write SFR data record, contains data and 16-bit SFR address (optional). The MSB is always
zero (0).
09
Read SFR data record, contains empty data field and 16-bit SFR address (optional).
Table 1-8: Data (Command) Types
Table 1-9 lists a few examples of hex records.
Hex Record
Function
:08 0000 06 00 00 0C 03 18 05 06 00 ff
Writes (06) eight bytes (08) to RTC, setting the
RTC to zero seconds (00), minutes (00), 12
hours (0C), Wednesday (03), 24
th
(18) of May
(05), 2006 (06). Uses the wild card checksum.
:10 0008 00 00004000 00004000 00004000
00004000 E8
:00 0000 01 FF
Writes the default values (0x4000) for the
calibration constants CAL_IA, CAL_IB,
CAL_VA, and CAL_VC to the CE data RAM
(00), starting at address 0x08 (0008).
The second command causes the Demo Code
to write the data to permanent storage.
:10 1020 03 FF
Causes the Demo Board to display the CE data
from address 0x1020 to 0x102F
Table 1-9: Hex Record Examples
The Demo Board will not echo any inputs from the terminal (they screen will stay blank except for
the asterisk (
*
) issued after the user enters <CR><LF>). It is useful to configure Hyperterminal for
“auto-echo”. This can be done by selecting “Properties” from the “File” menu, then clicking on the
“Settings” tab and clicking the “ASCII Setup” button.
No <ENTER> key is necessary at the end of a manually entered record.
Spaces in between the fields (to increase readability), as in the example above, are ignored by the Demo
Boards.
If a hex record is accepted, the Demo Board returns a "
!
". If the hex record is not accepted, the Demo
Board sends a "
?
" and other text, depending on the context (only the 16KB Demo Code will send text).