janetsmith2000@yahoo.com
New Member
DS1631 error
Posted: Sat Mar 20, 2004 4:35 am
--------------------------------------------------------------------------------
Hi,
I am using DS1631 driver from CCS. However, i always get t = 1E1E. I have check the datasheet from maxim-ic.com, it shows that the LSB must be always zero. Can you point me out where i did wrongly?
Code:
#include "DS1631.C"
#include <math.h>
void main() {
int16 t;
init_temp();
while(1) {
t = read_full_temp();
printf("\n\r t: %4LX \n\r", t);
getc();
}
}
Posted: Sat Mar 20, 2004 4:35 am
--------------------------------------------------------------------------------
Hi,
I am using DS1631 driver from CCS. However, i always get t = 1E1E. I have check the datasheet from maxim-ic.com, it shows that the LSB must be always zero. Can you point me out where i did wrongly?
Code:
#include "DS1631.C"
#include <math.h>
void main() {
int16 t;
init_temp();
while(1) {
t = read_full_temp();
printf("\n\r t: %4LX \n\r", t);
getc();
}
}