Futterama
1 kW
Thanks Lebowski.
I figured out how to use another PIC to translate from 16bit data to human readable/terminal friendly text. The PIC will send e.g. 'f' to the controller chip and wait for 2 bytes to arrive from RS232. When the second byte has been received, the PIC will send 'z' to the controller chip and the controller chip stops sending data. This can be done at whatever frequency is suited for human reading (like 10Hz).
Now, what I don't understand is the format of the data received. It says in your manual:
But why does e.g. the throttle 1 (sending 'f' to the controller chip) go from -32768 (0x8000) to 32767 (0x7FFF)?
I figured out how to use another PIC to translate from 16bit data to human readable/terminal friendly text. The PIC will send e.g. 'f' to the controller chip and wait for 2 bytes to arrive from RS232. When the second byte has been received, the PIC will send 'z' to the controller chip and the controller chip stops sending data. This can be done at whatever frequency is suited for human reading (like 10Hz).
Now, what I don't understand is the format of the data received. It says in your manual:
This would mean that all negative numbers has a MSB of 1 and all positive numbers has a MSB of 0.Data is outputted as 2's complement with the high byte first.
But why does e.g. the throttle 1 (sending 'f' to the controller chip) go from -32768 (0x8000) to 32767 (0x7FFF)?