Does ChibiOS have drivers for integrated operational amplifiers?

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
HDKLog
Posts: 45
Joined: Thu Aug 18, 2016 12:36 am
Has thanked: 1 time
Been thanked: 3 times

Does ChibiOS have drivers for integrated operational amplifiers?

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Post by Giovanni »

Hi,

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

Giovanni
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Post 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
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Post by mobyfab »

I added those into the contrib repo some time ago:

https://github.com/ChibiOS/ChibiOS-Contrib
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Post 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.
Post Reply