Hi,

AVR IO registers are memory mapped.
For e.g. TCCR0 register is at the address 0x53.
You can use view the contents of this IO register by creating a pointer to that address and dereferencing it.
Something like:  p/x *(uint8_t*)0x53
The memory addresses of the registers can be obtained from the AVR datasheet.

-Ram

On Aug 17, 2006, at 4:40 PM, Simon Willis wrote:

Hi,

I'm using a JTAGICE II and ice-gdb for debugging. Is there anyway to read the MCU registers when I hit a breakpoint? I know how to read the normal registers like r0,r1 etc, but I don't know how to access the peripheral registers like the timer status registers etc. Can anyone help?

Thanks,

Simon
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/ tinyos-help


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to