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.
Right now I am tinkering around with embedded programming; desktop programming is getting a little boring. I am trying to make a clock. The part I am having trouble with is displaying the time. I need to know how a numeric display would hook up to my processor. Would it plug into a I/O port? A Pin? I need to know because as of right now, I am assuming that the display hooks up to a port. I am planning on using a Atmel 8052 family processor with 4 I/0 Ports. Port 0 will be used for switches that will set the time Port 1 will be used for the Hours display Port 2 will be used for the Minutes display Port 3 will be used for the Seconds display (i want a seconds display just for kicks) Therefore, to I would send the time value to the whole port: P1 = 12; for example. I am using the Kiel compiler and I can post my code if it will help.
Different display devices use different methods of communication. They range anywhere from 1 output port pin connected to an LCD/LED segment to scrolling RS-232 input. You really need to choose your display device hardware first. Then you'll know how to code for it. What is the display for your clock that you are trying to drive? It sounds as though you don't have one yet, but are looking for suggestions? What hardware do you get on the eval board for your Atmel processor?