ATTINY15 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Clock Select : Slowly rising power
// External reset function of PB5 disabled : CLEAR
// Serial program downloading (SPI) enabled : SET
// Brown-out detection enabled : CLEAR
// Brown-out Detection Level : Brown-out detection at VCC=4.0 V
#pragma config CKSEL = CKSEL_SLOWPWR, RSTDISBL = CLEAR, SPIEN = SET, BODEN = CLEAR, BODLEVEL = BODLEVEL_4V0
#pragma config <setting>=<literal constant>
For example:
// Clock Select : Slowly rising power
// External reset function of PB5 disabled : CLEAR
// Serial program downloading (SPI) enabled : SET
// Brown-out detection enabled : CLEAR
// Brown-out Detection Level : Brown-out detection at VCC=4.0 V
#pragma config CKSEL = 0x0, RSTDISBL = 0x1, SPIEN = 0x0, BODEN = 0x1, BODLEVEL = 0x0

Configuration Registers & Settings

Register: LOW
CKSEL Clock Select
CKSEL_VQUICKPWR Very quickly rising power
CKSEL_QUICKPWR Quickly rising power
CKSEL_SLOWPWR Slowly rising power
CKSEL_SLOWPWR Slowly rising power
RSTDISBL External reset function of PB5 disabled
SET
CLEAR
SPIEN Serial program downloading (SPI) enabled
SET
CLEAR
BODEN Brown-out detection enabled
SET
CLEAR
BODLEVEL Brown-out Detection Level
BODLEVEL_2V7 Brown-out detection at VCC=2.7 V
BODLEVEL_4V0 Brown-out detection at VCC=4.0 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