Set Baud Rate
\i I B byte::port_no long::baud
Parameter |
Type |
Range |
Description |
port_no |
byte |
0 ... 2 (0 = currently active) |
serial port to be configured |
baud |
long |
300 ... 921600 |
baud rate |
Sets the baud rate according to baud for the serial communication-port specified. A port_no of 1 refers to Serial Port 0, a port_no of 2 refers to Serial Port 1 (not enabled by default).
Note
- Although the baud rate is usually set via iLCD Manager XE, baud rates higher than 115200 can only be set via this command to prevent loss of communication on slower serial ports.
- Restarting the iLCD Controller with the Reboot Panel Controller command or via the reset pin causes the controller to start with the baud rate set via iLCD Manager XE.
- When using the value 0 for port_no, the baud rate for the serial port currently in use is changed. If port_no is 0 and the communication-port in use is not a serial port, the command is ignored although an [ACK] is returned.
- baud must have one of the following values: 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600
Example
\iIB\0\L9600
Changes the baud rate for the currently used communication-port to 9600 baud.
See also:
Controlling the iLCD via USB
Copyright © demmel products gmbh. All rights reserved.