56F8013, debugger access to peripheral registers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

56F8013, debugger access to peripheral registers

1,688 Views
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
Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

577 Views
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 Kudos
Reply