Which ports to use for NAND Flash Reader/Programmer?

Hello,

i want to setup a little NAND Flash reader using an Arduino Due (because of the 3.3V IO voltage, needed for the Flash). Now i need many signals (16 Data, 22 Address and some handshake-signals).
Which port numbers on the Arduino PCB should/can i use for this? Address-Lines are output only, datalines input/output, signals differ.

I think it would be the best to use a REAL port (like PORTB or such) for Data and addresslines to make it easy to read and write through it, right?

Also, can i use the A0-... Pins on the Board? Or are they analog only?

look at the pinout https://www.arduino.cc/en/Hacking/PinMappingSAM3X
to see which pins map to which ports and choose appropriately.

And yes, you can use analog pins for digital I/O.

Thanks. I guess i have to ripup and replug all the connection to accomplish this. Anyhow, i did move the 8 dataports from analog to digial pins, just to be shure.

It's very unordered. Can you recommend me a 16 and also a 22 Bit port to use?
Most of them use some pins for other purposes and i don't know if i can use them anyway.