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.

Compiler/TMS320F28069M: Add sci.c and sci.h files

Part Number: TMS320F28069M


Tool/software: TI C/C++ Compiler

I add the sci. c to the sci. h file as a file, and there is a function when the interrupt is not used, but I don't know the meaning of this function:

if(SCI_rxDataReady(halHandle->sciBHandle))
      {
          while(SCI_rxDataReady(halHandle->sciBHandle) == 0);
          dataRx = SCI_getDataNonBlocking(halHandle->sciBHandle, &success);
          success = SCI_putDataNonBlocking(halHandle->sciBHandle, dataRx);
      }

What is dataRx? How do you define it? Is it the same meaning as dataRx in the following function?

What is success, how do you define it? What does it mean the same as&success?

If I want to send 5AA504 80030001 screen will change;
The received data is sent by the screen and needs to be judged, what is the representation of the received data here?

Thanks!!!!

  • Due to US holidays, you can expect a response by 3'rd Dec.

  • hi,

    Can you point me to where are these sci.h and sci.c files that you are referring to ?

    I am answering these from what i expect these to be:

    user6024771 said:
    What is dataRx? How do you define it? Is it the same meaning as dataRx in the following function?

    Its the data that is received .

    user6024771 said:
    What is success, how do you define it? What does it mean the same as&success?

    success  should have a status if the data transmission / put was actually successful.

    Yes in the 

    user6024771 said:
    dataRx = SCI_getDataNonBlocking(halHandle->sciBHandle, &success);
    the success is passed by address so would also have the status of the receive of the data

    user6024771 said:
    screen will change;

    what do you mean by screen will change ?

    user6024771 said:
    The received data is sent by the screen and needs to be judged, what is the representation of the received data here?

    dataRx is the representation of the received data

    Regards.

  • hi ,

    Were you able to make any progress on this ?

    Regards.

  • Sorry! There's no progress.

    In which, the baud rate does not know how to set the baud rate.

    #define USER_SYSTEM_FREQ_MHz             (90.0)       Baud rate=9600;
    SCI_setBaudRate(obj->sciBHandle,(SCI_BaudRate_e)(?));
    (90000000/(9600*8))-1=BAUD:  The result is incorrect.
  • hi ,

    The internally-generated serial clock is determined by the low speed peripheral clock (LSPCLK) signal and the two baud-select registers.

    BRR = LSPCLK / (SCI Asynchronous Baud * 8) - 1

    Note that the above formulas are applicable only when 0 < BRR <
    65536.

    Where: BRR = the 16-bit value (in decimal) in the baud-select
    registers

    user6024771 said:
    #define USER_SYSTEM_FREQ_MHz             (90.0)       Baud rate=9600;
    SCI_setBaudRate(obj->sciBHandle,(SCI_BaudRate_e)(?));
    (90000000/(9600*8))-1=BAUD:  The result is incorrect.

    Isn't 90000000 the system clock and not the LPCLk ?

    Regards.

  • I've solved it! Thank you for your answers! 

  • hi ,

    Great to here that.

    Regards.