WTN6 Series
WTN6 Series
Version:V1.06
Note:
WAYTRONIC ELECTRONIC CO.,LTD. reserves the right to change this document without prior notice. Information provided by
WAYTRONIC is believed to be accurate and reliable. However, WAYTRONIC makes no warranty for any errors which may appear in
this document. Contact WAYTRONIC to obtain the latest version of device specifications before placing your orders. No responsibility is
assumed by WAYTRONIC for any infringement of patent or other rights of third parties which may result from its use. In
addition,WAYTRONIC products are not authorized for use as critical components in life support devices/systems or aviation
devices/systems, where a malfunction or failure of the product may reasonably be expected to result in significant injury to the user,
without the express written approval of WAYTRONIC.
0
CONTENT
1. Overview...................................................................................................................................................................1
2. Functions...................................................................................................................................................................1
3. Pin Description..........................................................................................................................................................2
3.1. Pin Distribution Diagram...............................................................................................................................2
4. Limited Parameters................................................................................................................................................... 3
5. DC Characteristics.................................................................................................................................................... 3
6. One-line Serial Communication............................................................................................................................... 4
6.1. Pin Distribution..............................................................................................................................................4
6.2. One-line audio address corresponding relation............................................................................................. 4
6.3. One-line Audio and Command Code............................................................................................................ 5
6.4. One-line Serial Port Sequence Diagram........................................................................................................5
7. Two-line serial port communication......................................................................................................................... 7
7.1. Pin Distribution..............................................................................................................................................7
7.2. Audio Address Corresponding Relation........................................................................................................ 7
7.3. Audio and Command Code Corresponding Table.........................................................................................7
7.4. Two-line Serial Port Sequence Diagram....................................................................................................... 8
8. Count Pulse Control Mode:...................................................................................................................................... 9
8.1. Pin Assignment:........................................................................................................................................... 10
8.2. Voice Address Correspondence................................................................................................................... 10
8.3. Timing of Pulse Control...............................................................................................................................10
9. Button Control Mode:............................................................................................................................................. 11
9.1. Pulse can be triggered repeatedly................................................................................................................ 11
9.2. Pulse can not be triggered repeatedly.......................................................................................................... 11
9.3. Level Hold Loop..........................................................................................................................................12
9.4. Keep the level without looping....................................................................................................................12
9.5. The next song can be looped....................................................................................................................... 13
9.6. The previous song can be looped.................................................................................................................13
10. Program Example..................................................................................................................................................14
10.1. One-line serial port control program......................................................................................................... 14
10.2. Two-line serial port control program.........................................................................................................15
10.3. Count Pulse Control Program....................................................................................................................16
11. Application Circuit................................................................................................................................................17
11.1. One-line Serial Port....................................................................................................................................17
11.2. Two-line Serial Port................................................................................................................................... 19
11.3. Count pulse application circuit:................................................................................................................. 20
11.4. Button Application Circuit (high level trigger control).............................................................................21
11.5. Button Application Circuit (Low Level Trigger Control)......................................................................... 22
12. Package Pin Diagram............................................................................................................................................24
The WTN6 series are multifunctional, low-power, high-performance CMOS voice chips. There are
three types of chips, WTN6040, WTN6096, and WTN6170 (voice lengths are 40s, 96s, 170s, respectively).
WTN6040, WTN6096, and WTN6170 have been put on the market. The audio sampling rate is currently up
to 32kHz, 16-level volume control, and two audio output modes: PWM output and DAC output. Accurate
+/-1% internal oscillation, no need to add external oscillation, with ultra-low power standby.
2. Functions
Selection Attention:
1. The control mode and output mode of the chip have been set when the program is programmed, and cannot be
changed again. When ordering the chip, it is necessary to explain the application requirements to the salesperson.
2. Because WTN6 needs a certain initialization time (about 100MS) to power on, and it cannot respond to commands
during initialization, it needs to complete initialization to receive control normally.
3.WTN6 chip two-line serial port control DAC output DEMO board playback effect plus communication timing demo
video:https://v.youku.com/v_show/id_XNDcwMzM5MDMwOA==.html?spm=a2h0c.8166622.PhoneSokuUgc_1.dtitle
1
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
4.WTN6 chip one-line serial port control PWM output DEMO board playback effect plus communication timing demo
video:https://v.youku.com/v_show/id_XNDcwMzM4NzI1Ng==.html?spm=a2h0c.8166622.PhoneSokuUgc_1.dtitle
3. Pin Description
Two-line serial port clock signal input terminal/ one-line serial port data
PA1 2 I/O
signal input terminal/Count pulse data signal input terminal
PA0 3 I/O Two-line serial port data signal input terminal/reset pin
2
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
4. Limited Parameters
5. DC Characteristics
Typical
Mark Parameters Min. Max. Unit Condition
value
VDD Working voltage 2.4 3.0 5.2 V 1MHZor 2MHz
Standbycurrent,
Isb 3.1 uA
VDD=3V/4.5V
No load
Working VDD=3V 3 mA
Iop
current VDD=4.5V 3.7 mA
IIK input leakage current 0.1 uA
10 mA VDD=3V, Voh=1.0V
Ioh Output drive current
22 mA VDD=4.5V, Voh=2.2V
20 mA VDD=3V, Voh=2.0V
Iol Output reverse current
40 mA VDD=4.5V, Voh=2.5V
VDD=3V,Load=8 ohms
60 mA
VDD=3V,Load=8 ohms
70 mA
PWM2output
Ioh VDD=4.5V, Load=8
current
117 mA ohms
3
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
VDD=4.5V, Load=8
VDD=4.
0.5 ohms
5V
Frequency Fosc(3.0v)-Fosc(2.4v)
△F/F -5 5 %
deviation Fmax(3.0v)-Fmin(3.0v) Fosc(3v)
(VDD=3V) Fmax(3.0v)
oscillation VDD=2.0~5.5V Fosc(4.5v)-Fosc(3.0v)
Fosc 1.80 2 2.05 Mhz
frequency Fosc(4.5v)
One-line serial port mode can use MCU to send data to WTN6 series voice chip through DATA line to
achieve the purpose of control. It can control voice playback, stop, loop, etc.
Pins
Package type
PA1 PA2
Data(hexadecimal) Function
00H The 0th audio play
01H The 1st audio play
02H The 2nd audio play
……. …….
DDH The 221st audio play
DEH The 222nd audio play
DFH The 223rd audio play
Note: If you want to play the voice of this address, you can automatically play the voice of this address as long as you send
the address, and the time interval between the two address commands must be greater than 4ms.
4
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
6.3. One-line Audio and Command Code
Note: Without stopping the playback, if there is no command code F3H or F8H, and only the voice address, the voice that
was playing before will be interrupted. The code command must be used in conjunction with the address (for example:
F3H+00H+F3H+01H) . F3H and F8H can easily combine different voices, F3H+address+F8H+10H (100ms), up to 10
groups of content can be combined, the first group of commands must be F3+address; you can also judge the BUSY level
during voice playback and the end of playback The change of BUSY level completes the combined playback.
After pulling the data line low for 4-20ms, it is recommended to send 8 bits of data in 5ms. Send the low
bit first, then the high bit. Use the ratio of high level to low level to represent the value of each data bit.
5
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
Note: high level in the front, low level at the back.
It is recommended to use 200us: 600us. Value range: 40us:120us ~ 400us:1200us. Pay attention to the use of 3:1 and
1:3 level ratios to ensure stable communication.
If we want the chip to play the voice content of address 01/02/03/04 in turn. That is, the continuous code
command play, F3+01+F3+02+F3+03+F3+04. The corresponding timing can be as shown in the following
figure:
Note:
1. Because WTN6 needs a certain initialization time (about 100MS) to power on, and it cannot respond to commands during
initialization, it is recommended that users use the code-linking function to delay 2ms after sending a group of code-linked
addresses before sending the next group of code-linked codes. Address; but the interval between F3 and address is still 2ms;
2. The chip IO port, the default internal 1M pull-down. Therefore, when the customer is doing low-power sleep, the DATA
can be pulled down at the end of the voice playback to prevent back flow.
6
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
7. Two-line serial port communication
Pins
Package type
PA2 PA1 PA0
Default to BUSY signal
SOP8/DIP8 CLK DATA
output
Data(hexadecimal) Function
00H The 0th audio play
01H The 1st audio play
02H The 2nd audio play
……. …….
DDH The 221st audio play
DEH The 222nd audio play
DFH The 223rd audio play
Note: If you want to play the voice of the address, you can automatically play the voice of the address as long as you send
the address. The time interval between the two address commands must be greater than 4ms.
7
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
F3H+audio address A, F3H+audio address B , F3H+audio
address C,… When playing address A, the play will be not
F3H Concatenated Code play interrupted even the latter code is received. After finishing
playing A, B will be playing, then playing C…,need to add 2 ms
delay between F3 and the address.
F8H Insert mute F8H+mute time(10MS as a unit), insert mute after finishing
one address play.
FEH Stop playing the current audio This command can stop playing the current audio.
Note:
In the case of stopping playback, if there is no command code F3H or F8H and only a voice address, the
voice that was playing before will be interrupted, and the code instruction must be used with the address (for
example: F3H+00H+F3H+01H). F3H and F8H can easily combine different voices, F3H+address+F8H+10H
(100ms), up to 10 groups of content can be combined, the first group of commands must be F3+address; it can
also be judged by the BUSY level during voice playback and the end of playback The change of BUSY level
completes the combined playback.
The two-line serial port control mode is controlled by the chip clock CLK and data DATA. Before each
byte of data is sent, the clock signal CLK is pulled down 4ms to 20ms. It is recommended to use 5ms to
wake up the WTN6 voice chip. Receive data on the rising edge of. The clock cycle is between 100us and
6.4ms, and it is recommended to use 300us for each high and low level duration (that is, the clock cycle for
one bit transmission is 600us). When sending data, send the low bit first, then the high bit. 00H~DFH in the
data are voice address commands, E0H~EFH are volume adjustment commands, F2H is a loop playback
command, and FEH is a stop playback command.
8
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
If we want to send 96H, then his corresponding sequence diagram is as follows:
If we want the chip to play the voice content of address 01/02/03/04 in turn. That is, the continuous code
command play, F3+01+F3+02+F3+03+F3+04.
The corresponding timing can be as shown in the following figure:
Remarks:
1. Because WTN6 needs a certain initialization time (about 100MS) to power on, and it cannot respond to commands during
initialization, it is recommended that users use the code-linking function to send a group of coded addresses and then delay
2ms before sending the next group of coded addresses. ; But the interval between F3 and the address is still 2ms;
2. The chip IO port, the default internal 1M pull-down. Therefore, when the customer is doing low-power sleep, the voice
playback can pull down CLK and DATA to prevent backflow.
The pulse count control mode is to control the playback of the voice address by sending different pulses
on the DATA line. This control mode has simple operation and convenient control, and is often used in
occasions where the number of voice segments is not many.
9
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
8.1. Pin Assignment:
pin
Package
PA2 PA1 PA0
The default is BUSY signal
SOP8 DATA RESET
output terminal
In the count pulse control sequence, first pull up the RESET signal by 150us, and then send DATA. The
high level of the pulse in DATA needs to be maintained at a high level of 100us, and the interval between
two pulses needs to be 100us. 64ms after the pulse data is sent, the BUSY signal is output. After BUSY
output 100us, it will start to play the address voice, and the BUSY will also change after the voice playback.
Note: The pulse signal high-level width time range: 50us~2ms, 100us is recommended; the pulse signal
10
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
interval time range: 100us~4ms, 100us is recommended. The high level range of the reset signal is greater
than 100us, and 150us is recommended. The communication IO port is usually low, and it should be pulled
low after sending the data.
The defined pins can directly trigger the chip to play, that is, each pin can control the playback of a
voice. The trigger mode of each pin can be set separately. The anti-shake time of the key control mode is
10ms. The key trigger module includes pulse repeatable trigger, pulse non-repeat trigger, level hold cycle,
level hold non-cycle, next cycle, previous cycle. Please see the timing diagram below for details:
Note: Negative pulse trigger. When the I/O port detects a falling edge (for example, the I/O port is short-circuited to ground),
the voice will be played. During the voice playback, when the falling edge is detected again, the chip will interrupt the voice
being played and replay it. As long as there is a falling edge signal, it will replay.
Note: Negative pulse trigger. When the I/O port detects a falling edge (for example, the I/O port is short-circuited to ground),
the voice will be played. During the voice playback, when the falling edge is detected again, the chip does not act. The
detected falling edge is not valid until the end of the voice.
11
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
9.3. Level Hold Loop
Remarks: When the I/O port is low level, keep playing, and stop when high level. When the first pass is over and the low
level is still maintained, the playback will continue until it changes to the high level. As long as it is low level, there is
sound; high level, there is no sound.
Remarks: Low level trigger. When the I/O port is low level, keep playing, and stop when high level. When the first play is
over, the low level is still maintained, and the play will not continue. After the trigger, the play will end only once. If you
need to replay, you need to keep the I/O port at a high level, then pull it to a low level, and then keep it at a low level.
12
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
9.5. The next song can be looped
Note: Negative pulse trigger. Use a button to trigger the playback of the voice. A negative pulse triggers the playback of a
segment of voice, the next pulse triggers the playback of the next segment of voice, repeat the operation, after the last
segment of voice is played, the first segment of voice will be on-demand, and this loop triggers the playback of voice.
Note: Negative pulse trigger. Use a button to trigger the playback of the voice. A negative pulse triggers the playback of a
segment of voice, the next pulse triggers the playback of the previous segment of voice, repeat the operation, after playing
the most previous segment of voice, it will be ordered to the last segment of voice, and this loop triggers the playback of
voice.
13
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
10. Program Example
S_DATA = DDATA;
P_DATA = 0;
Delay_1ms(5); //delay 5ms
B_DATA = S_DATA&0X01;
for(j=0;j<8;j++)
{
if(B_DATA == 1)
{
P_DATA = 1;
Delay_N10us(60); //delay 600us
P_DATA = 0;
Delay_N10us(20); //delay 200us
}
else
{
P_DATA = 1;
Delay_N10us(20); //delay 200us
P_DATA = 0;
Delay_N10us(60); //delay 600us
}
S_DATA = S_DATA>>1;
B_DATA = S_DATA&0X01;
}
14
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
P_DATA = 1;
}
/*--------------------------------------
;Module name:Line_2A_WTN6(UC8 DDATA)
;Function: Realize two-line serial communication function
;Input parameters: DDATA is sending data
;;Output parameters
; CLK_2A //Clock line
; P_DATA_2A //data line
;-------------------------------------*/
Void Line_2A_WTN6(UC8 DDATA)
{
UC8 S_DATA,j;
bit B_DATA;
CLK_2A = 1; //Clock line
P_DATA_2A = 1; //data line
S_DATA = DDATA;
CLK_2A = 0;
Delay_1ms(5); //delay 5ms
B_DATA = S_DATA&0X01;
for(j=0;j<8;j++)
{
CLK_2A = 0; // Pull down
P_DATA_2A = B_DATA; //Transmission data one bit
S_DATA = S_DATA>>1;
B_DATA = S_DATA&0X01;
}
P_DATA_2A = 1;
CLK_2A = 1;
}
15
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
10.3. Count Pulse Control Program
16
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
11. Application Circuit
The working voltage range of the voice chip is 2.4V-5.2V, PWM output
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips.
The working voltage range of the voice chip is 2.4V-5.2V, the working voltage range of the power
amplifier chip is 1.8V-6.0V, and the output of the external PWM power amplifier
17
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips.
The WT1312 power amplifier is a PWM power amplifier and can only be used in PWM output mode.
The working voltage range of the voice chip is 2.4V-5.2V, DAC output
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips. In the DAC output mode, the PWM-pin must be connected to a 1nf
capacitor to the ground, and the DAC output can be connected to an external power amplifier to drive a louder speaker.
18
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
11.2. Two-line Serial Port
The working voltage range of the voice chip is 2.4V-5.2V, PWM output:
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips.
The working voltage range of the voice chip is 2.4V-5.2V, the working voltage range of the power
amplifier chip is 1.8V-6.0V, and the output of the external PWM power amplifier
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips.
The WT1312 power amplifier is a PWM power amplifier and can only be used in PWM output mode.
19
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips. In the DAC output mode, the PWM-pin must be connected to a 1nf
capacitor to the ground, and the DAC output can be connected to an external power amplifier to drive a louder speaker.
The working voltage range of the voice chip is 2.4V-5.2V, PWM output
Note:
When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the anti-interference
ability of WTN6 series voice chips.
20
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
The working voltage range of the voice chip is 2.4V-5.2V, DAC output
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips. In the DAC output mode, the PWM-pin must be connected to a 1nf
capacitor to the ground, and the DAC output can be connected to an external power amplifier to drive a louder speaker.
The working voltage range of the voice chip is 2.4V-5.2V, PWM output
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips.
21
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
The
working voltage range of the voice chip is 2.4V-5.2V, DAC output
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips. In the DAC output mode, the PWM-pin must be connected to a 1nf
capacitor to the ground, and the DAC output can be connected to an external power amplifier to drive a louder speaker.
The working voltage range of the voice chip is 2.4V-5.2V, PWM output
22
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips.
The working voltage range of the voice chip is 2.4V-5.2V, DAC output
Note: When wiring, capacitor C1 should be as close as possible to the VDD pin of WTN6 chip to enhance the
anti-interference ability of WTN6 series voice chips. In the DAC output mode, the PWM-pin must be connected to a 1nf
capacitor to the ground, and the DAC output can be connected to an external power amplifier to drive a louder speaker.
23
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.
12. Package Pin Diagram
24
https://www.wtsoundic.com [email protected] Shenzhen Waytronic Electronics Co., Ltd.