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
  • Hi ,

    Please refer to the attached example for UART transmit and receive operations using Core Mode on the ADSP-SC594 SOM EZ-KIT. An external connection is required to link the UART0 and UART1 pins. Connect pin P3-22 (UART0 TX) to pin PC4-17 (UART1 RX).

    ADSP_SC594_UART_TX_RX.zip

    Please take this as a reference and modify according to your requirements.

    Please let us know if you need any further assistance on this.

    Regards,
    Nandini C

Reply
  • Hi ,

    Please refer to the attached example for UART transmit and receive operations using Core Mode on the ADSP-SC594 SOM EZ-KIT. An external connection is required to link the UART0 and UART1 pins. Connect pin P3-22 (UART0 TX) to pin PC4-17 (UART1 RX).

    ADSP_SC594_UART_TX_RX.zip

    Please take this as a reference and modify according to your requirements.

    Please let us know if you need any further assistance on this.

    Regards,
    Nandini C

Children