This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: ADC integration failure

Part Number: TMS570LC4357


Hi,

I tried to integrate ADC using the example from the installation example_adcDisplau.c

When i run the build, it is always stuck in the below while loop, though i changed the SCI pins to Tx and Rx.

Please provide me the proper example or configuration file to get start with.

void sciDisplayText(sciBASE_t *sci, uint8 *text,uint32 length)
{
while(length--)
{
while ((sci->FLR & 0x4) == 4); /* wait until busy */
sciSendByte(sci,*text++); /* send out text */
};
}

Regards,

Somesh

  • Hello Somesh,

    There are 4 SCI modules on TMS570LC43x device. LIN1/SCI1 pins are not muxed with other functional pins. All other 3 SCI modules are muxed with
    S{I and NHET etc. Please use the SCI module which you have configured.
  • I was using SCI3, and pin configuration is as below
    /** - set SCI3 pins functional mode */
    sciREG3->PIO0 = (uint32)((uint32)0U << 2U) /* tx pin */
    | (uint32)((uint32)0U << 1U); /* rx pin */

    But still i see it is stuck in the while loop.

    If possible provide me some configuration, which i could use to integrate successfully.
  • Hello,

    1. Under Driver Enable tab: check SCI3
    2. Under Pinmux: select SCI3TX and SCI3RX for pin N2 and W3
    3. Under SCI3 tab: check 'Async Mode" and "Internal clock". In SCI port tab, please select SCI mode. In SCI Data Format tab, select your baudrate, charlen, and stop bit.