Home
EasyPlay User's Guide
Contents
1. Selection 0 00 Max Selection 0 08 Zero 0x00 May vol 0x08 Vol Volume 5leepl KevTrogerKep Trigger Assign 5 election 0 Assign Max_Selection 8 Asslgn Zero O E l Assiqn Max_Vol 8 Cancel VolumeGet yol TET tep4 Move Up 4 Move Down Sleep Tasjes Step2 Click the item to be adjusted from the Scripts column and shift it by dragging up and down 38 e DispatchWave Drama Book Sound Files API RAM Trigger Scenes Scripts Memory Dispatchw ave Selection ol p2 DL Selection si Ste p5 Play D EN Content Sound File Sound Files Play_NEXT Selection_to_Max Selection_to_Min Volume Control Volume Volume Vol Io Mm Vol Io May Miuenher 11KH7 e Delay xx millisecond Step1 Click DispatchWave in the API page to display the function column Step2 Choose the RAM parameter from the Memory column Step3 Click the required sound file Step4 In the Content Sound File dialogue choose a proper location to place the required sound file Step5 Add the sound file in Step 3 to the Step 4 location Step6 Add the API function to the Scripts e Conditional Scene Jumping Step1 Click Jmp_EQU in the API page and the function column will show up Step2 Click the scene to jump to Step3 Choose the proper parameters for the left and right side of the equal sign according to requirements Step4 Add the API function to the Scri
2. HT83F02 TEST lg CADocuments and Settings TMLLL4I Sdminllser My Doc Step 5 DIRECT 5 Audio Output Speaker Driven DIRECT DAIVWERPOWER AMPLIFIER PW MeiDAC Ls CRYSTAL Back Finish Cancel Step6 New Project Now Created 2 HT83F02_TEST EZD Easy Play Project Edit View Utilities Help D gt Es Drama Book Sound Files API RAM Trigger Scenes Scripts Used Space 18416 bytes Triangle_W ave 5 0 5 Available Space 112656 bytes Scenel KeyTrigger KeyT rigger Free Space 85 95 Sei SES Sound Files Se 001_en wav HT ADPCM Scene4 002_en wav HT ADPCM Scenes 003_en wav HT ADPCM Sceneb 004_en waw HT 4DPCM Scene 005_en waw HT 4DPCM 006_en waw HT 4DPCM Test Mode 007_en waw HT ADPCM 008_en waw HT 4DPCM Scenes Add Scene Del Scene Adjust Script Download and Demo Step1 Generate a PND File Easy Flay SF HI83F02_TEST EZD Easy Play Project Edit View Utilities Help A Build O pao File Ges to DATS3F02_TEs MATS2F02_TEST PHD Step2 Setup the Hardware Platform Demo Board System Operating Voltage Options 5V 3 3Ve Loudspeaker DC POWER a ee ROA y E JES array Step3 Select the programming method according to requirements The other options will be introduced later Step3a First choose the calibration method for the programming process and for pre programming Step3b Click Program PROM VROM to start programming the program data
3. Scene box displays the scenes to be dispatched The Content Scene column displays the dispatch scene that has been added The number of added scenes should be less than or equal to 255 The order of the dispatched scenes can be changed by dragging them with the mouse Sound Files Pl ram Trigger Dispatch Scene 1 Scene 2 Scenes 3 Scene4 4 5 Scenes Scenes 26 e The 7 button is to add a dispatch scene To operate first select the location to be added from the Content Scene then the required scene from the Scene column by clicking e The gt button deletes all dispatched scenes Clicking on gt will remove all of the Content Scene content Note 1 It is acceptable for an empty scene to be a dispatch scene However an effective empty scene must be located between or before a non empty scene 2 Ajump to an empty scene means no jump DispatchWave e The DispatchWave is used to play the wav file in the DispatchWave according to the specific RAM value The sequence of the RAM value corresponds with that of the wav file in the DispatchWave The order number starts from zero When the number of RAM values are less than the number of the wav files added to the DispatchWave both will corresponds to each other e When the RAM value is larger than the number of wav files added to DispatchWave the RAM value that is larger than the wav file nu
4. e The EasyPlay RAM and Trigger window content is as follows Sound Files API RAM Trigger User Memor Nickname AAMOO Recordindex Name AAMC PlayRecord urm Name ARAM OZ RecordNurm_ mar Name RAMOS ZERO Mame FAMO4 Name FAAMOS Name RAMOS Name Sound Files Ap RAM Trigger R4MO7 Name RAMOS Mame RAMOS Name AER lgl Name Table Name FA AM11 Name RAM 12 Name KepT rigger 001 Erase llRecord Soe Ae Bnp AddOneRecord DAMIE Mame 0x03 PlayRecord Up ae pile 0x04 PlayRecord Down RAMS Name O05 STOP RAMI Name C 0 06 Programming and Demo Environments e Programming and demo environment diagrams Demo Board HT83F22_EASYPLAY snid 19H1M 9 aon AE eeo PE e Pe Apto HO Oscillator Options XTAL ERC mm INSIDE AMP al i a e ew Lo Jeer L La d fe e i y A CJ St 3 a mm y em DC POWER KS AA dara Y PCO OS 4 d AL SE Rip Ja S p A SC Loudspeaker o Eer ee SP i 1w pie e d kb f IM System Operating A STI E Ke r eg teg Options Z G y RESET el J amp L ESR SC e EL E PA7 n HU E ee nl EN A A 3 FF JE 2 Lu 1 E PAO 1 Ke fei E e Demo Board HT83F22_EASYPLAY Key Placement Hardware Platform Key Number KEY KEY2 KEY3 KENYA KEY5 KEY6 KEY7 KEYS KEY9 KEY10 49 ee Software Platform Key Number Key a Combo Operatin
5. R input C column output BZ power control signal D data SDA SCL 12C data and clock lines DATA CLK Holtek communication data and clock lines SO common ports PCO PC2 which are used as output ports when used as I O HT83F22 Hardware Structure Name PA2 PAS PA PAS PAG PA7 PA1 PBS PBG PB7 PBO 4 oz Direct 6 Ki K2 k3 K4 K5 ke ES FL RD Z so Matrices RO Ri R2 Rs co ci es FL RD z so Binary Do Dt D2 D3 D4 ke es FL RO z so YY fo fo nh 2 6 soa so pes ro AD mz so Hoe o n e e on ol Es ro ro ez so_ Combo Ko kr Ke Ks soa so Es rL AD ez so Note K1 K6 input keys O output input R matrix row key input C matrix column key input BZ the HT82V739 enabled signal D data SDA SCL 12C data and clock lines DATA CLK Holtek communication data and clock lines RD busy recording signal ES record erase indicator FL write SPI FLASH or erase SPI FLASH failed indicator SO selective output namely when PBO PB1 and PB2 are selected to be I O ports then PBO PB1 and PB2 will they be used as output ports and PB3 4 will be used as fixed output ports 18 Mode Function Description Taking the HT83F02 as an example the description is as follows Mode Function Description HT83F02 I O Input Output Sketch Map Uses PA as an output port to connect the 8 keys
6. UD en wa HT 4DPCM Scene O06_en way HT 4DPCM OO7_en way HT 4DPCM 1an boda 008 en wan HT ADPCM Scene5 Sceneb Add Scene Del Scene Adjust Script CAP MN e Add a sound file Sound Files ap RAM Trigger Used Space 18416 bytes Available Space 1030160 bytes Free Space 98 24 Sound Files 001_en wav HT 4DPCM 002 en wa HT 4DPCM 003_en wav HT 4DPCM 004 en wav HT 4DPCM 005 em wa HT ADPCH D06_en waw HT 4DPCM O07 _en wav HT 4DPCM 008_en wav HT 4DPCM E c1_samplerate_11KHz2 E cS Sy HELLO File name ate_11KHz waw c1_samplerate_11KHz waw aon Ste p2 Files of type wav Files wav ze Cancel Step e RES va Step 1 In the Sound Files page click Add and an Open window will pop up Step 2 Select a sound file click Open and a Select Compression Mode window will pop up 33 e Select the compression mode Following the above select the compression mode from the Select Compression Mode window Select compression mode El Compression Mode HT ADPCM HT ADPIC Cancel Pa 2 In the Sound Files page select the corresponding compression mode and the compression mode menu will show up Sound Files API Ram Trigger Used Space 18416 bytes Available Space 10307 60 bytes Free Space 98 24 Sound Files a a a a a a a a a a a a a a 1001_en wav 001_en HT A0PCHM y 002 en wav 002 en OO3_en way
7. alioli eisosi la 48 Programming and Demo Emironmente occccconccnccnncnnncnncnnnnnnoncnnnnnnnnnncnnononnnnnnnnnnrnnnrnnnnnnrnrrnnninnnnnnos 49 HOLTEK A EasyPlay User s Guide Chapter 1 Outline EasyPlay Development Tool Introduction The EasyPlay Development Tool is an easy to use software development tool designed for the HT83Fxx series of voice devices lt is an interface development tool that can simulate in a single project items such as scenes scripts sound files etc ensuring that designers have their demo boards and projects up and running as fast as possible For projects with a large number of voice segments the EasyPlay development tool also provides a superior and greatly simplified development process EasyPlay stores scenes scripts and sound files with a certain format in the VROM of the HT83Fxx As the VROM in the HT83Fxx device series is Flash type memory the implementation of voice and functional updates becomes a much simplified and convenient process and one which does not require HT83Fxx device replacement An example could be any kind of voice function electrical appliance such as an electronic scale which although perhaps initially using English could be very easily and quickly converted to use other languages wate EasyPlay User s Guide Chapter 2 Quick Start Starting the EasyPlay Double click the EasyPlay icon 2 Untitled Easy Play Project Edit View Utilities Help Cad 2 Drama Book Sou
8. e The example uses the HT83F02 MCU e Five Keys K1 Play the current sound file K2 Play the previous sound file K3 Play the next sound file K4 Increase volume and play the current sound file K5 Reduce volume and play the current sound file e Play 8 sound files Functional Description e Build a project using the Direct 8 mode in the HT83F02 according to requirements e The window content of the EasyPlay Scenes and Scripts is as follows 1 The parameter of the current playing sequence of the Selection 0x00 sound file The given value is zero 2 See EasyPlay RAM in this example Max_Selection 0x08 The parameter of the maximum playing sequence The given value is 8 Zero 0x00 The value given to Zero is 0 Max_Vol 0x08 Maximum play volume parameter The given value is 8 Vol Volume Volume parameter The given value is the current level of the played volume 1 Initialise the key trigger Scene 2 See EasyPlay Trigger for reference Sleep MCU enters the sleep mode 1 Dispatch the sound file by the Selection value DispatchWave Selection l Play_Current 2 See DispatchWave for reference Sleep MCU enters the sleep mode Jump to Selection_to_Min if When the playing sequence parameter reaches the Selection Zero 0x00 minimum jump to the Selection_to_Min scene Play PREV l l l Selection Selection 0x01 Or the playing sequence parameter will be minus one JumpTo
9. the HT83F22 e RecordPlay is used to play a previous recording in the sequence as specified by the indicated RAM value When the RAM value is larger than the current total recording the last recording file will be played RecordErase e RecordErase is the specified API in the HT83F22 e RecordErase is used to delete one recorded file from the sequence related to the specified RAM value When the specified RAM value is larger than the current total recording the last recording file will be the one to be deleted RecordEraseAll e RecordEraseAll is the specified API in the HT83F222 e RecordEraseAll is used to delete all recordings ReadRecordNum e ReadRecordNum is the specified API in the HIT 83F22 e ReadRecordNum is to read the total number of the current recording UserAPI0 1 2 3 e UserAPI0 1 2 3 is the specified API in the HT83F22 e In the possible system resource range of the HT83F22 the user can write program code with UserAPl and execute those program codes in the flow designated by the user The program code must be written in the Source file under the a project folder according to the related location of the UserAPl_HT83F22 asm file e The UserAPI is divided into two type One type is the API UserAPIO 1 without scene jumping functions and the other is the API UserAPI2 3 with scene jumping functions 28 HOLTEK I EasyPlay User s Guide Chapter 6 Application Examples Key Applications Function Requirements
10. to ground Uses PBO PB1 as pins for user output ports Uses PB2 as the power control output port Direct 8 HT83F02 OUTPUT OUTPUT AMP Enable control Uses PA PB1 and PB2 ports to form an 8x2 a Ward matrix keyboard with PA as inputs PBO and Sue e PB1 as outputs A e no Uses PB2 as the power control output port a E AMP Enable control y DO J D1 Uses PAO PA6 and PA7 ports to form parallel a trigger inputs ae Binary 2 Uses PA7 as the trigger input and PAO PAG ees Sp as parallel output ports SE See Binary Timing for its timing reference A7 SSES The data is saved in RAM19 Dese OUTPUT AMP Enable control J OUTPUT J OUTPUT J OUTPUT Uses PBO PB1 as IC Slave ports A3 OUTPUT Uses PAO PA7 as user output ports J OUTPUT FC Uses PB2 as the power control output port HT83F02 P OUTPUT See IFCTiming for the timing reference The j OUTPUT data is saved in RAM19 A7 OUTPUT SDA SCL AMP Enable control 19 Function Description HT83F02 UO Input Output Sketch Map OUTPUT OUTPUT OUTPUT OUTPUT OUTPUT HT383F02 P OUTPUT DATA CLK Uses PA6 PA7 as Holtek serial bus Slave ports Uses PAO PA5 as user output ports Uses PB2 as the power control output port See Holtek Serial Bus Timing for the timing reference The data is saved in RAM19 AMP Enable control Uses PBO PB1 as the IC Slave ports Uses PA as an input port to connect the eight keys to ground Uses PB2 as the power co
11. 24 A E 24 opero ea 24 VolumeSet VolumeCGet errar manner 24 tee EE 24 iere O o tee gd OP eda ln a ete ce 24 e A estat agama estes a Mid ance oe Acad Od al ce 24 CALE DET lanas 24 CAU oa 24 A A A Da eal E 24 Sleen SOD Delay ANS COMUNE aia old 25 Eege EE 25 Eeer 25 DEl MS aa 25 COMME EE 25 A A a 25 UM E tata 25 virt e Ve A O O O O A wee atone access 25 Checksum Handle Wave tooo 25 Communication ISR Key Trader suis sind 26 Elei eege Selecta 26 EE 26 Risen iere VUE UE 26 ISP del da een en tee ee ee eee 26 Biet er 27 Ile e tele er ef E niente Sache eet Reet Peer ane ern tae pie eer O 27 POA GER 27 DU Eer 27 lire e EE 28 A e O RS eee ee er ae ee ee eee een eee 28 Keele EE 28 nao jo Ee 28 RECOrETaSGA lee ald hee seated al lee ns Ll oe eh deck ond ig ended seen tata jl Agata cee els 28 Read Recon OI tr leerlos lisas 28 o e eR eee ee 28 ChapterG Application EE 29 OY APPUICAMONS o 29 mal aleve lo aml evo ute mens aaeain eebe 29 F ncional DestiipPUON EE 29 Demonstration Figure Descrip os 31 EasyPlay Trigger Window Content 37 Programming a a Demo Gin Vigel in En EE 42 Key and Transmission Applications ccccssccccsseeecceesecceeeeccesecceeuseeceaueeeseseessaueeesseeessseseessneeeesaaes 44 KEY REQUIEM Soo 44 Recording and Audio Function Applications nnenaanneenennnnnnrnnnensnnnnensnnnnensnnnrnsnnrrrnnnnnrnnsnnreenenrerennne 47 Function ReguiremeNls ci is 47 Functional Descubra ir
12. EasyPlay User s Guide October 21 2011 Copyright 2011 by HOLTEK SEMICONDUCTOR INC All rights reserved Printed in Taiwan No part of this publication may be reproduced stored in a retrieval system or transmitted in any form by any means electronic mechanical photocopying recording or otherwise without the prior written permission of HOLTEK SEMICONDUCTOR INC Contents Content ainia 2 Chapter T GEES 4 EasyPlay Development Tool Iotroduchon 4 Chapter2 Quick Stari aii di a arene 5 Sci e eu tans 5 Creating a NEW Proje clama l a 5 Downaload and Demo eric ica 8 Chapters Project Desi Nucia ass 10 scenes EI el 11 A A EE 11 e DIE te 8 cea nee ma ne ee eee eee ee eee 12 sound RTE ee EE 12 The Add Button is Used to Add the Sound Files 000nnnnnnnn0annnnnnnnnnnnnnnnnnnnnnnnnnnnsennnnnnnnsennnrrrennene 12 The Del Button is Used to Delete a Sound File nn000nnnnnnnnnnnnnnnnnunnnnnnnnsrnnnnnrnnsennrrrrrnsennnrrrennene 13 Small Technical ai e aca 18 RAM DIA Ol Sr o o all al 14 MOE EE Lei A IR A A ee 15 Eds y Play VVINGOW MENU pasaras 16 A O eascanchenaranseea 16 Utiles Meis a cis 17 A A An 17 Chapters Prolect MOG nisaran naaa aa aaa 18 Demo Board Hardware StrUCtUFE isecen a a eee a EE TE E EEE NR i 18 HTS3F02 Hardware le a a E a 18 HT839F22 Hardware let a 18 Mod Function E d o le EE 19 o E 22 Kreis EE 22 COMBO NN rn Une DEE 23 A a a a 23 Chapter S Sci APN adan dav 24 PASSION Operation EG
13. HTS3F02 COMBO BAD 4 HIR COMBO EAD Exit Utilities Menu Export to file Ctd 414 E Print Option Table Program Program PROM Scnpts Program YROM Triangle _Wavel5 0 5 oe aer KeyT rigger KeyT rigger Download with Verify Sleen e Export to file Exports the Scenes and Scripts content in the EasyPlay as a text file e Print option table Prints the option info etc as an Approved Sheet text file e Program Programs the PND file into the MCU and the voice Flash with four options Program PROM Programs the program code only Program VROM Programs the voice data code Program PROM VROM Programs both the program code and voice data code Download with Verify Calibrates the program process Note For Flash type devices after compilation the Project Project setup must select the Program PROM VROM for programming so as to implement the correct modification Help Menu The Help menu includes information such as the EasyPlay version info copyright date option and the EasyPlay user s menu option 17 Chapter 4 Project Mode Demo Board Hardware Structure HT83F02 Hardware Structure Name PA0 PA1 PA2 PA3 PA4 PA5 PAG PA7 PBO PB1 PB2 Foni Te Matrix 16 RO Ri R2 R3 R4 R5 Re RZ Binary DO Di D2 D3 D4 D5 De Kz P pz soosor soe Combo ko Kt K2 k3 k4 K5 k7 spa Note KO K7 input keys O output
14. IT ADM potep 2 005_en wav 005_en HIT ADM gt OD6_en wav UU en HIT ADM Step 1 EN DZ ern wa DU en HT ADPCM KE 008 er waw 008 en HT 40PCM lt l gt C Delete a script Select the script to be deleted and press the DEL button API Dialogues ee The API dialogue includes the API required by the Scripts By using add ___ button the API will be added to the Scripts Sound Files Dialogues The Sound Files dialogue includes Add and Del operating buttons The Add Button is Used to Add the Sound Files Step 1 Click Add to pop up the window and find the WAV file to be added Step 2 Click Open to pop up the format selection window E cl1_samplerate_11KHz cs ei HELLO Used Space 18416 bytes Available Space 112656 bytes i 05 954 File name ate_11KHz wav cl_samplerate_11KHz wav Free space 85 35 Files of type Wav Files wav bd 007 ep way HT 4DPCM 002 en way 002 en HIT ADM ULI ep way 003_en HT 40 PCM O04 en way O04 en HIT ADM UUD en way O05 en HIT GDPCM UU ep way UU en HT 40PCM O07 en way 007_en HIT ADM UU en waw O08 en HT 40 PCM Step 1 Cancel Select compression mode Compression Mode HT ADPCM HT 4 0PChM PCM 2 ea oa 12 HOLTEK f EasyPlay User s Guide Note 1 The WAV file must be in a MONO WINDOWS PCM format with a sound frequency sampling of about 16bits 2 The relationship b
15. O03 en 004_ ep wa 004_en DOUD en way 005 en KE GE UU ep wa 006_en 1007 en wa UU ep HT 40 PCM 008 en wav HT ADPCM ch waw K PCM12 A14_samplerate Al4 samplerate_11KHz PCM12 cl_samplegte_1 cl_samplerate_11KHz PCM12 Note Click Nickname column to modify the name e Delete Scenes Drama Book Scenes Scripts Trangle_Wave 5 0 5 KLeulnogekeul rigger Sleep Cru Step gt Bs SE Sa bd Step2 Check sum ok Add a scene Delete the scene Step 1 Select all files in the Scenes column and click the right key Step 2 Choose Delete the scene to delete the original content 34 e Add Scenes and Set a Name Click the right key in the Scenes dialogue choose Add a scene and the Set Name dialogue will pop up for the user to set a name Drama Book 5cenez Scripts Scene_O00 Cancel This shows all the Scene names in this example Drama Book Scenes e Modify the Parameter Name In the RAM page click the Nickname column to input the parameter name 4 Sound Files l AFI bau Trigger User Memory Ick name Name day Selection Mame Mame Name May Vol Mame RAMOS Name A AMOE Mame 39 e Give values Step1 Choose Assign from the API page Step2 Choose the RAM parameter from the Memory column and select a RAM parameter Step3 Choose a RAM parameter or fill in a constant with a range of 0 255 in the Memory Consta
16. Play Current Jump to the Play _Current scene Selection Selection 0x01 Play sequence parameter plus 1 Jump to Selection_to_Max if When the playing sequence parameter reaches the Selection Max_ Selection 0x00 maximum value jump to the Selection_to_Max scene JumpTo Play_ Current Or jump to the Play_Current scene Key Trigger Key Trigger Play NEXT 29 HOLTEK I EasyPlay User s Guide scenes emp Comments O Selection Zero 0x00 Return to the first playing sequence Selection Io Max JumpTo Play_ Current Jump to the Play_Current scene l l Selection Max_Selection 0x01 Return to the last playing sequence Selection_to Mm JumpTo Play_Current SE the Play_Current scene 1 Dispatch the volume level with the Vol value Dispatch Vol 2 See Dispatch for reference Volume Control JumpTo Play_ Current sme to the Play_Current scene Sleep MCU enters the sleep mode Jump to Vol_to_Min if When the volume parameter reaches the minimum jump Vol Zero 0x00 to the Vol jo Min scene Volume Vol Vol 0x01 Or the volume parameter will be minus 1 Jump To Volume_Control Jump to the Volume_Control scene Vol Vol 0x01 Volume parameter plus 1 Jump to Vol_to_Max if When the volume parameter reaches the maximum jump Vol Max_Vol 0x00 to the Vol_to_Max scene JumpTo Play_Current EE 7 P 0x07 The current volume level has a given value of 7 the maximum JumpTo P
17. S data is saved in RAM19 Uses PA6 PA7 as the Holtek serial bus Slave port Uses PA2 PA5 as user output ports Uses PA1 as a SPI Flash Erase indicator Uses PCO PC7 as user output ports Uses PB5 as a write or erase SPI Flash indicator Uses PB7 as the power control output port See Holtek Serial Bus Timing for timing reference The data is saved in RAM19 Uses PA6 PA7 as the I C Slave port Uses PA2 PA5 to connect the four keys to ground Uses PA1 as an SPI Flash Erase indicator Uses PCO PC7 as user output ports Uses PB5 as a write or erase SPI Flash indicator Uses PB7 as the power control port See COMBO Timing for the timing reference The data is saved in RAM19 21 EasyPlay User s Guide HT83F22 UO Input Output Sketch Map D DI D3 D4 TRIGGER OUTPUT ES FL RD AMP Enable control INPUT INPUT INPUT INPUT SDA SCL OUTPUT ES FL RD AMP Emable control ES FL RD AMP Enable control Binary Timing e Timing Figure PAO PA6 DO D6 DO D4 PA2 PA6 PA7 Tr e The input trigger time Tr of PA7 is 10 20ms e The time interval between two successive communications must be less than 150us e Each communication data byte is saved in RAM19 2 OE IFC Timing e For FC communication the Master timing must obey the following timing for the Slave namely the HT83Fxx to response correctly Start Slave Address SRW ACK UU SDA Tp P
18. Script composed of API Sound Files RAM and Trigger The relationship of each scene except for the one located in the first location is a parallel one If the script related to the scene does not have an API for scene jumping the scene and its successive scenes are will have a consecutive relationship The APIs in the script dialogue have a consecutive relationship Therefore the first step of a project design is to add scenes to the Scenes dialogue and then have scenes correspond to the script content according to the project requirements Each scene connection is implemented by a scene jump API Note A hidden scene jump is generated by an external key trigger or a communication trigger Therefore if a key trigger or communication trigger is configured during the scene initialisation when either of them occurs the MCU will jump to the configured scenes The operation process is as follows Trigger source Power On Com sPlay Com sPause KeyTrigger KT1 k1 sPlay k2 sStop KeyTrigger KT2 k1 sPause k2 sStop e 10 Scenes Scripts KeyTrigger KT1 Communication _ISR sPlay sPause l 8 JMP sStop KeyTrigger KT2 Sleep KeyTrigger KT 1 Sleep SleepQ l 8 Sleep Scenes Dialogues Scenes dialogue includes Add Scene and Del Scene operating buttons Step 1 The Add Scene button is used to add a scene in the Scenes dialogue Step 2 The Del Scene button is use
19. UR NV S Start 1 bit SA Slave Address 7 bits SR SRW bit 1 bit M Slave device send acknowledge bit 1 bit D Data 8 bits A ACK RAAK bit for transmitter TXAK bit for receiver 1 bit P Stop 1 bit A UC Communication Timing Diagram e Each IC communication is composed of the following content S SA SR M D A and P The interval of two successive communications should not be less than 150us e Each data byte is saved in RAM19 Note 1 After the HT83Fxx receives a Slave Address SA and responds ACK SCL will be set to a low level Therefore the external MCU should wait for the HT83Fxx to release the SCL before data transmission 2 In the timing figure above the Slave Address from the master is B4H 180 while the TC Device Address is set to 90 22 WE ZS HT83F02_HIRC_COMBO EZD Easy Play EasyPlay User s Guide ERA Edit View Utilities Help e E MCU Voice ROM DK Open Ctr1 0 HT 83F02 gt 1M bits Cancel Save Crs Voce Duration Save As 32 sec for HT ADPCM 10 sec for PCM12 Project setting ES nput Mode AgentID setting 120 Device Address 90 0 127 Build the project Ctrl AltB OSC Sys Freg 1 HT82F02_HIRC_COMBO EZD CRYSTAL 2 HT83F22_Direct EZD Speak Driven RESET PIN 2 123 EZD DIRECT DRIVE amp POWER AMPLIFIER PWM amp DAC y Exit COMBO Timing e This is a combination mode using both I C and Direct Key modes See the TC Mode for the I C communica
20. a ld A E E Name RARE ranas ramas ee Anickname can be supplied for Name the user memory l20_DATA 3 Name means the Nickname function can be executed System Reserved means the Nickname function is forbidden Note 1 When the Check_sum API is used RAM18 is used to store the calibration and result 2 For Binary IFC Holtek bus and Combo modes RAM19 is used to store the received data byte 14 Trigger Dialogues Click the Trigger button to change the EasyPlay to the following e The Trigger dialogue is used to display the function configuration of the input key which is only activated when the Direct 8 Matrix 16 or COMBO modes is selected e The Trigger dialogue includes Add and Del buttons Step 1 Click Add to pop up the Set Name window Step 2 Display all function configurations of the 8 input keys Step 3 Click the Key box to setup the function scene of the key Step 4 The Del button is used to delete the key function table in the Trigger dialogue Sound Files API Ran Trigger Disable Table Name Add Sound Files AN Ran Trigger TTable_000 Table Name O TTable O00 CT 0x01 Dip O 003 DI ox04 Step 4 O 0 05 Clg O 0 07 O pp y Del Test Mode Check_sum_ok Check_sum_ok 15 Small Technique e In the Scenes dialogue click the right key to pop up a function menu Dr
21. ama Book Scenes Scripts um Picadas blades e Ctrl C Crit 1 Sceneb Move Down Seechen Add a scene Sceneb Test Mode ll Delete the scene Check_sum_ok e In the Scripts dialogue click the right key to pop a function menu Drama Book Scenes Scripts VorcePlay 001_ en Scenes Scenes Scened Scenes Sceneb Scene Sceneb Test Mode Check zum ok lt l Add Scene Del Scene Adjust Script The clicked script 3 becomes a note Howe Down Disable Delete the script EasyPlay Window Menu Project Menu 1 Project Project setting Modifies the project setting Project sethings E MEL Yoice ROM HF IM bits e ae Voce Duration Je sec for HT 4SOPCM 10 sec for POM 12 Input Mode LZ Device Address 2 0 127 OSC Sy Freq CRYSTAL Speak Driven RESET PIN DIRECT DRIVE amp POWER AMPLIFIER PXMeDAC Note The MCU modification can be executed only within bodies of the same type Group A HT83F02 1Mb 2Mb 4Mb 8Mb 16Mb 32Mb 64Mb 128Mb Group B HT83F22 1Mb 2Mb 4Mb 8Mb 16Mb 32Mb 64Mb 128Mb 16 2 Project Build the project Creates a pnd project file F HT83F02_TEST EZD Easy Play aa Edit View Utilities Help New rd au Open hd SCH Ctd rave Dz Project setting A eent settings AAA Sa AUD Build OK Build the project Lil File output to DAHT83FO2_TESTWHT83FO2_TEST PND 1 HTs2F02_TEsT ED 2 HT63PU2 TEST EAD 3
22. and voice data Y HT83F02_TEST EZD Easy Play Project Edit view Utilities Export tofle cr bt to o file CAE Print Option Table Step 3b Program PROM Drama Boo Program PROM Program YROM Scenes Som i Programi yRorn Program PROM VROM vw Download with Verity Program PROM ROM Start VorcePlay 001_ er Sleep Download with verif SceneD2 Step 3a Step4 Demo Method Step 4a After programming then use the hardware as described in Step 2 Step 4b In the Trigger dialogue box select Key Trigger Step 4c Corresponding key sketch map Demo Board HT83F02_EASYPLAY A Software Platform Key Numbers Key B Hardware Platform Key Number KEY9 KEY10 KEY11 KEY12 KEY13 KEY14 KEY15 KEY16 KEY1 KEY2 KEY3 KEY4 KEYS KEY6 KEY7 KEY8 Sound Files AN RAM Trigger Keyf rigger IM 0 01 i Scenel 10 02 Scene2 ln Scene kel 0 04 Scened gt e S 7 A a 140x052 Scene5 a u Sr ler he A 006 Scenes D L fi li H H Ox07 Scene w M Bos e SE LIDD AR i j EI FELT vue pe Step 4d Click the button to enable the required function play the numbered voice af HOLTEK f EasyPlay User s Guide Chapter 3 Project Design The EasyPlay provides Scenes Scripts API Sound Files RAM and Trigger dialogues A complete project is divided into several Scenes each of which corresponds to one
23. d to delete a scene in the Scene dialogue Drama Book Scenes Input Scene name click OK In the Scenes dialogue click the scene to be deleted and press Del Scene Scene_01 1 Cancel Test Mode Check_sum_ok Step 2 Add Scene Del Scene p Note The first scene is executed when the MCU receives a power on reset The scene is placed at the first scene location in the Scenes dialogue Scripts Dialogues The Scripts dialogue includes Adjust Script Add ao and Delete operating buttons A The Adjust Script button is used to adjust the scripts sequence Step 1 Click the Adjust Script button to pop up the Scripts dialogue Step 2 Click the script to be adjusted click the Move Up or Move Down button to shift the script up or down Adjust Script Scripts Trangle_Wave 5 0 5 Ken Trgger ep Trigger Wiave 50 Keul uogefk eu rigger Sleept Cancel Move Down Gust cript 11 Add Button Sten 1 Select the required script from the dialogue box on the right and click the button Step 2 A script can also be added by double clicking the required script file Sound Files Ap RAM Trigger scripts Used Space 18416 bytes Triangle Wrave 5 0 5 Available Space 1172656 bytes Keul ugoe eu rigger Free Space 85 95 O AS A D I en wa 001_en HT ADPCH X 002 en war 002 en HT 40 PCM 4 003_en maw O03_en HT 4D PCM E O04 erway O04 en H
24. dex Recording completed automatically the MCU Sleep enters the sleep mode RecordNum_max ReadRecordNum Read the present recording number to the RecordNum_max sl E If no recording no file is played ZERO RecordNum_max 0x00 S did Call the subroutine that adjusts the PlayRecord_Up Call Up_PlayRecordNum record playing sequence parameter Play the recording file according to the recording l MCU enters the sleep mode after the recording Gop file is played Read the current recording number to the RecordNum_max RecordNum_max ReadRecordNum Jump to STOP if ZERO RecordNum_max 0x00 A apen zapen BEE RecordPlay PlayRecordNum E to the record playing Sleep MCU enters the sleep mode after the recording me file is played STOP Sleep eee or playing and enter the sleep If the recording playing sequence parameter reaches the maximum jump to the Up MAX scene oh lay da Or the record playing sequence parameter PlayRecordNum PlayRecordNum 0x01 increases by 1 RET Return from subroutine RB The record playing sequence returns to the first RET Return from subroutine If the recording playing sequence parameter reaches the minimum jump to the Down_MIN scene oye Return from subroutine If no recording is done no file will be played Jump to Up_ max if RecordNum_max PlayRecordNum 0x01 Jump to Down_MIN if ZERO PlayRecordNum 0x00 Down_PlayRecordNum
25. e CRW 5cenel5 S5ceneDb Scenely Sceneis 5cenel9 Scene 0 Sound Files AN RAM Trigger Keyl rigger Table Mame cenel Disable Se Scene 1 Scene 5cerel3 Scenel 4 Scene 5 Scene 6 43 HOLTEK I EasyPlay User s Guide Key and Transmission Applications Play_Current Play NEXT Selection to Max Play_Continuous Play_Repeat Key Requirements e The example uses the HT83F02 MCU e Six keys K1 Play a single song once K2 Continuously play 8 songs once K3 Non stop playing K4 Stop playing K5 Increase volume K6 Decrease volume e TC communication data can be received from an external master device and according to the received data can be related to the key function Functional Description e Build a project using the COMBO mode according to the selected HT83F02 requirements e The window content of the EasyPlay Scenes and Scripts is as follows mts O Oe Key Trigger Disable Key trigger function is disabled 1 Sound file play sequence parameter The given value is zero 2 See EasyPlay RAM for this example Max_Selection 0x08 Maximum playing sequence parameter The given value is 8 Zero 0x00 The value given to Zero is 0 Max_Vol 0x08 Maximum playing volume parameter The given value is 8 Volume parameter The given value is the current level of the volume played Communication_ISR 12C_ISR Initialize the data communication Scene l 1 Ini
26. etween the maximum sampling rate and compression format of the sound file wav is listed as the table below for an 8MHz system frequency Compression Format HT ADPCM PCM12 The Del Button is Used to Delete a Sound File Click the Del button to delete the sound file to be deleted from the Sound Files page Small Technique 1 Choose the sound file from the Sound Files page Sound Files API RAM Trigger Used Space 16416 bytes Available Space 112656 bytes Free Space 85 95 Sound Files UU en w 002 en w O03 en w 004_en mav 005_en mav O006_en mav O07 enway O08 enway Ch way 414 samplerate cl_samplerate_ Add property Del property O DUT en HT 4DPCM O02 en HT 4DPCM O03 en HT AD PCB O04 en HT 4 DF LM O05 en ADPCM DU en T ADPCM OOF en HT 4ADPCM 0 a en HT ADPCM PCHm12 A 4 samplerat PCM12 cl_samplerate PCM12 pet compresion mode 13 PO 001_en wav 002 eniway UU en w w O04 en wa UUD en w UU en w 007_en mav 008_en wav Ch aw 414 samplerate_ cl_samplerate_1 O01 en HT ADPCH 002 en 003_ en 004_en O05 en O06 en O07 en 008_en Ch 414 samplerate_11EHz cl_samplerate_11KHz HT amp 0PCM or RAM Dialogues EasyPlay User s Guide Click the RAM button and then the EasyPlay interface will change as shown Sound Files AFR RAM Trigger Provides 20 data registers from Mame RAMOO to RAM19 pame e SE
27. g Mode The key numbers related to the hardware are KEY5 KEY8 EasyPlay User s Guide Sound Files AN RAM Trigger Rew rigger Kew T rigger 0x01 5cene Disalbe 0x02 Scenel2 a SceneD3 004 scenell4 b Direct 6 Operating Mode The key numbers related to the software are KEY5 KEY10 Sound Files API Ran Trigger Key T nigger 0 01 Scene Disable 0 02 Scenes 0 03 Scenes 0014 Scened 005 Sceneb 006 Sceneb c Matrix 8 Operating Mode The key numbers related to the hardware are KEY1 KEY8 Sound Files Ap Ran Trigger Key T rigger Table Name Disable 50 0x01 Uu 003 0x04 005 Ox06 007 0x08 Scene Scene SceneD3 Scene Scenell5 Scenebb Scenel Scene Holtek Semiconductor Inc Headquarters No 3 Creation Rd II Science Park Hsinchu Taiwan Tel 886 3 563 1999 FAX 886 3 563 1189 http www holtek com Holtek Semiconductor Inc Taipei Sales Offeice 4F 2 No 3 2 YuanQu St Nankang Software Park Taipei 115 Taiwan Tel 886 2 2655 7070 FAX 886 2 2655 7373 FAX 886 2 2655 7383 International sales hotline Holtek Semiconductor Inc Shenzhen Sales Offeice 5F Unit A Productivity Building No 5 Gaoxin M 2nd Road Nanshan District Shenzhen China 518057 Tel 86 755 8616 9908 FAX 86 755 8616 9722 Holmate Semiconductor USA Inc North America Sales Office 46712 Fremont Blvd Fremont CA 94538 Tel 1 510 252 9880 FAX 1 510 252 9885 Http www h
28. gle_Wave meaning the output time of the triangle wave The time range is 0 to 25 5s Note If the time parameter is zero the MCU will continuously output triangle waves 25 HOLTEK I EasyPlay User s Guide Communication_ISR KeyTrigger Dispatch Communication_ISR Communication_ISR is used to setup a single Scene data communication between the MCU and the external device Communication ISF Communication PR DC ER e Check_sum_ok Communication_ISR can only select Binary Holtek Combo or I C modes Key Trigger Key Trigger is used is used to setup the external MCU keys each of which corresponds to a related scene Key Trigger can only select Direct 8 Matrix 16 and Combo modes DispatchWave This is a parallel branching process When an operation result is generated it will dispatch the main program to other processing procedures so as to meet the requirement of the application Dispatch Dispatch is used to transfer data from an indicated RAM value to a scene When the RAM value is smaller or equal to the number of dispatch scenes the RAM value corresponds to the specified scene The dispatch scene order number starts from a zero value When the RAM unit number minus 1 is greater than the dispatch scene the RAM value corresponds to the first dispatch scene Dispatch includes parameters of the RAM unit and the dispatch scene The Memory box is the RAM unit selecting menu The
29. gt 006 en 5 006_en 007 en D 007_en 008 en 008_en UU en gt K nin en ai 46 e Volume Setting Window Content Dispatch Memory Vol Y Content Scene Scene cz 1 51 Se SE ST ay_Curre See is Play NENT E e Play_Repeat eee Play STOP 6 Vb G lechon To Max d M Start o v Test More e TC Communication Data Relation Window Content Dispatch Memory 12C_Trigger a Content Scene Scene Check_ um_ok DC ER Play Continuos 01 Play Continuos 02 Flay_Repeat a 03 Play_STOP o Flay Current y Play _MEXT 04 Volume Play Repeat 05 Volume Play STOP LIB Selection_ta_Max uF Start SS K Test Moie W Recording and Audio Function Applications Function Requirements Five keys e K1 Erase all recordings e K2 Add one recording e K3 Play files in upward cycle e K4 Play files in downward cycle e K5 Stop recording playing 47 Functional Description e Choosing the Direct 6 mode in the HT83F22 to start a project according to requirements e The windows of the EasyPlay Scenes and Scripts are as follows Scenes Scripts Comments Sg KeyTrigger Key Trigger Initialise the key trigger Scene Sleep MCU enters the sleep mode EraseAllRecord RecordEraseAll Erase all recordings Sleep MCU enters the sleep mode RecordIndex ReadRecordNum Read the present recorded item to the recording sequence AddOneRecord Record Recordin
30. ick the column as the red arrow indicates for a scene selection menu Step3 A box without a check mark means no function Step4 Click the KeyTrigger column in this example Step5 Add the function to the Scripts Key rigger Sound Files Ap RAM Trigger z KeyT rigger F Table Name Disable a Sex WM Step 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 Scenel Scene2 Scene3 Scened Scene5 Sceneb Scene Scenes Table Name Keyl nigger Disable A 0x01 0x02 003 0x04 0x05 0x06 0x07 0x08 Earn ar Play NEXT Play PRE Selection_to_Max Delechon Io Mm Start VO Vi We Vi Wa Vi Sound Files API Rah Trigger Key T rigger 05011 0012 003 004 005 l tte O 0 08 Play Current Play PRE Play NEXT Volume Volume EasyPlay Trigger Window Content 3 or EasyPlay User s Guide e Adjust the Scripts Sequence Method Step1 Click the scene to be adjusted from the Scripts column Choose Start in this example Step2 Click Adjust Script and an Adjust Script dialogue will pop up Step3 Click the item to be adjusted Step4 Click Move Up and the item to be adjusted will shift up and then click OK when it reaches a proper location Drama Book Scenes Play Current Play PREY Play MEST Selection_to_Max Selection_to_Min Volume Control Add Scene Del Scene Method Il Scripts
31. ion and calibration of VROM is correct then RAM18 0 or else RAM18 1 Jump to Check_sum_ok if it is correct Test_Mode Triangle_Wave 1 0 S Incorrect the AUDIO port outputs a 1S triangle wave Delay_ms 1000 Pause for 1S Triangle _Wave 1 0 S Re output 1S triangle wave Key Trigger Key Trigger Initialise the key trigger Scene Sleep MCU enters the sleep mode i l If the accumulation and calibration of VROM is correct the MANDS AO AUDIO port outputs a 5S triangle wave Gel KeyTrigger Key Trigger Initialise the key trigger Scene Sleep MCU enters the sleep mode Jump to Check_sum_ok if RAM18 RAM1 0x00 45 e EasyPlay RAM Window Content Sound Files API RAM Trigger Mickname Mote AMO LJ Trigger Mame HAM Name Raho Selection Mame DAMI May Selection Mame DAMI4 ero Mame HAM Vol Mame DAME May Vol Mame D AMU Hame RAMOS Name AAMOS Mame RAMIO Mame HAM Name HAMTI Mame HAM Name DAMIA Name RAM15 Name RAMIE Name Aah Mame RAMIS Name RAM19 DC DATA System Reserved e EasyPlay Trigger Window Content Sound Files API Rah Trigger Keul rigger Table Name Disable UE Play Continuous Ox 03 Play Repeat 0x04 Play STOP Ox05 Volume O06 Volume 0007 SI 0 01 Play MEAT e DispatchWave Window Content Dispatch Wave Memory Selection Y Content Sound File Sound File e 4 002 en DUU en 2 003_en E e en 7 3 O04 en DOS en d UU en gt
32. it e Method Il Click the icon in the red circle Project Edit View Utilities Help KZ Cer Step1 Based on Fig 1 create the hardware platform in advance Programming Step2 Choose the programming method according to requirements See details in the Project Design Chapter F HT83F02_TEST EZD Easy Play Project Edit View BE Step2 monn G me sl j kiip Export to File CAE Print Option Table Drama Book Program Prograr PROM o Program ROM Program PROM ROM Help Scenes scripts Start 7 o YolcePlap D007_en TN IEM Scenel d Download with Verfw 42 Programming and Demo Environments USB Demo Board System Operating Voltage Options OV y 1 d D i ALOHA A FE AA Oscillator Options ERC XTAL DAZ 7 i og i Y PAO F PBO P ail ot ae A AS A S PB7 4 A AAA vss DC POWER Ab 6 key array Fig 1 Note 1 The DC POWER is a DC9V 12V power supply which will automatically switch to the USB power during programming The external power is only for demonstration purposes and is not used for the programming process 2 After the USB programming has finished no external power is needed for demonstration 3 Key Diagram A Software Platform Key Number Key B Hardware Platform Key Number KEY9 KEYIO KEY11 KEY12 KEY13 KEY14 KEY15 KEY165 KEY KEY2 KEY3 KEY4 KEY5 KEY6 KEY7 KEY8 5cenebl2 a PEG Sceneld4 Fee BEB BBB BRR ee ee
33. lay Current Jump to the Play_Current scene Volume 30 Demonstration Figure Description e Enable the EasyPlay select Project from the menu and click New to pop up an Audio Output window 2 Untitled Easy Play zech Edit View Utilities Help Open Ctri O Save Ctrl S Save As Sound Files API ram Trigger AgentID setting Sound Files Compression Mode 1 HTS3FO2_TEST EZD Exit Add Scene Del Scene Adjust Script Add Del Create a new document e The Audio Output window in the EasyPlay is shown below Step 1 of 4 Audio Output MCL selection Voice ROH Step1 sfa p gt HT83F02 Voice Duration 256 sec for HT 40PCM DD sec for PCM 2 7 E Ost i Gus Freq CRYSTAL E Step3 ee de EXTERNAL AC S KE Set D GC 128M bits lt Step4 Speaker Driven RESET FIN DIRECT DAIVESPOWER AMDUIEIER DMMSADAC Step5 DIRECT DAIVE PwM POWER AMPLIFIER DAC In the Audio Output window there are five configuration columns Step 1 MCU selection Select the HT83F02 Step 2 Voice ROM Select the Voice ROM capacity to be 8M bits Step 3 OSC Select the MCU oscillating mode to be HIRC 5V Step 4 Sys Freq Select the MCU system operating frequency to be 12M Step 5 Speaker Driver Select the speaker driving method to be PWM amp DAC Step 6 If the user is already in the Audio Output window after all the configurations are set click the Next butt
34. mber will correspond to the first wav file in DispatchWave Sound File Pl RAM Trigger Memory DispatchWav Ramo Content Sound File Sound Files Note 1 The number of the DispatchWave is smaller than or equal to 255 2 The Content Sound File in the DispatchWave allows an empty space yet an effective empty space should be located between or before the sound files The empty space means no sound will be played Input and Output Input Input is used to read the MCU PA port status and transfer it to the user RAM No parameters are available for the Input Output Output is used to transfer the user specified RAM value to the port selected to be an output such as the PBO PB2 ports of the HT83Fx0 in the Direct 8 mode 27 OutputSharePort e OutputSharePort is the specified API in the HT83F02 22 e OutputSharePort is used to output the RAM value or constant specified by the user to an I O port such as the PCO PC2 ports in the HT83F02 or the PBO PB4 ports in the HT83F22 Record e Record is the specified API in the HT83F22 e Record is to record sound according to the specified RAM value order and using an 8kHz sampling rate When the RAM value is larger than the existing total number of recordings the current recording will be located exactly after the previous recording otherwise recording will be executed according to the RAM number sequence RecordPlay e RecordPlay is the specified API in
35. n API while part 11 refers to the specific API for the HT83F02 22 Parts 12 to 16 refer to the specific API for the HT83F22 Assign Operation Assign Assign is used to give value to one specific RAM unit with a decimal constant value range of O to 255 or RAM content value Operation Operation is used for specific RAM units or one RAM unit for addition subtraction AND OR and XOR operations The constant is a decimal digit ranging from O to 255 VolumeSet VolumeGet VolumeSet VolumeSet is used to adjust the volume during broadcasting The volume levels are subdivided into 0 1 2 3 4 5 6 7 levels The level 0 is the mute status while the volume increases in amplitude from 1 to 7 levels with a maximum at level 7 VolumeGet VolumeGet is used to supply the current volume level value to a specific RAM unit which is selectable from RAMO to RAM19 VoicePlay VoicePlay is used to play the wav file using the default sampling rate CALL RET CALL CALL is used to call a Scene It must be used with RET and with only one stack RET RET is used to call back a Scene no parameter provided 24 HOLTEK I EasyPlay User s Guide Sleep Stop Delay_ms Comment Sleep Sleep implements the sleep function of the system no parameter provided Stop Stop is used to stop playing sound and goes on executing next API Delay_ms e Delay_ms implements the delay function with the units in ms e The delay
36. nd Files API RAM Trigger Scenes Scripts Sound Files Add Scene Del Scene Adjust Script Add Del Creating a New Project Step1 Choose New 2 Untitled Easy Play a Edit View Utilities Help Step 1 gt Ctrl Open Ciro Save Chr Save As AgentID setting 1 ATS53POZ_TEST EZO Exit Step2 Audio Output Window Step 1 of 4 Audio Output MCU selection Step 2a HT83F02 Voice Duration 256 sec for HT ADPCM BS sec for POM12 Step 2c 128M bits 12h Speaker Driven RESET DIN Step 2e DIRECT DRIVESPOWER AMPUIFIER PWMEDAC DIRECT DRIVE DAM POWER AMPLIFIER DAC There are 5 configuration options e Step 2a MCU Body e Step 2b Voice ROM Capacity e Step 2c MCU Oscillator Selection e Step 2d MCU Operating Frequency e Step 2e Speaker Drive Selection After selecting the required configuration options click the Next button Step3 There are six operating modes within the EasyPlay Choose DIRECT 8 for this example The other operating modes will be introduced later Project Wizard Step of 4 Step 3 Selecta template LI MATRIs 16 Back Cancel HOLTEK EasyPlay User s Guide Step4 Input the project name and setup the storage location Step 3 of 4 Project setting EN Project Name Step 4 Location CAD ocuments and Settings DT MLLU Admini serhly Documents Es Step5 Confirm all settings Step 4 of 4 Confirm
37. nt column Step4 Choose the Scene to be edited from the Scenes dialogue Step5 Add the API function to the Scripts Step6 The API function will now be displayed in the Scripts Drama Book s Step4 Sound Files PI RAM Trigger Scenes Scripts Memory constant Memory Play_Current Selection z Play_PREV 8 A Play_NEXT D z Selection_to_Max a Selection_to_Min Wolume_Control Step6 Wolume Step2 Step3 Step Assign a memory as a cora y2 Call Call or Run a Scene and t e Acquire the Sound Volume Step1 Choose VolumeGet from the API page Step2 Choose a RAM parameter from the Read Volume column Step3 Add the API function to the Scripts Step4 The API function will now be displayed in the Scripts Sound Files A mam Trigger Read Volume Mas_Selection 0x08 Vol A x Zero 0 00 Maa Mol 0x08 ReadRecondNum Only for HT BSF 22 Record Only for HT BSF 22 RecordErase Only for HT BSF 22 Record rasel Only for HT BSF 22 RecordPlay Only for HTE3F22 Uzet P0 Ondy for HT OCH 22 Usel Oni for HT SCT 22 Uzet Pi Ondy for HTS3F 22 Usen PI3 Ondy for HT SSF 22 36 WE e Edit the Trigger Content EasyPlay User s Guide Step1 Click the Key Trigger in the Trigger page and KeyTrigger will be displayed as shown the red dotted box below The related content of the key number key and the scene will be shown in the red box below Step2 Cl
38. ntrol port See COMBO Timing for the timing reference The data is saved in RAM19 HT33F02 SDA SCL AMP Enable control PA2 PA7 ports connect the six keys to ground Uses PA1 as an SPI Flash Erase indicator Direct 6 Uses PCO PC7 as user ports HT83F22 Uses PB5 as a write or erase SPI Flash PCO PC OUTPUT indicator ES Uses PB7 as the power control output PBS FL RD AMP Enable control Uses PA2 PA5 and PA6 PA7 to form a 4x2 matrix keyboard with PA2 PA5 as column inputs and DAG and PA7 as row inputs Uses PA1 as a SPI Flash Erase indicator Matrix 8 Uses PCO PC7 as user output ports Uses PB5 as a write or erase SPI Flash indicator Uses PB7 as the power control output port 20 Binary Function Description Uses PA2 PA6 and PA7 to form a column trigger input Uses PA7 as a trigger input port with PA2 PA6 as parallel data input ports Uses PA1 as an SPI Flash Erase indicator Uses PCO PC7 as user output ports Uses PB5 as a write or erase SPI Flash indicator Uses PB7 as the power control output port See Binary Timing for the timing reference The data is saved in RAM19 Uses PA6 PA7 as the I C Slave port Uses PA2 PA5 as user outputs Uses PA1 as an SPI Flash Erase indicator Uses PCO PC7 as user output ports Uses PB5 as a write or erase SPI Flash HT83F22 PA Uses PB7 as the power control port PAI See TC Timing for timing reference The PB
39. ok Sound Files API RAM Trigger Scenes Scripts Memory Dispatch Wol ep 2 OORT gt vol D Content Scene Selection_to_Max Selection_to_Min anne Step3 Mal ta Mar Assign a memory as a constant or another memory Call Call or Run a Scene and then continue the scene Check_sum Check Voice ROM If Voice ROM fails Comment Write comment Communication_ISR Assign yy as the service routine for external trigger Delay_ms Delay xx millisecond Dispatch Step1 ssnnn d e Volume Setting Step1 Click VolumeSet in the API page to display the function column Step2 Choose a value 0 7 from the Set Volume column Step3 Add the API function to the Scripts Drama Book Sound Files Pl RAM Scenes Scripts Start Play Current Plap_PREW Play NES Selection_to_ May S lection_to_Min Volume_Control Set Volume i p2 lr a Volume Volume Vol Io Mm Vol Io Mas 47 Jumplo Wo Operation 3 Output Wd Outputs harePort VP Hesdbiecorchlum VE Record WF RecordErase RecordE raze4ll Triangle Wave Usen amp Pi0 41 Programming and Demo Environments Create PND file e Method Choose the following function according to the location 2 HT83F02_TEST EZD Easy Play a Edit view Utilities Help New Ctrl M Open Ciro Save Chris Save As Project setting Agent setting Build the project trl Alk 6 1 HT63F02_TEST EZ0 Ex
40. olmate com Copyright 2011 by HOLTEK SEMICONDUCTOR INC The information appearing in this Data Sheet is believed to be accurate at the time of publication However Holtek assumes no responsibility arising from the use of the specifications described The applications mentioned herein are used solely for the purpose of illustration and Holtek makes no warranty or representation that such applications will be suitable without further modification nor recommends the use of its products for application that may present a risk to human life due to malfunction or otherwise Holtek s products are not authorized for use as critical components in life support devices or systems Holtek reserves the right to alter its products without prior notification For the most up to date information please visit our web site at http www holtek com 91
41. olume Volume Vol Io Mm Wol_to_Max VU Vi Assign Assign a memory as a constant c A Wo Call Call or Run a Scene and then ce Vi Check zum Check Voice ROM If Voice ROH wa Comment Write comment VP Cormmunication_ISA Assign yy as the service routine VE Delay_ms Delay xx millisecond Dispatch S 8 DispatchWave Step 1 Input Jmp_EQU e JumpTo e No Conditional Scene Jumping Step1 Click JumpTo in the API page to display the function column Step2 Choose the scene to jump to Step3 Add the API function to the Scripts Drama Book Sound Files API Ram Trigger Scenes Scripts Jump to Jump to Selection_to_Min if Selection Zero 0x00 en Garen y Selection Selection 0x01 A a Play NEXT Selection_to_Max e Selection_to_Min Ste p2 Volume_Control yg Step3 Volume Volto Mm Vol_to_Max VU Vi Assign Assign a memory as a constant c A y2 Call Call or Run a Scene and then cc V3 Check_sum Check Voice ROM If Voice RO V4 Comment Write comment V5 Communication_ISR Assign yy as the service routine VE Delay_ms Step1 Delay xx millisecond y7 Dispatch DispatchW ave z Input m Jmp_EQU w 40 e Dispatch Content Step1 Click Dispatch in the API page to display the function column Step2 Choose the RAM parameter from the Memory column Step5 According to requirements add the Scene items to the Content Scene column Step6 Add the API function to the Scripts Drama Bo
42. on after which a Project Wizard window will pop up 31 e There are six operating modes in the EasyPlay Choose DIRECT 8 for the example here Project Wizard Step 2 of 4 Select a template HOLTEK SERIAL BUS 122 MATRIX 16 lt Back Cancel After setting up the EasyPlay operating mode click Next and a Project setting window will pop up e Input the project name and setup the storage location Step 3 of 4 Project setting Project Name Location fc Documents and Settings DTMLLUAdminUser My Documents E et Click Next and a Confirm window will pop up e Confirm the summarised content Step 4 of 4 Confirm Project Name HT83F02_HIRC_DEMO Project Location C Documents and Settings OTMLLUAdminUser My Doc MCU HT83F02 Input Mode DIRECT 8 Audio Output Speaker Driven DIRECT DAIVES POWER AMPLIFIER PWM amp DAC Sak HIRCO5V lt Back Cancel 32 HOLTEK EasyPlay User s Guide e The default basic structure setup is now complete 2 HT83F02_HIRC_DEMO EZD Easy Play Project Edit View Utilities Help Dea es Drama Book Sound Files API RAM Trigger Scenes Scripts Used Space 18416 bytes Triangle_Wave 5 0 5 Available Space 1030160 bytes Scenel KeyTrigger KeyT rigger Free Space 98 24 Fdo kent Sound Files Nickname Compression Mode rons 001_en wav HT ADPCM Scene4 002 en wav HT ADPCM 003_en waw HT 4DPCM 004_en waw HT 4DPCM Scene
43. period ranges from 0 ms to 65535 ms Comment Comment is used to comment Scripts Jmp EQU JumpTo Jmp_EQU Jmp_EQU means conditionally jumping to a specific scene e The Jump to dialogue is the Scene selection box in which the Scene to jump to can be selected from the menu e Dialogue boxes behind if is used to setup the Jump to conditions The Jump to condition depends on whether the values before and after and equal sign are the same e The first and second dialogue boxes in the Jump to condition dialogue are the RAM unit selection boxes ranging from RAMO to RAMO e The third dialogue box is the operator selecting box including addition subtraction AND OR and XOR operators e The forth dialogue is the RAM unit or constant input box with a RAM unit ranging from RAMO to RAM19 and a constant from 0 to 255 Sound Files AFI Ra Trigger rada Ste Scene Operator KR RAM S RAM or Constant JumpTo e JumpTo means is a non conditional jump to a specific scene e Jump to dialogue is the Scene selection box Check_sum Triangle Wave e Check_sum Check_sum is used for Voice ROM SPI calibration and detection The result will be saved in RAM18 If RAM18 00H the calibration is correct or else RAM18 01H No parameter is provided for Check_sum e Triangle Wave Triangle_Wave is used to output a 1K Hz trangle wave from the AUDIO port of the MCU There is a time parameter for the Trian
44. pts Drama Book St ep2 Sound Files API RAM Trigger Bag a Selection_to_Min v H Bua Jump to Scenes Start Scripts Jump to Selection_to_Min if Selection Zero 0200 Play_Current Play_NEXT Selection_to_Max Selection_to_Min Wolume_Control Volume Volume Vol Io Mm Vol Io May VO Vi Assign Assign a memory as a constant c A y2 Call Call or Run a Scene and then cc va Check_sum Check Voice ROM If Voice ROH va Comment Write comment V Communication_ISR Assign yy as the service routine VE Delau ms Step Delay xx millisecond VF Dispatch a DispatchWave D Input 39 e Operation Application Step1 Click Operation in the API page to show the function column Step2 Place the operation result at the right side of the equal sign to the selected RAM parameter Step3 Choose the RAM parameter according to requirements Step4 Choose the operation symbol according to requirements Step5 Choose the RAM parameter or add a constant with a range of 0 255 according to requirements Step6 Add the API function to the Scripts Drama Book Sound Files API ram Trigger Scenes Scripts Start Memory Memory OP Memory constant Kaz D Selection D h D 4 A A Jump to Selection_to_Min if Selection Zero 0x00 Play_Current Play_NEXT gt Selection_to_Max D n n m Selection_to_Min z 7 E m Volume Control Ste p6 Step2 Step3 Step4 Steps Y
45. tialise the key trigger Scene dde dia Ad ey 2 See EasyPlay Trigger for reference Sleep MCU enters the sleep mode MERY 1 Dispatch the sound file using the Selection value DispatchWave Selection 2 See DispatchWave for reference Sleep MCU enters the sleep mode Selection Selection 0x01 Play sequence parameter plus 1 Jump to Selection_to_Max if When the playing sequence parameter reaches the maximum Selection Max Selection 0x00 value jump to the Selection_to_Max scene Selection 0x00 Vol Volume 44 HOLTEK I EasyPlay User s Guide Scenes Sep Comments Play the sound file OO7_en SS Sleep MCU enters the sleep mode Dispatch Vol 1 Dispatch the volume level with the Vol value Volume_Control p 2 See Volume Setting for reference Sleep MCU enters the sleep mode Jump to Vol_to_Min if When the volume parameter reaches the minimum jump to Vol Zero 0x00 the Vol_to_Min scene Vol Vol 0x01 Or the volume parameter will reduce by 1 JumpTo Volume_Control Jump to the Volume_Control scene Vol Vol 0x01 Volume parameter plus 1 Jump to Vol_to_Max if When the volume parameter reaches the maximum jump to Vol Max_Vol 0x00 the Vol_to_Max scene ae an Vol Max Vol 001 aie ae aia Volume 0x01 The current volume level has a given value of 1 7 m P 5 pa Co en PC Data Relation for reference If the accumulat
46. tion timing e Each IC communication is composed of S SA SR M D A and P The interval between two successive communications should not be less than 150us e Each communication byte data is saved in RAM19 Holtek Serial Bus Timing e For Holtek serial bus communication the Master timing must obey the following timing order for the Slave HT83Fxx device to response correctly Salz l td poo iS pa LI LILILILILILIL e t1 The time for the MCU to receive instructions after power up t1 must be greater than 400ms e t2 The time for the MCU to receive 8 bits of data in other words 1 byte This will be invalid if the MCU is unable to receive one complete data byte within the time span To receive another byte t2 must be less than 50ms e 13 The time for the MCU to be woken up to receive an input byte t3 must be greater than 10ms and less than 18ms e H The positive half CLK cycle period for the synchronised data t4 must be greater than 300us and less than 4ms e t5 The negative half CLK cycle period for the synchronised data t5 must be greater than 300us and less than 4ms e The interval of two successive communications must not be less than 150us e Each communication data byte is saved in RAM19 23 Chapter 5 Script API The API is divided into two parts one part refers to all MCU devices and the other part only refers to a specific MCU device In the following API description part one to ten refers to the commo
Download Pdf Manuals
Related Search
Related Contents
specifica prodotto istruzioni per l`uso e la manutenzione ザッパラス(3770) Imprimer des cartes personnages パワークランプセンサシリーズ KEW 8129 Samsung Gear manual do usuário Digital 400 CT031-3HP Dust Collector User Manual Copyright Copyright © All rights reserved.
Failed to retrieve file