gainamp
2.0.0.0
|
GainAMP click carries the LTC6912 dual channel, low noise, digitally programmable gain amplifier (PGA).
We provide a library for the GainAMP Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for GainAMP Click driver.
gainamp_cfg_setup
Config Object Initialization function. gainamp_init
Initialization function. gainamp_default_cfg
Click Default Configuration function. gainamp_read_an_pin_value
GainAMP read AN pin value function. gainamp_read_an_pin_voltage
GainAMP read AN pin voltage level function. gainamp_set_gain
Function for sets gain of the GainAMP Click. This is an example that demonstrates the use of the GainAMP Click board.
The demo application is composed of two sections :
Initializes SPI module and set CS pin and RST pin as OUTPUT, initialization driver init and resets chip.
Sets the gain for both channels, channel A and channel B.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.