Posts by Pedro • 11 points
1 post
-
1
votes2
answers102
viewsQ: Create sets for 16-bit variable composed of two 8-bit
I wonder if there is any way to create a define for a "variable" in C that has 16 bits called PORTAB, so that writing: PORTAB = 0xAAFF; is equivalent to: PORTA = 0xAA; PORTB = 0xFF; Thank you.…