I need to update simultaneously all the outputs of a specific port.
I am familiar with using micro-processors assembly language. After initializing a port (Data Direction Register), I can write to that port and all outputs will update simultaneously.
In the Arduino commands : I am aware of how to configure pins, such as pinMode(pin, mode), to make a pin an output or input.
I know of the digitalWrite(pin, value) , but this only updates one pin per command.
For timing reasons, I need to update several (same port) outputs without any time delay.
Normally (using assembly language) , I would keep a register with the data I desire on the output port, and write that register's data to the port.
Is there a command I can use in Arduino to accomplish the same thing?
If not a single command, what other choices do I have?
I use Arduino micro, UNO, but I think the question might be valid for most Arduino