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

[SG200x] DMA handshaking interface numbers are missing #122

Open
nvitya opened this issue Jun 4, 2024 · 3 comments
Open

[SG200x] DMA handshaking interface numbers are missing #122

nvitya opened this issue Jun 4, 2024 · 3 comments
Assignees
Labels
question Further information is requested SG200X

Comments

@nvitya
Copy link

nvitya commented Jun 4, 2024

Hi,

In the DMA channel CFG register there are two fields: DST_PER (bit pos 44) and SRC_PER (bit pos. 39). Also called as DMA hanshaking interface. They are probably 5-bit wide, and probably every peripheral require a specific number here. For example for the UART3_TX you need DST_PER=19 (i have tested this one). For SPI2_TX it is maybe 5 (i did not tes this yet).

This information is crucial to use the DMA properly. Could you add this to the reference manual?

Is there any source available somwhere with this information?

br.
nvitya

@unicornx
Copy link
Collaborator

unicornx commented Jun 4, 2024

@nvitya what project are you talking about? SG2042 or SG200x?

@nvitya
Copy link
Author

nvitya commented Jun 5, 2024

@unicornx I'm testing on a SG2002 (using a Lichee RV Nano).

@unicornx unicornx changed the title DMA handshaking interface numbers are missing [SG200x] DMA handshaking interface numbers are missing Jun 5, 2024
@unicornx unicornx assigned unicornx and KennethLiu61 and unassigned unicornx Jun 5, 2024
@nvitya
Copy link
Author

nvitya commented Jun 6, 2024

Hi,

I've wrote some test programs, it seems that using the DMA channel number for hardware handshaking interface works fine. Can you confirm that?

br.
nvitya

@unicornx unicornx added question Further information is requested SG200X labels Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested SG200X
Projects
None yet
Development

No branches or pull requests

3 participants