7 segments clock
The_Apprentice
Posts: 15
Hi everybody,
I need some help, i'm trying to build a 4 digits 7 segments clock using hc595, i woul like to know if somebody have a code sample for this work.
Thank you
I need some help, i'm trying to build a 4 digits 7 segments clock using hc595, i woul like to know if somebody have a code sample for this work.
Thank you
Comments
http://forums.parallax.com/showthread.php?p=552892
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
The raw time counter [noparse][[/noparse]only one]
The seconds, minutes, and hours counters. [noparse][[/noparse]three]
The 7 segment display buffers [noparse][[/noparse]four]
The seven segment display will use a single byte to properly display each digit.· These have to be put into four consectutive bytes of RAM for them to be shifted out.
The raw time is usually calculated as seconds [noparse][[/noparse]so 60x60x24=8640] which requires about 12 bits to count, so the raw time is usually stored as·a 16bit word in two bytes.
Usually clock time is stored and incremented in Binary Coded Decimal because it can store two digits [noparse][[/noparse]like seconds, minutes, and hours] as one byte.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
I like your project very much. I will buil one in the future.
But I would like to use use the hc595 to drive this 4 7segmentes. I have also some 5x7 and 8x8 Dot Matrix led's that i would like to use, same using hc595.
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax