| ??? 10/08/02 09:02 Read: times |
#30382 - RE: 89c51 behave.. |
Shahzad Aslam wrote: ------------------------------- eric its the program i write in C is not working .... compiler is okey and i think the hardware is also okey shahzad try using a longer waiting period for the LED to lit up, in lorder to find out if the hardware is ok. a waiting loop,instead of in interrupt, like this might help to detect the right functioning: void wait() { char i,j,k; for(i=0;i<3;i++) for(j=0;i<255;j++) for(k=0;k<255;k++); } main() { while (1){ litup(); wait() litoff(); wait() }; }; the wait func should be enough slow |
| Topic | Author | Date |
| 89c51 behave strange | 01/01/70 00:00 | |
| correct statement .... | 01/01/70 00:00 | |
| RE: correct statement .... | 01/01/70 00:00 | |
| RE: correct statement .... | 01/01/70 00:00 | |
| RE: correct statement .... | 01/01/70 00:00 | |
| RE: correct statement .... | 01/01/70 00:00 | |
| RE: 89c51 behave strange | 01/01/70 00:00 | |
| RE: 89c51 behave strange | 01/01/70 00:00 | |
| RE: again confusing | 01/01/70 00:00 | |
| RE: 89c51 behave strange | 01/01/70 00:00 | |
| RE: 89c51 behave strange | 01/01/70 00:00 | |
| RE: again confusing | 01/01/70 00:00 | |
| RE: again confusing | 01/01/70 00:00 | |
| RE: correct statement .... | 01/01/70 00:00 | |
| RE: again confusing | 01/01/70 00:00 | |
| RE: 89c51 behave strange | 01/01/70 00:00 | |
| RE: eric | 01/01/70 00:00 | |
| RE: 89c51 behave.. | 01/01/70 00:00 | |
| RE: 89c51 behave strange | 01/01/70 00:00 | |
RE: 89c51 behave strange | 01/01/70 00:00 |



