Giter VIP home page Giter VIP logo

es-cw2's Introduction

Use the following website to generate code for bandpass filters:
http://www-users.cs.york.ac.uk/~fisher/mkfilter/trad.html
with input parameters:
1) Butterworth/Bandpass
2) N/A
3) 1
4) 8000
5) *Dependent on intended bandpass filter


Objective: produce configurable audio filter system.
Details:
*8-bit PCM audio at 8000Hz fed to virtual serial port (via UART)
*filtered with 4 different band-pass filter
*sent back over serial port
*switch between filters using capacitive buttons, indicated by the LEDs
*must be real-time
*modularize the code into different .c and .h files

***BE MINDFUL OF CODE SIZE, ENERGY USAGE, AND PERFORMANCE

Step 1: get the UART working
-enable clockrate/enable uart
	1885
	SIM_SCGC4 (p340)
-decide baudrate (p1904, 1980)
	UART baud rate = UART module clock / (16 ร— (SBR[12:0] + BRFD))
	115200 = 50MHz / (16 x (SBR[12:0] + 0)) --> SRB[12:0] ~= 27
-enable trasmitting (p1909)
-enable pin
	PORTx_PCRn field descriptions (p310)
	ALT3 (p275)

Step 2: get the capacitive buttons/LEDs cooperating
Step 3: implement band-pass filter code
Step 4: integrate systems and test


Address for port control module (port A): 0x0000_019C 

es-cw2's People

Watchers

James Cloos avatar Jon Reynolds 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.