Nuvoton
/
NuMaker-mbed-AudioPlayback-example
NuMaker audio playback
README.md@20:df54b4c86862, 2021-02-25 (annotated)
- Committer:
- SHLIU1@OANBE02333.nuvoton.com
- Date:
- Thu Feb 25 16:19:36 2021 +0800
- Revision:
- 20:df54b4c86862
- Parent:
- 15:8527899eb9d3
Support the both V5.X and V6.X for mbed-os
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
csyang2 |
10:ca032f77d721 | 1 | # Getting started sample with Audio Codec on Mbed OS |
ccli8 |
1:c3f10403b3db | 2 | |
csyang2 |
11:f7e6e67bbb92 | 3 | This is an example to play and/or record then play PCM using Audio Codec with [NuMaker Mbed Audio](https://github.com/OpenNuvoton/NuMaker-mbed-Audio) library. |
ccli8 |
1:c3f10403b3db | 4 | |
csyang2 |
10:ca032f77d721 | 5 | ### CLI |
csyang2 |
11:f7e6e67bbb92 | 6 | Target board "NUMAKER_PFM_NUC472". |
ccli8 |
1:c3f10403b3db | 7 | 1. mbed target "NUMAKER_PFM_NUC472" |
ccli8 |
1:c3f10403b3db | 8 | 2. mbed toolchain "GCC_ARM" |
ccli8 |
1:c3f10403b3db | 9 | 3. mbed compile |
ccli8 |
1:c3f10403b3db | 10 | |
csyang2 |
11:f7e6e67bbb92 | 11 | Target board "NUMAKER_PFM_M453". |
ccli8 |
1:c3f10403b3db | 12 | 1. mbed target "NUMAKER_PFM_M453" |
ccli8 |
1:c3f10403b3db | 13 | 2. mbed toolchain "GCC_ARM" |
ccli8 |
1:c3f10403b3db | 14 | 3. mbed compile |
ccli8 |
1:c3f10403b3db | 15 | |
csyang2 |
11:f7e6e67bbb92 | 16 | Target board "NUMAKER_PFM_M487". |
csyang2 |
10:ca032f77d721 | 17 | 1. mbed target "NUMAKER_PFM_M487" |
csyang2 |
10:ca032f77d721 | 18 | 2. mbed toolchain "GCC_ARM" |
csyang2 |
10:ca032f77d721 | 19 | 3. mbed compile |
csyang2 |
10:ca032f77d721 | 20 | |
csyang2 |
11:f7e6e67bbb92 | 21 | Please note that the pinmap of M487 Mbed board between V1.2 and V2.0. |
csyang2 |
11:f7e6e67bbb92 | 22 | M487 pinmap setting of SD and I2C of mbed_app.json: |
csyang2 |
11:f7e6e67bbb92 | 23 | |
csyang2 |
11:f7e6e67bbb92 | 24 | V1.2 V2.0 |
csyang2 |
11:f7e6e67bbb92 | 25 | ----------------- |
csyang2 |
11:f7e6e67bbb92 | 26 | SD_DAT3 PE_5 PB_5 |
csyang2 |
11:f7e6e67bbb92 | 27 | SD_DAT2 PE_4 PB_4 |
csyang2 |
11:f7e6e67bbb92 | 28 | |
csyang2 |
11:f7e6e67bbb92 | 29 | V1.2 V2.0 |
csyang2 |
11:f7e6e67bbb92 | 30 | ----------------- |
csyang2 |
11:f7e6e67bbb92 | 31 | I2C_SDA PD_8 PD_0 |
csyang2 |
11:f7e6e67bbb92 | 32 | I2C_SCL PD_9 PD_1 |
csyang2 |
11:f7e6e67bbb92 | 33 | |
csyang2 |
11:f7e6e67bbb92 | 34 | Target board "NUMAKER_PFM_NANO130". |
csyang2 |
11:f7e6e67bbb92 | 35 | 1. mbed target "NUMAKER_PFM_NANO130" |
csyang2 |
11:f7e6e67bbb92 | 36 | 2. mbed toolchain "GCC_ARM" |
csyang2 |
11:f7e6e67bbb92 | 37 | 3. mbed compile |
csyang2 |
11:f7e6e67bbb92 | 38 | |
csyang2 csyang2@nuvoton.com | 15:8527899eb9d3 | 39 | Target board "NUMAKER_IOT_M487". |
csyang2 csyang2@nuvoton.com | 15:8527899eb9d3 | 40 | 1. mbed target "NUMAKER_IOT_M487" |
csyang2 csyang2@nuvoton.com | 15:8527899eb9d3 | 41 | 2. mbed toolchain "GCC_ARM" |
csyang2 csyang2@nuvoton.com | 15:8527899eb9d3 | 42 | 3. mbed compile |
csyang2 csyang2@nuvoton.com | 15:8527899eb9d3 | 43 | |
csyang2 |
11:f7e6e67bbb92 | 44 | Please note that to connect headphone and microphone or headset to hear the loopback result. |
csyang2 |
11:f7e6e67bbb92 | 45 | |
csyang2 |
11:f7e6e67bbb92 | 46 | Demo condition: |
csyang2 |
11:f7e6e67bbb92 | 47 | 8000Hz stereo 16-bit |
csyang2 |
11:f7e6e67bbb92 | 48 | |
csyang2 |
11:f7e6e67bbb92 | 49 | |
ccli8 |
1:c3f10403b3db | 50 | |
ccli8 |
1:c3f10403b3db | 51 | ### Burn Code & Execute |
ccli8 |
1:c3f10403b3db | 52 | 1. Connect the board NuMaker-PFM-XXX with your PC by USB cable, then there will be one "MBED" disk. |
ccli8 |
1:c3f10403b3db | 53 | 2. Copy the built binary file into "MBED" disk on you PC. |
ccli8 |
1:c3f10403b3db | 54 | 3. Press reset button to execute, user could test Audio Codec. |