DS1631 error

Status
Not open for further replies.
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();
}

}
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…