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.
History
trivial change
2020-10-09, by mimi3 [Fri, 09 Oct 2020 07:47:36 +0900] rev 21
trivial change
typo
2020-10-09, by mimi3 [Fri, 09 Oct 2020 07:38:47 +0900] rev 20
typo
bugfix again: mixing PCM data
2020-09-16, by mimi3 [Wed, 16 Sep 2020 20:36:42 +0900] rev 19
bugfix again: mixing PCM data
bugfix: mixing PCM data
2019-02-23, by mimi3 [Sat, 23 Feb 2019 21:12:14 +0900] rev 18
bugfix: mixing PCM data
mod: wiki page
2019-02-17, by mimi3 [Sun, 17 Feb 2019 15:10:58 +0900] rev 17
mod: wiki page
mod: comment only
2019-02-17, by mimi3 [Sun, 17 Feb 2019 11:59:16 +0900] rev 16
mod: comment only
added: license
2019-02-17, by mimi3 [Sun, 17 Feb 2019 11:48:22 +0900] rev 15
added: license
typo
2019-02-17, by mimi3 [Sun, 17 Feb 2019 11:43:24 +0900] rev 14
typo
change: Checking end of song
2019-02-17, by mimi3 [Sun, 17 Feb 2019 10:27:26 +0900] rev 13
change: Checking end of song
introduced: RawSerial
2019-02-15, by mimi3 [Fri, 15 Feb 2019 03:48:26 +0900] rev 12
introduced: RawSerial