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




Bookmarks