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.

another simple C winavr question plz

Status
Not open for further replies.

Encrypted

Advanced Member level 4
Joined
May 28, 2001
Messages
115
Helped
17
Reputation
36
Reaction score
5
Trophy points
1,298
Activity points
705
If i is greater than RC5RESAMPLE divided by 2 then level = 1, if not level = 0.
 

Terminator Electricity

Member level 5
Joined
Feb 2, 2006
Messages
91
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,973
Thanks ,, but i have another question plz

how would i define a 10 bits integer or char

for example unsigned char is 8 bits ,, if i want a 10 bits variable ,, what should i do ?
 

btbass

Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,897
Helped
438
Reputation
880
Reaction score
287
Trophy points
1,363
Location
Oberon
Activity points
12,861
Just define an int, 16 bits, then
my 10bit = int & 0x3ff
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top