Is there any of you who might know how to interface the DS1620 Digital
thermometer/thermostat with a PIC16C84? Can you give me any pointers or code
that could help me with that?
Is there any of you who might know how to interface the DS1620 Digital
thermometer/thermostat with a PIC16C84? Can you give me any pointers or code
that could help me with that?
>
> Hello to all of you!
>
> Is there any of you who might know how to interface the DS1620 Digital
> thermometer/thermostat with a PIC16C84? Can you give me any pointers or code
> that could help me with that?
You may want to look at the DS1820. It has two nice features over the DS1620,
a one wire interface and lack of calibration constants that can be messed up.
Anyway check out http://www.circellar.com. Jeff Bachiachi had an article on interfacing
a PIC to the 1620
At 18:19 19/03/1997 -0500, you wrote:
>Hello to all of you!
>
>Is there any of you who might know how to interface the DS1620 Digital
>thermometer/thermostat with a PIC16C84? Can you give me any pointers or code
>that could help me with that?
>
>Thank you!
>Jean-Francois J.
>---------------
>Jean-Francois & Alain Joly
>jolyalKILLspamcapitalnet.com
>
>Hi, my name is Alex from Argentina, and i developed a DS-1620 editor,
small, cheap and with a LCD display of 16x2 chars.
I personally developed all routines to comunicate with DS 1620, which I use
it in a temperature control, in a vending machine.
I have no problem in send you the routines, but now I'm writing from my
friend's house, i promise i will send you the staff in this days.
Please let me now what you are developing and what you have.
Alex.
PD: I'm looking information about Graphics LCD displays, i own a 128x64
one, from powertip, anybody knows where i can get more information on the
web about powertip's LCDs datasheets and aplication examples ???.
At 18:19 19/03/1997 -0500, you wrote:
>Hello to all of you!
>
>Is there any of you who might know how to interface the DS1620 Digital
>thermometer/thermostat with a PIC16C84? Can you give me any pointers or code
>that could help me with that?
>
>Thank you!
>Jean-Francois J.
>---------------
>Jean-Francois & Alain Joly
>.....jolyalKILLspam.....capitalnet.com
>
>Hello, here's the salvation, please include my name in your code
(Alejandro Pieroni )
Bye!!!
;**************************************************************
; DS1620 ROUTINES
;**************************************************************
;**************** CHECK PRESENCE ********
CheckDS1620:
clrwdt ; clear Watchdog
CBANK0 ; set bank 0
call LCD_Clr ; clear lcd
movlw CheckScreen_l1a ;
call Print_Table ;
bsf CHIPPORT,PWR_ON ; turn on DS1620
sleep ; wait to stabilize
nop ;
sleep ; wait to stabilize
nop ;
sleep ; wait to stabilize
nop ;
sleep ; wait to stabilize
nop ;
sleep ; wait to stabilize
nop ;
sleep ; wait to stabilize
nop ;
call DS1620_READCFG ; read config
movfw CONFIG_REGISTER ; put config in w
andlw b'00001100' ;
sublw b'00001000' ;
skpz ; skip if zero
goto DS1620_ERROR ;
movlw SND_LINE ; 2nd line of display
call LCD_Cmd ; do it
movlw CheckScreen_l1b ;
call Print_Table ;
; movlw 0x02 ;
; movwf ACC_C ; CPU MODE
; call DS1620_WRITECFG ;
; movlw .12 ;
; movwf ACC_C ;
; clrf ACC_D ;
; call DS1620_WRITETH ; 6 grados celsius TOP
; movlw .6 ;
; movwf ACC_C ;
; clrf ACC_D ;
; call DS1620_WRITETL ; 3 grados celsius BOTTOM
call DS1620_STARTCONV ; start conversion
sleep ;
nop ;
sleep ;
nop ;
return ;
DS1620_ERROR:
bcf CHIPPORT,PWR_ON ; turn off DS1620
movlw SND_LINE ; 2nd line of display
call LCD_Cmd ; do it
movlw CheckScreen_l1c ;
call Print_Table ;
_error nop ;
sleep ;
nop ;
goto _error ;
;**************** READ COMMANDS *********
DS1620_READTEMP: ;
movlw READTEMP ;Read Temperature command in w
call DS1620_SENDCMD ; send it to DS1620 ( 8 bits )
call DS1620_READ9 ; Read Temperature (9 bits)
movfw ACC_A ;
movwf TEMPERATURE ;
movfw ACC_B ;
movwf TEMPERATURE9 ;
call DS1620_TOGGLE ;
return ;
DS1620_READTH: ;
movlw READTH ; Read Temperature High in w
call DS1620_SENDCMD ; send it to DS1620 ( 8 bits )
call DS1620_READ9 ; Read Temperature (9 bits)
movfw ACC_A ;
movwf TEMPERATURE_HIGH ;
movfw ACC_B ;
movwf TEMPERATURE_HIGH9 ;
call DS1620_TOGGLE ;
return ;
DS1620_READTL: ;
movlw READTL ; Read Temperature Low in w
call DS1620_SENDCMD ; send it to DS1620 ( 8 bits )
call DS1620_READ9 ; Read Temperature (9 bits)
movfw ACC_A ;
movwf TEMPERATURE_LOW ;
movfw ACC_B ;
movwf TEMPERATURE_LOW9 ;
call DS1620_TOGGLE ;
return ;
DS1620_READ9:
call READ_8 ;
bsf CHIPPORT,CLK ; CLK=1 -> DQ HiZ
nop ;
bcf CHIPPORT,CLK ; clk LOW -> DS1620 put data in DQ
movlw .1 ;
btfss CHIPPORT,DQ ; test if DQ=1
movlw .0 ;
movwf ACC_B ; 9 bit
_rend bsf CHIPPORT,CLK ; DQ to HiZ
nop ;
bcf CHIPPORT,NOT_RST; reset device
CBANK1 ; set bank 1
bcf CHIPTRIS,DQ ; DQ as output
CBANK0 ; set bank 0
return ; LSB->ACC_A MSB->ACC_B
READ_8:
CBANK1 ; set bank 1
bsf CHIPTRIS,DQ ; DQ as input
CBANK0 ; set bank 0
movlw .8 ; cant de bits 8
movwf TEMP ; en Temp
_dloop bsf CHIPPORT,CLK ; CLK=1 -> DQ HiZ
nop ;
bcf CHIPPORT,CLK ; clk LOW -> DS1620 put data in DQ
setc ; carry=1
btfss CHIPPORT,DQ ; test if DQ=1
clrc ; no, carry=0
rrf ACC_A ; put bit in ACC_A
decfsz TEMP ;
goto _dloop ;
return ;
>Date: Fri, 21 Mar 1997 00:34:27 -0300
>To: pic microcontroller discussion list <EraseMEPICLISTspam_OUTTakeThisOuTMITVMA.MIT.EDU>
>From: francisco Miretti <fmirettispam_OUTinteractive.com.ar>
>Subject: Re: DS1620 Digital Thermometer interface
>
>At 18:19 19/03/1997 -0500, you wrote:
>>Hello to all of you!
>>
>>Is there any of you who might know how to interface the DS1620 Digital
>>thermometer/thermostat with a PIC16C84? Can you give me any pointers or code
>>that could help me with that?
>>
>>Thank you!
>>Jean-Francois J.
>>---------------
>>Jean-Francois & Alain Joly
>>@spam@jolyalKILLspamcapitalnet.com
>>
>>Hi, my name is Alex from Argentina, and i developed a DS-1620 editor,
small, cheap and with a LCD display of 16x2 chars.
>I personally developed all routines to comunicate with DS 1620, which I
use it in a temperature control, in a vending machine.
>I have no problem in send you the routines, but now I'm writing from my
friend's house, i promise i will send you the staff in this days.
>Please let me now what you are developing and what you have.
> Alex.
>
>PD: I'm looking information about Graphics LCD displays, i own a 128x64
one, from powertip, anybody knows where i can get more information on the
web about powertip's LCDs datasheets and aplication examples ???.
>