May 31, 2016 #1 Y yanuma Newbie level 5 Joined Jun 25, 2015 Messages 8 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 24 at89c2051 p3.7 end press the button that connected the port p1.6 and I want to leave off exit 10 seconds apart in the port p1.7 Arlie
at89c2051 p3.7 end press the button that connected the port p1.6 and I want to leave off exit 10 seconds apart in the port p1.7 Arlie
May 31, 2016 #2 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 25,287 Helped 4,874 Reputation 9,769 Reaction score 5,569 Trophy points 1,393 Activity points 169,331 Hi, To me it is not clear what you need. Maybe a picture could help. Klaus
May 31, 2016 #3 Y yanuma Newbie level 5 Joined Jun 25, 2015 Messages 8 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 24 Code: #include<reg.51.c> #include<delay.> sbit buton_PIN=3^7 sbit led_PIN =1^6 sbit ledd_PIN=1^7 void() { basla: if(butonpin3_7: ledpin1_6high: delay_ms_50 : leddpin1_6LOW: THEN(ledpin1_7high: delay_ms50: leddpin1_7LOW: goto basla: } I wrote a code like this - - - Updated - - - [CODE Last edited: May 31, 2016
Code: #include<reg.51.c> #include<delay.> sbit buton_PIN=3^7 sbit led_PIN =1^6 sbit ledd_PIN=1^7 void() { basla: if(butonpin3_7: ledpin1_6high: delay_ms_50 : leddpin1_6LOW: THEN(ledpin1_7high: delay_ms50: leddpin1_7LOW: goto basla: } I wrote a code like this - - - Updated - - - [CODE
May 31, 2016 #4 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 25,287 Helped 4,874 Reputation 9,769 Reaction score 5,569 Trophy points 1,393 Activity points 169,331 Hi, Please be more descriptive. * Where do you need help? * What do you expect? * What happens instead? Klaus
Hi, Please be more descriptive. * Where do you need help? * What do you expect? * What happens instead? Klaus
May 31, 2016 #5 Y yanuma Newbie level 5 Joined Jun 25, 2015 Messages 8 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 24 KlausST hi pic. as I have written in this integrated circuit in the same basic language but I couldn't do it in C language - - - Updated - - - where is the mistake in this code
KlausST hi pic. as I have written in this integrated circuit in the same basic language but I couldn't do it in C language - - - Updated - - - where is the mistake in this code
May 31, 2016 #6 M Ma3ix Member level 2 Joined Dec 17, 2015 Messages 43 Helped 0 Reputation 0 Reaction score 0 Trophy points 6 Activity points 375 try simulation without delay function,subroutine and for one led pin
May 31, 2016 #7 Y yanuma Newbie level 5 Joined Jun 25, 2015 Messages 8 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 24 Is there any problem in code that i have written? - - - Updated - - - at89c2051 When I push and pull the button in p3.7, p1.7 will out for 10 seconds after that p1.6 will out and the programme will return the begining.
Is there any problem in code that i have written? - - - Updated - - - at89c2051 When I push and pull the button in p3.7, p1.7 will out for 10 seconds after that p1.6 will out and the programme will return the begining.
May 31, 2016 #8 xenos Full Member level 4 Joined May 9, 2015 Messages 212 Helped 82 Reputation 164 Reaction score 81 Trophy points 28 Location 127.0.0.1 Activity points 1,182 You have not post C code. Almost every line has syntax errors. You should keep using basic, or you will neer to dive in C study. Try K&R (Kernigham & Richie bible book: the C programming language) or other tutorials
You have not post C code. Almost every line has syntax errors. You should keep using basic, or you will neer to dive in C study. Try K&R (Kernigham & Richie bible book: the C programming language) or other tutorials