AVR64DB28 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Watchdog Timeout Period : Watch-Dog timer Off
// Watchdog Window Timeout Period : Window mode off
#pragma config PERIOD = PERIOD_OFF, WINDOW = WINDOW_OFF
#pragma config <setting>=<literal constant>
For example:
// Watchdog Timeout Period : Watch-Dog timer Off
// Watchdog Window Timeout Period : Window mode off
#pragma config PERIOD = 0x0, WINDOW = 0x0

Configuration Registers & Settings

Register: KEY
KEY Lock Key
KEY_NOLOCK No locks
KEY_RWLOCK Read and write lock
Register: WDTCFG
PERIOD Watchdog Timeout Period
PERIOD_OFF Watch-Dog timer Off
PERIOD_8CLK 8 cycles (8ms)
PERIOD_16CLK 16 cycles (16ms)
PERIOD_32CLK 32 cycles (32ms)
PERIOD_64CLK 64 cycles (64ms)
PERIOD_128CLK 128 cycles (0.128s)
PERIOD_256CLK 256 cycles (0.256s)
PERIOD_512CLK 512 cycles (0.512s)
PERIOD_1KCLK 1K cycles (1.0s)
PERIOD_2KCLK 2K cycles (2.0s)
PERIOD_4KCLK 4K cycles (4.0s)
PERIOD_8KCLK 8K cycles (8.0s)
WINDOW Watchdog Window Timeout Period
WINDOW_OFF Window mode off
WINDOW_8CLK 8 cycles (8ms)
WINDOW_16CLK 16 cycles (16ms)
WINDOW_32CLK 32 cycles (32ms)
WINDOW_64CLK 64 cycles (64ms)
WINDOW_128CLK 128 cycles (0.128s)
WINDOW_256CLK 256 cycles (0.256s)
WINDOW_512CLK 512 cycles (0.512s)
WINDOW_1KCLK 1K cycles (1.0s)
WINDOW_2KCLK 2K cycles (2.0s)
WINDOW_4KCLK 4K cycles (4.0s)
WINDOW_8KCLK 8K cycles (8.0s)
Register: BODCFG
SLEEP BOD Operation in Sleep Mode
SLEEP_DISABLE BOD disabled
SLEEP_ENABLE BOD enabled in continuous mode
SLEEP_SAMPLE BOD enabled in sampled mode
ACTIVE BOD Operation in Active Mode
ACTIVE_DISABLE BOD disabled
ACTIVE_ENABLE BOD enabled in continuous mode
ACTIVE_SAMPLE BOD enabled in sampled mode
ACTIVE_ENABLEWAIT BOD enabled in continuous mode. Execution is halted at wake-up until BOD is running.
SAMPFREQ BOD Sample Frequency
SAMPFREQ_128Hz Sample frequency is 128 Hz
SAMPFREQ_32Hz Sample frequency is 32 Hz
LVL BOD Level
LVL_BODLEVEL0 1.9V
LVL_BODLEVEL1 2.45V
LVL_BODLEVEL2 2.7V
LVL_BODLEVEL3 2.85V
Register: OSCCFG
CLKSEL Frequency Select
CLKSEL_OSCHF 1-32MHz internal oscillator
CLKSEL_OSC32K 32.768kHz internal oscillator
Register: SYSCFG0
EESAVE EEPROM Save
SET
CLEAR
RSTPINCFG Reset Pin Configuration
RSTPINCFG_GPIO GPIO mode
RSTPINCFG_RST Reset mode
CRCSEL CRC Select
CRCSEL_CRC16 Enable CRC16
CRCSEL_CRC32 Enable CRC32
CRCSRC CRC Source
CRCSRC_FLASH CRC of full Flash (boot, application code and application data)
CRCSRC_BOOT CRC of boot section
CRCSRC_BOOTAPP CRC of application code and boot sections
CRCSRC_NOCRC No CRC
Register: SYSCFG1
SUT Startup Time
SUT_0MS 0 ms
SUT_1MS 1 ms
SUT_2MS 2 ms
SUT_4MS 4 ms
SUT_8MS 8 ms
SUT_16MS 16 ms
SUT_32MS 32 ms
SUT_64MS 64 ms
MVSYSCFG MVIO System Configuration
MVSYSCFG_DUAL Device used in a dual supply configuration
MVSYSCFG_SINGLE Device used in a single supply configuration
Register: CODESIZE
CODESIZE Code Section Size
Register: BOOTSIZE
BOOTSIZE Boot Section Size
Register: TEMPSENSE0
TEMPSENSE0 Temperature Calibration 0
Register: TEMPSENSE1
TEMPSENSE1 Temperature Calibration 1