Programming Rs-485; Initialize Com Port; Send Out One Character (Transmit); Note 8: Please Refer To The Section Of The "Serial Ports" In The Chapter 6 - Korenix JetBox 8180 User Manual

Hide thumbs Also See for JetBox 8180:
Table of Contents

Advertisement

5-6

Programming RS-485

The majority communicative operation of the RS-485 is in the same of the RS-232.
When the RS-485 precedes the transmission, which needs control the TXC signal, and
the installing, steps are as follows:
Step 1: Enabled TXC
Step 2: Send out data
Step 3: Waiting for data empty
Step 4: Disabled TXC

Note 8: Please refer to the section of the "Serial Ports" in the Chapter 6

"Technical Reference" for the detail description of the COM ports register.

5-6-1 Initialize COM port

Step 1: Initialize COM port in the receiver interrupt mode, and /or transmitter
interrupt mode. (All of the communication protocol buses of the RS-485
are in the same.)
Step 2: Disabled TXC (transmitter control), the bit 0 of the address of offset+4
just sets "0".
Note 9: Control the JetBox system "DTR" signal to the RS-485 TXC
communication.

5-6-1 Send out one character (Transmit)

52
Software Installation | Korenix

Advertisement

Table of Contents
loading

Table of Contents