Guest
|
make8 usage |
Posted: Tue Oct 10, 2006 6:15 am |
|
|
can anybody see what i am doing wrong down here.
i am tring to store a 16bit number in eeprom by splitting it using make8, so i tried the following;
Code: |
int MSB, LSB
INT16 ADC
MSB = make8(ADC,0);
LSB = make8(ADC,1);
printf(lcd_putc("%UL-%U-%U",ADC,MSB,LSB));
|
the output from the above code will be;
ADC = 1320
MSB = 40
LSB = 5
Can anybode see why i am getting some strange numbers here??
Thanks, Nick |
|