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?

采纳的回答

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

更多回答(0 个)

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by