Post Go back to editing

UART handle

Category: Hardware
Product Number: ADSP-SC594

I try to connect with SHARC core 0 via UART 0 handle. But even, there is no error when I installed the Handle, we never go to the handle function

install Handle

Result = adi_int_InstallHandler(INTR_UART0_RXDMA, UART_RX_HANDLE, NULL, true);

with the handle function

void UART_RX_HANDLE(uint32_t idd, void *handleArg){

printf("UART_RX_HANDLE\n");

int32_t Data
int iTemp = *pREG_UART0_STAT;

while((iTemp & ENUM_UART_STAT_NEW_DATA) == 0) //Wait till Rx buffer is not full
{
iTemp = *pREG_UART0_STAT;
}
Data = *pREG_UART0_RBR;

}

Could you please help me?

Parents Reply
  • Hi,

    Please refer to the attached example, which includes two projects:

    1. ADSP_SC594_Uart0_TX_RX – In this project, UART 0 on ADSP-SC594 is configured as both a transmitter and a receiver.
    2. ADSP_21593_UART_RX_TX – This project configures ADSP-21593 to receive data via UART 0 and transmit it via UART 1.

    Data Flow:

    ADSP-SC594 UART 0 (TX) → ADSP-21593 UART 0 (RX) → copied to ADSP-21593 UART 1 (TX) → ADSP-SC594 UART 0 (RX)

    An external connection is required to link the UART pins. Please refer to readme.txt for further details.

    ADSP-SC594 UART TX_RX.zip

    We successfully transmitted and received 1024 bytes of data on SC594.

    Please try running this project and share your results with us.

    Regards,
    Nandini C

Children