Home
FORKTRUCK ALARM USER MANUAL
Contents
1. 2 Q Ol IO l O O O O O O O O O O O O k 18230 3 12 HISTORY VERSION VERSION DATE DESCRIPTION V1 0 Oct 9th 2008 ORIGINAL v1 1 Oct 3 2009 Amend the internal block diagram of WTR S4 v1 2 Mar 224 2009 Increase switch control mode and package diagram v1 3 May 14 2009 Amend the description of one by one key mode Page 17 of 18
2. module can change record mode to play mode In play back mode POO P05 responding to 8 paragraphs recording voice In DAC output Signal output from SP to amplifier audio GND to module GND BUSY at low level and LED lit during playing Page 15 of 18 www elechouse com 10 7 PWM OUTPUT IN THREE LINE SERIAL MODE LINE RECORD IN 1 SAMPU RATE CHOCSING gt POS o A SAMPUNG RATE CHO ING 5 P16 lt 5 PRIA I RESET AUDIOL SP SP DI BUSY ETE WIR S4 20 VCC To POO BEEJ POL 17 P02 16 P03 3 3 V CS CLK MCU DATA IN 3 3V C Ea REE Remark MCU control WTR S4 to record or play by CS CLK DI including conventional record and time record Record can be taken by MIC or LINE or both at the same time PWM output direct drive speaker SP and SP are for speaker on module 10 8 DAC OUTPUT IN THREE LINE SERIAL MODE SAMPLING RATE CHOOSING ue ig SANPLINGRATE CHOOSING LINE RECORD EOS 2 3 P06 P07 Pis gt P16 SP Remark Remark MCU control WTR S4 to record or play by CS CLK DI including conventional record and time record Record can be taken by MIC or LINE or both at the same time DAC output external amplifier audio from AUDIO L audio from module GND Page 16 of 18 www elechouse com 11 DIAGRAM OF PACKAGE Unit mm 100 k 1523 Al S gr fer O O T O O e
3. output When direct drive speaker audio SP Audio output When direct drive speaker audio DI T O Memory data in DO T O Memory data out CLK T O Memory clock GND GND Power GND CS T O Memory CS P03 Key 4 serial port data Previous serial port data in P02 Key3 serial port CLK Next serial CLK input P01 Key 2 serial port CS Play stop serial port CS input POO Key 1 Record VCC Power Power input positive DC DC2 7V 3 5V Discontinuous low level output in recording BUSY Busy output f f durative low level output in playing VCC Power Power input positive DC DC2 7V 3 5V P04 Key 5 Four level volume adjustment MIC MIC record MIC record positive input GND GND MIC Line record negative input LINE Line record Line record positive input NC NC NC NC NC NC Page 4 of 18 www elechouse com 7 SAMPLING RATE SETTINGS Set sampling rate by P06 and P07 refer to following sheet SAMPLING RATE 6KHz 8KHz 12KHz 16KHz 8 PARAMETERS Test conditions DC 3 3V 25 C 0 5W 8Q speaker A OND UNS O A RANGE 2 7 3 5 3 3 V 25 C O A O HIGH 2 7 3 5 3 3 V 25 C LOW 0 0 5 0 1 V 25 C OND CURRENT 10 mA VCC DC3 3V O A O O CURRENT 20 200 120 mA VCC DC3 3V ANDB CURRENT 120 uA VCC DC3 3V O O 9 MODES WTR S4 with key mode one key one voice mode record amp play by this same key three line serial mode 9 1 KEY MODE In thi
4. G Remark Record can be taken by MIC or LINE or both at the same time Cathode pulsed P00 start to record the first voice trigger it again to stop recording The third trigger start to record the second voice record etc can record 8 paragraphs voice You can trigger P02 P03 to play back the recorded voice Keep low level 1 second can delete the current voice keep 5 second to delete all of voice Page 14 of 18 www elechouse com 10 5 PWM OUTPUT IN ONE BY ONE KEY MODE FOR PLAYING Remark Record can be taken by MIC or LINE or both at the same time Connect P16 to GND and RESET the WTR S4 module can change record mode to play mode In play back mode POO P05 responding to 8 paragraphs recording voice PWM drive speaker directly Signal output from SP SP to speaker BUSY at low level and LED lit during playing 10 6 DAC OUTPUT IN ONE BY ONE KEY MODE FOR PLAYING porn so FB BE DEPART E A Loe nc 28 Er o7 y E 2 POG NC sh ro POT LNE Ban Ai A PA 4 p15 GND 5 P16 ur E aa Sl m POL 55 j us to oI ist va e KK MN 8 ADDL BUSY R1 470 2 gp vec 120 ud 6 D SP o 39 pa Cl 2 o ae 17 m DE 15 cK pos 18 gt oO 10 DA GND cs 2 M E Remark Record can be taken by MIC or LINE or both at the same time Connect P16 to GND and RESET the WTR S4
5. N FLASH B B B SOUND MEANS ERASE GROUP SUCCESSFULLY NEEDS 400us TO ERASE VOLUME F2H XXH F2 03H MEANS MAXIMUM F2H 00H MEANS MINIMUM STOP F4H 00H STOP TO RECORD OR PLAY PAUSE F6 00H PAUSE TO PLAY 9 3 3 VOICE ADDRESSES Group 255 is maximum Hexadecimal code is FF When the trigger addresses out of recorded address trigger is invalid DATA HEX ill FUNCTIONS i 00H PLAY GROUP 0 01H PLAY GROUP 1 02H PLAY GROUP 2 FDH PLAY GROUP 253 FEH PLAY GROUP 254 FFH PLAY GROUP 255 Page 9 of 18 www elechouse com 9 3 4 THREE LINE SERIAL CONTROL TIMING The three line serial control timing is base on standard SPI communication protocol with CS CLK DI without DO Pull low CS 400us before sending Sending DI at CLK rising edge 800us lt CLK cycle lt 5ms Sending 16 bit one time former 8 bit is a code later 8bit is the address Pull high CS when sent 16 bit out instead to pull high when sent former 8 bit out Timing chart as following CS aK 0 400us DATAIN lt Conmand Address 9 3 5 PROGRAM EXAMPLE Three line serial C program example Crystal oscillator 11 0592MHz MCU AVR MEGA8 void spi_send unchar ch unchar i PORTD BIT spi_sda PORTD BIT spi_sck for i 0 i lt 8 i if ch amp 0x01 PORTD BIT spi_sda else POR
6. T 6 co T Bae EA EA AVA LO Os ne Pr a e e een I codi 7 9 15 VOEUMEADJUSTMEN Ti Re 7 DSO a RA SE O A cad 7 9 2 ONE KEY ONE VOICE MODE RECORD amp PLAY BY THIS SAME KEY cccccssssscsssseeees 7 9 3 THREE LINE SERIAL MODE ssscsssiiosessesssvsssososoossesssessseosesosoedsrss coos sosoboes coasevedcesuaeeddessaedsdoowceeddovaceusevee 8 931 AASSIGNMEN TORT OS eraa aa a aa ae e a a E E EEA 8 9 3 2 FUNCTIONS AND CORRESPONDING CODE ccoccnncnnnnnnnoninonanananenennnanananenacanonananannnnnccnnonanananes 9 9 33 VOICE ADDRESSES wscesiidocdeseteicceittous abedetes iceada ue aihee abia 9 9 3 4 THREE LINE SERIAL CONTROL TIMINGo occccccccnnnnonnnnnncninnnanananeneccnnnonannnnnnnacinannnnncccccnanananens 10 930 PROGRAM FAA MP Bis tt aaa aida fale delat ites de tiie on abate de aie tins 10 10 APPLICATION CIR CULT conoscan SooceesssentestsdougessedeeGossedeacessusces Ataca 13 10 1 WTR S4 RECORDING MODULE INNER ooooooconnnncncnnononannnonecinnnananannnnnnnnnonanannnnnccccnnnanananenonnnannnnnnacos 13 10 2 PWM OUTPUT IN KEY MODE ccoonconnnnnnncncnnnnnnnnnoncccnnonnnannnnnnonononanananeneccnnonnannnnnnnnccnnanannnnnnncccnnnnananens 13 1039 DAG OUTPUTIN KEY MODE 00d dicas 14 10 4 PWM OUTPUT IN ONE BY ONE KEY MODE FOR RECORDING ccccnnncccnnnncncnnnnncnannnnacinonanananen 14 10 6 DAC OUTPUT IN ONE BY ONE KEY MODE FOR PLAYING cccccccnncnonnnnncnconinanananenacinonanannnanecoss 15 10 7 PWM OUTPUT IN THREE LINE SERIAL MODE oc
7. TD amp BIT spi_sda ch gt gt 1 PORTD BIT spi_sck delay 552 PORTD BIT spi_sck delay 552 PORTD BIT spi_sda PORTD BIT spi_sck void main void Page 10 of 18 www elechouse com PORTD amp BIT spi_cs delay 600 spi_send Oxfc spi_send 0x01 PORTD BIT spi_cs THREE LINE SERIAL ASSEMBLER EXAMPLE ASM Crystal oscillator 4MHz MCU AT89C2051 rec bit p16 play bit p1 7 cs bit p3 5 scl bit p3 7 sda bit p3 4 org 0000h ajmp main org 0030h main mov 2fh 00h key jnb rec recl jnb play pla1 ajmp key recl acall d10ms jb rec key jnb rec clr cs acall dims mov a 0f5h acall send2 mov a 00h acall send2 setb cs acall dims clr cs acall dims mov a 0fah acall send2 mov a 00h acall send2 setb cs ajmp key rec2 clrcs acall dims mov a 0f4h Page 11 of 18 www elechouse com plal send2 send2a acall send2 mov a 00h acall send2 setb cs ajmp key acall d10ms jb play key jnb play cpl 2fh 1 jnb 2fh 1 rec2 clr cs acall dims mov a fch acall send2 mov a 00h acall send2 setb cs ajmp key mov 11 8 setb scl setb sda clr c rc a mov sda c clr scl acall dims setb scl acall dims djnz rl send2a ret Page 12 of 18 www elechouse com 10 APPLICATION CIRCUIT 10 1 WTR S4 RECORDING MODULE INNER 10 2 PWM OUTPUT IN KEY MODE sms VOLUVE m ERASE o O SAMPLING RATE CHOCSING 1
8. ae m LINE RECORD IN 5 NC ANPLINGRATE CHOOSI NP pa AS T P07 LINE ea 4 P15 GND RESET 5 P16 MIC oF EF P17 P04 g RESET VCC SPEAKER o AUDIOL BUSY io SP CC 117 SP POO a 177 DI POL 137 DO PO2 Tod 14 CLK PO3 SNP cs RECORD PS WTIR S4 PLAY STOP NEXT O o mm PREVIOUS Remark Record can be taken by MIC or LINE or both at the same time In this mode pull low relative T O to control module Such as P00 for RECORD P01 for PLAY STOP P02 for NEXT P03 for PREVIOUS P04 for VOLUME P06 for ERASE PWM output direct drive speaker SP and SP are for speaker on module BUSY is high level in standby low level in playing or recording Page 13 of 18 www elechouse com 10 3 DAC OUTPUT IN KEY MODE m VOLUVE m ERASE LINE RECORD IN AAMPLING RATE CHOOSING re aoa 1 om e P06 SAMPLING RATE CHOOSING P07 m RESET 6 P16 PLAY STOP m NEXT O O m PREVIOUS o O Remark Record can be taken by MIC or LINE or both at the same time In this mode pull low relative T O to control module Such as P00 for RECORD P01 for PLAY STOP P02 for NEXT P03 for PREVIOUS P04 for VOLUME P06 for ERASE In DAC output AUDIO L to amplifier audio GND to module GND BUSY is high level in standby low level in playing or recording 10 4 PWM OUTPUT IN ONE BY ONE KEY MODE FOR RECORDIN
9. ive address for record or play O 00 0 0 0 04 0 K1 K2 K3 K4 K5 K6 RECORD RECORD RECORD RECORD RECORD RECORD O PLAY PLAY PLAY PLAY PLAY PLAY ADDRESS ADDRESS ADDRESS ADDRESS ADDRESS ADDRESS O GROUP 1 GROUP 2 GROUP 3 GROUP 4 GROUP 5 GROUP 6 9 3 THREE LINE SERIAL MODE Three line serial mode with 3 I Os they are CS DI CLK Timing according to SPI communication protocol MCU control voice chip by three line serial interface In this mode all keys are invalid 9 3 1 ASSIGNMENT OF I Os I O FUNCTIONS P03 DATA IN Pag 8 of 18 www elechouse com 9 3 2 FUNCTIONS AND CORRESPONDING CODE FUNCTIONS CODES DESCRIPTIONS CONVENTIONAL FAH 00H SEQUENTIAL RECORDING TIME IS NOT LIMITED BUSY RECORDING PULLED LOW TIME FBH XXH XXH REPRESENT THE RECORDING DURATION 255 RECORDING SECONDS MAX SUCH AS FBH 05H MEANS AFTER RECEIVE THE CODE START TO RECORD 5 SECONDS THEN STOP THIS FUNCTION 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 01H PLAY GROUP ONE BUSY PULL LOW WHEN START PLAYING PULL HIHG WHEN FINISH LOOP F3H XXH LOOP PLAY SUCH AS F3H 09H MEANS LOOP PLAY GROUP 9 ERASE 1 GROUP FDH XXH XXH REPRESENT THE GROUP WHICH ERASED FDH 02H MEANS ERASE GROUP 2 IT NEEDS 400us TO ERASE ERASE ALL F5H 00H ERASE ALL VOICE I
10. nvalid 9 1 5 VOLUME ADJUSTMENT EDGE Ar LE ESF EE AS L VOLUME LEVEL 3 LEVEL 2 LEVEL 1 LEVEL 4 LEVEL 3 LEVEL 2 BUSY Remark The default volume is maximum level 4 when power on first negative edge turn it to level 3 second negative edge turn to level 2 third negative edge turn to level 1 mute fourth negative edge turn to level 4 again loop in this way During the volume adjustment BUSY output keep high level Volume can be adjusted in playing or stop status 9 1 6 ERASE LEVEL SHORT PRESS LONG PRESS we fC ERA LR A CURRENT GROUP ALL GROUPS BUSY Remark Low level trigger Short press to erase the current voice in FLASH long press to erase all groups of voice BUSY output always high level during erasing 9 2 ONE KEY ONE VOICE MODE RECORD amp PLAY BY THIS SAME KEY One key one voice mode record amp play by this same key Choose record or play status by P16 P16 high level play P16 low level record Page 7 of 18 www elechouse com When into record status before recording start BUSY must be Low level for 3 seconds and make I O P00 PO05 correspond current address And record start P16 high level can make record stop P16 STATUS P16 HIGH LEVEL durative P16 LOW LEVEL durative P14 P14 HIGH LEVEL PLAY RECORDING P14 LOW LEVEL PLAY START RECORD 3 seconds gt Record or play Addresses are decide by I Os P00 P01 P02 P03 P04 P05 pull low I O and choose relat
11. onononcnnnncccnnonanananonaninnnnanannnnnnnccnnnanannnnncnnananenenanos 16 10 8 DAC OUTPUT IN THREE LINE SERIAL MODE oconnncnnnnnncccnnnnanananonecinnnnnannnonaccnonnnnnnnccncnanananenenecos 16 TI DIAGRAM OF PACKAGE 0 a 0scsccccescovidecdesnsdeccossieastebetessestevnssecdssebecedsoosdesdesobeeedensececdeswabeedessacsscabeeeeseonaeessdeoies 17 12 HISTORY VERSION 00 aiii 17 13 GUANGZHOU WAYTRONIC TECHNOLOGY CO LTD ooccnnconnnnnnonnnnnnononosanononcnnoncnnnononcnconononcnononoos 17 E A O 17 Page 2 of 18 www elechouse com 1 FEATURES Cc D 4M 8M 16M 32M 64M e Apply 8 bit DSP core recording chip WTRO10 16 S bit ADC input 16 bit DAC output 6K 170 341 682 1365 2730 eSupport external SPI FLASH 4M Bit to 16M Bit One key one voice mode record amp play by this 8K 128 256 512 1024 2048 12K 85 170 341 682 1365 16K 64 128 256 512 1024 C CAPACITY D DURATION TIME seconds S SAMPLING RATE same key and three line serial mode eSupport Line and MIC record eSelf set Sampling rate from 6KHz 8KHz 12KHz 16KHz Input voltage from DC2 7V to 3 5V eBelow 150uA consumption in saving power mode Can use in phone recording industrial control 4 APPLICATION DIAGRAM consumable products toys and so on SPI FLASH 2 FUNCTION DESCRIPTIONS Realize the recording function by our WTR chip and external SPI FLASH With good quality s
12. ound long recording duration and low cost Currently the longest recording duration is 2730 seconds for this AUDIO OUTPUT module WTR S4 module with key mode One key one voice WTR S4 MODULE Y LINE IN ea Il A mode record z 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 5 PACKAGE SKETCH MAP can be erased You should tell us which mode you 1 28 need 2 ee Ne A 3 e 26 g P07 LINE 5 P15 GND 4 g P16 MIC 33 P17 P gt 7 Fg I RESET VCC BAE 3 RELATIONSHIP OF FLASH MF 37261 BUY Sp 107 She po 2 MORY amp DURATION 27 POL 7 13 66 IE EPE CLK P03 5 GND ESA 28PIN MODULE Page 3 of 18 www elechouse com 21 22 23 24 25 26 27 28 6 PIN DESCRIPTIONS PINS SYMBOL FUNCTIONS Short press to erase the current group of voice long P05 KEY 6 press to erase all groups of voice P06 Sampling rate setting Combined P06 and P07 to set the sampling rate P07 Sampling rate setting Combined P06 and P07 to set the sampling rate P15 Low voltage detecting In one key one voice mode record amp play by this P16 Mode choosing same key low level for recording high level for playing P17 Charge RESET Reset Low level to reset AUDIO L Audio output When external amplifier audio SP Audio
13. s mode I O functions RECORD PLAY STOP PREVIOUS VOLUME DELETE Page 5 of 18 www elechouse com 9 1 1 RECORD EDGE oe ro ss MI parres ae GROUP 1 GROUP 2 AUDIO OUTPUT BUSY Remark First negative edge start to record first group of voice Second negative edge stop recording Third negative edge starts to record second group of voice Fourth negative edge stop recording Record voice with this way Total 256 groups of voice During recording BUSY sending out discontinuous low level signal 9 1 2 PLAY STOP EDGE AUDIO OUTPUT CURRENT GROUP OF OVICE CURRENT GROUP OF OVICE BUSY bam a Ss a 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 playing BUSY send out durative low level signal 9 1 3 NEXT EDGE AUDIO OUTPUT e yh GROUP 2 GROUP 3 GROUP N BUSY AAA e 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 Page 6 of 18 www elechouse com 9 1 4 PREVIOUS EDGE VOLUME J GROUP N 1 GROUP N 2 GROUP N BUSY Remark First negative edge trigger to play N 1 group of voice second negative edge trigger to play N 2 group of voice play to the first group of voice in this way then next trigger is i
14. www elechouse com Voice Recording Module WTR S4 Manual Data Sheet Document Date Apr 20th 2009 Document Revision V1 4 Page 1 of 18 www elechouse com Table of contents LL FEATURES italia 3 2 FUNCTION DESCRIPTIONS ia cdissicsdcesscvcsdessivediasscessdoocseescossossdooesessavedsovsdoacdeed socdeevsseciseedsecdsessuetessueeedcovacoesesee 3 3 RELATIONSHIP OF FLASH ME MORY amp DURATION o ooocccccccnccononnncnnnnononanannanonnccnnonannnanonncccoconannnnnnnos 3 4 APPLICATION DIAGRAM a a a a E E a E Ea issa Eao 3 5s PACKAGE SKETCH MAP ee ereere ee pee aE eee es atese eea aeaaee tesa aset 3 6 PIN DESGERIP TIONS aisiscciscdovsssscsesssosecevensvesecsdsvsseveasovsevescavievss toviesssconevsasussvsveovucesessuasevesdeavessevesSussacescavievsssuseees 4 7 SAMPLING RATE SETTINGS ccccssesssssssesccsssscsesssscssecsssescesessevessssccsessssescessssecesssscssesessescessssesesssscssessesees 5 8 PARAMETERS sssssesssscesessuscesessocesvessecessessectssesiceasvacsossondesesoseeseesoedeseususessosuedevossesesvensecdesesbedeess sovecssubasdesonssedeseuees 5 QUMODE S s sascccsecccccedtsiacucsschatcsnesceCasee caseuouewasvovestcouaseseet bandeaseuesebessaceCeaueceuessuosceCocwasosedece avlodsdues census beseunuedesessunsestuassieeste 5 OAV KEY MODE iesvssindcssssecicosssceiccascissevd coasadeacoosdonscoucdoudsovcdwad RS 5 Ol TUR BC ORIG a tro 6 OA DAPEAVISTOR A A tie OE oe See A OE Bis a Et ae A ER BL ita 6 bo ad SN Gl De ee Hr N
Download Pdf Manuals
Related Search
Related Contents
Manual DIGITAL SATELLITE RECEIVER DVB4600 Latinoamérica ED. EDUÍLIO ALTAFIM - Bem-vindo Altafim Construções Samsung C61R2AAST Наръчник за потребителя CY-DSR110D 取扱説明書 Modelación del crecimiento de bovinos en pastoreo con gramíneas Telehansa 8 Copyright © All rights reserved.
Failed to retrieve file