Forum Discussion
Altera_Forum
Honored Contributor
21 years agoabout the NIOS II IDE
About the Address of the TIMER_CONTROL and TIMER_STATUS: in my SOPCBUILD, the TIMER_0_BASE = 0x4800(18432) So ,I think the address: TIMER_CONTROL: 0x4800(18432)+2 = 0x4800(18432)+2 ...
Altera_Forum
Honored Contributor
21 years agoHi xc214043,
> But one the DISASSEMBLY , I find the TIMER_CONTROL`s address if 18436(0x4800+4) This is correct ... the registers are all 32-bit aligned. status @ base + 0x00 control @ base + 0x04 periodl @ base + 0x08 and so on. > IOWR_ALTERA_AVALON_TIMER_CONTROL(TIMER_0_BASE, > 0x00000244 <init_timer_0+16>: movi r3,18436 ; 0x4804 (base + 4) -- correct > IOWR_ALTERA_AVALON_TIMER_STATUS(TIMER_0_BASE, > 0x00000250 <init_timer_0+28>: movi r3,18432 ; 0x4800 (base + 0) -- correct Regards, --Scott