int anaOut(unsigned int channel,
unsigned int rawcount);
Sets the voltage of an analog output channel by serially clocking in 16 bits to a D/A converter using the
following format:
? Program bits (D15…D12)
? New data (D11…D0)
D15 D14 D13 D12 D11 D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
R1
SPD PWR
R0
MSB
12 data bits MSB–LSB (0–4095)
LSB
SPD—Speed control bit: 1 = fast mode (default), 0 = slow mode
PWR—Power control bit: 1 = power down, 0 = normal operation (default)
The following table lists all the possible combinations of the register-selects bits R1
(Register 1) and R0 (Register 0)
R1
0
0
1
1
R0
0
1
0
1
Register
Write data to D/A converter channel B
Write data to buffer
Write data to D/A converter channel A
Reserved
PARAMETERS
channel is the D/A converter output channel to write. channel should be passed as
channel = (slotnumber * 128) + (channelnumber)
where slotnumber is 0–6, and channelnumber is 0–7
or
channel = ChanAddr(slotnumber, channelnumber)
where slotnumber is 0–6, and channelnumber is 0–7.
rawcount is a value corresponding to the voltage on the analog output channel (0–4095). The follow-
ing rawcount data correspond to the analog outputs indicated.
Approximate Output Equivalent
rawcount
SR9400
SR9410
SR9420
0 (0000H)
2047 (07FFH)
4095 (0FFFH)
+10 V
+5 V
0V
+10 V
0V
–10 V
20 mA
12 mA
4 mA
RETURN VALUE
0 if successful.
–1 if rawcount is greater than 4095.
SEE ALSO
anaOutVolts, anaOutCalib
110
Smart Star D/A Converter Cards (SR9400)
相关PDF资料
101-0545 PROTOTYPING BOARD FOR LP3500
101-0563 RCM3400 PROTO BOARD
101-0589 CLONING BOARD RABBIT
101-0688 CARD D/A EXPANSION RN1300
101-0954 KIT DEV RABBIT RCM3360/3370 INTL
101-1050-BE-00025 ADPT USB 2 A FEMALE-2 5PIN .25M
10112627-101LF MINI-SAS HD 1X2 EXT PCB
10112628-101LF MINI-SAS HD 1X4 EXT PCB
相关代理商/技术参数
101-0507 功能描述:模块化系统 - SOM RCM3000 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
101-0508 功能描述:模块化系统 - SOM RCM3010 RABBITCORE RoHS:否 制造商:Digi International 外观尺寸:ConnectCore 9P 处理器类型:ARM926EJ-S 频率:150 MHz 存储容量:8 MB, 16 MB 存储类型:NOR Flash, SDRAM 接口类型:I2C, SPI, UART 工作电源电压:3.3 V 最大工作温度:+ 85 C 尺寸:1.97 in x 1.97 in x 6.1 in
101050-9 制造商:RUKO 功能描述:Bulk 制造商:RUKO 功能描述:STEP DRILL 4-12MMX1MM 制造商:RUKO 功能描述:STEP DRILL, 4-12MMX1MM 制造商:RUKO 功能描述:STEP DRILL, 4-12MMX1MM; Drill Bit Size Metric:4mm; Overall Length:65mm; SVHC:No SVHC (19-Dec-2012); Drill Bit Type:Step; Drill Point Diameter:4mm; Material:HSS; Range:4mm - 12mm; Shank Dia:6mm; Step:1mm ;RoHS Compliant: NA
101050BO 制造商:TE Connectivity 功能描述:
101051 制造商:RUKO 功能描述:STEP DRILL 4-20MMX2MM 制造商:RUKO 功能描述:STEP DRILL, 4-20MMX2MM 制造商:RUKO 功能描述:STEP DRILL, 4-20MMX2MM; Drill Bit Size Metric:4mm; Overall Length:75mm; SVHC:No SVHC (19-Dec-2012); Drill Bit Type:Step; Drill Point Diameter:4mm; Material:HSS; Range:4mm - 20mm; Shank Dia:8mm; Step:2mm ;RoHS Compliant: NA
10-105108-03G 制造商:Amphenol Aerospace 功能描述:10-105108-03G
10-105108-03P 制造商:Amphenol Aerospace 功能描述:10-105108-03P
10-105108-04P 制造商:Amphenol Aerospace 功能描述:10-105108-04P