Wtv020-Sd Module
Wtv020-Sd Module
Wtv020-Sd Module
- 1-
https://www.kontrolkalemi.com/forum/
8.6.KEY MODE(5 group of voice)APPLICATION CIRCUIT(PWM OUTPUT) .............................................................. 21
8.7.LOOP PLAY AFTER POWER ON(EDGE TIRGGER PAUSE/PLAY) APPLICATION CIRCUIT(PWM OUTPUT) ... 21
8.8.LOOP PLAY AFTER POWER ON (LEVEL TRIGGER PAUSE/PLAY)APPLICATION CIRCUIT(PWM OUTPUT) .. 22
8.9.TWO LINE SERIAL MODE APPLICATION (PWM OUTPUT) ........................................................................... 22
9.VOICE FILES IN SD CARD ............................................................................................................................................. 23
10. PACKAGE SIZE ............................................................................................................................................................ 23
10.1.WTV020SD-20S .................................................................................................................................................. 23
10.2.WTV020-SD-16P ................................................................................................................................................. 24
10.3、WTV020-SD-20S MODULE ............................................................................................................................ 25
11.SUPPLY INFORMATION................................................................................................................................................ 26
12.VERSIONS .................................................................................................................................................................... 26
1.PRODUCT FEATURES
2.SUMMARIZE
This module with MP3 mode, key mode(control 3 group of voice with volume adjustment or 5group of voice), two line
serial mode, and Loop play mode(after power on ,the module will play loop, with memory function in the mode) They are
optional. Customers can choose one of the modes in a module. Also can be customized.
Key mode(3 group of voice): One key trigger one group of voice,and with vol-, and vol+ . all keys’ default trigger modes
are edge retrigger
Key mode(5 group of voice): One key trigger one group of voice, trigger mode can be follows: 1. All keys are edge
retrigger. 2.All keys are ON/OFF (voice will not cycle after finished) 3.All keys are ON/OFF(voice will cycle after
finished)
Loop play mode: After power on , it will play the voices automatically . it doesn’t need to tirgger the I/O . and with memory
function(when you playing voice 2, power was cut off,next time power on it will start from voice 2 or voice 3 .(Can be
- 2-
https://www.kontrolkalemi.com/forum/
customized)
Two line serial mode: WTV020-SD controlled by MCU sending data through CLK and DI . Can play voices in any address,
also voices(include mute) can combined to play in this mode.
Change voice by SD card reader and PC. SD card should be FAT format. Sampling rate supported from 6KHz~32KHz and
36KHz for ad4 voice format. 6KHz~16KHz for WAV voice format.
3.APPLICATION DIAGRAM
BUSY
AUDIO OUTPUT
4.APPLICATIONS
This module can use in automobile( car bug, parking radar, GPS navigation system), Intelligent home system, house bug,
Voice medical devices, household appliances(induction cooker, rice cooker, micro-wave oven), game machines, learning
tools(talking book), Intelligent traffic facilities(toll gate, parking lot), communications equipment( telephone), industrial
control( elevator ), toys and so on.
- 3-
https://www.kontrolkalemi.com/forum/
5.PINS
5.1.WTV020-SD-20S
- 4-
https://www.kontrolkalemi.com/forum/
5.2.WTV020-SD-16P
1 16
2 RESET VDD 15
3 AUDIO-L P06 14
4 NC NC 13
5 SPK+ P02 12
6 SPK- P03 11
7 NC NC 10
8 P04 P05 9
GND P07
6.MODULE SELECTION
- 5-
https://www.kontrolkalemi.com/forum/
5 KEY YES DAC/PWM ON/OFF(loop)
LOOP PLAY(after power on) 256 KEY YES DAC/PWM ON/OFF(edge)
256 KEY YES DAC/PWM ON/OFF(level)
TWO LINE SERIAL 256 BY MCU YES DAC/PWM
7.CONTROL MODES
7.1.MP3 MODE
BUSY is for signal output test , when the playing voice, BUSY output is high level, can connect to LED for indicating.
7.1.1. ON/OFF(PALY/STOP)
Remark: Edge trigger. A negative edge trigger to play, next negative edge to stop.
7.1.2.NEXT
- 6-
https://www.kontrolkalemi.com/forum/
Remark: Edge trigger. One key trigger one group of voice. A negative edge trigger a group of voice, next negative edge
trigger next group of voice, after finish last group loop to first group.
7.1.3.PREVIOUS
Remark: Edge trigger. One key trigger to play. A negative edge trigger a group of voice, next negative edge trigger
previous group of voice, after finish first group loop to last group.
Pull low P02/P03/P07(short connect P02/P03/P07 with GND) can trigger the 3 group of voices separated , P04 and P05
are for volume adjustment.
I/O P02 P03 P04 P05 P06 P07
FUNCTION K1 K2 K3 K4 BUSY K5
TRIGGER EDGE EDGE VOL+ VOL- ----- EDGE
IRRTRIGGER IRRTRIGGER IRRTRIGGER
VOICE GROUP 1 GROUP 2 ----- ----- ----- GROUP 3
Key K1~K3 are edge retrigger , BUSY is for signal output test , when the playing voice, BUSY output is high level, can
connect to LED for indicating.
- 7-
https://www.kontrolkalemi.com/forum/
Remark: Edge trigger. When I/O test falling edge( such as this I/O short touch GND) ,the voice will be triggered. During the
playing , the next falling edge will not interrupt the voice,after voice play finished,falling edge will make it replay .
One button trigger one voice , total 5 group of voice , during playing BUSY output is high level, can connect LED to indicate
it .
Three optional trigger mode:
a.All keys are edge retrigger
b.All keys are ON/OFF(unloop)
c.All keys are ON/OFF(loop)
Remark: Edge trigger. When I/O test falling edge( such as this I/O short touch GND) ,the voice will be triggered. During the
playing , the next falling edge will interrupt the voice and replay from beginning.
- 8-
https://www.kontrolkalemi.com/forum/
7.3.3.ALL KEYS ARE ON/OFF(unloop)
Trigger I/O(short connect to GND) can play voice ,next trigger make it stop. After voice play finished, it will stop .
I/O P02 P03 P04 P05 P06 P07
FUNCTION K1 K2 K3 K4 BUSY K5
TRIGGER ON/OFF ON/OFF ON/OFF ON/OFF ----- ON/OFF
VOICE GROUP 1 GROUP 2 GROUP 3 GROUP 4 ----- GROUP 5
Remark: Edge trigger. When I/O test falling edge( such as this I/O short touch GND) ,the voice will be triggered. After play
finished, will stop . During the playing , the next falling edge will stop the voice ,other falling edge will make it play again.
Trigger I/O(short connect to GND) can play voice ,next trigger make it stop. After voice play finished, it will loop .
- 9-
https://www.kontrolkalemi.com/forum/
Remark: Edge trigger. When I/O test falling edge( such as this I/O short touch GND) ,the voice will be triggered. After play
finished, will cycle play. During the playing , the next falling edge will stop the voice ,other falling edge will make it play
again
After turn on the power, it will play the voice directly, trigger the relative I/O can pause, next trigger will keep playing.In this
mode, when the module playing voice 2 and the power was cut off, after turn on power it will play from voice 2 or voice
3(can be customized)
Alternative trigger mode:
a.Edge tirgger to pause /play
b.Level trigger to pause/play
Power on, play voice automatically, negative edge tirgger P04 to pause , next trigger to play from the pause point.
I/O P02 P03 P04 P05 P06 P07
FUNCTION ------ ------ K1 ------ BUSY ------
TRIGGER ------ ------ PAUSE/PLAY ------ ----- ------
VOICE ------ ------ ALL VOICE ------ ----- ------
Negative edge trigger. Power on , it will play automatically, negative edge trigger P04 to pause , next tirgger to play from the
pause point. After voices play finished, it will loop .
- 10-
https://www.kontrolkalemi.com/forum/
7.4.3.LEVEL TRIGGER TO PAUSE/PLAY
Power on , it will play automatically , Low level to trigger P05 to pause, next trigger to play from the pause point.
I/O P02 P03 P04 P05 P06 P07
FUNCTION ------ ------ ------ K1 BUSY ------
TRIGGER ------ ------ ------ PAUSE/PLAY ------ ------
VOICE ------ ------ ------ ALL VOICE ------ ------
Negative level trigger. Power on , it will play automatically, negative level trigger P05 to pause , next tirgger to play from the
pause point. After voices play finished, it will loop .
In the two line serial mode ,there are two communication port, they are CLK and DI. In addition, there is a reset port, 1
second after reset , if no action to the module, the chip will be into standby status within one second if no action after reset.
- 11-
https://www.kontrolkalemi.com/forum/
512 group of voice can be loaded in SD card. The voice file name are decimal , such as 0000.ad4, 0001.ad4, ……When
the MCU send data to trigger, the data should be binary data corresponding to voice file name. MCU send signal to CLK
and ID at the same time. DI data send high first, then low. When there is no data, CLK and DI are high level.
5mS
RESET
300mS
CLK
2mS
200uS
DATA
BUSY
VOICE
- 12-
https://www.kontrolkalemi.com/forum/
7.5.5. PROGRAM EXAMPLE
ORG 0000H
KEY EQU P1.1 ; KEY PIN
KEY2 EQU P1.2 ;VOLUME
KEY3 EQU P1.3 ; CLK+
KEY4 EQU P1.6 ;CLK-
KEY5 EQU P1.7 ;TRANSMIT VOLUME,THEN ADDRESS
LED EQU P3.0 ;SHOW KEY PRESSED
SCL EQU P3.2 ;CLK PIN
SDA EQU P3.3 ;DATA PIN
RST EQU P3.4 ;RESET PIN
DAIFAZHI EQU 50H ;SEND CODE VALUE TEMP
VOICENUM EQU 51H ;VOLUME
CLKNUM EQU 52H ;CLK
MOV DAIFAZHI,#0H ;INITIAL SEND VALUE 0
MOV VOICENUM,#0F0H ; VOLUME INITIAL VALUE F0H
MOV CLKNUM,#2 ; DEFAULT SEND CODE 1MS
MOV R5,#8 ; LOOP EIGHT TIMES
SETB SCL
SETB SDA
SETB RST
MAIN:
JB KEY,KEY22
CLR LED
MOV R6,#5 ; DELAY 10MS
LCALL DELAY2MS
JB KEY,KEY22 ; KEY PRESS DEBOUNCE
JNB KEY,$ ;WAIT KEY PRESSED RELEASE
SETB LED
LCALL RESET
LCALL TWO_LINE ;TWO LINE SEND CODE SUBPROGRAM
INC DAIFAZHI ;CODE VALUE ADD 1
MOV A,DAIFAZHI
CJNE A,#37,XX2 ;WHETHER VOLUME REACH MAX. VALUE 128
XX2: JC KEY22
MOV DAIFAZHI,#0H
KEY22:
JB KEY2,KEY33
CLR LED
MOV R6,#5 ;DELAY 10MS
LCALL DELAY2MS
- 13-
https://www.kontrolkalemi.com/forum/
JB KEY2,KEY33 ;KEY PRESS DEBOUNCE
JNB KEY2,$ ;WAIT KEY PRESSED RELEASE
SETB LED
LCALL RESET
LCALL VOICE ;TWO LINE SEND CODE SUBPROGRAM
INC VOICENUM ;CODE VALUE ADD 1
MOV A,VOICENUM
CJNE A,#0F8H,XX4 ;WHETHER VOLUME REACH MAX. VALUE
XX4: JC KEY33
MOV VOICENUM,#0F0H
KEY33:
JB KEY3,KEY44
CLR LED
MOV R6,#5 ;DELAY 10MS
LCALL DELAY2MS
JB KEY3,KEY44 ; KEY PRESS DEBOUNCE
JNB KEY3,$ ;WAIT KEY PRESSED RELEASE
NOP
INC CLKNUM
SETB LED
KEY44:
JB KEY4,KEY55
CLR LED
MOV R6,#5 ; DELAY 10MS
LCALL DELAY2MS
JB KEY4,KEY55 ; KEY PRESS DEBOUNCE
JNB KEY4,$ ;WAIT KEY PRESSED RELEASE
NOP
DEC CLKNUM
MOV A,CLKNUM
CJNE A,#0H,XX5 ; SEND CODE KEEP 100US AT LEAST
MOV CLKNUM,#1
XX5:
SETB LED
KEY55:
JB KEY5,MAIN
CLR LED
MOV R6,#5 ; DELAY 10MS
LCALL DELAY2MS
JB KEY5,XX6 ;WAIT KEY PRESSED RELEASE
JNB KEY5,$ ;WAIT KEY PRESSED RELEASE
- 14-
https://www.kontrolkalemi.com/forum/
LCALL RESET
MOV VOICENUM,#0F6H
LCALL VOICE
LCALL TWO_LINE
XX6:
LJMP MAIN
TWO_LINE: ;///VOICE ADDRESS SEND CODE SUBPROGRAM
CLR SCL
MOV R6,#2
LCALL DELAY1MS
MOV A,#0
LOOP1:
CLR SCL
RLC A
MOV SDA,C
MOV R6,CLKNUM
LCALL DELAY50US
SETB SCL
MOV R6,CLKNUM
LCALL DELAY50US
DJNZ R5,LOOP1
MOV R5,#08H
MOV A,DAIFAZHI
LOOP2:
CLR SCL
RLC A
MOV SDA,C
MOV R6,CLKNUM
LCALL DELAY50US
SETB SCL
MOV R6,CLKNUM
LCALL DELAY50US
DJNZ R5,LOOP2
MOV R5,#08H
RET
- 15-
https://www.kontrolkalemi.com/forum/
CLR SCL
RLC A
MOV SDA,C
MOV R6,CLKNUM
LCALL DELAY50US
SETB SCL
MOV R6,CLKNUM
LCALL DELAY50US
DJNZ R5,LOOP3
MOV R5,#08H
MOV A,VOICENUM
LOOP4:
CLR SCL
RLC A
MOV SDA,C
MOV R6,CLKNUM
LCALL DELAY50US
SETB SCL
MOV R6,CLKNUM
LCALL DELAY50US
DJNZ R5,LOOP4
MOV R5,#08H
RET
RESET:
CLR RST
MOV R6,#3
LCALL DELAY1MS
SETB RST
MOV R6,#130
LCALL DELAY2MS
RET
DELAY2MS: ;DELAY 2MS SUBPROGRAM, CHANGE R6 VALUE CAN CHANGE DELAY TIME
L1: MOV R7,#248
L2: NOP
NOP
NOP
NOP
NOP
NOP
DJNZ R7,L2
DJNZ R6,L1
RET
- 16-
https://www.kontrolkalemi.com/forum/
DELAY50US: ; DELAY 25UM SUBPROGRAM, CHANGE R4 VALUE CAN CHANGE DELAY TIME
L11: MOV R7,#6
L22:
NOP
NOP
DJNZ R7,L22
DJNZ R6,L11
RET
DELAY1MS: ; DELAY 1MS SUBPROGRAM, CHANGE R6 VALUE CAN CHANGE DELAY TIME
- 17-
https://www.kontrolkalemi.com/forum/
8.TYPICAL APPLICATION CIRCUIT
3.3V
Q1
U1
P03 1 20 P02 809
P03 P02 C1
P04 2 19
P04 P01
104
P05 3 18
P05 P00
P06 4 17 RESET RESET
P06 REST
J1
P07 5 16 P11
P07 OSCO/P11 1 SD DAT2
3.3V P00
2 SD DAT3
6 15 P10 P01
VCC OSCI/P10 3 CMD
3.3V
4 VSS
7 14 +3.3V
SPK_P VDD 5 VDD
C4 P11
C2 6 CLK
8 13
104 SPK_N VPP 7 VSS
P10
8 SD DAT0
9 12 104
NC GND 9 SD DAT1
10
10 11
PAD_EQO PAD_EQI 11
WTV020SD-20S R6 SD Card
C3 15K
102
J2 3.3V J3
3.3V
GND
1 1
SPK2
2 2
SPK2 P07
3 3
SPK1 P03
4 4
P06
5 5
REST
6 6
P04 P02
7 7
P05
8 8
- 18-
https://www.kontrolkalemi.com/forum/
8.2.WTV020-SD-16P INNER CIRCUIT
+3.3V
P03 1 20 P02 Q1
P03 P02 AME8500
P04 2 19
P04 P01
P05 3 18
P05 P00
C1 104
P06 4 17 RESET RESET
P06 REST
J1
P07 5 16 P11
P07 OSCO/P11 1 SD DATA2
+3.3V P00
2 SD DATA3
6 15 P10 P01
VCC OSCI/P10 3 CMD
+3.3V 3.3V
4 VDD
SP+ 7 14 P11
SPK_P VDD 5 CLK
C2 6 VSS
SP- 8 13 R7 150 P10
104 SPK_N VPP 7 SD DATA0
8 SD DATA1
9 12
NC GND
Micro SD Card
AUDIO-L 10 11
PAD_EQO PAD_EQI
WTV020SD-20S C3 R6
102 15K
- 19-
https://www.kontrolkalemi.com/forum/
8.4.MP3 MODE APPLICATION CIRCUIT(DAC OUTPUT)
WTV020-SD-16P DAC output,” Audio L” and module GND to amplifier. WTV020-SD-20S DAC output, “SPK+” and module
GND to amplifier.
In MP3 mode, edge trigger. Control I/Os by key short touch to GND, I/O P02 is PREVIOUS,P03 is NEXT,P04 is VOL+,P05
is VOL-,P07 is PLAY/STOP.
The power input is DC3.3v, if DC5V input, two serial diodes (IN4001 or 4007)connect to the positive input to low the
voltage.
- 20-
https://www.kontrolkalemi.com/forum/
8.6.KEY MODE(5 group of voice)APPLICATION CIRCUIT(PWM OUTPUT)
8.7.LOOP PLAY AFTER POWER ON(EDGE TIRGGER PAUSE/PLAY) APPLICATION CIRCUIT(PWM OUTPUT)
- 21-
https://www.kontrolkalemi.com/forum/
8.8.LOOP PLAY AFTER POWER ON (LEVEL TRIGGER PAUSE/PLAY)APPLICATION CIRCUIT(PWM OUTPUT)
- 22-
https://www.kontrolkalemi.com/forum/
9.VOICE FILES IN SD CARD
Load voice files to SD card, and rename the files in this way, for WAV format voice :0000.wav , 0001.wav, 0002.wav……,
for ad4 format voice: 0000.ad4, 0001.ad4,0002.ad4 ……., 512 files max. In MP3 mode and Loop play mode, voice will play
in order.
10.1.WTV020SD-20S
PACKAGE:SOP20
Unit:mm
- 23-
https://www.kontrolkalemi.com/forum/
10.2.WTV020-SD-16P
Package:DIP16
Unit:mm
17.40 9.32
4.25
#1 #16
2.36
20.60
#8 #9
- 24-
https://www.kontrolkalemi.com/forum/
10.3、WTV020-SD-20S MODULE
Unit:mm
36.55
50.69
2.59
2.59
18.13
- 25-
https://www.kontrolkalemi.com/forum/
11.SUPPLY INFORMATION
In order to save customers production cost ,and good looking, we are not only sell modules, also we can sell the chips on
the module.customers can make it on their circuit board.
ITEM PICTURE
WTV020-SD-16P
WTV020-SD-20S
WTV020SD-20S
(above two modules use this chip)
- 26-
https://www.kontrolkalemi.com/forum/