Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
dim a as byte
'If PORTB were the port where BCD is input
a = BCD2Dec(PORTB)
unsigned char a;
a= BCD2Dec(PORTB);
unsigned char a;
a = ( ( (PORTB & 0xF0) / 10 ) << 4) + (PORTB & 0x0F) ;
dim a as byte
a = ( ( (PORTB and 0xF0) div 10) << 4) + (PORTB & 0x0F) ;
i have input 11001000 and i want to assign it equal to 360 degree..how can i write the code?this input is for the counter to increase it reading by 1 each time it cross the x-axis of the sine wave...
pisces12 said:hi...
what is the difference between bcd and binary code?