User Manual Part 7

User Guide to Q4000/QPRO
Document Number 1135-4713 Rev G
THIS DOCUMENT CONTAINS CONFIDENTIAL AND PROPRIETARY INFORMATION OF QUAKE GLOBAL CORPORATION. IT MAY BE USED BY
RECIPIENT ONLY FOR THE PURPOSE FOR WHICH IT WAS TRANSMITTED AND WILL BE RETURNED UPON REQUEST OR WHEN NO LONGER NEEDED
BY RECIPIENT. DISCLOSURE TO UNAUTHORIZED THIRD PARTIES OR DUPLICATION WITHOUT THE EXPRESS WRITTEN PERMISSION OF QUAKE
GLOBAL IS PROHIBITED.
Page 121
CONFIDENTIAL
Information classified Confidential
-
Do not copy (See last page for obligations)
12.4.7 DemoAppADC
The Analog to Digital Converter (ADC) example:
takes a number of samples from the designated ADC
gets the median ADC value to remove some variability caused by noise (the median
gives a more reproducible value than the arithmetic mean)
converts the value to a voltage based on the supplied conversion factor
prints the voltage value to the Logger port.
This process repeats approximately once a second until the demo is halted. Note that this
application uses network-specific calls.
1. Select the DemoAppADC Workspace from the drop-down list at the top left-hand corner of
the IAR IDE screen. Open the APL.c file, as shown below:
Figure 12-58: DemoAppADC - Selecting the Workspace
2. Now build, load and execute DemoAppADC. The instructions for building, loading and
executing the code are the same as in Section 12, except that after building the application,
the executable bin file is:
…/DemoAppADC/exe/xxx-DemoAppADC.bin
.