Other Parts Discussed in Thread: EK-TM4C1294XL
Good day,
I have a small problem regarding reading data for timer capture using DMA on the board EK-TM4C1294XL.
According with "TivaWar Peripheral Driver Library" spmu298a.pdf the procedure to initialize the DMA is:
+uDMAEnable() is called once to enable the controller.
+uDMAControlBaseSet() is called once to set the channel control table.
+uDMAChannelAttributeEnable() is called once or infrequently to configure the behavior of the
channel.
+uDMAChannelControlSet() is used to set up characteristics of the data transfer. It is only called
once if the nature of the data transfer does not change.
+uDMAChannelTransferSet() is used to set the buffer pointers and size for a transfer. It is called
before each new transfer.
+uDMAChannelEnable() enables a channel to perform data transfers.
+uDMAChannelRequest() is used
I attached a test project which reads DMA at a timer capture interrupt time.
Can you please take a look and send me an answer what I did wrong.
timer_capture_dma.zip
Regards
Horea
