real time clock


Closed Thread
Results 1 to 40 of 45

Thread: real time clock

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Default

    I think i'll stick to 4Mhz for now . . .

  2. #2


    Did you find this post helpful? Yes | No

    Unhappy enabling trickle charging

    this is a very belated response to shahidali55.

    I've added a tiny bit of code to "ds1302_user_interface.txt" to enable trickle charging. This is a small feat, but helped me understand how the register addressing and definitions are used.

    edit: I'm using a 5v 0.47f supercap which doesn't need diodes or resistors, so "trickledef" below uses a bit sequence 1010 (for TCS) 00 (for DS) and 00 (for RS), see page 7 of the DS1302 datasheet for other options

    cheers,
    Tobie

    ==========================

    'additional variables
    writechrg var byte
    tricklereg var byte
    writechrg = $91 'Write Command for the trickle register
    trickledef = $A0 'definition for a supercap which uses no diodes or resistors

    ' this goes in the "setup" subroutine, not as the statement first or last though
    reg_adr = writechrg
    outbyte = tricklereg
    gosub w_out
    Last edited by [email protected]; - 6th September 2007 at 16:50.

  3. #3


    Did you find this post helpful? Yes | No

    Default Supercap

    hi,

    here's a modified version with trickle charge enabled for a supercap. Note this includes no LCD interface.

    A schematic is included in this pdf http://www.parallax.com/dl/appnt/jav2/appnote2.pdf

    Here's a datasheet for the supercap, I used the 0.47f component: http://rocky.digikey.com/WebLib/Coop...capacitors.pdf
    Attached Files Attached Files

  4. #4
    Join Date
    Jan 2007
    Posts
    3


    Did you find this post helpful? Yes | No

    Question Alarm Time Problem

    Hi Melanie,

    I used your code MN1307.txt which is very good coded and easy to understand. I just want to add some alarm time. I know and did with some if...then...endif way.

    Now simply it works on alarm set time but output (portb.7) blinks and do not High permanently. I tried to find some solution but it is very simple that there should not be any problem with if...then...endif. But I think it is somethink with hardware related.

    Please help me in this regard because I must need this Alarm Clock. Thanks in anticipation.

    Best Regards,

    Shahzad

  5. #5
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Thumbs up

    Thanks for the trickle charge routines Tobie . . .

Similar Threads

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

Members who have read this thread : 3

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