ADSP-SC594
Production
Reaching speeds of up to 1 GHz, the ADSP-SC59x processors are members of the SHARC® family of products. The ADSP-SC59x processor is a dual-SHARC+® core...
Datasheet
ADSP-SC594 on Analog.com
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?
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).
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
Hi,
Thank you for your help. we would like to use the same UART 0 for TX and RX to connect with the external. We now can get the data but we have two problems:
- we try to send a frame of more than 20 bytes, but we can receive only 8 bytes (8 called times in the Handle function) with OE (overrun error) by printing the pREG_UART0_STAT
- The recieved data is not the one we have sent event with the samle Baurate (115200 with devisor 1085)
BR,
Could you please help us to solve this issue,
We think that is a baud rate problem, but we could not find out the good configuration for the 115200 Baud rate.
Thanks,
Hi ,
We tried to replicate your issue using the ADSP-SC594 SOM EZKIT, and it works as expected.
Please provide more information on below points to assist you better on this.
1.Could you kindly confirm that the UART configuration is the same for both transmission and reception?
2.When checking the bit rate, what is the value of SCLK0 in the formula: Bit Rate = SCLK0 / (16 × (1 - EDBO) × Divisor)?
3.Also, could you adjust the UART baud rate to a lower value and please let us know if that makes any difference?
Regards,
Nandini C
Hi,
1.Could you kindly confirm that the UART configuration is the same for both transmission and reception? -> Yes, we have the same configuration for both
2.When checking the bit rate, what is the value of SCLK0 in the formula: Bit Rate = SCLK0 / (16 × (1 - EDBO) × Divisor)? -> SCKL0 is 125Mhz
3.Also, could you adjust the UART baud rate to a lower value and please let us know if that makes any difference? -> Yes, I have tried it, but we have the same problem.
Thanks,
We have tried to send from the UART2 TX and recieve with UART0 RX with your example, there is no problem.
Hi,
Thanks for the update. Glad to know that your issue got resolved. Please let us know if you need further assistance on this.
Regards,
Nandini C
Hi,
Sorry, I mean in the loopback mod when there is no connection to the external Device.
Thanks, still need some help from your side.
Hi ,
To help us assist you more effectively, could you please clarify whether you are still planning to use the same UART 0 for both TX and RX to connect with the external device or if you are now using different UARTs for TX and RX with the external device?
Regards,
Nandini C
Hi
We would like to use the same UART.
Regards,
VK