yuvarajbe
Newbie level 5
hello ,
i am working on AT89C2051, i am trying to make a simple code as a start up for my full project .
i wrote i code just to switch the led on at P3^1 , it works in proteus but it is not working in real hardware .
also i tried to wrote a simple code in c language using Keil platform, and it burner by Willar Programmer. Here with I attached my code
anyone can give a help to solve the problem .
code:
i am working on AT89C2051, i am trying to make a simple code as a start up for my full project .
i wrote i code just to switch the led on at P3^1 , it works in proteus but it is not working in real hardware .
also i tried to wrote a simple code in c language using Keil platform, and it burner by Willar Programmer. Here with I attached my code
anyone can give a help to solve the problem .
code:
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #include <at892051.h> /*function for delay of 1 sec*/ sbit p3=P3^1; void delay() { unsigned int x; for(x=0;x<33000;x++); } main() { int cnt = 0; for (;;) { p3=1; delay(); p3=0; delay(); } }
Attachments
Last edited by a moderator: