CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

How do i change resolution bit on DS1631.c driver?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
E_KARVELAs



Joined: 14 Feb 2007
Posts: 46
Location: Greece & Cyprus

View user's profile Send private message

How do i change resolution bit on DS1631.c driver?
PostPosted: Sat Mar 01, 2008 1:55 pm     Reply with quote

hi
i need to change the resolution bit on the ds1631.c driver
from 12 bit to 10bit
as i found on datasheet i need to
CHANGE and write to the CONFIGURATION REGISTER the values of
R0=1
R1=0
Driver
Code:

void init_temp() {
   output_high(DAL_SDA);
   output_high(DAL_SCL);
   i2c_start();
   i2c_write(0x90);
   i2c_write(0x51);
   i2c_stop();
   temp_config(0xc); //  <------- i tryed to change this one from (0xc) to
}      //   R0=1,R1=0   0bxxxx0100=(0x4) but no results

the driver for me works fine but i need to change the resolution from 12bit to 10bit.
maybe someone has already done it.
Thanks
_________________
---- GREECE ----
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group