Altera_Forum
Honored Contributor
14 years agoNIOS II Timer Interval Core Question!
Hi,
I am trying to generate three different clock cycles; Given below is what i am trying to generate Clock1 ¯¯¯¯|_|¯|_|¯|_|¯|_|¯¯¯¯¯¯¯¯¯¯¯ Please note that clock 1 starts out high and Clock2 ______|¯|_|¯|_|¯|_|¯|_________ switches to zero where as clock 2 and clock 3 Clock3 ___________________|¯|______ starts out at 0 and switches to high. High=3.3V I hope the figure is readable and understandable. All these three clocks needs to be at 7.75MHz and all must be synchronized. The frequency of these three clocks must also be easily changable. I already have this working using verilog and some PLLs. But now, i want to switch my entire design to NIOS II processor and use timer interval to generate them. Following are my questions; 1. Is it possible to generate these three clocks using timer interval? 2. If it is possible, will they be synchronized? 3. How can i go about changing the clock frequency dynamically? P.S. I already read the document regarding the timer core and from my understanding of the timer core, i do believe that generating these required frequency is a piece of cake. I am just not so sure about being able to change the frequency dynamically. Question about interval timer core: Suppose my timer core is running at 4MHz. And my timeout period is set at 1Second. When the timeout pulse produces a pulse, when the internal counter count downs to zero, does it produce a 1Sec pulse or a 4MHz pulse? Best Regards, Pratish (PK)