Example description
Overview
========
This example is a reference application to get ADC data with ADC polling mode.
Voltage input is through the corresponding pin of channel 0.
The system log will show the raw data and voltage of channel 0
Hardware requirements
=====================
- LinkIt 7687 HDK.
- Personal Computer
- Type-A to micro-B USB
Board settings
==============
No special settings are required.
ADC module channel mapping is listed below:
|CHx |GPIOx |PINx |
|-------------|--------|
| 0 | 57 |J33.4 |
Prepare the Demo
================
1. Connect a micro USB cable between the host PC and the MK20 USB port (CON5) on the target board.
2. Open a serial terminal with the following settings:
- 115200 baud rate
- 8 data bits
- No parity
- One stop bit
- No flow control
3. Connect J32.4 to J33.4
4. Download the program to the target board.
Running the demo
================
1. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
The log will display the raw data and the voltage of
channel 0 and the message "---adc_example finished!!!---" indicates a
successful operation.
Customization options
=====================