I was wondering if that would actually work or not. This is my final line. Again thanks for all your help.
for x = 0 to 8
owin portb.7,0,[i]
dq[x] = i
next x
Type: Posts; User: CocaColaKid; Keyword(s):
I was wondering if that would actually work or not. This is my final line. Again thanks for all your help.
for x = 0 to 8
owin portb.7,0,[i]
dq[x] = i
next x
Is there an easier way to do this?
owin portb.7,0,[data_in[0], data_in[1], data_in[2], data_in[3], data_in[4], data_in[5], data_in[6], data_in[7], data_in[8]]
Tom,
I finally have everything working properly. Thank you so very much for your help and understanding.
I think I can now safely say I'm completely lost as this is making no sense to me. Do I calculate the CRC for each bit using bit0 ^ bit1... and then XOR all the bytes one at a time or do I just XOR...
I actually working with the DS18S20 chip. From what I'm reading though it sounds like I calculate the CRC from the bytes read. Is this correct?
If I used this line of code:
owin portb.7, 0, [temp.byte0,temp.byte1,SKIP 6,crc_value]
Would the calculated CRC be the same value as crc_value?