Altera_Forum
Honored Contributor
20 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 TIMER_STATUS: 0x4800(18432)+0 = 0x4800(18432)+0 But one the DISASSEMBLY , I find the TIMER_CONTROL`s address if 18436(0x4800+4) So , how to switch the bus width between 32bit and 16bit, and the function of IOWR_ALTERA_AVALON_TIMER_CONTROL() is 32bit ??? think you ,for your help??? DISASSEMBLY: IOWR_ALTERA_AVALON_TIMER_CONTROL(TIMER_0_BASE, 0x00000244 <init_timer_0+16>: movi r3,18436 http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif 0x00000248 <init_timer_0+20>: movi r2,7 0x0000024c <init_timer_0+24>: stwio r2,0(r3) np_timercontrol_start_mask | np_timercontrol_cont_mask | np_timercontrol_ito_mask ); IOWR_ALTERA_AVALON_TIMER_STATUS(TIMER_0_BASE, 0x00000250 <init_timer_0+28>: movi r3,18432 http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif 0x00000254 <init_timer_0+32>: movi r2,3 0x00000258 <init_timer_0+36>: stwio r2,0(r3) np_timerstatus_run_mask | np_timerstatus_to_mask);