For Baud Rate Setting - Moxa Technologies CA Series User Manual

Multiport serial module
Hide thumbs Also See for CA Series:
Table of Contents

Advertisement

CA Series PC/104
Control Serial Interface and Termination Resistor for MUE chips
For Moxa boards that use MUE250, MUE450, and MUE850 chips, BAR2, which is allocated 16 bytes. is the
vector base address that can be used to control the serial interface and termination resistor according to
the following table.
Offset
0x4
0x5
0x6
0x7
0x8
0x9
0xA
Especially, the interface of 4-port models, such as CP-114EL and CP-114EL-I, is using the following offset to set
the interface of port 4.
Offset
0x4
0x5
0x6
0x7

For Baud Rate Setting

For General PC Com Port: CLK=1.8432MHz
Div = CLK/(Baud x 16)
But for Moxa Board: CLK=14.7456MHz
Div = CLK/(Baud x 16)
Bit
Port #
[3..0]
1
[7..4]
2
[3..0]
3
[7..4]
4
[3..0]
5
[7..4]
6
[3..0]
7
[7..4]
8
[7..0]
[8..1]
[7..0]
[8..1]
[7..0]
[8..1]
Bit
Port #
[3..0]
1
[7..4]
2
[3..0]
3
[7..4]
-
[3..0]
-
[7..4]
-
[3..0]
4
Smartio/Industio Programming Guide
Parameters
0x0 : RS-232
0x1 : RS-422
0xF : RS-485 2W
0xB : RS-485 4W
GPIO – Input
GPIO direction configuration
0 : Set GPIO direction to input
1 : Set GPIO direction to output
GPIO – Output (Termination Resistor)
0 : Low (0 Ohm)
1 : High (120 Ohm)
Parameters
0x0 : RS-232
0x1 : RS-422
0xF : RS-485 2W
0xB : RS-485 4W
5-5

Advertisement

Table of Contents
loading

Table of Contents