adac 2.0.0.0
|
ADAC Click example. More...
Functions | |
void | application_init () |
void | application_task () |
int | main (void) |
ADAC Click example.
This example showcases how to initialize, configure and use the ADAC click module. The click has an ADC and a DAC. An external power supply sets the maximum voltage of the input analog signal, which is bound to 2.5 V by default. For the input any external analog signal will suffice and a multimeter is needed to read the output on one of the channels.
The demo application is composed of two sections :
This function initializes and configures the click and logger modules. It does a hardware reset first and after that configures the click module using default settings.
This function first writes digital values ranging from 0 to 256 to output channel 3 with a 10 millisecond delay between iterations and after that reads analog values from channel 4 10 times and displays results in the UART console.
void application_init | ( | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | ) |
int main | ( | void | ) |