EmbDev.net

Forum: µC & Digital Electronics AT91SAM9XE512 DMA programming via PDC


Author: Stephan (Guest)
Posted on:

Rate this post
0 useful
not useful
Hello,

I'm having problems implementig usage of the PDC on my AT91SAM9XE512 
evaluation board.

I learned, that the PDC is configured through control registers of the 
peripheral devices; like in the code below
    // write receive-buffer-address to receive-pointer-register
    *AT91C_SPI0_RPR = receive_buffer_address;
    
    // write buffer-size to receive-counter-register
    *AT91C_SPI0_RCR = receive_buffer_size;
   
    // enbale receive
    *AT91C_SPI0_PTCR = AT91C_PDC_RXTEN;
    
    // enbale transmit
    *AT91C_SPI0_PTCR = AT91C_PDC_TXTEN;

but i need to access the PDC directly to change specific channel or 
FIQ-configurations, which i can't do by simply changing these control 
registers.
How do I directly access and control the PDC and it's 
subsystems/controls in C (I am currently using IAR workbench)?

Please help. Thank you.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.