ATMEGA64HVE2 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Oscillator select : CLEAR
// Select start-up time : Start-up time 14 CK + 64 ms
// Divide clock by 8 : SET
// Brown-out detection enabled : CLEAR
// Serial program downloading (SPI) enabled : SET
// Preserve EEPROM through the Chip Erase cycle : CLEAR
// Watch-dog Timer always on : CLEAR
#pragma config OSCSEL0 = CLEAR, SUT = SUT_14CK_64MS, CKDIV8 = SET, BODEN = CLEAR, SPIEN = SET, EESAVE = CLEAR, WDTON = CLEAR
#pragma config <setting>=<literal constant>
For example:
// Oscillator select : CLEAR
// Select start-up time : Start-up time 14 CK + 64 ms
// Divide clock by 8 : SET
// Brown-out detection enabled : CLEAR
// Serial program downloading (SPI) enabled : SET
// Preserve EEPROM through the Chip Erase cycle : CLEAR
// Watch-dog Timer always on : CLEAR
#pragma config OSCSEL0 = 0x1, SUT = 0x3, CKDIV8 = 0x0, BODEN = 0x1, SPIEN = 0x0, EESAVE = 0x1, WDTON = 0x1

Configuration Registers & Settings

Register: LOW
OSCSEL0 Oscillator select
SET
CLEAR
SUT Select start-up time
SUT_14CK_0MS Start-up time 14 CK + 0 ms
SUT_14CK_16MS Start-up time 14 CK + 16 ms
SUT_14CK_32MS Start-up time 14 CK + 32 ms
SUT_14CK_64MS Start-up time 14 CK + 64 ms
CKDIV8 Divide clock by 8
SET
CLEAR
BODEN Brown-out detection enabled
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: HIGH
BOOTRST Boot Reset vector Enabled
SET
CLEAR
BOOTSZ Select Boot Size
BOOTSZ_512W_7E00 Boot Flash size=512 words Boot address=$7E00
BOOTSZ_1024W_7C00 Boot Flash size=1024 words Boot address=$7C00
BOOTSZ_2048W_7800 Boot Flash size=2048 words Boot address=$7800
BOOTSZ_4096W_7000 Boot Flash size=4096 words Boot address=$7000
DWEN Debug Wire 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
BLB0 Boot Loader Protection Mode
BLB0_LPM_SPM_DISABLE LPM and SPM prohibited in Application Section
BLB0_LPM_DISABLE LPM prohibited in Application Section
BLB0_SPM_DISABLE SPM prohibited in Application Section
BLB0_NO_LOCK No lock on SPM and LPM in Application Section
BLB1 Boot Loader Protection Mode
BLB1_LPM_SPM_DISABLE LPM and SPM prohibited in Boot Section
BLB1_LPM_DISABLE LPM prohibited in Boot Section
BLB1_SPM_DISABLE SPM prohibited in Boot Section
BLB1_NO_LOCK No lock on SPM and LPM in Boot Section