16bit resolution PWM wave player with SD card, super lite version.
Dependencies: mbed DirectSPI FastPWM
Supported boards (confirmed):
Nucleo-F030R8
Nucleo-L152RE
Nucleo-F401RE
Nucleo-F411RE
Only compilation is OK (unchecked, but may work):
Nucleo-L073RZ
Nucleo-F334R8
Nucleo-F303RE
Nucleo-F429ZI
Nucleo-F446RE
Nucleo-F446ZE
Nucleo-L476RG
Supported SD card:
SDSC/SDHC card,
FAT16 and FAT32.
(1) At first, format SD card using SD Card Formatter
https://www.sdcard.org/downloads/formatter_4/index.html
(2) Copy PCM wav files to the SD card.
Supported file:
PCM wave file that have file extension ".wav" on root directory.
16bit/8bit, fs(sampling rate)=32kHz,44.1kHz,48kHz.
Stereo/Mono.
Hardware setting:
Refer to the file port_setting.txt
PWM output port:
Left upper(Hi) PWM 8bit out: PB_5 (TM3_CH2)
Right upper(Hi) PWM 8bit out: PB4 (TM3_CH1)
Left lower(Low) PWM 8bit out: PC_9 (TM3_CH4)
Right lower(Low) PWM 8bit out: PC_8 (TM3_CH3)
USER_BUTTON: PC_13(default button)
Next song: One click in Play mode.
Pause : Push long time .
Play : One click from Pause.
Revisions of wave_player_main.cpp
Revision | Date | Message | Actions |
---|---|---|---|
21:dc161a192ba7 | 2020-10-09 | trivial change | File Diff Annotate |
20:c7066a530b1f | 2020-10-09 | typo | File Diff Annotate |
19:54aed6200a35 | 2020-09-16 | bugfix again: mixing PCM data | File Diff Annotate |
18:082bce602af9 | 2019-02-23 | bugfix: mixing PCM data | File Diff Annotate |
13:544349ffb861 | 2019-02-17 | change: Checking end of song | File Diff Annotate |
11:8dc9fa1e1bdc | 2019-02-03 | Simplified: PWM LED indicator and etc. | File Diff Annotate |
8:e35c1f3add8c | 2019-01-19 | only refactor | File Diff Annotate |
6:d9ea630e1ba5 | 2019-01-19 | Further speed up interrupt function for GCC. | File Diff Annotate |
5:4aa4cc29d5ef | 2019-01-19 | Speed up the entry of period interrupt routin (PWM). | File Diff Annotate |
0:9a5c2fb0d96f | 2019-01-15 | first | File Diff Annotate |