Chapter 4
Programming
4-30
©
National Instruments Corporation
Example 1
This is an example of CPU write to the DAC.
Write 5 volts to DAC 1 in bipolar mode. Use internal reference and disable
reglitching. The data FIFO is not used. Use the immediate update mode to
update the output on DAC1.
1.
Set up the Plug and Play resources. Use the function
Setup_PNP_Board
provided on the Companion Disk.
2.
Configure the board by setting the following board level bits.
AO_Configuration_Register
DACSel<3:0> = 1;
BipDac = 1;
ExtRef = 0;
ReGlitch = 0;
GroundRef = 0;
3.
Call
AO_Reset_All
to reset the DAQ-STC.
Joint_Reset_Register
AO configuration start = 1;
AO_Command_1_Register
AO disarm = 1;
Interrupt_B_Enable_Register = 0x0000;
AO_Personal_Register
AO BC source select = 1;
Interrupt_B_Ack_Register = 0x3F98;
Joint_Reset_Register
AO configuration start = 0;
AO configuration end = 1;
4.
Call
AO_Board_Personalize
to configure the DAQ-STC.
Joint_Reset_Register
AO_Configuration_Start = 1;
AO_Personal_Register = 0x1430;
Clock_and_FOUT_Register = 0x1B20;
AO_Output_Control_Register = 0x0000;
AO_START_Select_Register = 0x 0000;
Joint_Reset_Register
AO configuration start = 0;
AO configuration end = 1;
Содержание AT-AI-16XE-10
Страница 131: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 2 National Instruments Corporation...
Страница 132: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 3 AT MIO E Series RLPM...
Страница 133: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 4 National Instruments Corporation...
Страница 134: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 5 AT MIO E Series RLPM...
Страница 135: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 6 National Instruments Corporation...
Страница 136: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 7 AT MIO E Series RLPM...
Страница 137: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 8 National Instruments Corporation...
Страница 138: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 9 AT MIO E Series RLPM...
Страница 139: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 10 National Instruments Corporation...
Страница 140: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 11 AT MIO E Series RLPM...
Страница 141: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 12 National Instruments Corporation...
Страница 142: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 13 AT MIO E Series RLPM...
Страница 143: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 14 National Instruments Corporation...
Страница 144: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 15 AT MIO E Series RLPM...
Страница 145: ...Appendix A OKI MSM82C55A Data Sheet AT MIO E Series RLPM A 16 National Instruments Corporation...
Страница 146: ...Appendix A OKI MSM82C55A Data Sheet National Instruments Corporation A 17 AT MIO E Series RLPM...