|
#pragma config <setting>=<named value>
|
|---|
For example:// Watchdog Timeout Period : Watch-Dog timer Off |
|
#pragma config <setting>=<literal constant>
|
|---|
For example:// Watchdog Timeout Period : Watch-Dog timer Off |
|
Register: KEY
|
|
|---|---|
| KEY | Lock Key |
| KEY_NOLOCK | No locks |
| KEY_RWLOCK | Read and write lock |
|
Register: WDTCFG
|
|
|---|---|
| PERIOD | Watchdog Timeout Period |
| PERIOD_OFF | Watch-Dog timer Off |
| PERIOD_8CLK | 8 cycles (8ms) |
| PERIOD_16CLK | 16 cycles (16ms) |
| PERIOD_32CLK | 32 cycles (32ms) |
| PERIOD_64CLK | 64 cycles (64ms) |
| PERIOD_128CLK | 128 cycles (0.128s) |
| PERIOD_256CLK | 256 cycles (0.256s) |
| PERIOD_512CLK | 512 cycles (0.512s) |
| PERIOD_1KCLK | 1K cycles (1.0s) |
| PERIOD_2KCLK | 2K cycles (2.0s) |
| PERIOD_4KCLK | 4K cycles (4.0s) |
| PERIOD_8KCLK | 8K cycles (8.0s) |
| WINDOW | Watchdog Window Timeout Period |
| WINDOW_OFF | Window mode off |
| WINDOW_8CLK | 8 cycles (8ms) |
| WINDOW_16CLK | 16 cycles (16ms) |
| WINDOW_32CLK | 32 cycles (32ms) |
| WINDOW_64CLK | 64 cycles (64ms) |
| WINDOW_128CLK | 128 cycles (0.128s) |
| WINDOW_256CLK | 256 cycles (0.256s) |
| WINDOW_512CLK | 512 cycles (0.512s) |
| WINDOW_1KCLK | 1K cycles (1.0s) |
| WINDOW_2KCLK | 2K cycles (2.0s) |
| WINDOW_4KCLK | 4K cycles (4.0s) |
| WINDOW_8KCLK | 8K cycles (8.0s) |
|
Register: BODCFG
|
|
|---|---|
| SLEEP | BOD Operation in Sleep Mode |
| SLEEP_DISABLE | Disabled |
| SLEEP_ENABLE | Enabled in continuous mode |
| SLEEP_SAMPLE | Enabled in sampled mode |
| ACTIVE | BOD Operation in Active Mode |
| ACTIVE_DISABLE | Disabled |
| ACTIVE_ENABLED | Enabled in continuous mode |
| ACTIVE_SAMPLED | Enabled in sampled mode |
| ACTIVE_ENABLEWAIT | Enabled in continuous mode. Execution halted at wake-up until BOD is running |
| SAMPFREQ | BOD Sample Frequency |
| SAMPFREQ_128HZ | Sampling frequency is 128 Hz |
| SAMPFREQ_32HZ | Sample frequency is 32 Hz |
| LVL | BOD Level |
| LVL_BODLEVEL0 | BOD Disabled during normal operation |
| LVL_BODLEVEL1 | 1.9 V |
| LVL_BODLEVEL2 | 2.7 V |
| LVL_BODLEVEL3 | 4.5 V |
|
Register: OSCCFG
|
|
|---|---|
| OSCHFFRQ | High-frequency Oscillator Frequency |
| OSCHFFRQ_20M | OSCHF running at 20 MHz |
| OSCHFFRQ_16M | OSCHF running at 16 MHz |
|
Register: SYSCFG0
|
|
|---|---|
| EESAVE | EEPROM Save |
| EESAVE_DISABLE | EEPROM content is erased during chip erase |
| EESAVE_ENABLE | EEPROM content is preserved during chip erase |
| RSTPINCFG | Reset Pin Configuration |
| RSTPINCFG_NONE | No External Reset |
| RSTPINCFG_RESET | PF6 configured as RESET pin |
| UPDIPINCFG | UPDI Pin Configuration |
| UPDIPINCFG_GPIO | PF7 Configured as GPIO pin |
| UPDIPINCFG_UPDI | PF7 Configured as UPDI pin |
| CRCSEL | CRC Select |
| CRCSEL_CRC16 | Enable CRC16 |
| CRCSEL_CRC32 | Enable CRC32 |
| CRCSRC | CRC Source |
| CRCSRC_FLASH | CRC of full Flash (boot, application code and application data) |
| CRCSRC_BOOT | CRC of boot section |
| CRCSRC_BOOTAPP | CRC of application code and boot sections |
| CRCSRC_NOCRC | No CRC |
|
Register: SYSCFG1
|
|
|---|---|
| SUT | Startup Time |
| SUT_0MS | 0 ms |
| SUT_1MS | 1 ms |
| SUT_2MS | 2 ms |
| SUT_4MS | 4 ms |
| SUT_8MS | 8 ms |
| SUT_16MS | 16 ms |
| SUT_32MS | 32 ms |
| SUT_64MS | 64 ms |
|
Register: CODESIZE
|
|
|---|---|
| CODESIZE | Code Section Size |
|
Register: BOOTSIZE
|
|
|---|---|
| BOOTSIZE | Boot Section Size |
|
Register: PDICFG
|
|
|---|---|
| LEVEL | Protection Level |
| LEVEL_NVMACCDIS | NVM Access through UPDI disabled |
| LEVEL_BASIC | UPDI and UPDI pins working normally |
| KEY | NVM Protection Activation Key |
| KEY_NOTACT | Not Active |
| KEY_NVMACT | NVM Protection Active |