We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am a beginner and am looking for example code to make a clock or a timer with 89C668. using 7 segment or small LCD.
"I am a beginner" In that case, start by reading the uVision Getting Started guide, and working through the example projects in it. Then you will need the following documents, which describe the 8051 and its architecture: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf Then think about the "components" you will need for a clock: * A timebase - the "tick" of the clock; * A routine to count in hexagesimal (base 60 - for the minutes & seconds) and base 24 * A routine to convert numbers to 7-segment format etc Put in the groundwork; give it some thought - call back if you get stuck. Have fun!