Chapter 4
Programming
4-52
©
National Instruments Corporation
AI_Command_1_Register
AI SC Load=1;
Joint_Reset_Register
AI configuration start = 0;
AI configuration end=1;
5.
Perform Analog Input Example 2 Steps 5-8.
6.
Call the Analog Trigger Control.
Analog_Trigger_Etc_Register
Analog_Trigger_Mode =6 (low hysteresis);
Analog_Trigger_Drive=0;
Analog_Trigger_Enable=1(Enable);
Misc_Command_Register (8 bits)
Int/Ext Trigger =1 (PGIA)
Writing to Serial CALDAC11
CALDAC11=0x80;
Writing to Serial CALDAC12
CALDAC12=0x81;
7.
Perform Analog Input Example 2 Steps 9-10.
8.
Poll the AIFIFO not empty flag in the AI_Status_Register until not
empty and read the ADC FIFO data in the ADC_FIFO_Data_Register.
Do{
If (AIFIFO not empty) then
read FIFO data;
}while (100 samples have not been read)
Interrupt Programming
Chapter 8, Interrupt Control, in the DAQ-STC Technical Reference
Manual, discusses the interrupt programming aspect of the AT E Series
boards.
There are two groups—Interrupt Group A and Interrupt Group B. Group A
handles the analog input interrupts, general-purpose Counter 0 interrupts,
and one pass-through interrupt. The Group A pass-through interrupt is
connected to the DIO interrupt on the AT-MIO-16DE-10, which is the
ORed output of the 8255 Port C pins PC0 and PC3. Group B handles the
analog output interrupts, general purpose counter 1 interrupts, and one
pass-through interrupt. The Group B pass-through interrupt is connected to
the DMA TC interrupt, which will be asserted whenever the individual
DMA TC interrupts are enabled and the TC occurs.
Содержание 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...