comwarrior
- 20th March 2010, 03:27
Using MCS, PBP2.47, MPASM
PIC = 18F4550
The two line of core are...
ADT[ADCHAN].highbyte = ADRESH
ADT[ADCHAN].lowbyte = ADRESL
i tried the alternates with the same results...
ADT[ADCHAN].byte0 = ADRESH
ADT[ADCHAN].byte1 = ADRESL
Any idea whats causing it and how to fix it?
Thanks
:edit,
ADT is word array of 8
ADCHAN is byte var
PIC = 18F4550
The two line of core are...
ADT[ADCHAN].highbyte = ADRESH
ADT[ADCHAN].lowbyte = ADRESL
i tried the alternates with the same results...
ADT[ADCHAN].byte0 = ADRESH
ADT[ADCHAN].byte1 = ADRESL
Any idea whats causing it and how to fix it?
Thanks
:edit,
ADT is word array of 8
ADCHAN is byte var