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.

CCS/TMS570LS1224: Working with SCI module

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello,

I am working with a TMS570LS1224 microcontroller and need to send different kinds of packets of data via SCI module.My question is that how can I specify which data packet to use for a specific part of my code?

Also how can I make different data packets with different length and data type in halcogen?

Is there kinda specification like spi module:

/*Checking the connection*/
    spiDAT1_t dataconfig1_t;
    
    dataconfig1_t.CS_HOLD = FALSE;
    dataconfig1_t.WDEL = TRUE;
    dataconfig1_t.DFSEL = SPI_FMT_0;
    dataconfig1_t.CSNR = 0xFE;
    
/*Enable CPU interrupt through CPSR*/
    _enable_IRQ();
to specify data format in the code during working with sci module?
Also what does  _enable_IRQ() mean?
  • Hello Nika,

    The SCI data length is also configurable from 1 bit to 8 bits, and stop is also programmable for 1 bit or 2 bits.

    The SCIGCR1 and MBRS are used to configure the stop bit and baudrate.

    The SCI/LIN module also supports multi-buffer mode: please refer to TRM.

  • Hello QJ,

    My question is that in HaLCoGen's example for spi module there is a specification like below:

    spiDAT1_t dataconfig1_t;

    dataconfig1_t.CS_HOLD = FALSE;
    dataconfig1_t.WDEL = TRUE;
    dataconfig1_t.DFSEL = SPI_FMT_0;
    dataconfig1_t.CSNR = 0xFE;

    But in sci example this section is ommited.Why?Is it unnecessary?

    My question may seem stupid but I am new with CCS programming.

  • Hello,

    Since the sci example doesn't use SPI module for data transmission, you don't need to initialize the SPI module and configure the SPI data packet.