Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input trigger + DMA transaction #53

Open
sadkotheguest opened this issue Dec 9, 2024 · 2 comments
Open

Input trigger + DMA transaction #53

sadkotheguest opened this issue Dec 9, 2024 · 2 comments

Comments

@sadkotheguest
Copy link

sadkotheguest commented Dec 9, 2024

Hello!
Is there an example in the SDK of running a DMA block on an external trigger (i.e. similar with ETR input in TIMs of STM32 MCUs or with PWM input capture)?

What is the easiest way to solve the problem of capturing an external signal (changing positive polarity to negative and vice versa) and generating a DMA event (which will expose a certain set of bits stored in memory to the GPIO port)?

@chenzhihong007
Copy link

You can use gptmr to capture input signals, and gptmr can gernerate the capture dma request.

The key information in user manual as follows:
image
image

Also, hpm_sdk has an example, you can refenrence hpm_sdk/samples/drivers/dma/dma_use_gptmr_event_transfer, and select gptmr_dma_request_on_input_signal_toggle test mode.

@sadkotheguest
Copy link
Author

You can use gptmr to capture input signals, and gptmr can gernerate the capture dma request.

Also, hpm_sdk has an example, you can refenrence hpm_sdk/samples/drivers/dma/dma_use_gptmr_event_transfer, and select gptmr_dma_request_on_input_signal_toggle test mode.

Thank you for the information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants