Parallel digital output

Hi There,

I am trying to write two digital output at 2 different digital pins at the same time, I know that we can use DDRD for Uno, but this does not work with Due, which I use now.

So, how can I do this with Due?

Thank you in advance

int a = REG_PIOD_PDSR; (read portD at once. You should be able to write to REG_PIOD_PDSR as well. but I have not tested. Check with Port manipulation commands.