How to do Port Manipulation on Artemis Nano

On the ATMega328p based Arduino Nano I have been able to declare and define digital ports B, C and D using the integrated variables DDRB, DDRC or DDRD (to declare pins as either input or output) and PORTB, PORTC or PORTD (to set the pins high or low.) However, when I try compiling to use Artemis Nano, the variable PORTB is not declared. Is there an alternative for digital port manipulation on the Artemis Nano? A port would encompass pins 1 through 8, for example.

Thanks

Artemis Nano is based on Apollo 3 ARM cortex M4, processor. It does not have an AVR chip. So, the registors’ names like DDR, PORT etc. will not work in case of Artemis. For programming this using Arduino IDE, we have to follow this guideline: https://learn.sparkfun.com/tutorials/ar … 1636632906

For more info we may need to see the Apollo datasheet:

https://cdn.sparkfun.com/assets/1/5/c/6 … 0_15_0.pdf