real time clock - Page 2


Closed Thread
Page 2 of 2 FirstFirst 12
Results 41 to 45 of 45

Thread: real time clock

  1. #41
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: real time clock

    From the manual
    BIN, DEC and HEX may also be followed by a number. Normally, these modifiers display exactly as many digits as are necessary, zero blanked (leading zeros are not sent). However, if a number follows the modifier, SEROUT2 will always send that number of digits, adding leading zeros as necessary. It will also trim of any extra high order digits. For example, BIN6 8 would send A001000" and BIN2 8 would send A00".
    Dave
    Always wear safety glasses while programming.

  2. #42
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: real time clock

    I know this is old thread but have a need fro RTC and its using the ds1302

    i did have a quick question in relation to how the I/O port is set on the PIC for I/O the interface to the DS1302 , in that the sample code does not change TRIS bits on the PIC from an output to an input for when it doing a read ( shiftin command ) of the DS1302 -

    does issuing the shiftin command automatically change the tris bits for that port to allow input ???
    cheers

    Sheldon

  3. #43
    Join Date
    Apr 2012
    Location
    Ptolemaida
    Posts
    50


    Did you find this post helpful? Yes | No

    Default Re: real time clock

    Hello longpole, i've been reading the thread today and some others about 1302 and i think shiftin and shiftout does all the work with tris and with clk. Just send the right registers for reading/writing and u should be fine.

  4. #44
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: real time clock

    yes it does change the input /output of the tris control , how ever it not documented in any of the manuals or online help files that i have found to date

  5. #45
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Re: real time clock

    hello know the post and very old I'm in need of a little help on this clock project using the DS1302 with alarm it even works more Think it has error, If anyone can help me I thank here all the files + simulation
    Attached Files Attached Files

Similar Threads

  1. Real Time Clock
    By in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd June 2012, 05:52
  2. real time clock - PCF8583
    By maria in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th April 2010, 16:41
  3. Real time clock ICs
    By Eng4444 in forum mel PIC BASIC Pro
    Replies: 66
    Last Post: - 20th October 2008, 17:05
  4. Real Time Clock
    By savnik in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th December 2006, 03:02
  5. Real time clock... what a headache!
    By Eng4444 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 8th June 2006, 22:56

Members who have read this thread : 4

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