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.

PLS help using "OR" function in PIC C

Status
Not open for further replies.

ZS1BFE

Member level 1
Member level 1
Joined
Nov 17, 2007
Messages
40
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
Cape Town South Africa
Visit site
Activity points
1,612
Hi,
I want to use an OR function, but cannot find the right EXAMPLE for this.
A.B,C,D,& E are all declared VAR.(int)
How do I do this?
if a = 1 || b = 1 || c = 1 then D= 50.

Possible:
if (a || b || c)
d = 50;

Also
if input b0 = 1 || input B1 = 1 , then E = 50.

Possible
if (input_high(pin_B0) || input_high(pin_B1)
E = 50;

Thx
Lourens
CapeTown,SA
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top