Appendix D Register-Level Programming
PC-LPM-16/PnP User Manual
D-30
National Instruments Corporation
Clearing the Analog Input Circuitry
Write to the A/D Clear Register to clear the analog input circuitry,
which leaves the analog input circuitry in the following state:
•
Analog input error flag OVERFLOW is cleared.
•
Pending interrupt requests are cleared.
To empty the A/D FIFO before starting any A/D conversions, perform
two 8-bit reads on the A/D FIFO Registers and ignore the data read.
This operation guarantees that the A/D conversion results read from the
A/D FIFO are from the initiated conversions rather than leftover results
from previous conversions.
To clear the analog input circuitry and the A/D FIFO:
•
Write 0 to the A/D Clear Register (8-bit write).
Programming Multiple A/D Conversions on a Single Input Channel Using
Counter 0
This manual refers to a sequence of timed A/D conversions as a data
acquisition operation. Counter 0 of the MSM82C53 is used as the
sample-interval counter. In a data acquisition operation, counter 0
continuously generates the conversion pulses. The software keeps track
of the number of conversions that have occurred and turns off counter 0
Table D-3.
Bipolar Input Mode A/D Conversion Values
Input Voltage
A/D Conversion Result
Range: -5 to +5 V
(13-bit values)
A/D Conversion Result
Divided by 2
(12-bit values)
(Decimal)
(Hex)
(Decimal)
(Hex)
-5.0
-4,096
F000
-2,048
F800
-2.5
-2,048
F800
-1,024
FC00
0
0
0000
0
0000
2.5
2,048
0800
1,024
0400
4.9976
4,095
0FFF
2,047
07FF
a.Book : l.Appendix D Page 30 Wednesday, November 20, 1996 6:36 PM
Содержание PC-LPM-16/PnP
Страница 50: ...Appendix B MSM82C53 Data Sheet PC LPM 16 PnP User Manual B 2 National Instruments Corporation ...
Страница 51: ...Appendix B MSM82C53 Data Sheet National Instruments Corporation B 3 PC LPM 16 PnP User Manual ...
Страница 52: ...Appendix B MSM82C53 Data Sheet PC LPM 16 PnP User Manual B 4 National Instruments Corporation ...
Страница 53: ...Appendix B MSM82C53 Data Sheet National Instruments Corporation B 5 PC LPM 16 PnP User Manual ...
Страница 54: ...Appendix B MSM82C53 Data Sheet PC LPM 16 PnP User Manual B 6 National Instruments Corporation ...
Страница 55: ...Appendix B MSM82C53 Data Sheet National Instruments Corporation B 7 PC LPM 16 PnP User Manual ...
Страница 56: ...Appendix B MSM82C53 Data Sheet PC LPM 16 PnP User Manual B 8 National Instruments Corporation ...
Страница 57: ...Appendix B MSM82C53 Data Sheet National Instruments Corporation B 9 PC LPM 16 PnP User Manual ...
Страница 58: ...Appendix B MSM82C53 Data Sheet PC LPM 16 PnP User Manual B 10 National Instruments Corporation ...
Страница 59: ...Appendix B MSM82C53 Data Sheet National Instruments Corporation B 11 PC LPM 16 PnP User Manual ...
Страница 60: ...Appendix B MSM82C53 Data Sheet PC LPM 16 PnP User Manual B 12 National Instruments Corporation ...