I apologize in advance for a very basic stuff to ask, but I just started with Atmel and I am kind of lost about where to find some guidance.
I work with SAD21 Xplained Pro MCU evaluation board. My project consists of reading 16 input bits, and then according to their values, create some outputs, and I am looking for some kind of tutorial to begin with learning.
My question is: Where can I learn how to use "port.h" file in my code, that is, what all those registers do, and how and when are they used. For example:
REG_PORT_OUTSET0 (0x41004418) /**< \brief (PORT) Data Output Value Set 0 */
REG_PORT_OUTSET1 (0x41004498) /**< \brief (PORT) Data Output Value Set 1 */
REG_PORT_OUTCLR1 (0x41004494) /**< \brief (PORT) Data Output Value Clear 1 */
REG_PORT_OUTCLR0 (0x41004414) /**< \brief (PORT) Data Output Value Clear 0 */
I understand (possibly wrongly):
REG_PORT_OUTSET1 sets the value of the output bit.
REG_PORT_OUTCLR1 resets the value of output bit.
But then what REG_PORT_OUTSET0 and REG_PORT_OUTCLR0 do?
So, in this nerve, I would like to learn more about other registers in "port.h".