📄 problem.txt
字号:
1:像cont 这种寄存器该怎么定义地址?
2:比如ioca 等寄存器,在定义的时候用
static io unsigned int IOCA @0x0A:iopage 0;
但是在定义它里面的位的时候,为什么不能这样定义?
static bit IOCA_CALL_1 @0x0A@1:iopage 0;
而要
static bit IOCA_CALL_1 @0x0A@1:rpage 0;才对?
3:对于ioce 在page0 跟page1 中,里面的位意义完全不同。
为什么
static bit IOCE_PSC1 @0x0E@2:rpage 1;
Error LNK1107: Can't allocate Register space for '_IOCE_PSC1' at RPage 1, 0x0E, bit 3, which need 1 byte(s)!
static bit IOCE_PSC1 @0x0E@2:rpage 0;
这样一来,跟
static bit IOCE_BIAS1 @0x0E@2:rpage 0;//counter1 prescaler
成了一个地址?
是不是定义成一样的,在用的时候用切换页的那个命令?
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -