This is a simple example of analog-digital converter that utilizes mikroSDK 2.0 ADC driver library. Conversion results are represented on port A (and port B in case of 8-bit MCU) LEDs and can also be seen on the Standard output - Application output or UART, determined by the chosen setup.
- Authors : MIKROE
- Version : 3.0.0
- Date : ${COPYRIGHT_YEAR}.
- Analog input voltage needs to be in range from 0 to VREF volts on the MIKROBUS_1_AN pin. Place a click with potentiometer in mikroBUS 1, such as POT click.
- Turn on PORT LEDS
We provide code for demonstrating the usage of functions contained in Analog In driver library. To run this example, follow these steps:
- Install the package from Package manager.
- Open example.
- It will take you to setups, so make one for your hardware.
- Choose adequate setup and the project will open.
- Program the example by clicking on Flash.
- You should be able to see the digital representation of the voltage value on port A.
- NOTE: ADC values can also be visible in Application output through debug or on UART terminal if setup with that selection is chosen.