
37
SNVU382A – April 2014 – Revised June 2014
Copyright © 2014, Texas Instruments Incorporated
Virtual COM Port Communication
Appendix B
SNVU382A – April 2014 – Revised June 2014
Virtual COM Port Communication
The user can use their own software to communicate with evaluation board trough virtual serial port
commands. List of commands is below.
Table B-1. Command Set
Command
Description
Example (command/response)
?
Check firmware version
?
TI LP8860 EVK Jul 1 2013 09:58:54<0x0A>
C123456
Configure ports,
12
- port number,
34
– direction
byte (output, if bit high. Input otherwise),
56
–
function selection (special function if corresponding
bit is high, input/output otherwise), see
MSP430F5528 DS for the reference.
C010300
OK<0x0A>
Port 01, bits 0 and 1 are configured as outputs.
I1234
Serial interface read,
12
- interface and address for
I2C, 0x80 - SPI otherwise I2C,
34
– register.
Returns error code and data.
I8010
00_28_OK<0x0A>
SPI Read, register 0x10. Return error 00 (no
errors) and date 0x28 (LED_FAULTS for LP8860-
Q1)
O123456
Serial interface write,
12
- interface and address for
I
2
C, 0x80 - SPI otherwise I
2
C,
34
– register,
56
–
data. Returns error code.
O2D1101
00_OK<0x0A>
I2C Write, device ID 0x2D, register 0x11, data
0x01 (clear faults command for LP8860-Q1), return
error code, 00 – no errors
P0123456789
0
- timer number (0-PWM for brightness ,1-VSYNC,
2-SYNC for boost)
1
- divider (3bit TAxEX0)
2345
–
period (TAxCCR0)
6789
- duty (TAxCCR1)
f
OSC
=24MHz Divider 0->1, 1->2, …, 7->8 See
MSP430F5528 DS for the reference.
P03EA5F2EE0
OK<0x0A>
PWM 100Hz duty=20%
P20000A0005
OK<0x0A>
Boost SYNC 2.2MHz duty=50%
R1234
Reset masked bits,
12
- port number,
34
- mask
R0101
OK<0x0A>
Reset bit 0 port 01
S1234
Set masked bits,
12
- port number,
34
- mask
S0101
OK<0x0A>
Set bit 0 port 01