user54819: I would like to read multiple pins at once in Arduino Due via registers just like PINB, PINC, PIND of the arduino uno. I know that the pins will be scattered to multiple registers, but i deduce it would still be faster this way since there for sure there will be multiple pins on a single register rather than call digitalRead 40 times.
Arduino shared the documentation for what digital/analog pins corressponds to the what ports to the actual sam chip, i just need that snippet of code that reads via registers.
So if any can give me the equivalents to these, It would be greatly appreciated:

DDRx - The Port C Data Direction Register - read/write
PORTx - The Port C Data Register - read/write
PINx - The Port C Input Pins Register - read only


user61931: You will find a good introduction on using port registers here. It also mentions some cons and pros of using port manipulation.

54819: <p>I would like to read multiple pins at once in Arduino Due via registers just like PINB, PINC, PIND of the arduino uno. I know that the pins will be scattered to multiple registers, but i deduce it would still be faster this way since there for sure there will be multiple pins on a single register rather than call digitalRead 40 times.</p>

<p>Arduino shared the documentation for what digital/analog pins corressponds to the what ports to the actual sam chip, i just need that snippet of code that reads via registers.</p>

<p>So if any can give me the equivalents to these, It would be greatly appreciated:</p>

<ul>
<li>DDRx - The Port C Data Direction Register - read/write</li>
<li>PORTx - The Port C Data Register - read/write</li>
<li>PINx - The Port C Input Pins Register - read only</li>
</ul>
 61931: <p>You will find a good introduction on using port registers <a href="https://www.arduino.cc/en/Reference/PortManipulation" rel="nofollow noreferrer">here</a>. It also mentions some cons and pros of using port manipulation.</p>
