Hi!
I want to build a RC model encoder/decoder (PIC to PIC@4Mhz) interface.
On the transmitter side I've Frame[99] Bit array set of 10bit ADC datas to transmit.
And I need a simple but reliable CRC for it.
I dont want to waste bandwidth with like manchester coding.
I prefer to do the job with more processtime like XOR-ing.
How do i treat the Bit array like a long Bin number? (or I've to XOR-ed by one by one?)
How do i add the CRC checksum to the array? (add-it, or append it)?
The calc must be loop driven not table driven.
If it is possible no shifting.
How can i send/rec this array via Serin2/Serout2?
an idea:
Data in: Frame[99]+Checksum
CONST onboardpolynomial = ....(bin array)
x= (Frame[99]+Checksum) XOR onboardpolynomial
if x =1 then goto error
Thank you!
Bookmarks