Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me to write simple C code for '51

Status
Not open for further replies.

vudiepdh1

Junior Member level 1
Joined
Sep 30, 2009
Messages
15
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Viet Nam
Activity points
1,379
Help me c code !

I have a small problem with c code in programing 8051! I connect 2 button to p2.0 and p2.1 . Button 1 to increase value Parameter2 and button 2 to decrease value Parameter2 . I compare this Parameter2 with another Parameter1 = Th0*256 +TL0 ! If parameter 2 > parameter 1 then p3.0 =1 contrary p3.1 =1 . Plz help me write this c code! I really need it ! Thank !
 

Re: Help me c code !

Can you show some sample code you already made, it's easier to find your small problem...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top