I think i'll stick to 4Mhz for now . . .
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.
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
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
Bookmarks