E_KARVELAs
Joined: 14 Feb 2007 Posts: 46 Location: Greece & Cyprus
|
How do i change resolution bit on DS1631.c driver? |
Posted: Sat Mar 01, 2008 1:55 pm |
|
|
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 ---- |
|