AdSwio2 Click example.
Description
This Click is a quad-channel software configurable input/output solution for building and process control application. The AD-SWIO 2 Click contains four 13-bit DACs, one per chanal, and 16-bit Σ-∆ ADC. These options give a lot of flexibility in choosing functionality for analog output, analog input, digital input, resistance temperature detector (RTD), and thermocouple measurements integrated into a single chip solution with a serial peripheral interface (SPI).
The demo application is composed of two sections :
Application Init
Performs a hardware reset of the click board and executes a default configuration that enables channel A and sets it to measure voltage input in the range from 0V to 10V, with 4800 SPS.
Application Task
Waits for the data ready and then reads the results of ADC conversion from channel A and if response is ok, then prints the results on the uart console.
Additional Functions
- void application_default_handler ( uint8_t *err_msg ) - Sends an error report messages from click driver to initialized console module. It must be set using adswio2_set_handler function.
- Author
- MikroE Team