ATMEGA328PB Support Information

XC8-CC #pragma config Usage

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

Configuration Registers & Settings

Register: LOW
SUT_CKSEL Select Clock Source
SUT_CKSEL_EXTCLK_6CK_14CK_0MS Ext. Clock; Start-up time PWRDWN/RESET: 6 CK/14 CK + 0 ms
SUT_CKSEL_EXTCLK_6CK_14CK_4MS1 Ext. Clock; Start-up time PWRDWN/RESET: 6 CK/14 CK + 4.1 ms
SUT_CKSEL_EXTCLK_6CK_14CK_65MS Ext. Clock; Start-up time PWRDWN/RESET: 6 CK/14 CK + 65 ms
SUT_CKSEL_INTRCOSC_8MHZ_6CK_14CK_0MS Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 0 ms
SUT_CKSEL_INTRCOSC_8MHZ_6CK_14CK_4MS1 Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 4.1 ms
SUT_CKSEL_INTRCOSC_8MHZ_6CK_14CK_65MS Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 65 ms
SUT_CKSEL_INTRCOSC_128KHZ_6CK_14CK_0MS Int. RC Osc. 128kHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 0 ms
SUT_CKSEL_INTRCOSC_128KHZ_6CK_14CK_4MS1 Int. RC Osc. 128kHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 4.1 ms
SUT_CKSEL_INTRCOSC_128KHZ_6CK_14CK_65MS Int. RC Osc. 128kHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 65 ms
SUT_CKSEL_EXTLOFXTAL_1KCK_14CK_0MS Ext. Low-Freq. Crystal; Start-up time PWRDWN/RESET: 1K CK/14 CK + 0 ms
SUT_CKSEL_EXTLOFXTAL_1KCK_14CK_4MS1 Ext. Low-Freq. Crystal; Start-up time PWRDWN/RESET: 1K CK/14 CK + 4.1 ms
SUT_CKSEL_EXTLOFXTAL_1KCK_14CK_65MS Ext. Low-Freq. Crystal; Start-up time PWRDWN/RESET: 1K CK/14 CK + 65 ms
SUT_CKSEL_EXTLOFXTAL_32KCK_14CK_0MS Ext. Low-Freq. Crystal; Start-up time PWRDWN/RESET: 32K CK/14 CK + 0 ms
SUT_CKSEL_EXTLOFXTAL_32KCK_14CK_4MS1 Ext. Low-Freq. Crystal; Start-up time PWRDWN/RESET: 32K CK/14 CK + 4.1 ms
SUT_CKSEL_EXTLOFXTAL_32KCK_14CK_65MS Ext. Low-Freq. Crystal; Start-up time PWRDWN/RESET: 32K CK/14 CK + 65 ms
SUT_CKSEL_EXTXOSC_0MHZ4_0MHZ9_258CK_14CK_4MS1 Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time PWRDWN/RESET: 258 CK/14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_0MHZ4_0MHZ9_258CK_14CK_65MS Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time PWRDWN/RESET: 258 CK/14 CK + 65 ms
SUT_CKSEL_EXTXOSC_0MHZ4_0MHZ9_1KCK_14CK_0MS Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 0 ms
SUT_CKSEL_EXTXOSC_0MHZ4_0MHZ9_1KCK_14CK_4MS1 Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_0MHZ4_0MHZ9_1KCK_14CK_65MS Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 65 ms
SUT_CKSEL_EXTXOSC_0MHZ4_0MHZ9_16KCK_14CK_0MS Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 0 ms
SUT_CKSEL_EXTXOSC_0MHZ4_0MHZ9_16KCK_14CK_4MS1 Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_0MHZ4_0MHZ9_16KCK_14CK_65MS Ext. Crystal Osc. 0.4-0.9 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 65 ms
SUT_CKSEL_EXTXOSC_0MHZ9_3MHZ_258CK_14CK_4MS1 Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time PWRDWN/RESET: 258 CK/14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_0MHZ9_3MHZ_258CK_14CK_65MS Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time PWRDWN/RESET: 258 CK/14 CK + 65 ms
SUT_CKSEL_EXTXOSC_0MHZ9_3MHZ_1KCK_14CK_0MS Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 0 ms
SUT_CKSEL_EXTXOSC_0MHZ9_3MHZ_1KCK_14CK_4MS1 Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_0MHZ9_3MHZ_1KCK_14CK_65MS Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 65 ms
SUT_CKSEL_EXTXOSC_0MHZ9_3MHZ_16KCK_14CK_0MS Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 0 ms
SUT_CKSEL_EXTXOSC_0MHZ9_3MHZ_16KCK_14CK_4MS1 Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_0MHZ9_3MHZ_16KCK_14CK_65MS Ext. Crystal Osc. 0.9-3.0 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 65 ms
SUT_CKSEL_EXTXOSC_3MHZ_8MHZ_258CK_14CK_4MS1 Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time PWRDWN/RESET: 258 CK/14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_3MHZ_8MHZ_258CK_14CK_65MS Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time PWRDWN/RESET: 258 CK/14 CK + 65 ms
SUT_CKSEL_EXTXOSC_3MHZ_8MHZ_1KCK_14CK_0MS Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 0 ms
SUT_CKSEL_EXTXOSC_3MHZ_8MHZ_1KCK_14CK_4MS1 Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_3MHZ_8MHZ_1KCK_14CK_65MS Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 65 ms
SUT_CKSEL_EXTXOSC_3MHZ_8MHZ_16KCK_14CK_0MS Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 0 ms
SUT_CKSEL_EXTXOSC_3MHZ_8MHZ_16KCK_14CK_4MS1 Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_3MHZ_8MHZ_16KCK_14CK_65MS Ext. Crystal Osc. 3.0-8.0 MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 65 ms
SUT_CKSEL_EXTXOSC_8MHZ_XX_258CK_14CK_4MS1 Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 258 CK/14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_8MHZ_XX_258CK_14CK_65MS Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 258 CK/14 CK + 65 ms
SUT_CKSEL_EXTXOSC_8MHZ_XX_1KCK_14CK_0MS Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 0 ms
SUT_CKSEL_EXTXOSC_8MHZ_XX_1KCK_14CK_4MS1 Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_8MHZ_XX_1KCK_14CK_65MS Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 1K CK /14 CK + 65 ms
SUT_CKSEL_EXTXOSC_8MHZ_XX_16KCK_14CK_0MS Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 0 ms
SUT_CKSEL_EXTXOSC_8MHZ_XX_16KCK_14CK_4MS1 Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 4.1 ms
SUT_CKSEL_EXTXOSC_8MHZ_XX_16KCK_14CK_65MS Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 65 ms
CKOUT Clock output on PORTB0
SET
CLEAR
CKDIV8 Divide clock by 8 internally
SET
CLEAR
Register: HIGH
BOOTRST Boot Reset vector Enabled
SET
CLEAR
BOOTSZ Select boot size
BOOTSZ_256W_3F00 Boot Flash size=256 words start address=$3F00
BOOTSZ_512W_3E00 Boot Flash size=512 words start address=$3E00
BOOTSZ_1024W_3C00 Boot Flash size=1024 words start address=$3C00
BOOTSZ_2048W_3800 Boot Flash size=2048 words start address=$3800
EESAVE Preserve EEPROM through the Chip Erase cycle
SET
CLEAR
WDTON Watch-dog Timer always on
SET
CLEAR
SPIEN Serial program downloading (SPI) enabled
SET
CLEAR
DWEN Debug Wire enable
SET
CLEAR
RSTDISBL Reset Disabled (Enable PC6 as i/o pin)
SET
CLEAR
Register: EXTENDED
BODLEVEL Brown-out Detector trigger level
BODLEVEL_4V3 Brown-out detection at VCC=4.3 V
BODLEVEL_2V7 Brown-out detection at VCC=2.7 V
BODLEVEL_1V8 Brown-out detection at VCC=1.8 V
BODLEVEL_DISABLED Brown-out detection disabled
CFD Clock Failure Detection
CFD_CFD_DISABLED Disabled
CFD_CFD_ENABLED Enabled
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