I would like a more elegant way to address a 16bit peripheral when using two ports. I have no idea how I would go about it but is it possible to do this:
MY_PORT = 0x99FF;
that would output data as:
PORTA = 0x99;
PORTD = 0xFF;
Or even better if I could have bit control and arbitrarily output all 16bits to any port/pin combo.
I know ARM's have a port masking register and its easier when their ports are 32 long but is their any easy way to do this on an AVR?