Giter Club home page Giter Club logo

stm32-adc-dma's Introduction

Analog-to-Digital Converter (ADC)

Overview

This repository implements stm32 drivers for adc, using hardware trigger and dma. When you call adc_read_async the adc will start to read the samples to a buffer using dma in circular buffer mode.

Each adc conversion will start after hardware trigger event has occurred. In the current implemenation, we also provide a hardware trigger using a timer (I used a patch to the pwm driver because of my lazyness). Look at the dts/bindings on how to configure the driver.

The dma interrupt will occur on half transmission, which is after half of the size of the buffer given in adc_read_async was filled. After that the application will send the samples over usb.

Note

The adc driver needs to get a callback after half transmit complete interrupt. The current zephyr dma driver not enabling this interrupt. Thus, you need also zephyrproject-rtos/zephyr#32713.

stm32-adc-dma's People

Contributors

shlomow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.