I have a counter from 0 to 65535 that i want to "print" it to port A and port B, and I1m stuck up... I dont know how to do it...
I use Port A for 0 to 255 and port B for 256 to 65535.
Please show me the way to see the light

Thanks!
Code: Select all
counter_low = counter & 255
counter_high = (counter >> 8)