Timer with dma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-30 3:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-30 1:21 PM
Describe in more detail what do you want to accomplish.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-31 3:14 AM
Can i transfer count=TIM1->CNT if tim1 is in encoder mode, tim1 channel1 and tim1 channel2 are in dma ,without cpu interraction?
​
​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-31 12:17 PM
You of course can, but upon what stimulus do you want to do that transfer, i.e. how do you want to trigger the DMA?
If you base it on CH1 or CH2, which are the encoder inputs, you'll get 1, 2, 3, 4... or 4, 3, 2, 1... when you turn/move the encoder, which I doubt is what you want.
Maybe you should tell us, what is your ultimate goal.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-31 12:30 PM
my ultimate goal is to overload the cpu as little as possible using the dma and dedicate the cpu to other processes!
Thanks ​
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-31 12:31 PM
tell me if I'm wrong to think!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-08-31 11:35 PM
The timer in encoder mode runs automatically, with no involvement from the processor. You don't need DMA, you read it out only when you want to know its current position.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-01 7:15 AM
Ok thanks​
