ATMEGA8HVA Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Select start-up time : Start-up time 6 CK/14 CK + 512 ms
// Self Programming enable : CLEAR
// Debug Wire enable : CLEAR
// Serial program downloading (SPI) enabled : SET
// Preserve EEPROM through the Chip Erase cycle : CLEAR
// Watch-dog Timer always on : CLEAR
#pragma config SUT = SUT_6CK_14CK_512MS, SELFPRGEN = CLEAR, DWEN = CLEAR, SPIEN = SET, EESAVE = CLEAR, WDTON = CLEAR
#pragma config <setting>=<literal constant>
For example:
// Select start-up time : Start-up time 6 CK/14 CK + 512 ms
// Self Programming enable : CLEAR
// Debug Wire enable : CLEAR
// Serial program downloading (SPI) enabled : SET
// Preserve EEPROM through the Chip Erase cycle : CLEAR
// Watch-dog Timer always on : CLEAR
#pragma config SUT = 0x7, SELFPRGEN = 0x1, DWEN = 0x1, SPIEN = 0x0, EESAVE = 0x1, WDTON = 0x1

Configuration Registers & Settings

Register: LOW
SUT Select start-up time
SUT_6CK_14CK_4MS Start-up time 6 CK/14 CK + 4 ms
SUT_6CK_14CK_8MS Start-up time 6 CK/14 CK + 8 ms
SUT_6CK_14CK_16MS Start-up time 6 CK/14 CK + 16 ms
SUT_6CK_14CK_32MS Start-up time 6 CK/14 CK + 32 ms
SUT_6CK_14CK_64MS Start-up time 6 CK/14 CK + 64 ms
SUT_6CK_14CK_128MS Start-up time 6 CK/14 CK + 128 ms
SUT_6CK_14CK_256MS Start-up time 6 CK/14 CK + 256 ms
SUT_6CK_14CK_512MS Start-up time 6 CK/14 CK + 512 ms
SELFPRGEN Self Programming enable
SET
CLEAR
DWEN Debug Wire enable
SET
CLEAR
SPIEN Serial program downloading (SPI) enabled
SET
CLEAR
EESAVE Preserve EEPROM through the Chip Erase cycle
SET
CLEAR
WDTON Watch-dog Timer always on
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