Wave Player application using PWM out.
Information
Under construction
Description
This is a simple wave player application using PWM port.
Spec.
- Input data: WAVE file converted by foobar2000.
- Data length: 16bit, 8bit.
- fs : 32kHz,44.1kHz,48kHz.
- Channel: Stereo, mono
- Output data: PWM 11bit resolutuon. fs and Channel are the same as input data.
Board
NUCLEO-F411RE
Using Library
- SDFileSystem http://developer.mbed.org/users/neilt6/code/SDFileSystem/ Modified this library a little.
- FastPWM http://developer.mbed.org/users/Sissors/code/FastPWM/
- millis http://developer.mbed.org/users/lisper/code/millis/
Terminal base CUI
UART Terminal (e.g. Tera Term) base operation,
Tera Tem settings
- Serial om port: Baudrate 115200bps.
- Main Menu - [Setup] - [Terminal] dialog:
New-line settings.
Operation
Key | Operation | on Play | on Stop | on Pause |
---|---|---|---|---|
0 - 9 | Select a music or Folder. | - | o | - |
b, ESC | Back to root folder. | - | o | - |
b, ESC | Stop playing. | o | - | o |
l(el), Enter | List files. | - | o | o |
p | Pause or Play. | Pause | Play | Play |
q | Quit player mode. | o | o | o |
r | Repeat current song. | o | o | o |
s | Stop playing. | o | - | o |
., > , Space | Next song. | o | o | o |
< | Previous song. | o | o | o |
[ | Back to top of music. | o | o | o |
c | Repeat all music in folder | o | o | o |
1 - 4 | Play slowly 4 step. | o | - | o |
5 - 7 | Play rappidly 3 step. | o | - | o |
h | Help menu. | - | o | o |
Playing music
Now You are hearing the sound from PWM port of mbed board.
Music01:
Music02:
Music03:
Revision 0:2878df0860f1, committed 2014-11-16
- Comitter:
- mimi3
- Date:
- Sun Nov 16 02:27:00 2014 +0000
- Commit message:
- first: empty project
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Nov 16 02:27:00 2014 +0000 @@ -0,0 +1,9 @@ +#include "mbed.h" + + + + +int main() { + + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Nov 16 02:27:00 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89 \ No newline at end of file