I am sending data one by one, so the output should be 01,02,03,04,05. But it isn’t.
When the data bits is seven( 05 05 04 03 02 01 05 05 04 03 02 01 05 05。。。),it will output: C:\Users\me\Desktop\MM1
When the data bits is eight( 85 85 84 83 82 81 85 85 84 83 82 81 85 85。。。 ),it will output: C:\Users\me\Desktop\MM2
However,the data bits I set in MCU is eight while stop bit is one.I don’t know where went wrong?
its been a while but the 4 settings that matter on a serial port are the speed match (you have this, or you would get total random junk) and the N-8-1 settings (this is the standard that most everything used in the later years of serial ports, the other settings were generally only seen on even older stuff).
If you have the 8 and 1, check the N setting.
All 4 settings on the source and target ports have to match or you get strange behavior. This looks like what you might see with N-8-0 vs N-8-1 conflict, but I am guessing and havent used a serial port in 10+ years.