LCD/DEBUG Screen and DS1302
hmlittle59
Posts: 404
Hello Everyone,
I'm trying to learn how and why the two screens are showing ASCII Char. but the routines only have HEX commands in them? I've read some info. on the forum, but know clear cut meaning as to why.
Thanks for any help
hmlittle59
I'm trying to learn how and why the two screens are showing ASCII Char. but the routines only have HEX commands in them? I've read some info. on the forum, but know clear cut meaning as to why.
Thanks for any help
hmlittle59
Comments
The DS1302 doesn’t have any formatting commands in it. Are you referring to a specific piece of code or a routine?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Yes, I put a count up/down routine in the DS1302 clock demo: work = year: (work = work + 1 //20):year = work. But when I'm incrementing up/down & re-display the 'year' value, its in true HEX(ABCDEF)...What gives. Do I need to convert it back for screen display.
Thanks for any help
hmlittle59
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I got it working, I did find a routine on the forum that did the conversion. All of my code seems to be working now.
1) Detect if DS1302 is running or not
2) Use defaults if not running
3) Adjust time/date/year/day of week/ w/push button(s), rolling back to 0 or 1
4) Set Clock with a third switch
5) Set and monitor for alarm
6) Bunch of other routines and 5% space left...not bad
thanks for all the help and support
hmlittle59
ps. I want to move this to a proto. board any recommendations?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support