Analog I/O Wildcard User Guide
<< Previous |
Glossary Entries (continued)
C: DAC12_CH0
4th: DAC12_CH0 ( -- n )
A constant (= 0x00) that, when passed as a parameter to the To_DAC12 function, configures the 12-bit DAC to output a voltage on Channel 0, pin 24, of the Analog I/O Field Header. See also To_DAC12.
C: DAC12_CH1
4th: DAC12_CH1 ( -- n )
A constant (= 0x10) that, when passed as a parameter to the To_DAC12 function, configures the 12-bit DAC to output a voltage on Channel 1, pin 23, of the Analog I/O Field Header. See also To_DAC12.
C: DAC12_CH2
4th: DAC12_CH2 ( -- n )
A constant (= 0x20) that, when passed as a parameter to the To_DAC12 function, configures the 12-bit DAC to output a voltage on Channel 2, pin 22, of the Analog I/O Field Header. See also To_DAC12.
C: DAC12_CH3
4th: DAC12_CH3 ( -- n )
A constant (= 0x30) that, when passed as a parameter to the To_DAC12 function, configures the 12-bit DAC to output a voltage on Channel 3, pin 21, of the Analog I/O Field Header. See also To_DAC12.
C: DAC12_CH4
4th: DAC12_CH4 ( -- n )
A constant (= 0x40) that, when passed as a parameter to the To_DAC12 function, configures the 12-bit DAC to output a voltage on Channel 4, pin 20, of the Analog I/O Field Header. See also To_DAC12.
C: DAC12_CH5
4th: DAC12_CH5 ( -- n )
A constant (= 0x50) that, when passed as a parameter to the To_DAC12 function, configures the 12-bit DAC to output a voltage on Channel 5, pin 19, of the Analog I/O Field Header. See also To_DAC12.
C: DAC12_CH6
4th: DAC12_CH6 ( -- n )
A constant (= 0x60) that, when passed as a parameter to the To_DAC12 function, configures the 12-bit DAC to output a voltage on Channel 6, pin 18, of the Analog I/O Field Header. See also To_DAC12.
C: DAC12_CH7
4th: DAC12_CH7 ( -- n )
A constant (= 0x70) that, when passed as a parameter to the To_DAC12 function, configures the 12-bit DAC to output a voltage on Channel 7, pin 17, of the Analog I/O Field Header. See also To_DAC12.
C: void Delay_Update_DAC12 ( int module_num )
4th: Delay_Update_DAC12 ( module_num -- )
Configures the 12-bit DAC to accept 12-bit values for each DAC channel but to delay outputting the voltage to the corresponding pin of the DAC until Update_DAC12 is called. This option is disabled by default and is typically used to simultaneously set the output voltages of all 12-bit DAC channels. See also Update_DAC12 and To_All_DACs.
C: EXT_DAC12
4th: EXT_DAC12 ( -- n )
A constant (= 0x00) that, when passed as a parameter to the Init_Analog_IO function, configures the 12-bit DAC to use the voltage on the reference pin of the Analog I/O Field Header, pin 4 as its reference if jumper J6 is installed. See also Init_Analog_IO.
C: void Init_Analog_IO ( int reference_option, int module_num )
4th: Init_Analog_IO ( reference_option\module_num -- )
Initializes the software drivers for the 12-bit DAC and the 16-bit A/D, sets the reference voltage of the DAC to the specified option on the specified module, and sets all 8 DAC channels to 0 volts. The reference option is selected using one of the following constants: INT_2V_DAC12, INT_1V_DAC12, and EXT_DAC12. The eight valid module numbers are 0 to 7. See also INT_2V_DAC12, INT_1V_DAC12, and EXT_DAC12.
C: INT_1V_DAC12
4th: INT_1V_DAC12 ( -- n )
A constant (= 0x04) that, when passed as a parameter to the Init_Analog_IO function, configures the 12-bit DAC to use its own internally generated 1.024 volt as its reference. With this option, the DAC output range is from 0 to 2.048 volts. See also Init_Analog_IO.
C: INT_2V_DAC12
4th: INT_2V_DAC12 ( -- n )
A constant (= 0x06) that, when passed as a parameter to the Init_Analog_IO function, configures the 12-bit DAC to use its own internally generated 2.048 volt as its reference. With this option, the DAC output range is 0 to 4.096 volts. See also Init_Analog_IO.
C: void To_All_DACs ( int value, int module_num )
4th: To_All_DACs ( value\module_num -- )
Writes the specified 12-bit value simultaneously to all channels of the 12-bit DAC on the specified module. To_All_DACs uses the functions Delay_Update_DAC12 and Update_DAC12 to output all voltages to all channels at the same time. The eight valid module numbers are 0 to 7. The 12-bit value is clamped to the range of 0 to 4095 but no error checking is performed on the module number. Init_Analog_IO must be called before this routine initialize the reference voltage of the DAC. See also Init_Analog_IO, Delay_Update_DAC12, and Update_DAC12.
C: void To_DAC12 ( int value, int channel_num, int module_num )
4th: To_DAC12 ( value\channel_num\module_num -- )
Writes the specified 12-bit value to the specified channel of the 12-bit DAC on the specified module. The eight valid module numbers are 0 to 7 while the channel number is specified with one of the constants DAC12_CH0, DAC12_CH1, DAC12_CH2, DAC12_CH3, DAC12_CH4, DAC12_CH5, DAC12_CH6, and DAC12_CH7. The 12-bit value is clamped to the range of 0 to 4095 but no error checking is performed on the channel number or the module number. Init_Analog_IO must be called before calling To_DAC12 to initialize the DAC’s reference voltage. Unlike the routines for the 8-bit DAC and 12-bit A/D, a resource variable is not needed for the 12-bit DAC and the 16-bit A/D in multitasking systems. To_DAC12 executes in approximately 37 microseconds and disables interrupts for 16.5 microseconds. See also Init_Analog_IO.
C: void Update_DAC12 ( int module_num )
4th: Update_DAC12 ( module_num -- )
Configures the 12-bit DAC to immediately output a voltage on each DAC channel corresponding to the last 12-bit value written to the channel. This option is enabled by default and is typically used after a call to the Delay_Update_DAC12 routine. See also Delay_Update_DAC12.
<< Previous |
|