EasyManua.ls Logo

LabJack UE9 - Page 72

LabJack UE9
86 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Command:
Byte
0
Checksum8
1
0xF8
2
0x02
3
0x14
4
Checksum16 (LSB)
5
Checksum16 (MSB)
6
0x00
7
AsynchOptions
Bit 7: Update
Bit 6: UARTEnable
Bit 5: Reserved
8-9
BaudFactor16
Response:
Byte
0
Checksum8
1
0xF8
2
0x02
3
0x14
4
Checksum16 (LSB)
5
Checksum16 (MSB)
6
Errorcode
7
AsynchOptions
8-9
BaudFactor16
AsynchOptions: If Update is true, the new parameters are written (otherwise just a read is done). If UARTEnable is true, the
UART is enabled and the RX line will start buffering any incoming bytes.
BaudFactor16: A 16-bit value that sets the baud rate according the following formula: BaudFactor = 2
16
-3000000/(Desired
Baud). For example, use a BaudFactor of 65224 to get a baud rate of 9615 bps (compatible with 9600 bps).
5.3.18 - AsynchTX
Control command sends bytes to the UE9 UART which will be sent asynchronously on the PIN2 (TX0) pin on the DB37 connector.
Command:
Byte
0
Checksum8
1
0xF8
2
1 + NumAsynchWords
3
0x15
4
Checksum16 (LSB)
5
Checksum16 (MSB)
6
0x00
7
NumAsynchBytesToSend
8
AsynchByte0
...
...
Response:
Byte
0
Checksum8
1
0xF8
2
0x02
3
0x15
4
Checksum16 (LSB)
5
Checksum16 (MSB)
6
Errorcode
7
NumAsynchBytesSent
8
NumAsynchBytesInRXBuffer
9
0x00
NumAsynchWords: This is the number of asynch data bytes divided by 2. If the number of bytes is odd, round up and add
an extra zero to the packet.
NumAsynchBytesToSend: Specifies how many bytes will be sent (0-246).
NumAsynchBytesInRXBuffer: Returns how many bytes are currently in the RX buffer.
5.3.19 - AsynchRX
Control command reads the oldest 32 bytes from the UE9 UART RX buffer. The buffer holds 256 bytes.
72