Ok. I might need a bit of 'spoon feeding', I'm a bit of a noob when it come to this.
I've had a look at the bascom manual and did a bit of googling to see what CRC is all about and also had a look at this as well http://www.youtube.com/watch?v=0apqZ4jsGmI . But have a few more questions of the steps that need to be taken.
1. After I have got the ADC value, do I pass this info the CRC8 function and send the resulting to the other micro on the end of the radio link???
2. When the other micro has received the data, what does it do with it to with it to see if it is transmitted data is valid, and then how do you extract the original ADC data back???
Var = CRC8( source , L)
as per the manual L= The number of bytes to check . What does this actually mean
say the source = 128 what would L =??? .Is the max value for the CRC8 an 8 bit number (255)??
I see in the sample, the array (AR) is loaded with 3 values how does this all tie in with the outputted value
also what is the generator bit value for the CRC8 function=
Hopefully the Utube clip hadn't lead me the wrong way :)
Thanks
Snow
↧