Communication Implementation

The communication module of the mTouch CVD Framework has been designed to talk to the included mTouch CVD GUI by default but can easily be adapted to meet your needs. The framework handles all initialization requirements once it knows the PIC's oscillator speed and desired baud rate.

The data packets being sent to the GUI are as shown:

 16bitMaskofSensorStates;Sensor0Reading;Sensor1Reading;...;SensorNReading(CR)(LF)

which looks like this when populated:

 65525;02301;02354;02332;02296;02318
Note:
A 1 in the bit mask means the sensor is not pressed (either initializing or released). A 0 means that it is pressed.

The data is sent in decimal format with a maximum of 5 digits by default.