i am writing a code in which i have to send two register values from one board to another board using one port. the pins of the port will each carry one bit of the register so in essence it is parallel communication.
I have to send two register values consecutively so how should the code be such that the receiving board is sure to get both registers separately and properly. Its kinda urgent so any help as soon as possible will be appreciated. I am using an arduino nano board with an ATMEGA328P and require the code in assembly language as i need really high speed.