ATMEL XMEGA FAMILY

ATMEL Xmega - General I/O

Article by:
Date Published:
Last Modified:

Contents

Controlling A Port

The Xmega has hardware registries that speeds up controlling ports by skipping the read-execute-write cycle. The following example shows ways of controlling a port pin.

1
2
3
PORTB.DIRSET = (1 << 3);
PORTB.OUTSET = (1 << 3);
PORTB.OUTTGL = (1 << 3);

Authors

Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Tags

    comments powered by Disqus