Page 1 of 1

Does ChibiOS have drivers for integrated operational amplifiers?

Posted: Fri Jan 11, 2019 12:05 am
by HDKLog
Hello.
I want to use opamp's integrated in STM32F303 MCU. I know ADC driver was tempt to be portable and generic as much as possible, to be used with many different MCU's but is there any extended futures in ADC or separated driver for integrated opamp's? Also any example code of integrated opamp's usage with ADC driver will be helpful.

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Posted: Fri Jan 11, 2019 4:15 am
by Giovanni
Hi,

Never used those but there is not much to do for a driver, the configuration is trivial.

Giovanni

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Posted: Tue Jan 22, 2019 8:39 pm
by alex31
Hello,

You can find here an implementation for some F3 devices that i had done some time ago.

https://github.com/alex31/chibios_enac_various_common/tree/master/hal

if follows chibios organisation with an HAL api, and lld files for the F3.

Giovani is right, no big deal, only sensible part is calibration.

It was to implement an ESC, but we have found shorter after a Texas chip that was doing the job better than ST integrated opamp, so this implementation was not used a lot.

Alexandre

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Posted: Thu Jan 31, 2019 3:25 pm
by mobyfab
I added those into the contrib repo some time ago:

https://github.com/ChibiOS/ChibiOS-Contrib

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Posted: Thu Jan 31, 2019 5:59 pm
by mobyfab
Alex, I've added your opamp calibration code in the contrib repo. You name was added the the header for copyright as well.