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.
Files at revision 21:dc161a192ba7
Name | Size | Actions |
---|---|---|
[up] | ||
DirectSPI.lib | 61 | Revisions Annotate |
FastPWM.lib | 61 | Revisions Annotate |
LICENSE.txt | 1332 | Revisions Annotate |
fat_lib.cpp | 7789 | Revisions Annotate |
fat_lib.h | 217 | Revisions Annotate |
main.cpp | 1453 | Revisions Annotate |
mbed.bld | 69 | Revisions Annotate |
port_setting.txt | 552 | Revisions Annotate |
pwm_lib.cpp | 2955 | Revisions Annotate |
pwm_lib.h | 1679 | Revisions Annotate |
sd_card.cpp | 12234 | Revisions Annotate |
sd_card.h | 468 | Revisions Annotate |
sys.h | 1636 | Revisions Annotate |
table.md | 1202 | Revisions Annotate |
timers.cpp | 330 | Revisions Annotate |
timers.h | 152 | Revisions Annotate |
wave_player_main.cpp | 10995 | Revisions Annotate |
wave_player_main.h | 94 | Revisions Annotate |