
Page 23
www.tri-m.com
TCB1000 Series User Guide Rev A
3 Configuration
Command-line Configuration
Once you have established a connection with Serial Port 8 or via USB CDC, use a terminal command-line
application, as shown in Figure 16, to read and write values for the commands shown in the table.
Figure 16: Terminal Command-line Application
Command
Description
Page
UART 1
Configures UART1 which controls the RS-232 ports 1 to 4.
UART 2
Configures UART2 which controls the RS-485 port, Socket Modem 1,
Socket Modem 2, and the CPU.
UART CLOCK DIVIDER Assigns a divider value for the UART Clock (f=14.7456MHz).
SERIAL PORT ENABLE/
DISABLE
•
Enables or disables the four RS-232 ports and RS-485 port.
•
Assigns Serial Port 8 to connect to the CPU or GPIO pins on
Universal Socket 2.
DSR
Configures the DSR signal to the DTR for the four RS-232 ports and the
RS-485 port.
RS-485
Configures the RS-485 transmit and receive lines.
SOCKET RESET
Manually resets Socket 1 or Socket 2.
CAN BUS MODE
•
Configures CAN Bus for BASIC or PeliCAN, PORTIO or MEMIO.
•
Assigns the same IRQ for both CAN Bus controllers.
CAN BUS 1
Configures the IRQ, addresses, and slew rate for CAN Bus controller 1. See page 28.
CAN BUS 2
Configures the IRQ, addresses, and slew rate for CAN Bus controller 2. See page 29.
HEART BEAT
Assigns a heart beat frequency (in deci-Hertz, 1/10Hz) and duty cycle.
TEMP
Configures the on-board low and high temperature limits in Kelvin.
ALARM MESSAGE
Sets the frequency of the alarm message in second(s).
CONFIG
View the configuration settings, apply the changes, save/load the
configuration profile (Config.txt), lock any configuration changes.
>can?
CAN
C1 = 0x00000600, 10
C2 = 0x00000680, 10
>ser?
SER
U1PI = 0x0300, 5
U1P2= 0x0308, 5
U1P3 = 0x0310, 5
U1P4 = 0x0318, 5
U2P1 = 0x0200, 5
U2P2 = 0x0208, 5
U2P3 = 0x0210, 5
U2P4 = 0x0218, 5
>u1p=256
U1P = 0x0100
>ser?
SER
U1P1 = 0x0100, 5
U1P2 = 0x0108, 5
U1P3 = 0x0110, 5
U1P4 = 0x0118, 5
U2P1 = 0x0200, 5
U2P2 = 0x0208, 5
U2P3 = 0x0210, 5
U2P4 = 0x0218, 5
>
File Edit View Terminal Go Help