Speed: fgsimple 56,7 kbps, fg 4,8 kbps

Protocol of FG µC <=> PC communication

Set Amplitude (MSB first, fg only)
PC  "B"
PC  Byte 2
FG  Byte 2
PC  Byte 1
FG  Byte 1 (lower nibble ignored)

Set Offset (MSB first, fg only)
PC  "O"
PC  Byte 2
FG  Byte 2
PC  Byte 1
FG  Byte 1 (lower nibble ignored)

Set Frequency (MSB first)
PC  "F"
PC  Byte 4
FG  Byte 4
...
PC  Byte 1
FG  Byte 1

Set Frequency via Digitinput (MSB first)
PC  "f"
PC  Digit 10
FG  Digit 10
...
PC  Digit 1
FG  Digit 1

Set Offset via Digitinput (MSB first, fg only)
PC  "o"
PC  Digit 4 (sign only)
FG  Digit 4
...
PC  Digit 1
FG  Digit 1

Set Offset via Digitinput (MSB first, fg only)
PC  "b"
PC  Digit 4
FG  Digit 4
...
PC  Digit 1
FG  Digit 1

Read EEPROM
PC  "R"
PC  Byte
FG  Byte
FG  increase Address for EEPROM

Write EEPROM
PC  "W"
PC  Byte
FG  Byte
FG  increase Address for EEPROM

Set Address for EEPROM
PC  "A"
PC  Address
FG  Address

Get Version of µC
PC  "V"
FG   program version byte (0-255)
Disclaimer: No warranty at all!
Copyright by Martin Clausen, Germany.
Contact the author: mc AT rotgradpsi DOT de
Impressum