??? 03/16/07 13:55 Modified: 03/16/07 13:59 Read: times |
#135104 - could this be it ? Responding to: ???'s previous message |
void main(void)
{ while (1) { delay(); P1=0x00; } } besides ther will be no blink of the LED since the port is just set to zero. if you expect the LED to change after the delay (the port is set to '1' at reset), that may very well happen, but the next instructions (that you did not program) may set the LED back before you even notice. You need a LED i a given state for more than 100ms to make certain that you see the blink. Erik |
Topic | Author | Date |
Help with the delay program | 01/01/70 00:00 | |
What does it do? | 01/01/70 00:00 | |
Hints. | 01/01/70 00:00 | |
Check with debugger | 01/01/70 00:00 | |
could this be it ? | 01/01/70 00:00 | |
Difficult to see | 01/01/70 00:00 | |
that depends | 01/01/70 00:00 | |
RET in main | 01/01/70 00:00 | |
nope - and compiler dependent | 01/01/70 00:00 | |
RET in functions | 01/01/70 00:00 | |
how do you know that ? | 01/01/70 00:00 | |
Because of Startup | 01/01/70 00:00 | |
ah | 01/01/70 00:00 | |
some contra | 01/01/70 00:00 | |
in other words - and who cares![]() | 01/01/70 00:00 |