??? 04/16/04 13:50 Read: times |
#68615 - RE: 8051 and for led Responding to: ???'s previous message |
You say your ciruit does not work. That's possible, but it is not necessarily due to your code. Your hardware could be malfunctioning. This being said, how do you know it is not working? Have you checked the signal on your output pins with an oscilloscope? Maybe the software does work but the current through your LED is to small....
Is the code you copied in your message complete? I seem to be missing some things. e.g. "t" is not initialised. Are you sure it is 0 when you start your loop? Personally I would have used something like "while (t < 100)", but that's probably just a matter of taste... ;-) Furthermore, where do you initialise your timer? Check the tutorial on timers : http://www.8052.com/tuttimer.phtml regards Patrick |
Topic | Author | Date |
8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
on more thing | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led | 01/01/70 00:00 | |
RE: 8051 and for led![]() | 01/01/70 00:00 |