Coder Social home page Coder Social logo

arm-cortex-hf's Introduction

Frequency Response Analysis on ARM Cortex-M4F

Submitted as homework BMEVIMIAV07

Note: this is a partial commit, only the code necessary to demonstrate the functionality has been pushed. The project was created on an ATSAME54-XPRO development board.

Block Diagram

The diagram above shows how the DUT is stimulated and the data is being acquired.

The DAC is driven using direct memory access (DMA), the memory content is changed after each frequency step, the data length is also changed so the transaction ends at a zero point then cycles through.

Both ADCs are utilized to capture the reference and input waveforms simultaneously and just like the DAC they use DMA. To enable realtime processing and data acquisition the data is double buffered by using 2 DMA channels.

The ADC conversions are triggered by the DAC Empty interrupt, I used the Event System integrated into the ATSAM series microcontrollers which allows the trigger to be glued to an interrupt without CPU intervention. This way both the DAC and the ADCs are running in sync at 1Msps.

Results

The main limitation is the waveform output buffer's size, at a constant 1Msps with 512 samples the lowest frequency is going to be around 2kHz and the highest I could push it without distortion was 15.6 kHz. A hybrid solution where the DAC falls back to an interrupt based mode at lower frequencies would be more appropriate.

arm-cortex-hf's People

Contributors

c4deszes avatar

Watchers

 avatar  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.