SparkFun Forums 

Where electronics enthusiasts find answers.

Tips, tricks, & best best practices using Artemis with your board designs.
User avatar
By ernestogomez.s
#234765
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
User avatar
By tepalia02
#234775
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
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum