DS1302 ask for and input load chip


Results 1 to 4 of 4

Threaded View

  1. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: DS1302 ask for and input load chip

    I believe you need to treat the data as Binary Coded Decimal, However if you enter the data as 2 digits of hexadecimal that should work. Just don't enter any alpha digits, ie. ABCDE or F. Try replacing the lines:

    SERIN2 RX, Baudrate, [DEC2 TEMP] with SERIN2 RX, Baudrate, [HEX2 TEMP]

    and

    SHIFTOUT DG, CLK, 0, [$30] ' Send hours with SHIFTOUT DG, CLK, 0, [HEX2 TEMP] ' Send hours
    Last edited by Dave; - 20th December 2017 at 14:04.
    Dave Purola,
    N8NTA
    EN82fn

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