DS1302 ask for and input load chip


Results 1 to 4 of 4

Threaded View

  1. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: DS1302 ask for and input load chip

    Quote Originally Posted by Dave View Post

    SHIFTOUT DG, CLK, 0, [HEX2 TEMP] ' Send hours
    will not work

    the value needed to be sent is a packed bcd byte not two hex chrs
    consideration also of the 12/24 hour bit must be considered also


    simple way to convert binary hour value in tmp to packed bcd in hour

    HOUR = ((tmp / 10) << 4) + (tmp // 10) ; bin to bcd
    Last edited by richard; - 20th December 2017 at 21:56.
    Warning I'm not a teacher

Similar Threads

  1. Replies: 8
    Last Post: - 22nd January 2016, 18:27
  2. DS1302 Problem, again :(
    By CuriousOne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th May 2014, 10:34
  3. Can you use the same pin as input/output and control led load?
    By FromTheCockpit in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 15th August 2013, 09:28
  4. DS1302 and 18F452
    By Astro in forum mel PIC BASIC
    Replies: 2
    Last Post: - 9th May 2006, 22:02
  5. Ds1302
    By willie in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd October 2005, 18:04

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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