Altera_Forum
Honored Contributor
20 years agoAVALON_TIMER
Hi all,
I am trying to use a timer in my design. As soon as I try to enable it, I no longer recieve debugging output on the NIOS II console. I have attached the piece of code causing the problem. Whe I uncomment " fft_timer_control |= ALTERA_AVALON_TIMER_CONTROL_ITO_MSK;" I will not recieve output until resetting the processor and reprogramming. (Stratix device on the DSP development board) Code Snippet: // Start the FFT clock fft_timer_control = IORD_ALTERA_AVALON_TIMER_CONTROL(FFT_TIMER_BASE); fft_timer_control |= ALTERA_AVALON_TIMER_CONTROL_START_MSK; // fft_timer_control |= ALTERA_AVALON_TIMER_CONTROL_ITO_MSK; fft_timer_control |= ALTERA_AVALON_TIMER_CONTROL_CONT_MSK; IOWR_ALTERA_AVALON_TIMER_CONTROL(FFT_TIMER_BASE,fft_timer_control); Any ideas? Thanks in advance.