WTR-S MODULE.PRODUCT FEATURES....FUTION DESCRIPTIONS....RELATIONSHIP OF FLASH MEMORY CAPACITY AND RECORDING DURATION....APPLICATION DIAGRAM....PACKAGE SKETCH MAP....PIN DESCRIPTIONS.... SAMPLING RATE SETTINGS....PARAMETERS... 9.MODES... 9..KEY MODE... 9...RECORD... 9... PLAY/STOP... 9... NEXT... 9...PREVIOUS... 9...VOLUME ADJUSTMENT... 9...ERASE... 9.. ONE KEY ONE VOICE MODE(RECORD & PLAY BY THIS SAME KEY)... 9..THREE LINE SERIAL MODE... 9...ASSIGNMENT OF I/Os... 9...FUTIONS AND CORRESPONDING CODE... 9.. VOICE ADDRESSES... 9 9...THREE LINE SERIAL CONTROL TIMING... 9 9...PROGRAM EXAMPLE... 9.APPLICATION CIRCUIT.....WTR-S RECORDING MODULE INNER CIRCUIT...... PWM OUTPUT APPLICATION CIRCUIT IN KEY MODE..... DAC OUTPUT APPLICATION CIRCUIT IN KEY MODE..... PWM OUTPUT APPLICATION CIRCUIT IN ONE KEY ONE VOICE(RECORD &PLAY BY THIS SAME KEY)..... DAC OUTPUT APPLICATION CIRCUIT IN ONE KEY ONE VOICE MODE(RECORD&PLAY BY THIS SAME KEY).....PWM OUTPUT APPLICATION CIRCUTI IN THREE LINE SERIAL MODE..... DAC OUTPUT APPLICATION CIRCUIT IN THREE LINE SERIAL MODE....PRODUCT FEATURES Apply bit DSP core recording chip WTR0, bit ADC input,bit DAC output. Support external SPI-FLASH( M/Bit to M/Bit) One key one voice mode(record & play by this same key) and three line serial mode.
Support Line and record. Self-set Sampling rate from KHz,KHz,KHz KHz. Input valtage from DC.V to.v Below ua consumption in saving power mode. Can use in phone recording, industrial control,consumable products, toys and so on..fution DESCRIPTIONS Realize the recording function by our WTR chip and external SPI FLASH. With good quality sound and long time recording and low cost. Currently, the longest recording duration is 0 seconds for this module. WTR-S module with key mode, One key one voice mode(record&play by this same key),and three line serial mode. The mode can not be change after fixed at first time programming. But the recording can be erased. You should tell us which mode you need..relationship OF FLASH MEMORY CAPACITY AND RECORDING DURATION C D M M M M M S K 0 0 K 0 K 0 K S: SAMPLING RATE D: DURATION (seconds) C: CAPACITY.APPLICATION DIAGRAM SPI-FLASH LINE IN MCU WTR-S MODULE IN AUDIO OUTPUT
.PACKAGE SKETCH MAP P0 P0 P0 LINE P P P P0 RESET VCC 9 AUDIO-L BUSY 0 SP- VCC 9 SP+ P00 DI P0 DO P0 P0 PIN MODULE.PIN DESCRIPTIONS PINS SYMBOL BRIEF FUTIONS P0 KEY Short press to erase the current group of voice, long press to erase all groups of voice P0 Sampling rate setting Combined P0 and P0 to set the sampling rate P0 Sampling rate setting Combined P0 and P0 to set the sampling rate P Low voltage detecting P Mode choosing In one key one voice mode(record & play by this same
key),low level for recording, high level for playing. P Charge RESET Reset Low level to reset AUDIO-L Audio output When external amplifier, audio + 9 SP- Audio output When direct drive speaker, audio - SP+ Audio output When direct drive speaker, audio + DI I/O Memory data in DO I/O Memory data out I/O Memory clock Power I/O Memory P0 Key /serial port data Previous /serial port data in P0 Key/ serial port Next /serial input P0 Key / serial port Play/stop / serial port input 9 P00 Key Record 0 VCC Power + Power input, positive, DC DC.V~.V BUSY Busy output Discontinuous low level output in recording, durative low level output in playing. VCC Power + Power input, positive, DC DC.V~.V P0 Key Four level volume adjustment record record positive input, Line record negative input LINE Line record Line record positive input. SAMPLING RATE SETTINGS Set sampling rate by P0 and P0, refer to following sheet. P0 P0 SAMPLING RATE LOW LOW KHz HIGH LOW KHz LOW HIGH KHz HIGH HIGH KHz.PARAMETERS Test conditions: DC.V,, 0.W/Ω speaker.
ITEM MIN. MAX. TYPE UNIT CONDITION WORKING RANGE... V VOLTAGE I/O HIGH... V LEVEL LOW 0 0. 0. V RECORD CONSUMPTI CURRENT --- --- ma VCC=DC. V ON PLAY CONSUMPTI CURRENT 0 00 ma VCC=DC. V ON STANDBY CONSUMPTI ON CURRENT --- --- ua VCC=DC. V 9.MODES WTR-S with key mode, one key one voice mode( record & play by this same key), three line serial mode. 9..KEY MODE In this mode, I/O functions I/O P00 P0 P0 P0 P0 P0 FUTION RECORD PLAY/STOP NEXT PREVIOUS VOLUME ERASE 9...RECORD Remark: First negative edge start to record first group of voice. Second negative edge stop recording. Third negative edge start to record second group of voice. Fourth negative edge stop recording. Record voice in this
way, group of voice. During recording, BUSY sending out discontinuous low level signal. 9... PLAY/STOP Remark:First negative edge start to play current group of voice, second negative edge stop playing, third negative edge replay, fourth negative edge to stop. Play in this way, During the palying, BUSY send out durative low level signal. 9... NEXT Remark: First negative edge trigger to play second group of voice, second negative edge trigger to play third group of voice. Play to last group in this way, then next trigger is invalid. 9...PREVIOUS Remark: First negative edge trigger to play N- group of voice, second negative edge trigger to play N- group of voice, play to first group of voice in this way, then next trigger is invalid. 9...VOLUME ADJUSTMENT
Remark: The default volume is maximum(level ) when power on, first negative edge turn it to level, second negative edge turn to level, third negative edge turn to level (mute), fourth negative edge turn to level again, loop in this way. During the volume adjustment, BUSY output keep high level. Volume can be adjusted in playing or stop status. 9...ERASE Remark: Low level trigger. Short press to erase the current group of voice, Long press to erase all groups of voice in FLASH. During erasing BUSY output always high level. 9.. ONE KEY ONE VOICE MODE(RECORD & PLAY BY THIS SAME KEY) One key one voice mode(record &paly by this same key), Choose record or play status by P, P high level(play),p low level (record). When into record status, before recording start, BUSY must be Low level for seconds, and make I/O P00~ P0 correspond current address. And record start. P high level can make record stop. P STATUS P HIGH LEVEL(durative) P LOW LEVEL(durative) P P HIGH LEVEL PLAY RECORDING P LOW LEVEL ( seconds) PLAY START RECORD Record or play Addresses are decide by I/Os P00,P0,P0,P0,P0,P0, pull low I/O and choose relative address for record or play. I/O P00 P0 P0 P0 P0 P0 KEY K K K K K K FUTION RECORD/ RECORD/ RECORD/ RECORD/ RECORD/ RECORD/
PLAY ADDRESS PLAY ADDRESS PLAY ADDRESS PLAY ADDRESS PLAY PLAY ADDRESS ADDRESS VOICE GROUP GROUP GROUP GROUP GROUP GROUP 9..THREE LINE SERIAL MODE Three line serial mode with I/Os, they are, DI,. Timing according to SPI communication protocol. MCU control voice chip by three line serial interface. In this mode, all keys are invalid. 9...ASSIGNMENT OF I/Os I/O FUTIONS MODEL P00 P0 P0 P0 P0 P0 WTR-S --- DATA(IN) --- --- 9...FUTIONS AND CORRESPONDING CODE FUTIONS CODES DESCRIPTIONS CONVENTIONAL RECORDING FAH+00H SEQUENTIAL RECORDING,TIME IS NOT LIMITED. BUSY PULLED LOW TIME RECORDING FBH+XXH XXH REPRESENT THE RECORDING DURATION, SECONDS MAX. SUCH AS FBH+0H, MEANS AFTER RECEIVE THE CODE, START TO RECORD SECONDS, THEN STOP.THIS FUTION IS FOR FIXED DURATION OF EACH GROUP. RECORD START AND BUSY PULLED LOW, RECORD FINISH, BUSY PULLED HIGH. PLAY FCH+XXH XXH REPRESENT GROUP NUMBER, SUCH AS FCH+0H PLAY GROUP ONE. BUSY PULL LOW WHEN START PLAYING, PULL HIHG WHEN FINISH. LOOP FH+XXH LOOP PLAY. SUCH AS FH+09H MEANS LOOP PLAY GROUP 9 ERASE( GROUP) FDH+XXH XXH REPRESENT THE GROUP WHICH ERASED. FDH+0H MEANS ERASE GROUP. IT NEEDS 00us TO ERASE. ERASE(ALL GROUP) FH+00H ERASE ALL VOICE IN FLASH, be-be be SOUND MEANS ERASE SUCCESSFULLY. NEEDS 00us TO ERASE. VOLUME FH+XXH F+0H MEANS MAXIMUM, FH+00H MEANS MINIMUM. STOP FH+00H STOP TO RECORD OR PLAY. PAUSE F+00H PAUSE TO PLAY.
9.. VOICE ADDRESSES group is maximum, Hexadecimal code is FF. When the trigger addresses out of recorded address, trigger is invalid. DATA(HEX) FUTIONS 00H PLAY GROUP 0 0H PLAY GROUP 0H PLAY GROUP FDH PLAY GROUP FEH PLAY GROUP FFH PLAY GROUP 9...THREE LINE SERIAL CONTROL TIMING The three line serial control timing is base on standard SPI communication protocol, with,, DI, without DO. Pull low 00us before sending,. Sending DI at rising edge. cycle longer than 00us and shorter than ms. Sending bit one time, former bit is the code, later bit is the address. Pull high when sent bit out, instead to pull high when sent former bit out. Following timing chart. 00us DATA(IN) 00us Command Address 9...PROGRAM EXAMPLE Three line serial C program exsample Crystal oscillator.09mhz. MCU:AVR-MEGA void spi_send(unchar ch) { unchar i; PORTD =BIT(spi_sda); PORTD =BIT(spi_sck); for(i=0;i<;i++) { 9
if((ch&0x0)) { PORTD =BIT(spi_sda); } else { PORTD &=~BIT(spi_sda); } ch>>=; PORTD &=~BIT(spi_sck); delay(); PORTD =BIT(spi_sck); delay(); } PORTD =BIT(spi_sda); PORTD =BIT(spi_sck); } void main(void) { PORTD &=~BIT(spi_cs); delay(00) spi_send(0xfc); spi_send(0x0); PORTD =BIT(spi_cs); } WTR-S Module User Manual THREE LINE SERIAL ASSEMBLER EXAMPLE ASM Crystal oscillator MHz MCU:AT9C0 rec bit p. play bit p. cs bit p. scl bit p. sda bit p. org 0000h ajmp main org 000h main: mov fh,#00h key: jnb rec,rec jnb play,pla ajmp key rec: acall dms jb rec,key jnb rec,$ clr cs acall dms mov a,#0fh acall send
rec: mov a,#00h ; acall send setb cs acall dms clr cs acall dms mov a,#0fah acall send mov a,#00h acall send setb cs ajmp key clr cs acall dms mov a,#0fh acall send mov a,#00h acall send setb cs ajmp key WTR-S Module User Manual pla: acall dms jb play,key jnb play,$ cpl fh. jnb fh.,rec clr cs acall dms mov a,#fch acall send mov a,#00h acall send setb cs ajmp key send: mov r,# setb scl setb sda clr c senda: rrc a mov sda,c clr scl acall dms setb scl acall dms djnz r,senda ret
.APPLICATION CIRCUIT..WTR-S RECORDING MODULE INNER CIRCUIT... PWM OUTPUT APPLICATION CIRCUIT IN KEY MODE
VOLUME ERASE LINE RECORD IN RESET SPEAKER P0 P0 P0 LINE P P P P0 RESET VCC 9 AUDIO-L BUSY 0 SP- VCC 9 SP+ P00 DI P0 DO P0 P0 RECORD +.V R 0 LED C WTR-S PLAY/STOP NEXT PREVIOUS Remark: Record can be taken by or LINE or both at the same time. In this mode, pull low relative I/O to control module. such as P00 for RECORD, P0 for PLAY/STOP, P0 for NEXT, P0 for PREVIOUS, P0 for VOLUME, P0 for ERASE. PWM output direct drive speaker, SP+ and SP- are for speaker on module. BUSY is high level in standby, low level in palying or recording... DAC OUTPUT APPLICATION CIRCUIT IN KEY MODE VOLUME ERASE LINE RECORD IN C SPEAKER 0uF R C 0.0uF VDD LM RESET C K P0 P0 P0 LINE P P P P0 RESET VCC 9 AUDIO-L BUSY 0 SP- VCC 9 SP+ P00 DI P0 DO P0 P0 WTR-S +.V R 0 LED RECORD PLAY/STOP NEXT C PREVIOUS Remark: Record can be taken by or LINE or both at the same time. In this mode, pull low relative I/O to control module. such as P00 for RECORD, P0 for PLAY/STOP, P0 for NEXT, P0 for PREVIOUS, P0 for VOLUME, P0 for ERASE. In DAC output, AUDIO-L to amplifier, audio to module. BUSY is high level
in standby, low level in palying or recording. WTR-S Module User Manual.. PWM OUTPUT APPLICATION CIRCUIT IN ONE KEY ONE VOICE(RECORD &PLAY BY THIS SAME KEY) GROUP GROUP LINE RECORD IN RECORD/PLAY RESET SPEAKER P0 P0 P0 LINE P P P P0 RESET VCC 9 AUDIO-L BUSY 0 SP- VCC 9 SP+ P00 DI P0 DO P0 P0 RECORD GROUP GROUP GROUP +.V C WTR-S GROUP Remark: Record can be taken by or LINE or both at the same time. Play status P must be high level, record status P must be low level. But change P to low level doesn t mean recording is started. We should pulll low one of P00~P0, and keep BUSY low level seconds, record start now. after record started, BUSY high level or low level are invalid. P change to high level and record stop. SP+ SP- to speaker in PWM output... DAC OUTPUT APPLICATION CIRCUIT IN ONE KEY ONE VOICE MODE(RECORD&PLAY BY THIS SAME KEY)
GROUP GROUP LINE RECORD IN SPEAKER C 0uF C 0.0uF R VDD LM RECORD/PLAY RESET C K P0 P0 P0 LINE P P P P0 RESET VCC 9 AUDIO-L BUSY 0 SP- VCC 9 SP+ P00 DI P0 DO P0 P0 WTR-S RECORD GROUP GROUP GROUP GROUP +.V C Remark: Record can be taken by or LINE or both at the same time. Play status P must be high level, record status P must be low level. But change P to low level doesn t mean recording is started. We should pulll low one of P00~P0, and keep BUSY low level seconds, record start now. after record started, BUSY high level or low level are invalid. P change to high level and record stop. In DAC output, AUDIO-L to amplifier, audio to module. driver speaker..pwm OUTPUT APPLICATION CIRCUTI IN THREE LINE SERIAL MODE LINE RECORD IN P0 P0 P0 LINE P P P P0 RESET VCC SPEAKER 9 AUDIO-L BUSY 0 LED R SP- VCC 9 SP+ P00 0 DI P0 DO P0 P0 +.V WTR-S DATA(IN) MCU +.V C
Remark: MCU control WTR-S to record or play by,,di, including conventional record and time record. Record can be taken by or LINE or both at the same time. PWM output direct drive speaker, SP+ and SP- are for speaker on module... DAC OUTPUT APPLICATION CIRCUIT IN THREE LINE SERIAL MODE LINE RECORD IN SPEAKER C 0uF C 0.0uF R VDD C LM K P0 P0 P0 LINE P P P P0 RESET VCC 9 AUDIO-L BUSY 0 SP- VCC 9 SP+ P00 DI P0 DO P0 P0 WTR-S LED R 0 +.V DATA(IN) MCU +.V C Remark: Remark: MCU control WTR-S to record or play by,,di, including conventional record and time record. Record can be taken by or LINE or both at the same time. DAC output external amplifier, audio+ from AUDIO-L, audio- from module.. HISTORY VERSION VERSION DATE DESCRIPTION V.0 00-9- ORIGINAL