ATTINY104 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Disable external reset : CLEAR
// Watch dog timer always on : CLEAR
// Output external clock : CLEAR
// Self programming enable : CLEAR
#pragma config RSTDISBL = CLEAR, WDTON = CLEAR, CKOUT = CLEAR, SELFPROGEN = CLEAR
#pragma config <setting>=<literal constant>
For example:
// Disable external reset : CLEAR
// Watch dog timer always on : CLEAR
// Output external clock : CLEAR
// Self programming enable : CLEAR
#pragma config RSTDISBL = 0x1, WDTON = 0x1, CKOUT = 0x1, SELFPROGEN = 0x1

Configuration Registers & Settings

Register: BYTE0
RSTDISBL Disable external reset
SET
CLEAR
WDTON Watch dog timer always on
SET
CLEAR
CKOUT Output external clock
SET
CLEAR
SELFPROGEN 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