141
WE2107 - Communication commands
I1820-1.3 en HBM
4.4 Setting the baud rate
The WE can work at different baud rates. The setting can only be changed via the serial
interface by using the BDR
command.
Of course in bus mode, the baud rate of all the connected users must be the same. To make
sure that the WEs in a bus are always safely set to the required baud rate on initialization
(power‐up) of the hardware (in this example 9600 = BR0), proceed as follows:
1. Set the baud rate of the master interface to 9600Bd, 8 data bits, 1 parity bit (even) and
1 stop bit.
2. Output the following commands in the sequence in which they appear below:
; Clear the WE input buffer
S98; Select all the WEs on the bus
BDR0; Set the required baud rate
Then wait about 150 ms.
3. Set the baud rate of the master interface to 19200Bd, 8 data bits, 1 parity bit (even) and
1 stop bit.
4. Output the following commands in the sequence in which they appear below:
; Clear the WE input buffer
S98; Select all the WEs on the bus
BDR0; Set the required baud rate
Then wait about 150 ms.
5. Set the baud rate of the master interface to 9600Bd, 8 data bits,
1 parity bit (even) and 1 stop bit.
6. Enter the blank command to clear the input buffer:
; Clear the WE input buffer
7. Use the command TDD1; to save the settings power fail safe in the EEPROM. .... etc.