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.
@Tahmid. Thank you for your showing me how to use File Registers. But it still doesn't get right result. I'm using Window 7 Professional (MSDN AA) and Hitech C Lite 9.83.
I'm using MPLAB 8.56 and Hitech C 9.71a for PIC16F887.
I've tried with the newest version of HTC, 9.83 Lite. OR operator in Style 2 code still not working with the number 0x01.
This is my problem!
I've tried setting optimization level to 1 (minimum level) in the compiler, but it still not working (tested with Lite and Pro ver).
@arunsharma0731: yes, this OR operator works well with any number but 0x01. :x
Yes, code is right. 2 styles are the same meaning in C language.
But when I use style 2 like this
gcan[position + j] = ((gcan[position + j]) << 1) | 0x01;
it works like this
gcan[position + j] = ((gcan[position + j]) << 1);
OR operator doesn't work!! :?: The Hitech C compiler ignore OR operator...
Hello, I wrote this code for PIC16F887 uC and use Hitech C to compile. There's no error or warning. But the code doesn't work in the right way when i use Style 2. Style 1 is OK. I don't know the reason. Anybody helps me to explain this problem plz!
unsigned char gcan[5] =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.