Welch Allyn Duet CO2 Module - User Manual User Manual
Page 71

Duet CO
2
Module OEM Implementation Manual
Welch Allyn OEM Technologies
Confidential
Page 71
LOAD EXECUTIVE FILE
The boot agent moves its buffer memory to 0x1000.
If –W1 switch is issued, the communication baud rate must be changed to 38400 baud. To accomplish
this, the PC issues a register write command to the module. The registers that are written to in the
module are baud rate dividers. This command is sent at the prevailing baud rate. Both registers must
be sent in one command since the changes are invoked immediately upon receipt. The inject.exe
program then waits approximately 60 msec for the module to respond. After the module responds to
the baud rate change, the executive file is opened and loaded into the module. If the module does not
respond within 60 msec, the program will time out, issue an error, and exit.
If the –A1 switch is issued; each line of the S0:S9 file is read into memory and converted to a binary
image before it is sent to the module.
Motorola S Record Format
Records
Description
S0
Control record that is used to send commands to the boot agent. S0 records
have the following format.
00 write byte to address (data1)(data2) with byte (data3)
01 read from address (data1)(data2)(data3) bytes
02 erase FLASH (data1) = aa, (data2) = 55, (data3) = 80
03 move BUFFER to address (data1)(data2)
04 which byte to check when erasing FLASH
05 reset FLASH device
06 write a string of bytes to local EEPROM
S1
Motorola standard record that is assumed to be going into FLASH.
S3
Record that is sent in binary format. This loads code almost twice as fast as
normal mode. To create a binary record, a standard S1 record is read in by
the PC. The PC then sends the DUET Module the S3 identifier. Each pair of
ASCII bytes in the S1 record are converted to a single byte and then sent to
the DUET Module.
S9
Record that is the standard terminator and transfers control to the address
specified.