CONFIG

Top  Previous  Next

The CONFIG statement is used to configure the various hardware devices.

 

DIRECTIVE

RE-USABLE

NORMAL AVR

XMEGA

XTINY/MEGAX

XMEGA ONLY

XTINY/UPDI ONLY

CONFIG 1WIRE

NO

X

X

X

 

 

CONFIG ACAX|ACBX

YES

 

X

 

X

 

CONFIG ACI

YES

X

 

 

 

 

CONFIG ACx 2083 NEW

YES

 

 

X

 

X

CONFIG ADC

NO

X

 

 

 

 

CONFIG ADCA|ADCB

YES

 

X

 

X

 

CONFIG ADC0|ADCx 2083 NEW

YES

 

 

X

 

X

CONFIG ATEMU

NO

X

 

 

 

 

CONFIG BASE

NO

X

X

X

 

 

CONFIG BCCARD

NO

X

 

 

 

 

CONFIG CANBUS

YES

X

 

 

 

 

CONFIG CANMOB

YES

X

 

 

 

 

CONFIG CLOCK 2083 ENHANCED

NO

X

X

X

 

 

CONFIG CLOCKDIV

YES

X

 

 

 

 

CONFIG COM1 2083 ENHANCED

YES

X

X

X

 

 

CONFIG COM2 also COM3 - COM8

YES

X

X

X

 

 

CONFIG COMx

YES

X

X

X

 

 

CONFIG DACA|DACB

YES

 

X

 

X

 

CONFIG DACX 2083 NEW

YES

 

 

X

 

X

CONFIG DATE

NO

X

X

X

 

 

CONFIG DCF77

NO

X

X

 

 

 

CONFIG DEBOUNCE

NO

X

X

X

 

 

CONFIG DMA

YES

 

X

 

X

 

CONFIG DMACHx

YES

 

X

 

X

 

CONFIG DMXSLAVE

NO

X

X

X

 

 

CONFIG DP

NO

X

X

X

 

 

CONFIG EDMA

 

 

X

 

x

 

CONFIG EDMAx

 

 

X

 

x

 

CONFIG EEPROM

NO

 

X

X

X

 

CONFIG ERROR

NO

X

X

X

 

 

CONFIG EVENT_SYSTEM XMEGA

YES

 

X

 

X

 

CONFIG EVENT_SYSTEM XTINY 2083 NEW

YES

 

 

X

 

X

CONFIG EXTENDED_PORT

NO

X

 

 

 

 

CONFIG FT800

NO

X

X

X

 

 

CONFIG GRAPHLCD

NO

X

X

X

 

 

CONFIG HITAG

NO

X

 

 

 

 

CONFIG I2CBUS

YES

X

X

X

 

 

CONFIG I2CDELAY

NO

X

 

 

 

 

CONFIG I2CSLAVE

NO

X

X

 

 

 

CONFIG INPUT

NO

X

X

X

 

 

CONFIG INPUTBIN

NO

X

X

X

 

 

CONFIG INTx

YES

X

X

X

 

 

CONFIG INTVECTORSELECTION

YES

X

X

X

 

 

CONFIG KBD

NO

X

X

 

 

 

CONFIG KEYBOARD

NO

X

X

X

 

 

CONFIG LCD

NO

X

X

X

 

 

CONFIG LCDBUS

NO

X

X

X

 

 

CONFIG LCDMODE

NO

X

X

X

 

 

CONFIG LCDPIN

NO

X

X

X

 

 

CONFIG OSC

YES

 

X

X

X

 

CONFIG PORT

YES

X

X

X

 

 

CONFIG PORT_MUX 2084 NEW

YES

 

 

X

 

X

CONFIG POWERMODE

YES

X

X

X

 

 

CONFIG POWER_REDUCTION

NO

 

X

 

X

 

CONFIG PRIORITY XMEGA

YES

 

X

 

X

 

CONFIG PRIORITY XTINY 2083 NEW

YES

 

 

X

 

X

CONFIG PRINT

NO

X

X

X

 

 

CONFIG PRINTBIN

NO

X

X

X

 

 

CONFIG PS2EMU

NO

X

 

 

 

 

CONFIG RAINBOW

NO

X

X

X

 

 

CONFIG RC5

NO

X

 

 

 

 

CONFIG RND

NO

X

X

X

 

 

CONFIG SERIALIN

NO

X

X

X

 

 

CONFIG SERIALIN1

NO

X

X

 

 

 

CONFIG SERIALIN2

NO

X

X

 

 

 

CONFIG SERIALIN3

NO

X

X

 

 

 

CONFIG SERIALOUT

NO

X

X

 

 

 

CONFIG SERIALOUT1

NO

X

X

 

 

 

CONFIG SERIALOUT2

NO

X

X

 

 

 

CONFIG SERIALOUT3

NO

X

X

 

 

 

CONFIG SERVOS

NO

X

X

 

 

 

CONFIG SHIFTIN

NO

X

X

X

 

 

CONFIG SINGLE

YES

X

X

X

 

 

CONFIG SDA

NO

X

X

X

 

 

CONFIG SCL

NO

X

X

X

 

 

CONFIG SPI

NO

X

 

 

 

 

CONFIG SPIx

YES

 

X

X

X

 

CONFIG SUBMODE

NO

X

X

X

 

 

CONFIG SYSCLOCK XMEGA

YES

 

X

 

X

 

CONFIG SYSCLOCK XTINY 2083 NEW

YES

 

 

X

 

X

CONFIG TCXX

YES

 

X

X

X

 

CONFIG TCA0

YES

 

 

X

 

X

CONFIG TCB0, TCB1 2084 NEW

YES

 

 

X

 

X

CONFIG TCD0 2084 NEW

YES

 

 

X

 

X

CONFIG TCPIP

NO

X

X

X

 

 

CONFIG TWI

YES

X

X

X

 

 

CONFIG TWISLAVE

NO

X

 

 

 

 

CONFIG TWIxSLAVE

NO

 

X

 

x

 

CONFIG TIMER0

YES

X

 

 

 

 

CONFIG TIMER1

YES

X

 

 

 

 

CONFIG TIMER2 and 3

YES

X

 

 

 

 

CONFIG USB

NO

X

 

 

 

 

CONFIG USI

NO

X

 

 

 

 

CONFIG VPORT

YES

 

X

 

X

 

CONFIG VREF XTINY 2083 NEW

YES

 

 

X

 

X

CONFIG WATCHDOG

YES

X

X

X

 

 

CONFIG WAITSUART

NO

X

X

X

 

 

CONFIG X10

NO

X

 

 

 

 

CONFIG XPIN

YES

X

X

X

 

 

CONFIG XRAM

YES

X

X

 

 

 

 

Some CONFIG directives are intended to be used once. Others can be used multiple times. For example you can specify that a port must be set to input after you have specified that it is used as an input.

 

You cannot change the LCD pins during run time. In that case the last specification will be used or an error message will be displayed.

 

Some configuration commands are only available to the Xmega. An X in the 'Xmega Only' column indicates that the command can only be used for an Xmega processor.

Some configuration commands are exclusive for the Xtiny processors. An X in the 'Xtiny Only' column indicates that the commands can only be used for an Xtiny processor.