ATTINY48 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Select Clock Source : Ext. Clock; Start-up time PWRDWN/RESET: 6 CK/14 CK + 0 ms
// Clock output on PORTB0 : CLEAR
// Divide clock by 8 internally : SET
#pragma config SUT_CKSEL = SUT_CKSEL_EXTCLK_6CK_14CK_0MS, CKOUT = CLEAR, CKDIV8 = SET
#pragma config <setting>=<literal constant>
For example:
// Select Clock Source : Ext. Clock; Start-up time PWRDWN/RESET: 6 CK/14 CK + 0 ms
// Clock output on PORTB0 : CLEAR
// Divide clock by 8 internally : SET
#pragma config SUT_CKSEL = 0xC, 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_DEFAULT Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 65 ms; default value
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
CKOUT Clock output on PORTB0
SET
CLEAR
CKDIV8 Divide clock by 8 internally
SET
CLEAR
Register: HIGH
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
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
SELFPRGEN Self Programming enable
SET
CLEAR
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