EasyManuals Logo

Atmel AVR XMEGA AU series User Manual

Atmel AVR XMEGA AU series
512 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #153 background imageLoading...
Page #153 background image
153
8331B–AVR–03/12
Atmel AVR XMEGA AU
13.13 Register Descriptions – Ports
13.13.1 DIR – Data Direction register
• Bit 7:0 – DIR[7:0]: Data Direction
This register sets the data direction for the individual pins of the port. If DIRn is written to one,
pin n is configured as an output pin. If DIRn is written to zero, pin n is configured as an input pin.
13.13.2 DIRSET – Data Direction Set Register
• Bit 7:0 – DIRSET[7:0]: Port Data Direction Set
This register can be used instead of a read-modify-write to set individual pins as output. Writing
a one to a bit will set the corresponding bit in the DIR register. Reading this register will return
the value of the DIR register.
13.13.3 DIRCLR – Data Direction Clear register
• Bit 7:0 – DIRCLR[7:0]: Port Data Direction Clear
This register can be used instead of a read-modify-write to set individual pins as input. Writing a
one to a bit will clear the corresponding bit in the DIR register. Reading this register will return
the value of the DIR register.
13.13.4 DIRTGL – Data Direction Toggle register
Bit 76543210
+0x00 DIR[7:0] DIR
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000
Bit 76543210
+0x01 DIRSET[7:0] DIRSET
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000
Bit 76543210
+0x02 DIRCLR[7:0] DIRCLR
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000
Bit 76543210
+0x03 DIRTGL[7:0] DIRTGL
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR XMEGA AU series and is the answer not in the manual?

Atmel AVR XMEGA AU series Specifications

General IconGeneral
BrandAtmel
ModelAVR XMEGA AU series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals