![National Instruments AT-MIO E Series Скачать руководство пользователя страница 111](http://html1.mh-extra.com/html/national-instruments/at-mio-e-series/at-mio-e-series_programmers-manual_3381557111.webp)
Chapter 4
Programming
4-46
©
National Instruments Corporation
indicate buffer done;
}
Interrupt_A_Ack_Register
G0_Gate_Interrupt_Ack <=1;
/*read G_Status_Register and check for the G0_Gate_Error_St bit if
the bit is set means the hardware saves are too fast*/
if (G0_Gate_Error_St==1)
{
Interrupt_A_Ack_Register
G0_Gate_Error_Confirm <=1;
}
if (G0_TC_St==1){
/*rollover error - counter value is not correct */
confirm user rollover has occurred.
Interrupt_A_Ack_Register
G0_TC_Interrupt_Ack<=1 ;
}
5.
Call ISR in a do-while loop.
do
{
call Buffered_Pulse_Width_Measurement_ISR();
} while (the buffer is not done);
print out the buffer values.
Example 3
This is the example for continuous pulse train generation. It generates
continuous pulses on the G_Out pin with three delay from the trigger, pulse
interval of four and pulse width of three. G_in_timebase (20MHz) is
G_source. The wave form generation is started by trigger signal from
G_Gate on PFI4. Confirm operation with an oscilloscope.
1.
Perform General Purpose Counter and Timer Example 1 Steps 1-3.
2.
If you want to use G_In_timebase2
Call MSC_Clock _Configure() to setup the G_In_timebase2
Clock_and_FOUT_Register
Slow_Internal_Timebase <= msc_slow_int_tb_enable (1)
Slow_Internal_Time_Divide_By_2 <=msc_slow_int_tb_divide_
by_2 (1)
Clock_To_Board <= p->msc_clock_to_board_enable (1)
Clock_To_Board_Divide_By_2 <= msc_clock_to_board_divide
_by_2(1)
Содержание AT-MIO E Series
Страница 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...