ATA5700M322 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Protect Customer EEPROM section : CLEAR
// EEPROM Access Control : CLEAR
// Select boot reset vector : 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
// MRC is selected during reset startup phase : CLEAR
#pragma config PCEE1 = CLEAR, EEACC = CLEAR, BOOTRST = CLEAR, EESAVE = CLEAR, WDTON = CLEAR, SPIEN = SET, DWEN = CLEAR, CKSTART = CLEAR
#pragma config <setting>=<literal constant>
For example:
// Protect Customer EEPROM section : CLEAR
// EEPROM Access Control : CLEAR
// Select boot reset vector : 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
// MRC is selected during reset startup phase : CLEAR
#pragma config PCEE1 = 0x1, EEACC = 0x1, BOOTRST = 0x1, EESAVE = 0x1, WDTON = 0x1, SPIEN = 0x0, DWEN = 0x1, CKSTART = 0x1

Configuration Registers & Settings

Register: LOW
PCEE1 Protect Customer EEPROM section
SET
CLEAR
EEACC EEPROM Access Control
SET
CLEAR
BOOTRST Select boot reset vector
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
CKSTART MRC is selected during reset startup phase
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