??? 03/16/07 04:30 Read: times |
#135073 - What does it do? Responding to: ???'s previous message |
Note that it is not a PC
I assume from you un comented code. You turn it on then 1 second later the Led Turns on (assuming it is wired correctly). Try void main(void) { P1=0xFF; // Led Off delay(); // wait 1 second P1=0x00; // Led On while(1); // Loop forever } |
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 |