1 2 Previous Next 15 Replies Latest reply on Aug 30, 2017 9:33 PM by m.roshandelpoor_1580446

    UART-DMA and Break


      Hello Forum,


      i have made an 4 Channel-DMX Receiver with the PSoc5 Kit and it works fine with Interrupt based Code:


          // Check for break
          if((UART_1_ReadRxStatus() & UART_1_RX_STS_BREAK) != 0)
              DMX1Pointer = 0;
          else //Read the Byte and store it in the Array
              DMXIn1[DMX1Pointer] = UART_1_ReadRxData();


      Now i want to do this with DMA. I think there is no Problem to store the Bytes, but how do i reset the Stream when a Break of the UART is detected?



        1 2 Previous Next