ATA5835 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// External Clock enable : CLEAR
// Disable external Reset : CLEAR
// Select interrupt vector location : CLEAR
// Preserve EEPROM memory through the Chip Erase cycle : CLEAR
// Watch-dog Timer always on : CLEAR
// Serial program downloading (SPI) enabled : SET
// Debug Wire enable : CLEAR
// Divide clock by 8 internally : CLEAR
#pragma config EXTCLKEN = CLEAR, RSTDISBL = CLEAR, BOOTRST = CLEAR, EESAVE = CLEAR, WDTON = CLEAR, SPIEN = SET, DWEN = CLEAR, CKDIV8 = CLEAR
#pragma config <setting>=<literal constant>
For example:
// External Clock enable : CLEAR
// Disable external Reset : CLEAR
// Select interrupt vector location : CLEAR
// Preserve EEPROM memory through the Chip Erase cycle : CLEAR
// Watch-dog Timer always on : CLEAR
// Serial program downloading (SPI) enabled : SET
// Debug Wire enable : CLEAR
// Divide clock by 8 internally : CLEAR
#pragma config EXTCLKEN = 0x1, RSTDISBL = 0x1, BOOTRST = 0x1, EESAVE = 0x1, WDTON = 0x1, SPIEN = 0x0, DWEN = 0x1, CKDIV8 = 0x1

Configuration Registers & Settings

Register: LOW
EXTCLKEN External Clock enable
SET
CLEAR
RSTDISBL Disable external Reset
SET
CLEAR
BOOTRST Select interrupt vector location
SET
CLEAR
EESAVE Preserve EEPROM memory through the Chip Erase cycle
SET
CLEAR
WDTON Watch-dog Timer always on
SET
CLEAR
SPIEN Serial program downloading (SPI) enabled
SET
CLEAR
DWEN Debug Wire enable
SET
CLEAR
CKDIV8 Divide clock by 8 internally
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 Application Protection
BLB0_LPM_AND_SPM_PROHIBITED_IN_APPLICATION_SECTION LPM and SPM prohibited in Application Section
BLB0_LPM_PROHIBITED_IN_APPLICATION_SECTION LPM prohibited in Application Section
BLB0_SPM_PROHIBITED_IN_APPLICATION_SECTION SPM prohibited in Application Section
BLB0_NO_LOCK_ON_SPM_AND_LPM_IN_APPLICATION_SECTION No lock on SPM and LPM in Application Section
BLB1 Boot Loader Protection
BLB1_LPM_AND_SPM_PROHIBITED_IN_BOOT_LOADER_SECTION LPM and SPM prohibited in Boot Loader Section
BLB1_LPM_PROHIBITED_IN_BOOT_LOADER_SECTION LPM prohibited in Boot Loader Section
BLB1_SPM_PROHIBITED_IN_BOOT_LOADER_SECTION SPM prohibited in Boot Loader Section
BLB1_NO_LOCK_ON_SPM_AND_LPM_IN_BOOT_LOADER_SECTION No lock on SPM and LPM in Boot Loader Section