Re: Anyone can explain this code please? (Read temperature with DS1620 +pic 16F628)
A variable is a space in memory which you have given a name to and declared it's size, or it is a register, port etc . . . which you have given an alias to.
When you post "found code" it is usually helpful to post a link to where you found it too.
Code:
DST var PortB.0 'most likely DQ pin 1 of ds1620
CLK Var PortB.1 'pin 2 of ds1620
RST var PortB.2 'pin 3 " " " "
SER var PortB.3 'pin user is sending information to serial display
Temp var byte 'store rew received data
GCel var byte 'var to store temp/2
http://datasheets.maximintegrated.com/en/ds/DS1620.pdf
Last edited by Archangel; - 10th November 2014 at 18:39.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks