2019-08-30 03:32 AM
2019-08-30 01:21 PM
Describe in more detail what do you want to accomplish.
JW
2019-08-31 03: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?
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
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
2019-08-31 12:31 PM
tell me if I'm wrong to think!!!
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
2019-09-01 07:15 AM
Ok thanks