I am in the process of moving a project from an Arduino MEGA to the Autonomo and the last remaining hurdle I have is to perform direct port manipulation in order to perform fast digital IO.
As an example, on the implementation on the Arduino MEGA I would manipulate the bits of an 8-bit/byte as follows to be able to very quickly toggle one pin (in this case 53, but it could be any other) HIGH, respectively LOW.
void setup()
{
pinMode(53, OUTPUT); //STEP
}
void loop()
{
PORTB|=B00000001 //PIN 53 = HIGH
PORTB&=B11111110 //PIN 53 = LOW
}
From what I see online, the Arduino Zero Platform has everything defined in a 32-bit port, called PORT (or PORT_IOBUS ?). All in all doable, however I don’t have the mapping between the register and the Autonomo Pins.
Any insights are greatly appreciated!