Using FRDM Board to output data and a clock for communications example.

Dependencies:   mbed

Revision:
4:39a777388acd
Parent:
3:027d30718bbc
Child:
5:8c012e2c1ba8
--- a/main.cpp	Tue Mar 17 03:02:38 2015 +0000
+++ b/main.cpp	Mon Mar 23 13:54:41 2015 +0000
@@ -56,7 +56,6 @@
         //last preamble bit sent - reset/increment variables
         if(j==0)
         {
-            
             done = 1;
             j = 128;   
         }
@@ -105,4 +104,8 @@
     myled = 1;
 }
 
-//crc = x^4+x+1
\ No newline at end of file
+//crc = x^4+x+1
+//put char data into unsigned short temp variable, then shift << 5. % this number by the decimal equivalent of binary representation of
+//the crc code and save and send it as a separate  5 bits. On the receive side save each byte in the temp character and then the next five
+//bytes in a temp variable - after receiving 13 bits stick data in unsigned short variable << 5 add the recieved 5 bits and then % by
+// the crc decimal equivalent, if that equals 0, save the temp character in the permanent character array and receive the next bits.
\ No newline at end of file