Anyone can explain this code please? (Read temperature with DS1620 +pic 16F628)


Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default 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.

Similar Threads

  1. Timer code examples for PIC 16F628
    By Tastature in forum mel PIC BASIC
    Replies: 6
    Last Post: - 22nd November 2013, 02:47
  2. Crashing 16F628 Code
    By hhaplant in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th March 2012, 09:40
  3. read temperature
    By breeno in forum General
    Replies: 16
    Last Post: - 6th October 2010, 12:55
  4. DS1620 temperature sensor in high resolution mode
    By crodan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th March 2007, 04:03
  5. read temperature sensor
    By breeno in forum General
    Replies: 5
    Last Post: - 10th January 2005, 06:04

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts