ok i know how the result is stored , i have a 10 bit a/d pic 18f24k22,
left stores upper 8 bits in adresh lower 2 bits in adresl,
right stores lower 8 bits in adresl upper 2 bits in adresh,
now i want to know is will the upper two bits in right justified be of a value between zero and 3 because they are stored in the lsb part of an 8 bit file adresh,
or will they be read as the upper 2 bits of an 10 bit file thus having a value of 512 to 1024. hope that makes sense
what i am trying to do is put the values of adresh and adresl into a delay routine to create a variable delay using the decfsz d1,f and decfsz d2,f routine,
so i want to know which "justified" would give me the best result for time delay ?
left stores upper 8 bits in adresh lower 2 bits in adresl,
right stores lower 8 bits in adresl upper 2 bits in adresh,
now i want to know is will the upper two bits in right justified be of a value between zero and 3 because they are stored in the lsb part of an 8 bit file adresh,
or will they be read as the upper 2 bits of an 10 bit file thus having a value of 512 to 1024. hope that makes sense
what i am trying to do is put the values of adresh and adresl into a delay routine to create a variable delay using the decfsz d1,f and decfsz d2,f routine,
so i want to know which "justified" would give me the best result for time delay ?
Last edited: