Moving the bytes in an 8-bit port on the condition (by maxxir)
Hi Jonathan!
How to implement in the LdMicro following code:
if (PINA&0x01)
{
PORTB = 0x32; // Or any other value
}
else
{
PORTB = 0x89; // Or any other value
}
Can I move the byte at the condition?
(no subject) (by Joao Pereira)
Hello maxxir,
You must make an converter from decimal to binary. You knwo that
----| |---| |---- this is an "AND" logic
____|---| |---|____ This is an "OR" logic
|---| |---|