Rev. 1.1 (May 2011) 4 © DLP Design, Inc.
2. Connect the DLP-2232MSP board to the PC via a standard A-B, 6-foot USB cable. This action
initiates the loading of the USB drivers. When prompted, select the folder where the CDM device
drivers were stored in Step 1. Windows will then complete the installation of the device drivers for
the DLP-2232MSP board. The next time the DLP-2232MSP board is attached, the host PC will
immediately load the correct drivers without any prompting. Reboot the PC if prompted to do so.
The DLP-2232MSP is shipped with default VID, PID, etc. values programmed into the EEPROM
memory. You only need to run MPROG if you want to change the default values.
At this point, the DLP-2232MSP is ready for use. Note that the DLP-2232MSP will appear
non-responsive if data sent from the host PC is not read from the FT2232H device by the
MSP430F2618 microcontroller. The token firmware with which the DLP-2232MSP comes preloaded
will read data sent by the host by default. Custom user firmware should also follow this protocol.
5.0 TOKEN I/O
The MSP430F2618 microcontroller on the DLP-2232MSP comes preprogrammed with firmware that
provides rudimentary access to the port pins via either the VCP or DLL drivers. Features include the
ability to read and write individual port pins.
The firmware in the DLP-2232MSP also provides access to the MSP430F2618’s A/D converter, D/A
converter and communications. Commands sent to the Token I/O firmware must adhere to a specific
communications protocol. Each command sequence contains the following information:
Byte 0: Number of bytes in command sequence
Byte 1: Command
Byte 2…n: Parameter/data bytes
For example, setting Port Pin P1.1 high would require the following string of bytes:
0x04, 0x30, 0x11, 0x00, 0x01
Definition of the Bytes
:
0x04 – Number of bytes in command
0x30 – Command for digital port pin access
0x11 – Affected port pin
0x00 – Set port pin to output
0x01 – Desired state of port pin
The port pins equate to hexadecimal numeric constants as defined here:
PORT 1
:
0x10 = P1.0 MSP430F2618 Pin 12, DLP-2232MSP module Pin J1.12
0x11 = P1.1 MSP430F2618 Pin 13, DLP-2232MSP module Pin J1.13
Rev. 1.1 (May 2011) 5 © DLP Design, Inc.
PORT 2:
0x20 = P2.0 MSP430F2618 Pin 20, DLP-2232MSP module Pin J1.14
0x21 = P2.1 MSP430F2618 Pin 21, DLP-2232MSP module Pin J1.16
0x22 = P2.2 MSP430F2618 Pin 22, DLP-2232MSP module Pin J1.18
0x23 = P2.3 MSP430F2618 Pin 23, DLP-2232MSP module Pin J1.20
0x24 = P2.4 MSP430F2618 Pin 24, DLP-2232MSP module Pin J1.19
0x25 = P2.5 MSP430F2618 Pin 25, DLP-2232MSP module Pin J1.17
0x26 = P2.6 MSP430F2618 Pin 26, DLP-2232MSP module Pin J1.15
0x27 = P2.7 MSP430F2618 Pin 27, DLP-2232MSP module Pin J1.21
PORT 3
:
0x30 = P3.0 MSP430F2618 Pin 20, DLP-2232MSP module Pin J1.39
0x31 = P3.1 MSP430F2618 Pin 21, DLP-2232MSP module Pin J1.41
0x32 = P3.2 MSP430F2618 Pin 22, DLP-2232MSP module Pin J1.37
0x33 = P3.3 MSP430F2618 Pin 23, DLP-2232MSP module Pin J1.38
0x34 = P3.4 MSP430F2618 Pin 24, DLP-2232MSP module Pin J1.36
0x35 = P3.5 MSP430F2618 Pin 25, DLP-2232MSP module Pin J1.40
PORT 5
:
0x50 = P5.0 MSP430F2618 Pin 44, DLP-2232MSP module Pin J1.43
0x51 = P5.1 MSP430F2618 Pin 45, DLP-2232MSP module Pin J1.45
0x52 = P5.2 MSP430F2618 Pin 46, DLP-2232MSP module Pin J1.44
0x53 = P5.3 MSP430F2618 Pin 2, DLP-2232MSP module Pin J1.46
0x54 = P5.4 MSP430F2618 Pin 48, DLP-2232MSP module Pin J1.47
0x55 = P5.5 MSP430F2618 Pin 49, DLP-2232MSP module Pin J1.48
0x56 = P5.6 MSP430F2618 Pin 50, DLP-2232MSP module Pin J1.50
0x57 = P5.7 MSP430F2618 Pin 51, DLP-2232MSP module Pin J1.49
PORT 6
:
0x60 = P6.0/A0 MSP430F2618 Pin 59, DLP-2232MSP module Pin J1.2
0x61 = P6.1/A1 MSP430F2618 Pin 60, DLP-2232MSP module Pin J1.3
0x62 = P6.2/A2 MSP430F2618 Pin 61, DLP-2232MSP module Pin J1.4
0x63 = P6.3/A3 MSP430F2618 Pin 2, DLP-2232MSP module Pin J1.5
0x64 = P6.4/A4 MSP430F2618 Pin 3, DLP-2232MSP module Pin J1.7
0x65 = P6.5/A5 MSP430F2618 Pin 4, DLP-2232MSP module Pin J1.8
0x66 = P6.6/A6/DAC0 MSP430F2618 Pin 5, DLP-2232MSP module Pin J1.9
0x67 = P6.7/A7/DAC1 MSP430F2618 Pin 6, DLP-2232MSP module Pin J1.10
The source code for the Token I/O firmware (developed using the CCS C compiler) is available as a
free download upon purchase and receipt of the hardware. Example Visual C++ source code
developed using Microsoft Visual C for communicating with the DLP-2232MSP via the Token I/O
firmware is also available for download. (The Windows source code also contains the port pin
definitions listed above.)
Rev. 1.1 (May 2011) 6 © DLP Design, Inc.
5.1 TOKEN I/O COMMAND SET
0x27 – Ping – Host Notification
Length: 2 Bytes
Parameters: None
Returns: 1 Byte: ASCII “S” or hex 0x53
Function: This function returns an ASCII ‘S’ to tell the host that the module is up and running
Example: 0x02, 0x27 – Causes the module to return a 0x53 to the host
0x28 – Flash LED – Toggle the LED
Length: 2 Bytes
Parameters: None
Returns: 1 Byte: command echo acknowledgement=0x28
Function: This function will cause the module’s green LED to flash briefly
Example: 0x02, 0x28 – Causes the LED to toggle briefly
0x29 – LED On/Off
Length: 3 Bytes
Parameters: 1 Byte: 0=Turn LED Off; 1=Turn LED On
Returns: 1 Byte: command echo acknowledgement=0x29
Function: This function will turn the module’s green LED on or off
Example: 0x03, 0x29, 0x01 - Turns on the LED
0x30 – Digital I/O Read/Write
Length: 4 or 5 Bytes
Parameters: 2 or 3 Bytes:
1. Port Selection – Select the desired MSP430F2618 port pin (refer to the port list
under the previous section)
2. Port Direction: 1=Input; 0=Output
3. Port Value if Byte 2 specifies Output
Returns: 2 Bytes for Input=Value on port pin; command echo acknowledgement=0x30
1 byte for Output=command echo acknowledgement=0x30
Function: This function will read from or write to the selected port pin
Example: 0x04, 0x30, 0x60, 0x00, 0x01 – Sets Port 6 Pin 0 high
0x40 – A/D Conversion
Length: 3 Bytes
Parameters: Mode: 0=Single conversion, 1=Continuous conversions (~1 per second)
Note
: Setting the ADC mode to continuous (1) starts an infinite loop. The ADC
will perform a conversion approximately once a second and report the result to
the host. To exit, break the code using the debugger or reset the module.
Returns: 2 Bytes: The 12-bit voltage data; MSB first
Function: This function will enable A/D conversion on the selected channel and ADC, pause
10uS, perform the A/D conversion and then return 2 bytes to the host (MSB first).
Command 0x42 must have been previously called to configure the desired analog

DLP-2232MSP

Mfr. #:
Manufacturer:
DLP Design
Description:
Interface Development Tools USB to MSP430 w/ FTDI FT2232H
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet