• AVR Freaks

UART DMA

Author
Standa322
New Member
  • Total Posts : 18
  • Reward points : 0
  • Joined: 2009/10/12 07:48:23
  • Location: 0
  • Status: offline
2010/04/02 01:36:37 (permalink)
0

UART DMA

Hallo people, I have problem with getting data from DMA buffer to field of integers. When I copy values from DMA buffer to field of integers, instead first 14th values are values which had be at the beginning of the new buffer. It looks like that DMA buffer was overflow. But I don´t know why. This is my code.
#1

3 Replies Related Threads

    Mike017
    Super Member
    • Total Posts : 2698
    • Reward points : 0
    • Joined: 2007/08/25 08:11:31
    • Location: Lincoln, RI, USA
    • Status: offline
    RE: UART DMA 2010/04/02 10:16:39 (permalink)
    0
    Hi,

    You have created 2 buffers BuffersC & BufferD. Within a watch window, are the buffers filled correctly?
     
    Good Luck,
    Mike

    post edited by Mike017 - 2010/04/02 11:09:37
    #2
    Standa322
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2009/10/12 07:48:23
    • Location: 0
    • Status: offline
    RE: UART DMA 2010/04/09 01:31:14 (permalink)
    0
    I don't know. How I get values from PIC to Watch Windows? I read somethink in MPLAB_C18_Getting_Started_51295f.pdf, but I didn't find information about this task. Thank you.
    #3
    Standa322
    New Member
    • Total Posts : 18
    • Reward points : 0
    • Joined: 2009/10/12 07:48:23
    • Location: 0
    • Status: offline
    RE: UART DMA 2010/04/19 05:39:41 (permalink)
    0
    I am so happy. This Code is OK now. Problem was with configuration DMA2CONbits.AMODE. I had AMODE = 2, but correct configuration is AMODE = 0. So thank you for your help, you have true with bad filled buffers.
    #4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5