prasad70
Member level 3
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