In der Bascom-Hilfe steht was zum RS485 (Suchman nach 485)
- Use PRINT or PRINT0 for the first serial port. Use PRINT1 for the second serial port.
When you use RS-485 half duplex communication you need a pin for the direction of the data. The CONFIG PRINT automates the manual setting/resetting. It will either SET or RESET the logic level of the specified pin before data is printed with the Bascom print routines. After the data is sent, it will inverse the pin so it goes into receive mode.
You need to set the direction of the used pin to outputmode yourself.
Code:....... Config Print0 = Portb.0 , Mode = Set Config Pinb.0 = Output 'set the direction yourself .....
Schau doch mal selbst nach.
Ansonsten bin ich auch sehr an deinem Protokoll interresiert,
da ich demnächst (innerhalb den nächsten Decade) auch damit arbeiten möchte/werde.
Lesezeichen