Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Homepage
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: