Embedded C/C++

Moderators: Lundin
Number of threads: 199
Number of posts: 374

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Can you help me with Defining header file and setting bits ?? Posted by nickatnite on 13 Apr 2009 at 1:26 PM
I need to do the following--
define a bit --
unsigned char data Bits 0x20;

then define the bits:
sbit GoingHigh Bits^0;

then i need a counter byte, i should define it in my header file

unsigned char data Counter 0x30;


Can you help me with this , I am a complete newbie . I keep getting errors. Thank you.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.