📄 config.txt
字号:
DEVICE CONFIGURATION
--------------------
PICmicro configuration information can be put in the generated hex
and assembly file. ID locations can also be programmed. The
configuration information is generated IF AND ONLY IF the #pragma
config statement is included.
Note that some PICmicro device programmers may reject this information.
Syntax:
#pragma config[<offset>] = <expression>
#pragma config[<offset>] |= <expression>
#pragma config[<offset>] &= <expression>
#pragma config ID[<offset>] = <expression>
Examples:
#pragma config[0] = 0b.1.000.0101 // byte at address 0x300000
#pragma config[1] |= 3 // set bit 0,1 (address 0x300001)
#pragma config[2] &= ~0xF0, |= 0x80 // clear bit 4-7, set bit 7
#pragma config[2+1] = 0xF | 0x80
#pragma config ID[0] = 0x9 // byte at address 0x200000
#pragma config ID[1] = 0x8 // byte at address 0x200001
#pragma config ID[2] = 0x3
The CONFIG and ID are specified in BYTES.
CC8E will join 2 bytes into a 16 bit WORD in the generated hex, asm
and list files. If only one byte is defined for a word, then the
default value is used for the undefined byte. The default setting of
config attributes are 1. ID locations have 0 as default value.
It is also possible to define the CONFIG and ID locations by using
#pragma cdata statements. Then 16 bits words is defined directly.
CONFIG word start address:
PIC18 : 0x300000
ID word start address:
PIC18 : 0x200000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -