Figure 7-4 Sample_Project_3 Configuration
The following exlpains the POI VM:
REG2, 0x44) write 0x44 into reg0x02; enable Decoder and PWM output path;
CFG(
CFG(GPIO_TRIG_CH_SEL_L, 0x24) write 0x24 into reg0x14, assign channel 0 to VM associated with GPIO0;
CFG(GPIO_VOL_UD_SEL,
0xb8) write 0xb8 into reg0x16, GPIO0 Trigger to volume up;
REG_GPIO_OE, 0x30) write 0x00 into reg0x1A; configure GPIO 0,1,2 and 3 pins as input pins;
CFG(
REG_GPIO_DO, 0x30) write 0x00 into reg0x19; GPIO4 and 5 output high;
CFG(
REG_GPIO_PE, 0x3F) write 0x3F into reg0x1B; enable Pull-Enable for GPIO0-5;
CFG(
REG_GPIO_PS, 0x3F) write 0x3F into reg0x1D; enable Pull-High for GPIO0-5;
CFG(
REG_GPIO_AF1, 0x0F)
CFG(
REG_GPIO_AF0, 0x00) write 0x00 into reg0x1F; combined with reg0x1E to confiure GPIO0-3 as
CFG(
R0, 0x08)
CFG(
R1, 0x04) write 0x04 into reg0x22; associate VM0x04 with GPI1;
CFG(
R2, 0x05) write 0x05 into reg0x24; associate VM0x05 with GPIO2;
CFG(
R3, 0x08)
CFG(
R4, 0x08)
CFG(
R5, 0x08) write 0x08 into reg0x2A; associate VM0x08 with GPIO5;
CFG(
Play VP ―Fastbeep‖
PLAY(FastBeep)
power down device (to save power).
PD
The Wakeup VM 0x02 enables the playback path for all triggers.
The following explains the custom VM 0x04:
Play VP ―one‖
PLAY(one)
power down device (to save power).
PD
R1, 0x06) write 0x06 into reg0x22; associate VM0x06 with GPI1;
CFG(
LOOP(Sine_0dot5dB_5_Sec_440Hz,0 ) Loop play a sound effect infinitely.
Label1: CFG(CH1_CNTR,
0x10) write 0x10 into reg0x0E, initialize channel counter 1 as 0x10;
REG_GPIO_DO, 0x06) write 0x06 into reg0x19; drive GPIO output pins
CFG(
ISD2360 Design Guide
assign channel 1 to VM associated with GPIO1;
assign channel 2 to VM associated with GPIO2;
assign channel 0 to VM associated with GPIO3;
GPIO3 trigger to volume down;
GPIO4, and GPIO5 as I/O output pins ;
write 0x0F into reg0x1E;
falling edge triggering pins; GPIO4 and 5 as output pins;
write 0x08 into reg0x20; associate VM0x08 with GPIO0;
write 0x08 into reg0x26; associate VM0x08 with GPIO3;
write 0x08 into reg0x28; associate VM0x08 with GPIO4;
- 33 -
Release Date: Nov 20, 2014
Revision v1.14
Need help?
Do you have a question about the ISD2360 and is the answer not in the manual?