Systick and TIM6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-19 3:55 AM
Posted on February 19, 2018 at 12:55The original post was too long to process during our migration. Please click on the attachment to read the original post.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-19 4:15 AM
Posted on February 19, 2018 at 13:15
Probably because now the loopdelay (which is far from being precise) causes the main loop to miss the 1ms window of ((
TimingDelay % TIMER
)==0)?Try (TimingDelay >= TIMER) instead.
And then throw away the whole program and start from scratch, rethinking what do you really want to achieve, and avoiding loopdelays.
JW
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-19 5:25 AM
Posted on February 19, 2018 at 13:25
I'm tryed it.. I'm begun from this.. Sorry, I'm probably understand - the whole point is this:
while ((TIM6->CR1 & TIM_CR1_CEN) != 0);
Try (TimingDelay >= TIMER) instead.
