manxiangxu / stm32f4serial-to-audio Goto Github PK
View Code? Open in Web Editor NEWThis project forked from devking/stm32f4serial-to-audio
Simple audio output project using the STM32F4 Discovery Board DAC with serial port input.
This project forked from devking/stm32f4serial-to-audio
Simple audio output project using the STM32F4 Discovery Board DAC with serial port input.
////////////////////////////////////////////////////////////// // // // Project Completed By Wells Lucas Santo // // Found at [email protected] and GitHub user: Devking // // // // This project was completed for educational purposes, as // // my final semester project for the NYU Polytechnic course // // EE4144 (Embedded Systems Design). If you wish to use any // // of this code for your own projects, please give credit! // // // ////////////////////////////////////////////////////////////// // // // This project utilizes code from two outside sources: // // // // (1) Professor Prashanth Krishnamurthy from NYU SoE // // who provided the majority of the code to set up the // // the STM32F4 board and to program the board for a // // serial port interface. // // (source: http://crrl.poly.edu/EE4144/) // // // // (2) Andreas Finkelmeyer from his online blog where he // // wrote, described, and uploaded code to initialize // // the STM32F4 Discovery Board for audio output using // // I2S communication to send data to the on-board DAC. // // (source: http://www.mind-dump.net/ // // configuring-the-stm32f4-discovery-for-audio) // // // ////////////////////////////////////////////////////////////// // // // This project is meant for use with the Keil uVision 5 // // MDK and the STM32F4 Discovery Board. // // // ////////////////////////////////////////////////////////////// --------------------------------------------------------------------------------------------- Below, explanation provided by Professor Krishnamurthy on establishing the serial connection: --------------------------------------------------------------------------------------------- The STM32F4 Discovery Board USB micro connector can be used to implement a serial port to communicate with another microcontroller or a computer. To connect to a computer, you can use a USB micro to regular USB 2.0 cable (this is the typical cable used in mobile phone chargers). This cable would be connected to the USB micro port on the STM32F4 Discovery board (this port is on the opposite side of the board from the programming connector). The code in this Keil project utilizes the library from http://stm32f4-discovery.com/2014/08/library-24-virtual-com-port-vcp-stm32f4xx/ to make a serial port connection through the micro USB port. On the computer side, you will need to install the STM32 virtual COM port driver from http://www.st.com/web/en/catalog/tools/PF257938# . After this driver is installed, you should see a serial port (windows device manager calls this a COM port) on the computer when you run this code on the Discovery board (you might sometimes need to unplug and replug the USB cable to see the COM port). You can use a program such as Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) to connect to the serial (COM) port on the computer side (in Putty, select the Serial option under Connection type in the main window of Putty and change COM1 under Serial line to the COM port number corresponding to the STM32 USB connection; you can see the COM port number in the device manager in Windows). The example in this Keil project echoes bytes received from the serial port back to the serial port. When you run this on your Discovery board and connect from the computer using Putty, you should see that any characters that you type into Putty will be echoed back (i.e., will appear in the Putty terminal).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.