NuMaker audio playback

Committer:
csyang2
Date:
Fri Mar 02 11:44:57 2018 +0800
Revision:
11:f7e6e67bbb92
Parent:
10:ca032f77d721
Child:
15:8527899eb9d3
Update pinmap of SD and I2C

Who changed what in which revision?

UserRevisionLine numberNew 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 11:f7e6e67bbb92 39 Please note that to connect headphone and microphone or headset to hear the loopback result.
csyang2 11:f7e6e67bbb92 40
csyang2 11:f7e6e67bbb92 41 Demo condition:
csyang2 11:f7e6e67bbb92 42 8000Hz stereo 16-bit
csyang2 11:f7e6e67bbb92 43
csyang2 11:f7e6e67bbb92 44
ccli8 1:c3f10403b3db 45
ccli8 1:c3f10403b3db 46 ### Burn Code & Execute
ccli8 1:c3f10403b3db 47 1. Connect the board NuMaker-PFM-XXX with your PC by USB cable, then there will be one "MBED" disk.
ccli8 1:c3f10403b3db 48 2. Copy the built binary file into "MBED" disk on you PC.
ccli8 1:c3f10403b3db 49 3. Press reset button to execute, user could test Audio Codec.