pilo Posted February 2, 2004 Report Share Posted February 2, 2004 I would like to know which timer MIOS_TIMER function uses... I'm trying to make a guitar tuner (or a frequency meter), but I can't get it work properly (I need a 16bit counter...)I get C source code from herehttp://www.myplace.nu/avr/gtuner/gtuner.cand my code should be ok... but not timer things...thanks! Quote Link to comment Share on other sites More sharing options...
TK. Posted February 4, 2004 Report Share Posted February 4, 2004 Hi Pilo,MIOS_Timer uses TMR3, thats already a 16 bit timer, and by using the MIOS_Timer_Init function you're able to control "allowed" parameters.Take care that USER_Timer is an interrupt service routine (Use FSR2, use IRQ_TMP*, etc...)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
pilo Posted February 5, 2004 Author Report Share Posted February 5, 2004 mmm sounds good ;)actually I don't need the interupt, or maybe just in case the input frequency is too low. I just need to get and set the 16bits counter value.thanks! ;) Quote Link to comment Share on other sites More sharing options...
TK. Posted February 5, 2004 Report Share Posted February 5, 2004 Hi Pilo,the problem is, that you didn't mention which problems you are observing, therefore I cannot really give you an useful answer...However, the lcd_benchmark application demonstrates how to use TMR3 w/o interrupts.Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.