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

Implement DMA #62

Open
snim2 opened this issue Aug 12, 2016 · 1 comment
Open

Implement DMA #62

snim2 opened this issue Aug 12, 2016 · 1 comment

Comments

@snim2
Copy link
Member

snim2 commented Aug 12, 2016

Currently DMA registers do nothing special!

@snim2
Copy link
Member Author

snim2 commented Aug 14, 2016

Example from architecture reference:

MOV
R1, 0x8
MOVT R1, _1D_DESCR
; set the startup bit
; put descriptor pointer in the upper 16 bits
MOVTS DMA0CONFIG, R1 ; start a DMA transfer by writing to the
; DMA config register.
_1D_DESCR;
.word 0x00000003; configure in master mode and enable
.word 0x00010001; increment src/dst address by 1 byte each transaction
.word 0x00010008; transfer has 8 transactions in a single inner loop
.word 0x00000000; outer loop stride not used in this example
.word 0x00002000; set source address to 0x2000, a local address
.word 0x92000000; set destination address to an external address

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

No branches or pull requests

1 participant