Menu

DS1620 Temperature sensor

Help
2007-03-23
2013-05-30
  • Nobody/Anonymous

    Hello!

    I want to use a DS1620 with my PIC16F876. I have been using the DS1620 with my Basic Stamp using PBasic's SHIFTIN and Shiftout command.
    These commands are not implemented yet in GCBasic and I read a post about using SPI instead. Can anyone tell me what the source code would look like to accomplish this. I am completly new to GCB and Micro controllers.
    Thanks in advance!

    Alex

    PS: I have also accidentally posted this message in the Compiler forum!!

     
    • Nobody/Anonymous

      Whoops, posted answer in comiler forum before the move.  Please answer back here tho if any more questions.

      I had sent Hugh, the administrator, a DS18s20/DS18b20 header file a while ago which would have the parts to keep track of the 9 bit data used by the DS1620.  You could also modify the word size subroutine to send and receive the TstatH and TstatL info.

      The SPI_TX and SPI_RX funcions may work for you.  Just can't remember if the DS1620 follows the SPI protocol, or something else.

      Kent

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.