Does ChibiOS have drivers for integrated operational amplifiers?

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

Moderators: barthess, RoccoMarco, utzig, lbednarz, tfAteba

User avatar
HDKLog
Posts: 37
Joined: Thu Aug 18, 2016 12:36 am
Been thanked: 2 times

Does ChibiOS have drivers for integrated operational amplifiers?

Postby HDKLog » Fri Jan 11, 2019 12:05 am

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: 11831
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 522 times
Been thanked: 433 times
Contact:

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Postby Giovanni » Fri Jan 11, 2019 4:15 am

Hi,

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

Giovanni

User avatar
alex31
Posts: 267
Joined: Fri May 25, 2012 10:23 am
Location: toulouse, france
Has thanked: 16 times
Been thanked: 32 times
Contact:

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Postby alex31 » Tue Jan 22, 2019 8:39 pm

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: 437
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 4 times
Been thanked: 11 times

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Postby mobyfab » Thu Jan 31, 2019 3:25 pm

I added those into the contrib repo some time ago:

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

mobyfab
Posts: 437
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 4 times
Been thanked: 11 times

Re: Does ChibiOS have drivers for integrated operational amplifiers?

Postby mobyfab » Thu Jan 31, 2019 5:59 pm

Alex, I've added your opamp calibration code in the contrib repo. You name was added the the header for copyright as well.


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 0 guests