98
12.4
SDC Operation Guide
CW6632B Bluetooth 3.0 Audio Player SOC
Version 1.0.0
Copyright ©2015, www.appotech.com. All Rights Reserved.
response.
Operation Flow:
1.
Configure 8CE (SDCFG1 [1]) and ORISE (SDCFG1 [0]).
2.
Write the outgoing command to IRAM and set SDCPTR to point to starting address of command.
3.
Choose the kick-start command method according to response required.
4.
Wait for CPND (SDCFG1 [
5]) to become „1‟ or wait for interrupt.
5.
If the expected response is R1 or R1b, read CCRCE (SDCFG2 [7]) to determine if CRC is valid.
6.
Read content of response from IRAM.
12.4.2
207B
data Operation
Sending data:
1. Configure DW4 (SDCFG0 [2]), 8CE (SDCFG1 [1]) and ORISE (SDCFG1 [0]).
2. Write outgoing data to IRAM and set SDDPTR to point to starting address of data.
3. Configure SDDCNT to the amount of outgoing data.
4. Kick-start data sending process.
5. Wait for DPND (SDCFG1 [
4]) to become „1‟ or wait for interrupt.
6. Read CRCS (SDCFG2 [2:0]) to obtain CRC status value from SD device.
Receiving data:
1. Configure DW4 (SDCFG0 [2]), 8CE (SDCFG1 [1]) and ORISE (SDCFG1 [0]).
2. Set SDDPTR to point to starting address of data being stored.
3. Configure SDDCNT to the amount of incoming data.
4. Kick-start data receiving process.
5. Wait for DPND (SDCFG1 [
4]) to become „1‟ or wait for interrupt.
6. Read DCRCE (SDCFG2 [6]) to determine if the data received has any error.
7. Read the data received from IRAM.