Frequency management on Stellaris

General discussion on mikroC PRO for ARM.
Post Reply
Author
Message
mavrik
Posts: 35
Joined: 07 Mar 2012 16:41
Location: Russia, Zelenograd

Frequency management on Stellaris

#1 Post by mavrik » 07 Apr 2012 18:36

I try to write a code which will transform an entrance signal with frequency 0-750Hz to a target signal 93000-103000Hz. not flood plain as is better for making that steps of regulation was more than value of entrance frequency? :) someone can already did the similar?
---
Sergey

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Frequency management on Stellaris

#2 Post by janko.kaljevic » 09 Apr 2012 17:59

Hello,

I have not done something like that.
But I believe that you can do it with timer interrupt.
Just make algorithm that will calculate timer period value and load it when you need to change frequency.

On each interrupt just toggle appropriate output pin.

Maybe someone has better idea how to make this, and everyone is welcome to post suggestion.

Best regards.

Post Reply

Return to “mikroC PRO for ARM General”