Scope of Work
We need to have code written in Cosmic C. The goal is to build a “bridge” program to pull certain values from one program by using what is written in another program.
1. Description of included Firmware
a. Current working unit firmware.
b. Example firmware for save data to SRAM buffer
c. Example firmware for serial port TX1.
2. Functional Change Description:
a. Create one 2048 byte data buffer in SRAM.
b. Define a pointer such that XYZ_data will be saved in the 1st 1024 byte.
c. Define a pointer offset such that XYZ1_data will be saved in the 2nd 1024 bytes.
d. Create a function to clear the SRAM data buffer.
e. Create a function to send the SRAM data buffer’s contents, as CSV (all 2048 bytes) to the secondary
serial port (TX1) @ 19200 baud (this serial data is intended to be captured by Windows hyperterminal).
f. On a signal, clear the SRAM data buffer (note 1) & reset the SRAM data buffer pointers.
g. As XYZ0 (function Set_XYZ0) & XYZ1 (function Set_XYZ1) are updated, save each value to the SRAM
data buffer (note 2 & note 3).
h. When the action is complete (note 4), output the saved SRAM buffer, as CSV to TX1 (secondary
serial port on the uP).