Appendix N: Pseudocode for Transmitting Data to the Computer

Send_Data_ISR
Disable interrupts
Disable the GPS from transmitting
Set CRC equal to the Header
Send Header (10101010)
Get first array element
DO
Add data to CRC value
Send Data
Get next array element
WHILE (more data to send)
Send CRC value
Clear storage array
Enable the GPS to transmit
Enable interrupts
RETURN

Next Previous Table of Contents