56F8013, debugger access to peripheral registers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

56F8013, debugger access to peripheral registers

1,921 次查看
rmerwin
Contributor I
I'm using CodeWarrior 56800E 8.1 (CodeWarrior 56800/E Hybrid Controllers version 7.1).   I'm trying to use the debugger's "Register" window to access peripheral registers in a 58F8013.

My code writes 16-bit values to the following registers:

    GPIOA_PEREN = 0xFFFF;
    GPIOA_DDIR = 0xFFFF;
    GPIOA_DATA = 0xFFFF;

But in the Debugger's Register window, I see:

    GPIOA_PER    0x00FF
    GPIOA_DDR   0x00FF
    GPIOA_DR      0x00FF

When I click on the values in the Register window and set them manually to any 16-bit value, the value always has the top 8 bits masked off.

Does the debugger have a bug, or is there a configuration option somewhere that I've missed?

Ralph
标签 (1)
标记 (1)
0 项奖励
回复
1 回复

810 次查看
rmerwin
Contributor I
Replying to my own message, after reviewing the data sheet I had one of those 'duh' moments when I realized that the GPIO registers are only 8-bits...  So the debugger is working as expected.

Ralph
0 项奖励
回复