Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Hi everybody, i am checking MMX144 on my own board.... i find problem with serial COM : here is my little code :
debut:
open "COM2:4800" as #5 print #5,"hello" close #5 pause 10
GoTo debut
nothing on TXpin except a little pulse (of course every 10mS) i tried on COM1 and COM3, same problem, same little pulse, i tried this code on another board MM+, and it is working well, someone got this problem ?
fred
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10570
Posted: 03:27pm 31 Mar 2018
Copy link to clipboard
Print this post
The MMX uses different libraries to the MM+. You are closing the port before the transmit has happened and the MMX is doing exactly what you asked.
You can use the LOF function to test for transmit complete before you close the channel. This will return the size of the transmit buffer once it is empty