2020-05-19 12:16 AM
Hello,
Fully new with OPAMP, configuration, I made some tries, and for me ther is an issue on the CubeMX code generator. If I want use an OPAMP with PGA with positive gain, I only need non inverting input and output. There is no way to specify this configuration and the generate code is always with inverting input conected to I/O :
hopampX.Init.PgaConnect = OPAMP_PGA_CONNECT_INVERTINGINPUT_IO0.
then the right configuration in my case is PAMP_PGA_CONNECT_INVERTINGINPUT_NO.
and I found no way to configure with this define.
I need to modify by hand after code generation to have the expected behavior.
May be I missed something but for me, there is a small mistake on the Opamp mode selection on CubeMX
2020-05-21 02:55 AM
Hello @Bertrand ,
You need to select the PGA Not Connected Mode in this case.
Best Regards,
Khouloud
2020-05-21 03:14 AM
But, If I want use PGA gain, I have to chose "PGA not connected"?!
Ok, I dont understand the mean of not connected in this case.
Thanks for your reply.
Regards
Bertrand