Updated opamp example

This commit is contained in:
Fabien Poussin 2019-01-08 20:15:28 +01:00
parent 91e635b08a
commit 05faf884a4
1 changed files with 8 additions and 1 deletions

View File

@ -78,8 +78,15 @@ static const GPTConfig gpt6cfg1 = {
.dier = 0U
};
/*
* OpAmp configuration.
* We will double the input voltage
*/
static const OPAMPConfig opamp1_conf = {
0
STM32_OPAMP_NonInvertingInput_IO4 | // INP connectd to PA1
STM32_OPAMP_InvertingInput_PGA | // INM connected to PGA
STM32_OPAMP_PGAGain_2 | // Gain of 2x
STM32_OPAMP_PGAConnect_No // PGA connected to ground
};
/*