November 07, 2024, 08:46:06 PM

RS232 ouput connector

Started by powersoft, December 28, 2012, 06:16:33 PM

Previous topic - Next topic

powersoft

Hello,

I wont to use the serial port connector on the board named "rs232".
Connect it to my Marklin Digiatal interface (6050) on it (2400 Baud, 8 bit, 1 start bit, 2 stop bits)
Two questions.
1. What is the com port number for this rs232?
2. How to set 2 stop bits?

Thanks for any help.

Jan Kromhout
Hellevoetsluis-NL

ThierryP

Jan

The RS232 port on the DM-Mega would be COM4.
MM-Basic does not support two stop bits, so you have to add the extra 'pause yourself after each character, like so:
100 OPEN "COM4:2400" AS #1
110 DELAY=5
120 PRINT#1,CHR$(&HFE); : PAUSE DELAY
130 PRINT#1,CHR$(&H0A); : PAUSE DELAY
... etc

This 5ms delay has proven to work as 2nd stopbit at 2400 bps.

Success

Thierry
NL