Why does the same SCI send sequence get different results in 28335 and 28377d?

조회 수: 1(최근 30일)
Hello everyone,
I am working on code generation for 28335 and 28377d.
Usually I need to send the data in the program to the host computer for graphical display, so my data usually contains a frame header and a frame tail.
One of the problems is that when I use the same frame header, but the 28335 and 28377d get different data: 377d can be sent correctly (0xfc03), but 335 gets 0x7fff (the above data is little endian mode). But both send the correct end of the frame (0x03fc)
1. When I use 28377d, I use RS485, and 28335 uses RS422 duplex communication. I don't know if this has any effect?
2. In addition, the same model generates the same program whether it is processed differently in different DSP chips (I found that in 28335, the data conversion needs to be changed to uint16, the data is normal, but the zero position becomes 32768, the upper position Machine observation is not convenient)
I want to know if I have not dealt with it, or a bug in software or hardware. Has anyone encountered a similar problem?
  댓글 수: 2

댓글을 달려면 로그인하십시오.

채택된 답변

Xu Liu
Xu Liu 2019년 7월 13일
I see,its the comunicate ports problem i think, the problem dispear whan i use rs232

추가 답변(0개)

범주

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by