I am trying to set the time using a minuites button and an hours button. I was using a ramp generator that creats decimal output, but the DS13202 uses hex input. Any suggestions on how to do this.
Dave
The DS1302 uses BCD, not Hex to store values. In order to increment the values and have them properly encode, you can use the following code snippets to convert the values from BCD to DEC to manipulate and then from DEC to BCD to send back to the DS1302. Simple change the name counter to the variable you're trying to modify. Use the BCD to DEC routine to before making changes and the DEC to BCD to store those changes back to the DS1302. I hope this helps.
Comments
You really have to be much more specific about what you want to do if you want any kind of specific help.
Dave
I hope you find it useful