TRIS setting for the DS1302


Results 1 to 29 of 29

Threaded View

  1. #17


    Did you find this post helpful? Yes | No

    Default ok .. i was close then

    @Steve

    My code before you replied ...
    Code:
    setclk:
            high rst         ' Ready for transfer  RTC pin must go high
            Shiftout ds_data, ds_clk, LSBFIRST, [$bf] ' send burst mode control $bf to read all 8 RTC registers in burst mode     
            Shiftout ds_data, ds_clk, LSBFIRST, [rtcsec, rtcmin, rtchr, rtcdate, rtcmonth, rtcday, rtcyear, rtccontrol] send the data
            low rst         ' Reset RTC reset pin
    As you can see I was totally off the mark with the $bf , $be setting !

    Ok but I have read in a lot of posts regarding the DS1302 and BCD conversion ..does this still apply ?

    Kind regards
    Dennis
    Last edited by Dennis; - 22nd February 2010 at 21:03.

Similar Threads

  1. real time clock
    By maria in forum Code Examples
    Replies: 44
    Last Post: - 1st March 2022, 12:13
  2. PICKit2 - warning about configuration words
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 4th August 2009, 14:01
  3. DS1302 16F628 Woes
    By idtat in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th January 2009, 14:15
  4. TRIS E setting for 18F2550
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd May 2007, 07:47
  5. Is LCDOUT setting always al TRIS ?
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th June 2005, 17:02

Members who have read this thread : 1

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