0x30 – Digital I/O Read/Write
Length:
4 or 5 Bytes
Parameters: 2 or 3 Bytes:
1. Port Selection – Select the desired MSP430FR5739 port pin (refer to the port list on
the previous page)
2. Port Direction: 1=Input; 0=Output
3. Port Value if Byte 2 specifies Output
Returns:
Function:
Example:
2 Bytes for Input=Value on port pin; command echo acknowledgement=0x30
1 byte for Output=command echo acknowledgement=0x30
This function will read from or write to the selected port pin
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 twice a second and report the result to
the host. To exit, stop the code execution using the debugger, or reset the
module by unplugging the USB cable and then reconnecting it.
Returns:
Function:
Example:
2 Bytes: The 10-bit voltage data; MSB first
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
channel as an A/D input, and 0x43 / 0x44 must have been called to configure the
voltage reference.
0x3, 0x40 0x00 – Performs the A/D conversion and, using ADC0, returns 2 bytes of
data followed by an echo of the command byte sent.
0x41 – Disable A/D
Length:
Parameters:
Returns:
Function:
Example:
2 Bytes
None
1 Byte: command echo acknowledgement=0x41
This function disables the A/D converter
0x2, 0x41 – Disables A/D Converter
Rev. 1.1 (November 2011)
6
? DLP Design, Inc.
相关PDF资料
DLP-CB-DLPC200-10R BOARD CONTROLLER FOR DLP
DLP-D-G MODULE USB SECURITY DONGLE
DLP-HS-FPGA2 MODULE USB ADAPTER FOR FT2232H
DLP-IOR4 MODULE LATCHING-RELAY 4-CH
DLP-TEMP-G MODULE DATA-ACQUISITION 3-CH
DLP-TXRX-G MODULE USB-TO-TTL SRL UART CONV
DLP-USB1232H MODULE USB-TO-UART/FIFO HS 18DIP
DLP-USB232M-G MODULE USB-TO-TTL SRL UART CONV
相关代理商/技术参数
DLP-2232PB 功能描述:界面模块 50P-DIP USB-FIFO Module RoHS:否 制造商:4D Systems 产品:Serial Converters 通道/端口数量: 数据速率: 接口类型:USB, UART 工作电源电压:3.3 V, 5 V 最大工作温度:
DLP2232PB-CCS 功能描述:界面模块 50P USB-FIFO Module w/ CCS Compiler CD RoHS:否 制造商:4D Systems 产品:Serial Converters 通道/端口数量: 数据速率: 接口类型:USB, UART 工作电源电压:3.3 V, 5 V 最大工作温度:
DLP-2232PB-G 功能描述:界面模块 50P-DIP USB-FIFO Module RoHS:否 制造商:4D Systems 产品:Serial Converters 通道/端口数量: 数据速率: 接口类型:USB, UART 工作电源电压:3.3 V, 5 V 最大工作温度:
DLP-2232PB-G-CCS 制造商:DLP Design 功能描述:DLP-2232PB-G module Plus CCS compiler
DLP-232PC 功能描述:数据记录与采集 MINI USB MICROCONTR- OLLER MODULE RoHS:否 制造商:Lantronix 描述/功能:Analog device server 显示器类型:None 电流额定值:
DLP240-24/E 制造商:TDK-Lambda Corporation 功能描述:PSU DIN RAIL 24V 10A 制造商:TDK-Lambda Corporation 功能描述:PSU, DIN RAIL, 24V, 10A 制造商:TDK-Lambda Corporation 功能描述:PSU, DIN RAIL, 24V, 10A; Power Supply Output Type:Fixed; Input Voltage VAC:85V to 265V; No. of Outputs:1; Output Power Max:240W; Approvals / Standards:EN 50178; SVHC:No SVHC (19-Dec-2012); Approval Bodies:CE / CSA / EN / UL; ;RoHS Compliant: Yes
DLP240-24/E 制造商:TDK-Lambda Corporation 功能描述:PSU DIN RAIL 24V 10A
DLP240241 功能描述:线性和开关式电源 240W 24V 10A RoHS:否 制造商:TDK-Lambda 产品:Switching Supplies 开放式框架/封闭式:Enclosed 输出功率额定值:800 W 输入电压:85 VAC to 265 VAC 输出端数量:1 输出电压(通道 1):20 V 输出电流(通道 1):40 A 商用/医用: 输出电压(通道 2): 输出电流(通道 2): 安装风格:Rack 长度: 宽度: 高度: