prasad70
Member level 3
- Joined
- Mar 24, 2011
- Messages
- 67
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,288
- Activity points
- 1,690
Dear all,
can some one please explain how 10 bit varaible can be tested using bit test macro ? I am using Hitech .
My requirement is to toggle the status of pin based on value of each bit. Below is the code I used but it is not working.
best/regards
can some one please explain how 10 bit varaible can be tested using bit test macro ? I am using Hitech .
My requirement is to toggle the status of pin based on value of each bit. Below is the code I used but it is not working.
Code:
while(Y<9) {
if(BITTST(Y,9)) HighPulse;
if(!BITTST(Y,9)) LowPulse;
if(N<9) Y=Y<<1;
}
best/regards