Have you tested that? it seems like it will shift ADRESH 8 times, then assign it to the word. DOing it like that would be better I think like this:
Not sure about that either.Code:adcdata[index] = ADRESH adcdata[index] = adcdata[index]<<8 adcdata[index] = adcdata[index]+ADRESL
I think you can do this:
I am not certain on this, so my reply is as much a question as an answer. Hmmm, that sounds a little deepCode:adcdata.highbyte[index] = ADRESH adcdata.lowbyte[index] = ADRESL
OK, this I am certain about:
Code:tempword var word tempword.highbyte = ADRESH tempword.lowbyte = ADRESL adcdata[index] = tempword





Bookmarks