Download HSM/320 & /520 Technical Reference

Transcript
HSM/320 & HSM/520 Technical Reference 2.0 - October 6, 1999 - © Systronix®
THE SERIAL LOADER & DEMONSTRATOR
Description
What is the “Smart Autobauding Loader/Demonstrator”?
That’s a rather ungainly name, but it was the best we could think of. (We’re not an ad agency,
just a bunch of acronym- and technology- loving engineers). The loader provides Intel HEX
file transfer, memory fill, HSM Port read and write, SFR access, I/O space peek and poke,
and much more. I/O space “peek and poke” is really just I/O space “read and write” but
“peek and poke” sounds like more fun, doesn’t it? You can use any terminal emulator or
communications program which supports standard RS232 serial I/O. You don’t need a
“Wintel” PC.
Tips & Tricks
Automate Your Testing with ‘Script’ Files
In load mode, you can of course send a series of keyboard commands to the loader. This
could include erasing memory, writing and reading memory-mapped I/O space, sending a
HEX file and so forth. “OK”, you say, “maybe that’s cool but where’s the tricky part?”
Here it is: you can prepare an ASCII text file with these commands, one per line. Then send
the file to HSM. In Hyperterminal it’s Transfer->Send Text File. You will need to set the
File->Properties->Settings->ASCII Setup->Line Delay to 500 or 1000 msec, to give the
loader time to process the command. If your communications software supports macros or
scripts, so much the better. We’ve included some sample files we use with Hyperterminal.
More are on the web site.
This is a simple and powerful way to test register settings before you take the time to create a
program. It’s much easier to debug a configuration problem at the loader command line, than
within a program. We use this approach a lot in our own test and debug work here. That’s
17