View previous topic :: View next topic |
Author |
Message |
atai21
Joined: 30 Dec 2010 Posts: 31
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9245 Location: Greensville,Ontario
|
|
Posted: Sat Mar 05, 2011 1:50 pm |
|
|
quick answer , as written no..
however..it an be rewritten to work.
please read the datasheets of these devices.
compare the timing and structure of the communications required. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Mar 05, 2011 2:52 pm |
|
|
CCS has a driver for the ds1621, and it can handle multiple ds1621's.
It's in this directory:
Quote: |
c:\program files\picc\drivers\ds1621m.c
|
It has these functions:
Quote: |
void init_temp(int address)
BYTE read_high_temp(int address) // Returns degrees F (0-255)
signed int read_low_temp(int address) // Returns degrees F (-67 to 127)
signed long read_full_temp(int address) // Returns degrees F (-67 to 257)
|
The 'address' parameter is a number from 0 to 7, which corresponds to
the address pins A0, A1, A2 on each ds1621. For example, if you connect
A0,A1,A2 to ground, the address will be 0. If you connect A0 to +5v and
A1, A2 to ground, the address will be 1. Etc. |
|
|
atai21
Joined: 30 Dec 2010 Posts: 31
|
|
Posted: Sun Mar 06, 2011 6:57 pm |
|
|
TQ for your fast reply |
|
|
|