Skip to content

OPAMP example? #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
metanav opened this issue Jul 2, 2023 · 2 comments · Fixed by #97
Closed

OPAMP example? #23

metanav opened this issue Jul 2, 2023 · 2 comments · Fixed by #97
Labels
conclusion: resolved Issue was resolved topic: documentation Related to documentation for the project type: enhancement Proposed improvement

Comments

@metanav
Copy link

metanav commented Jul 2, 2023

How can we configure and use the OPAMP? I could not find any code related to the OPAMP peripheral in the core. Only there are a few defines in the variants directory.

@maxgerhardt
Copy link
Contributor

This Arduino core was compiled without the "OPAMP" component of the underlying Renesas FSP framework. However, you

  1. Can still add those missing files (https://github.com/renesas/fsp/tree/v4.0.0)
  2. Use direct writes to the OPAMP peripheral registers

I just copied the missing files next to the sketch and created a working OPAMP example for the Uno R4 WiFi, whose OPAMP pins are exposed on the analog pins A1 (Plus), A2 (Minus) and A3 (Output). I successfully tested a simple voltage follower example.

See https://github.com/maxgerhardt/uno-r4-opamp

@per1234 per1234 added topic: documentation Related to documentation for the project type: enhancement Proposed improvement labels Aug 7, 2023
@per1234 per1234 added the conclusion: resolved Issue was resolved label Sep 15, 2023
@Fashion-Corp
Copy link

Fashion-Corp commented Sep 15, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: documentation Related to documentation for the project type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants