ATTINY13 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Select Clock Source : Int. RC Osc. 9.6 MHz; Start-up time: 14 CK + 64 ms
// Divide clock by 8 internally : SET
// Watch-dog Timer always on : CLEAR
// Preserve EEPROM through the Chip Erase cycle : CLEAR
// Serial program downloading (SPI) enabled : SET
#pragma config SUT_CKSEL = SUT_CKSEL_INTRCOSC_9MHZ6_14CK_64MS, CKDIV8 = SET, WDTON = CLEAR, EESAVE = CLEAR, SPIEN = SET
#pragma config <setting>=<literal constant>
For example:
// Select Clock Source : Int. RC Osc. 9.6 MHz; Start-up time: 14 CK + 64 ms
// Divide clock by 8 internally : SET
// Watch-dog Timer always on : CLEAR
// Preserve EEPROM through the Chip Erase cycle : CLEAR
// Serial program downloading (SPI) enabled : SET
#pragma config SUT_CKSEL = 0xA, CKDIV8 = 0x0, WDTON = 0x1, EESAVE = 0x1, SPIEN = 0x0

Configuration Registers & Settings

Register: LOW
SUT_CKSEL Select Clock Source
SUT_CKSEL_EXTCLK_14CK_0MS Ext. Clock; Start-up time: 14 CK + 0 ms
SUT_CKSEL_EXTCLK_14CK_4MS Ext. Clock; Start-up time: 14 CK + 4 ms
SUT_CKSEL_EXTCLK_14CK_64MS Ext. Clock; Start-up time: 14 CK + 64 ms
SUT_CKSEL_INTRCOSC_4MHZ8_14CK_0MS Int. RC Osc. 4.8 MHz; Start-up time: 14 CK + 0 ms
SUT_CKSEL_INTRCOSC_4MHZ8_14CK_4MS Int. RC Osc. 4.8 MHz; Start-up time: 14 CK + 4 ms
SUT_CKSEL_INTRCOSC_4MHZ8_14CK_64MS Int. RC Osc. 4.8 MHz; Start-up time: 14 CK + 64 ms
SUT_CKSEL_INTRCOSC_9MHZ6_14CK_0MS Int. RC Osc. 9.6 MHz; Start-up time: 14 CK + 0 ms
SUT_CKSEL_INTRCOSC_9MHZ6_14CK_4MS Int. RC Osc. 9.6 MHz; Start-up time: 14 CK + 4 ms
SUT_CKSEL_INTRCOSC_9MHZ6_14CK_64MS Int. RC Osc. 9.6 MHz; Start-up time: 14 CK + 64 ms
SUT_CKSEL_INTRCOSC_128KHZ_14CK_0MS Int. RC Osc. 128 kHz; Start-up time: 14 CK + 0 ms
SUT_CKSEL_INTRCOSC_128KHZ_14CK_4MS Int. RC Osc. 128 kHz; Start-up time: 14 CK + 4 ms
SUT_CKSEL_INTRCOSC_128KHZ_14CK_64MS Int. RC Osc. 128 kHz; Start-up time: 14 CK + 64 ms
CKDIV8 Divide clock by 8 internally
SET
CLEAR
WDTON Watch-dog Timer always on
SET
CLEAR
EESAVE Preserve EEPROM through the Chip Erase cycle
SET
CLEAR
SPIEN Serial program downloading (SPI) enabled
SET
CLEAR
Register: HIGH
RSTDISBL Reset Disabled (Enable PB5 as i/o pin)
SET
CLEAR
BODLEVEL Enable BOD and select 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
DWEN Debug Wire enable
SET
CLEAR
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