Nuvoton
/
NuMaker-mbed-AudioPlayback-example
NuMaker audio playback
README.md@1:c3f10403b3db, 2017-03-03 (annotated)
- Committer:
- ccli8
- Date:
- Fri Mar 03 16:26:26 2017 +0800
- Revision:
- 1:c3f10403b3db
- Child:
- 5:492ea7d38e59
[NUC472/M453] Initial support
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ccli8 |
1:c3f10403b3db | 1 | # Getting started sample with Audio Codec on mbed OS |
ccli8 |
1:c3f10403b3db | 2 | |
ccli8 |
1:c3f10403b3db | 3 | This is an example to play PCM file or buffer with Audio Codec with [NuMaker mbed Audio](https://github.com/OpenNuvoton/NuMaker-mbed-Audio) library. |
ccli8 |
1:c3f10403b3db | 4 | |
ccli8 |
1:c3f10403b3db | 5 | ### mbed CLI |
ccli8 |
1:c3f10403b3db | 6 | Play PCM file with "NUMAKER_PFM_NUC472". |
ccli8 |
1:c3f10403b3db | 7 | Default is a 16kHz stereo 16-bit PCM file. |
ccli8 |
1:c3f10403b3db | 8 | 1. mbed target "NUMAKER_PFM_NUC472" |
ccli8 |
1:c3f10403b3db | 9 | 2. mbed toolchain "GCC_ARM" |
ccli8 |
1:c3f10403b3db | 10 | 3. mbed compile |
ccli8 |
1:c3f10403b3db | 11 | |
ccli8 |
1:c3f10403b3db | 12 | Play PCM buffer with "NUMAKER_PFM_M453". |
ccli8 |
1:c3f10403b3db | 13 | Default is a 16kHz stereo 16-bit PCM buffer. |
ccli8 |
1:c3f10403b3db | 14 | 1. mbed target "NUMAKER_PFM_M453" |
ccli8 |
1:c3f10403b3db | 15 | 2. mbed toolchain "GCC_ARM" |
ccli8 |
1:c3f10403b3db | 16 | 3. mbed compile |
ccli8 |
1:c3f10403b3db | 17 | |
ccli8 |
1:c3f10403b3db | 18 | Please note that we need a headphone to hear the result. |
ccli8 |
1:c3f10403b3db | 19 | |
ccli8 |
1:c3f10403b3db | 20 | ### Burn Code & Execute |
ccli8 |
1:c3f10403b3db | 21 | 1. Connect the board NuMaker-PFM-XXX with your PC by USB cable, then there will be one "MBED" disk. |
ccli8 |
1:c3f10403b3db | 22 | 2. Copy the built binary file into "MBED" disk on you PC. |
ccli8 |
1:c3f10403b3db | 23 | 3. Press reset button to execute, user could test Audio Codec. |