|
Part 2: Revving It Up
by Fred Eady
Start ı Tera
Term Pro ı Road Test ı The
Hardware ı As a Web Server ı Branching
Out ı Making Changes ı ReadyıSet?
ı Go ı Sources
and PDF
ROAD TEST
Now that you know what the Tera Term
Pro macro is supposed to do, letıs put the code to the test.
Photo 1 is the result of a good connection
between Tera Term Pro and the S-7600A/PIC16F877 Internet Engine. The
yesnobox command was executed and the uploadprompt message
is displayed. Letıs select Yes.
 |
| Photo 1ıNote the box title.
It was all done without having to write a single byte of Windows
code. |
The macro branches to :loadcode
and immediately executes a send command that transmits an ASCII
"u." At this point, the boot loader code listens for characters
coming into the PICıs serial port. Tera Term Pro issues a sendfile
command that transfers the seiko.hex file to the S-7600A/PIC16F877
Internet Engine. The "0" tag on the sendfile command tells
Tera Term Pro to send the file as is without modification of the carriage
return/line feed sequences. Photo 2 is what youıll see. Serialtest
Async gives you a view of what the S-7600A/PIC16F877 Internet Engine
and the Tera Term Pro components are doing in Photo
3.
 |
| Photo 2ıIf youıre wondering
what the asterisks are for, theyıre just there to let me know
the code is running. |
When all of the data in the Intel hex
file seiko.hex is transferred to the S-7600A/PIC16F877 Internet
Engine, an upload complete message box is generated by Tera Term Pro.
Click "OK" and Photo 4 is the result. The uploaded code
is being executed and is ready to communicate with other components
on the S-7600A/PIC16F877 Internet Engine. Before I move on to this
phase, Iıll impart some knowledge of the hardware to you.
|
|
| Photo 4ıAt this point, Tera
Term Pro and the S-7600A/PIC16F877 Internet Engine boot loader
have completed their tasks and turned over control to the uploaded
code. |
PREVIOUS
NEXT
Circuit Cellar provides up-to-date information for engineers. Visit
www.circuitcellar.com for
more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com
or subscribe online.
ıCircuit Cellar, the Magazine for Computer Applications. Posted with
permission. |