Interfacing DS1603 to PIC 16F877


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Posts
    7

    Default Interfacing DS1603 to PIC 16F877

    Hi.

    I'm new here to the forum so apologise for jumping in straight away with a question.

    I have spent a few months playing with PIC's and have learnt enough now to create a system to control the various devices installed in my caravan. My most recent example is a 16F628 based 'Autofill' water tank level controller with LCD readout of tank levels.

    For my next project, I plan to use a 16F877 with a menu to control various devices whilst at the same time displaying the charge state of the auxiliary batteries and the time & date on a 4 x 20 LCD display.

    I have completed a program including a menu to monitor battery voltages etc and display them all on the LCD but my problem is IF try to include a piece of code which keeps track of time I feel it will not be accurate enough while the PIC is away completing other tasks it will affect the timekeeping section of the program.

    I have scraped around and found a part in the junk box "DS1603" for which the Data sheet can be found HERE which appears to keep track of time for me but I have no idea how to interface this device nor have I any idea how to create the software algorithm which the data sheet states will be required.

    Has anyone ever dealt with this part before "DS1603" or can anyone point me in the right direction on interfacing this device and creating the correct software to read/write it? Then converting it to a usable string ready to print on an LCD? An example would be great as I have learnt more from reading other peoples code and trying to understand it. I find datasheets often help but they confuse the hell out of me at times.

    Fingers crossed.

    Paul.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Probably you don't need it at all. Do a search for Elapsed Timer Demo and Olympic Timer in this forum.

    http://www.picbasic.co.uk/forum/showthread.php?t=190

    http://www.picbasic.co.uk/forum/showthread.php?t=632

    HTH
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Feb 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Hey, Thanks for the very quick reply, I'm having a read up on it now.

  4. #4
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Just a suggestion - if you are making a whole bunch of neat little projects, I'd stick with the 18F family. They offer a lot of advantages and don't cost that much more.
    Charles Linquist

  5. #5
    Join Date
    Feb 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles Linquis View Post
    Just a suggestion - if you are making a whole bunch of neat little projects, I'd stick with the 18F family. They offer a lot of advantages and don't cost that much more.
    I have heard that a few times from a few people. I have a few 16F type available at the moment but when I've used them all up I might look into buying the 18F's next.

Similar Threads

  1. how can I make 1 wire between two pic 16f877
    By povulon in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th July 2008, 14:44
  2. SPI Communication between two pic 16f877
    By anti83 in forum Serial
    Replies: 1
    Last Post: - 5th July 2008, 21:06
  3. Interfacing two PIC micros
    By sajid in forum General
    Replies: 12
    Last Post: - 26th May 2007, 06:58
  4. serial communication between CMUcam and PIC 16F877
    By gengkeys in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th March 2007, 06:43
  5. Use the PIC 16f877 or 877A instead of shift registers.
    By tsanders in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th October 2006, 17:23

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