Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

New Articles From Microcontroller Tips

Back
Top