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.
Thanks for your help guys. This is my first embedded project so I have absolutly no idea which 7-segment display I need; actually, I have no idea what I need! (resonators, resistors) I have only a basic knowledge of electronics. Frankly, I am getting a little bored of desktop programming and I am looking for a little challenge. I am ordering the parts I need: breadboard, programmer. I am trying to get the program written by the time I gather all the parts. So, I think I understand using 1 port for all 6 displays. (2 for hours, 2 for minutes, and 2 for seconds) How would I connect all 6 displays to 1 port? Do you have any suggestions on the hardware I will need to build this beast? Once I get the parts and the software, could I ask for help building the circuit here, or is this forum stricktly for software/keil. Thanks again, Matt Pociask
There's nothing wrong about asking questions, howewer, do some homework first. Try to find different application notes about 8051 family - there's a lot of them. Use Google for search. Also, try to obtain some book on 8051 design. Amazon is a good start for that. Then, when all resources are exhausted, ask for help here - people are willing to assist, but the question must be specific, not a general one like "How can I build this or that". regards Dejan