Hi Henrik,
I understand your explanation and thank you. But in your last bit of code
doesn't it need the ".lowbyte" part?
Code:For Index = 0 to 16 STEP 2 accData.lowbyte[Index] = ADRESL 'Low byte (bytes 0, 2, 4, 6...) accData.lowbyte[Index+1] = ADRESH 'High byte (bytes 1, 3, 5, 7...) NEXT
This is more intuitive though at the cost of a word variable
Mike -Code:for index = 0 to 16 tempword.highbyte = ADRESH tempword.lowbyte = ADRESL adcdata[index] = tempword next
Bookmarks