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

1 view (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!