ATMEGA256RFR2 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Select Clock Source : Start-up time : Int. RC Osc.; Start-up time: 6 CK + 65 ms
// Clock output on PORTE7 : CLEAR
// Divide clock by 8 internally : SET
#pragma config CKSEL_SUT = CKSEL_SUT_INTRCOSC_6CK_65MS, CKOUT = CLEAR, CKDIV8 = SET
#pragma config <setting>=<literal constant>
For example:
// Select Clock Source : Start-up time : Int. RC Osc.; Start-up time: 6 CK + 65 ms
// Clock output on PORTE7 : CLEAR
// Divide clock by 8 internally : SET
#pragma config CKSEL_SUT = 0x22, CKOUT = 0x1, CKDIV8 = 0x0

Configuration Registers & Settings

Register: LOW
CKSEL_SUT Select Clock Source : Start-up time
CKSEL_SUT_EXTCLK_6CK_0MS Ext. Clock; Start-up time: 6 CK + 0 ms
CKSEL_SUT_EXTCLK_6CK_4MS1 Ext. Clock; Start-up time: 6 CK + 4.1 ms
CKSEL_SUT_EXTCLK_6CK_65MS Ext. Clock; Start-up time: 6 CK + 65 ms
CKSEL_SUT_INTRCOSC_6CK_0MS Int. RC Osc.; Start-up time: 6 CK + 0 ms
CKSEL_SUT_INTRCOSC_6CK_4MS1 Int. RC Osc.; Start-up time: 6 CK + 4.1 ms
CKSEL_SUT_INTRCOSC_6CK_65MS Int. RC Osc.; Start-up time: 6 CK + 65 ms
CKSEL_SUT_INTRCOSC_128KHZ_6CK_0MS Int. 128kHz RC Osc.; Start-up time: 6 CK + 0 ms
CKSEL_SUT_INTRCOSC_128KHZ_6CK_4MS1 Int. 128kHz RC Osc.; Start-up time: 6 CK + 4.1 ms
CKSEL_SUT_INTRCOSC_128KHZ_6CK_65MS Int. 128kHz RC Osc.; Start-up time: 6 CK + 65 ms
CKSEL_SUT_TOSC_258CK_4MS1 Tranceiver Oscillator; Start-up time: 258 CK + 4.1 ms
CKSEL_SUT_TOSC_258CK_65MS Tranceiver Oscillator; Start-up time: 258 CK + 65 ms
CKSEL_SUT_TOSC_1KCK_0MS Tranceiver Oscillator; Start-up time: 1K CK + 0 ms
CKSEL_SUT_TOSC_1KCK_4MS1 Tranceiver Oscillator; Start-up time: 1K CK + 4.1 ms
CKSEL_SUT_TOSC_1KCK_65MS Tranceiver Oscillator; Start-up time: 1K CK + 65 ms
CKSEL_SUT_TOSC_16KCK_0MS Tranceiver Oscillator; Start-up time: 16K CK + 0 ms
CKSEL_SUT_TOSC_16KCK_4MS1 Tranceiver Oscillator; Start-up time: 16K CK + 4.1 ms
CKSEL_SUT_TOSC_16KCK_65MS Tranceiver Oscillator; Start-up time: 16K CK + 65 ms
CKSEL_SUT_TOSC_258CK_4MS1 Tranceiver Oscillator; Start-up time: 258 CK + 4.1 ms
CKSEL_SUT_TOSC_258CK_65MS Tranceiver Oscillator; Start-up time: 258 CK + 65 ms
CKSEL_SUT_TOSC_1KCK_0MS Tranceiver Oscillator; Start-up time: 1K CK + 0 ms
CKSEL_SUT_TOSC_1KCK_4MS1 Tranceiver Oscillator; Start-up time: 1K CK + 4.1 ms
CKSEL_SUT_TOSC_1KCK_65MS Tranceiver Oscillator; Start-up time: 1K CK + 65 ms
CKSEL_SUT_TOSC_16KCK_0MS Tranceiver Oscillator; Start-up time: 16K CK + 0 ms
CKSEL_SUT_TOSC_16KCK_4MS1 Tranceiver Oscillator; Start-up time: 16K CK + 4.1 ms
CKSEL_SUT_TOSC_16KCK_65MS Tranceiver Oscillator; Start-up time: 16K CK + 65 ms
CKSEL_SUT_TOSC_258CK_4MS1 Tranceiver Oscillator; Start-up time: 258 CK + 4.1 ms
CKSEL_SUT_TOSC_258CK_65MS Tranceiver Oscillator; Start-up time: 258 CK + 65 ms
CKSEL_SUT_TOSC_1KCK_0MS Tranceiver Oscillator; Start-up time: 1K CK + 0 ms
CKSEL_SUT_TOSC_1KCK_4MS1 Tranceiver Oscillator; Start-up time: 1K CK + 4.1 ms
CKSEL_SUT_TOSC_1KCK_65MS Tranceiver Oscillator; Start-up time: 1K CK + 65 ms
CKSEL_SUT_TOSC_16KCK_0MS Tranceiver Oscillator; Start-up time: 16K CK + 0 ms
CKSEL_SUT_TOSC_16KCK_4MS1 Tranceiver Oscillator; Start-up time: 16K CK + 4.1 ms
CKSEL_SUT_TOSC_16KCK_65MS Tranceiver Oscillator; Start-up time: 16K CK + 65 ms
CKSEL_SUT_TOSC_258CK_4MS1 Tranceiver Oscillator; Start-up time: 258 CK + 4.1 ms
CKSEL_SUT_TOSC_258CK_65MS Tranceiver Oscillator; Start-up time: 258 CK + 65 ms
CKSEL_SUT_TOSC_1KCK_0MS Tranceiver Oscillator; Start-up time: 1K CK + 0 ms
CKSEL_SUT_TOSC_1KCK_4MS1 Tranceiver Oscillator; Start-up time: 1K CK + 4.1 ms
CKSEL_SUT_TOSC_1KCK_65MS Tranceiver Oscillator; Start-up time: 1K CK + 65 ms
CKSEL_SUT_TOSC_16KCK_0MS Tranceiver Oscillator; Start-up time: 16K CK + 0 ms
CKSEL_SUT_TOSC_16KCK_4MS1 Tranceiver Oscillator; Start-up time: 16K CK + 4.1 ms
CKSEL_SUT_TOSC_16KCK_65MS Tranceiver Oscillator; Start-up time: 16K CK + 65 ms
CKSEL_SUT_TOSC_258CK_4MS1 Tranceiver Oscillator; Start-up time: 258 CK + 4.1 ms
CKSEL_SUT_TOSC_258CK_65MS Tranceiver Oscillator; Start-up time: 258 CK + 65 ms
CKSEL_SUT_TOSC_1KCK_0MS Tranceiver Oscillator; Start-up time: 1K CK + 0 ms
CKSEL_SUT_TOSC_1KCK_4MS1 Tranceiver Oscillator; Start-up time: 1K CK + 4.1 ms
CKSEL_SUT_TOSC_1KCK_65MS Tranceiver Oscillator; Start-up time: 1K CK + 65 ms
CKSEL_SUT_TOSC_16KCK_0MS Tranceiver Oscillator; Start-up time: 16K CK + 0 ms
CKSEL_SUT_TOSC_16KCK_4MS1 Tranceiver Oscillator; Start-up time: 16K CK + 4.1 ms
CKSEL_SUT_TOSC_16KCK_65MS Tranceiver Oscillator; Start-up time: 16K CK + 65 ms
CKOUT Clock output on PORTE7
SET
CLEAR
CKDIV8 Divide clock by 8 internally
SET
CLEAR
Register: HIGH
BOOTRST Boot Reset vector Enabled
SET
CLEAR
BOOTSZ Select Boot Size
BOOTSZ_512W_1FE00 Boot Flash size=512 words start address=$1FE00
BOOTSZ_1024W_1FC00 Boot Flash size=1024 words start address=$1FC00
BOOTSZ_2048W_1F800 Boot Flash size=2048 words start address=$1F800
BOOTSZ_4096W_1F000 Boot Flash size=4096 words start address=$1F000
EESAVE Preserve EEPROM through the Chip Erase cycle
SET
CLEAR
WDTON Watchdog timer always on
SET
CLEAR
SPIEN Serial program downloading (SPI) enabled
SET
CLEAR
JTAGEN JTAG Interface Enabled
SET
CLEAR
OCDEN On-Chip Debug Enabled
SET
CLEAR
Register: EXTENDED
BODLEVEL Brown-out Detector trigger level
BODLEVEL_DISABLED Brown-out detection disabled
BODLEVEL_1V8 Brown-out detection at VCC=1.8 V
BODLEVEL_1V9 Brown-out detection at VCC=1.9 V
BODLEVEL_2V0 Brown-out detection at VCC=2.0 V
BODLEVEL_2V1 Brown-out detection at VCC=2.1 V
BODLEVEL_2V2 Brown-out detection at VCC=2.2 V
BODLEVEL_2V3 Brown-out detection at VCC=2.3 V
BODLEVEL_2V4 Brown-out detection at VCC=2.4 V
Register: LOCKBIT
LB Memory Lock
LB_PROG_VER_DISABLED Further programming and verification disabled
LB_PROG_DISABLED Further programming disabled
LB_NO_LOCK No memory lock features enabled
BLB0 Boot Loader Protection Mode
BLB0_LPM_SPM_DISABLE LPM and SPM prohibited in Application Section
BLB0_LPM_DISABLE LPM prohibited in Application Section
BLB0_SPM_DISABLE SPM prohibited in Application Section
BLB0_NO_LOCK No lock on SPM and LPM in Application Section
BLB1 Boot Loader Protection Mode
BLB1_LPM_SPM_DISABLE LPM and SPM prohibited in Boot Section
BLB1_LPM_DISABLE LPM prohibited in Boot Section
BLB1_SPM_DISABLE SPM prohibited in Boot Section
BLB1_NO_LOCK No lock on SPM and LPM in Boot Section