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.

关于SCI接收数据的问题(28069M)

Other Parts Discussed in Thread: CONTROLSUITE

28069m在FIFO模式下,只能接收4个字节,但我需要让它接收8个字节进行判断,该如何写程序?

目前,我只能判断4个字节,也就是说,我要发送四次才可以进入中断,如果不需要中断接收数据,程序怎么写,或者有没有相关的例程?能具体说一下吗?

谢谢!谢谢!十分感谢!

  • controlSUITE上的例程有参考过吗?
    C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_examples_ccsv5\sci_echoback
  • 参考过,我是在FIFO模式下修改程序,把发送数据按照sci_echoback进行修改,一个字节字节发送,但是接收时是中断,接收到的数据进行判断,如果符合,进入中断,就是说该按钮有反应
    但我看到这个是没有用到中断,接收的程序是等待空位,把所有接收缓冲区的数据给ReceivedChar,在进行发送
    我原有的程序是:
    void receive_data(void)
    {
    if((rdataA[0]==0x20)&&(rdataA[1]==0x01)&&(rdataA[2]==0x00))
    {
    if(rdataA[3]==0x01)
    {
    flag1=1;
    Blade=1;
    }
    }
    }
    那我该怎么修改呢?