What is CCx update rate in AN4013 timer overview?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-06-28 2:30 AM
Posted on June 28, 2014 at 11:30
There is equation in AN4013 timer overview:
CCx update rate = TIMx_Counter_CLK / CCRx.What is CCx update rate?Does CCx update rate depend on ARR? #timer #an4013
Labels:
- Labels:
-
TIM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-06-28 5:37 AM
Posted on June 28, 2014 at 14:37
You'd advance the TIMx->CCRx registers to generate a signal when TIMx->CNT counts past the value
If the Period = 10000, TIMx->ARR = Period-1 If CCx needs to fire 1000 ticks after the prior setting. Ticks are at a frequency dependent on TIMCLK and the prescaler. TIMx->CCR1 = (TIMx->CCR1 + 1000) % Period; To generate multiple frequencies from the different timer channels, you'd have to manage the advancement of the CCRx registers in the CCx interrupts.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
