Hello all,
I am not good in C language, and there are many examples in C. I try to understand or convert the code. For now can someone please tell me how to convert/translate C bit operation to Bascom-AVR. I am giving some examples bellow. How to write the same in Bascom-AVR:
DDRB=(0<<DDB7) | (0<<DDB6) | (1<<DDB5) | (0<<DDB4) | (0<<DDB3) | (1<<DDB2) | (0<<DDB1) | (0<<DDB0);
TCCR2B |= (1<<CS20) ;
TCCR2B &= ~(1<<CS21) ;
TCCR1B = TCCR1B & ~7;
Thanks.
[b:1a70a89d1b][color=red:1a70a89d1b](BASCOM-AVR version : 2.0.7.6 )[/b:1a70a89d1b][/color:1a70a89d1b]
↧