Home
User`s Manual
Contents
1. 47 TK 78K0 KF2 Voice User s Manual 2 10 Run Programs Now you are ready to run the program Click the restart button e or select Run on menu bar then Restart The sample program runs 2 ID78KO TK 78K0_Yoice prj Fil Wm view Option Run Event Browse Jump Window Help DE gt Ele m Br se Oan sk ee banaue E Source 78KO Yoice c EN 2 watch Quick Refresh Close DIG vCPUinitialize 7 CPU initializatio vUoice_main gt sound play functi Function sound play function play the selected sound data void vVoice_maintvoid gt Descr Inputs Out puts Return oid vVoice_maintvoid gt lt Run the sample program unsigned char data type 16kbps or unsigned short data count unsigned char address ucPlayNum PLAY NUM MIN OCCORRE COCOA reset pla Meter er er err er AA re re AAA AAN 78KO_Voice c 123 main 0027C BREAK A 2 ID78KO TK 78K0 Voice prj File Edit View Option Run Event Browse Jump Window Help n m s EE EE e aaa al El V 8 E Source 78KO Yoice c ES 2 watch Quick Refresh Close DIG uCPUinitialize CPU initializatio vVoice_mainC gt sound play functi Function sound play function play the selected sound data Descr void vVoice_maintvoid gt Inputs Outputs Return oid vVoice_maintvoid gt lt un
2. Connection to device Port Speed Range Freq Multiply Click PRM File Read button xi Standard Advance A Parameter file PRM File Read Di Hast connection Port Frequency MHz Speed 115200 Multiply rate Operation Mode r Chip Start C Block End Supply oscillator C Area Show Addres OR Cancel 5 Select YPRMYPRM78F0547 V107Y78F0547D prm in the bundled CD ROM open x Look ir Co PRM78F0547_4107 d e E E F 6FOS35 prm E ZaF S37D prm E 760546 prm 78FOS354 prm 7BF 537DA prm Ed 78FOS464 prm 7B8FD536 prm 7TB8FD544 prm 7TBFDE547 prm 7B8FD536A prm 7B8FD544A prm 7B8FD547A prm 7B8FD537 prm 7TBFD545 prm 7B8FD547D prm 7B8FD537A prm 7B8FD545A prm 7B8FD547DA prm Files of type PRM Files PRM Cancel Z 92 TK 78K0 KF2 Voice User s Manual Select the COM port number that TK 78K0 is assigned Enter 20 00 in the Frequency field Click OK button i Device Setup The port pull down menu only shows those active COM port numbers in the PC 7 Click Erase button It starts erasing the flash memory 93 TK 78K0 KF2 Voice User s Manual Erasing the flash memory is completed when chip erase finish is displayed Close PG FPL3 9Put the switch settings back to original settings 04 TK 78K0 KF2 Voice User s Manual 6 4 Circuit diagram
3. The bit 6 8 are connected to P45 P47 pins in microcontroller ON means Low and OFF means Open When vou need to use this you need to set the microcontroller built in pull up resistor option registers PU4 to ON For details about settings of microcontroller built in pull up resistor option registers refer to 78K0 KF2 User s Manual U17397 SW1 SW5NC side middle Nothing will be connected to P13 and P14 56 TK 78K0 KF2 Voice User s Manual 3 3 2 SW2 INTP1 SW2 is the push switch connected to P30 INTP1 pin in CPU When the switch is pushed down it sends the signal of Low When it is released it becomes Open Therefore when you need to use this you need to set the microcontroller built in pull up resistor option registers PU3 to ON For details about settings of microcontroller built in pull up resistor option registers refer to 78K0 KF2 User s Manual U17397 3 3 3 SW3 INTP1 SW3 is the push switch connected to P120 INTPO EXLV pin in microcontroller When the switch is pushed down it sends the signal of Low When it is released it becomes Open Therefore when you need to use this vou need to set the microcontroller built in pull up resistor option registers PU12 to ON For details about settings of microcontroller built in pull up resistor option registers refer to 78K0 KF2 User s Manual U17397 3 3 4 SW4 Filter SWA is the slide switch to sel
4. From following page it shows the circuit diagram of the demonstration kit 9h TK 78K0 KF2 Voice User s Manual Z0 GLLOOSOL S88NOMS JequinN jueunooq M3MOd p juno ON anio C r 0Zld UON ASZ 3NZ ASZ 3NZ Y 89 L9 69 MS JUNO ON JUNO ON OdlNI ada gaNOMS TMS Ld LNI fes L8CLNO dd 0 d K K HZLLL d 1a31 oee 94 adA Ld WVve D44 a L Ldr GA qdAasn adAqoo VadAoa 0 9 10 0ZVY0014H NO adA Acl c38n91NIW c gsn c l 9210001000100 01010 010 m ddA BO NY NINI NI NT JO B B DD e OD DM O CD RO OY Od CO A NJ o Ca Cd NINI 0 O1 E 09 Co PO O ee ese S oS pels y 390 9504387 dn J UUUUUUuucuuu UUUUU Q9 O e M M M M Y w 0000 H z ooo2soezogodu GUN E T T 232333538323 2 488 asn 99A 488552866555 2 Oc i NI LYOd 3 3 99 d MOL Sal o 5 dn2p 0 E aaAdoo vy O zl Leld i E gt vo d viGoO zdLNI Led 3 aana N x E i Ex Aa SS TT a q 0L 1n0_z13838 7 L3d zd ssa Hr ad dana A eld py NI Ziasay E KOLISIY d ed 0024 LE CH T E E d LdLNI 0 d v0090 1X LZLd VAPE eee hY OSOL OSIL Z bd 80090119X3 2X 2z 1d Hit m E TUTION ON uno ON ed SdLNI LHOL 9Ld oana EL e E ade on Old l OQ Zid zla E 9 zo unoj ON gang Zd Sld lt lt OHOL SLd Lx eZid Fe Oo i d XLX E ones V n38 50 79038 d 7 SHTOXS ZLXbZ bd E Zid E ed KUK 90XL L d 13838 5 E Eta ORBA ord OL O
5. TK 78K0 KF2 Voice User s Manual Configuration dialog is opened Enter FFFFFFFFFFFFFFFFFFFF F x 20 in ID Code then click OK Configuration Lo astn Cleo sl Rallreale Break Betar HMI Click when the confirmation dialog for downloading load module file is opened E 46 TK 78K0 KF2 Voice User s Manual Download ID 78KO TK starts and downloading the ATESGEDE NY OEU arcere SKI vt mf object loading program to flash memory Cancel When the download is completed the source code will be displayed l IDTBKO TK 78K0_Voice prj l0 xi File Edit View Option Run Event Browse Jump Window Help mojo po EJ AA ALE Ble El 4 7 5 E Source 78KO Yoice c ES 2 watch Quick Refresh Close DIG vCPUinitialize lt gt CPU initializatioi vUoice_main gt sound play functi Function sound play function z play the selected sound data Descr void vUojce main lt void Inputs z Outputs Return oid vVoice_maintvoid gt unsigned char data type 16kbps or unsigned short data count unsigned char address ucPlayNum PLAY NUM MIN reset pla Y IHHOOODOOOODOODODODODODODODOODODODODEODE parameter initialization 78KO_Voice c 123 main 0027 BREAK A NOTE Completion of the download does not mean running the programs To run the sample program see 2 10 Run Programs
6. 4 Register Made simultaneously created E ce Project Group Name 5 Link Directive File H 6 Setup Source Files Folder Series Name Device Name 7 Select Debugger gt Specify the folder for saving the workspace file 78K 0 Series y fueo7erosoo_30 y amp Confimation by writing its absolute path _Devesirstal RIVED Sores OWS This ttem can be selected from a reference dialog box by pressing the button Project Group Name gt Specify this item if wishing to manage multiple projects together in function units If nothing is specified this item is the same as This will set up the basic information about the workspace and the project Required field s the workspace file name Series Name gt Specify the series name of the device to be used Device Name gt Specify the name of the device to be used The concrete information set here is described on the following pages 81 TK 78K0 KF2 Voice User s Manual o dl xi setting as follows Workspace File Name test 1 Workspace Information 2 Select Real Time OSH Workspace file name Create Blank Workspace test Folder 3 Startup File CATKTSKOSte st 4 Hegister ModelH A cs 5 Link Directive File it Folder Project Group Name 6 Setup Source Files C XTK7 8 KOXte st Series Name Device Name 7 Select Debugger 78K 0 Series furo7eross7_ 80 C
7. Sample application Sample Sound Data 1 Sound Play Application Sample Sound Data 2 Sample Sound Data 3 32Kbps Play Sample Sample Sound Data 4 16Kbps Play Sample Supplied as Source Code Supplied as Library This is the program used in Chapter 2 Experiences TK78KO0XEng 78K0 Voice XsrcY78K0_Voice prw The Sample Program 1 is the simple sound play application that uses the decompress library The source code is also included Therefore you can look through it to understand the processes and how to code to play sound For details about the Sample Program 1 refer to TK 78K0 KF2 Voice Application Note Practice 6 7 TK 78K0 KF2 Voice User s Manual 4 2 Sample Program 2 Structure Sample Program 2 Sample Program 1 Sound Data Download Function Supplied as HEX file The Sample Program 2 is the application to download modify the sound data by PC connection in addition to the sound play function from the Sample Program 1 This application can be used instantly as it is written to the microcontroller as default It contains the HEX file only TK78KOXEng 78KO VoiceY78KO Voice DL hex How to write HEX files Install PG FPL3 Run XFPL3XFPL3 V110YSetup exe on bundled CD ROM from Windows Explorer The installation starts PG FPL3 cannot be installed by the integrated installer Write programs using PG FPL3 D Set the switches as shown below and connect the board and PC wi
8. Select Install the software automatically and click Found New Hardware Wizard Welcome to the Found New y Hardware Wizard This wizard helps vou install software Far USE Serial Port Install the software Selection is confirmed If your hardware came with an installation CD 482 or floppy disk insert it now Ask do pou want the wizard to do o Install fram a list or specific location Advance Click Click Next to continue Back 17 TK 78K0 KF2 Voice User s Manual The installation of USB Serial Port driver is completed Click Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for s USE Serial Fort Click Finish to chose the wizard 7 Driver Installation has been finished 18 TK 78K0 KF2 Voice User s Manual 1 3 2 Installation on Windows 2000 D Once the TK 78K0 KF2 Voice is connected with USB the Found New Hardware Wizard will be started Click Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install a device driver Far a hardware device Click Next To continue click Next Back oe p Cancel 2 Select Search for a suitable driver for my device Click Install Hardware Device Drivers b device driver i a software program that enables a hardware device to work with an operating sys
9. It is lighted when it gets power supply 59 TK 78K0 KF2 Voice User s Manual 3 3 10 CN1 CN2 Connectors for external connections The connector Is not mounted 3 3 11 CN3 The power supply of the AC adaptor connected with CN3 is connected only with the power supply terminal of the connector of the board in the surrounding 10 12 and 16pin of CN1 However not to tie to USB this board and to operate with the unit the AC adaptor can be made a power supply by the connection of the AC adaptor of 5V to CN3 and the short circuit of solder short pad DCVDD1 2 Moreover it is also possible to connect the stabilizing supply etc in the lead line instead of the AC adaptor because CN3 is connected with J1 of a through hall Acceptable jack CN3 HEC0470 01 630 by Hosiden Corp not mounted Acceptable plug 2 1mm DO jack center plus Current capacity 100mA or more J1 1pin plus J1 2pin minus Attention Please make JP1 Open when operating in an external power supply 3 3 12 CN4 This is the jack for external speakers Connect a speaker when you play sound Support jack 3 5mm monaural Load impedance 8ohm and over 60 TK 78K0 KF2 Voice User s Manual 3 4 Solder short pad The circuit on the board can be customized by connecting disconnecting the solder short pad The solder short pad looks like the pictures below To open the circuit cut the thin part of the pad with cutter To short s
10. Ji Initialization of clock DSCCTL xd external c amp PEC 0x40 f CFU clock y b laj x Search ll T gt Watch LIL IC Refresh Retresh 188l void _ MA DIC disable al LL Initialization of clock OSCCTL xd external a PEC 0x40 7 CPU clack mi TH 88 TK 78K0 KF2 Voice User s Manual 6 3 3 Display global variables With using Watch Window you can display global variables There are several ways to register global variables to watch window In this section how to register from source window is described DRight click the variable on source window then select Add Watch E Source 78KOR_Yoice c ucPlav ts us stop_Led Mis us output_count tatic Ui6 autput datal Z1 TEE tatic U8 PlayMode pablo u32 uilnt cun Symbol u32 uilntCoun U16 usKeyStsC Break when Access Us Acre el Break when Write Ec 4 mi Break when Read fr 2 Add Watch dialog opens Click Ls Mame Add Rade Proper Hes Dec C Oct Bin String SIZE G C Byte C Word Double Word Number 3Adding a variable to watch window is completed iola 89 TK 78K0 KF2 Voice User s Manual 6 3 4 Display local variables Local variable window is used to display local variables By clicking the button below you can open the local variable window Unlike global variables local
11. Option A Confirmation 41850 Seres Only 2 5 Tou can change the selected Debugger using Tool gt Select Debugger Required field Cancel Help Push the button New WorkSpace Step 8 8 Confirmation x Create the workspace and the project as follows Workspace Information Workspace File Name Select Heal Time OSH test priu Folder Startup Flef CATE FEE Oest Project Group Mame Register Model test Link Directive Filef Series Mame Tok Series Setup Source Files Device Mame uPD78F0547 80 Select Debugger Debugger 58 Confirmation TOKO Integrated Debugger ID BKO TK for TE F8E 0 SMELTDIUOLES3SZSBINSIDEUS2ZIM TK2 EXE 1t 850 Series Only 2 5 Source Files Push the button 83 TK 78K0 KF2 Voice User s Manual i PM plus test prw OutPut Bl x File Edit Find Layer View Project Build Tool Window Help s DS SR X BeA ll 6 Bla ProjectWindow Es test 1 Project s BS test C Source Files 3 Include Files J Project Related Files 3 Other Files Project test was registered Make file created successfully un L zm um P This completes workspace and project creation Additional source files can be registered at any time thereafter b For details refer to 6 2 Registering additional source file Next add the following option byte asm file and configure the optio
12. SW6 DIPSW SW1 1 23 4 5 67 8 X Don t Care SW5 side 73 TK 78K0 KF2 Voice User s Manual 4 2 1 Run Sample Programs The sample program has following functions 1 Sound Play Function Play selected sound data from bundled 4 different sound data 2 Sound Data Download Function only Sample Program 2 Download modify sound data by connecting with PC CvADPCM Tool 4 2 2 Sound Play Function This sample application plays selected sound data from bundled 4 different sound data Also by switching SW4 to ON OFF you can check the filtering effects 1 Switch operation OSELECT Switch SW2 Select a sound data number to play from 4 different sound data on the built in flash memory 7segLED displays the sound data number 1 52 34 1 When the sound is playing SELECT switch SW2 cannot be used PLAY STOP Switch SW3 This can play stop the sound When it is not playing the sound you can start playing the sound by pressing the PLAY STOP switch SW3 down When it is playing the sound you can stop playing the sound by pressing the PLAY STOP switch SW3 down 2 seg LED display This displays the selected sound data number 1 2 3 4 1 The selected sound data number 1 4 blinks when it is playing the sound NOTE Check the volume level before vou start plaving sound Start with the minimum volume level and turn up the volume gradually to find the appropriate level
13. Set JP1 to 1 2 short SL SERIES Set SW1 as shown in the right table All OFF 1 2 3 4 5 6 7 8 Connect a speaker to CN4 Supply power by connecting USB1 to PC with USB cable Operate switches SW3 Play stop SW2 Select play data V1 Volume control pius 9 q9 NOTE When the USB power supply has noise the output sound data will have noise as well TK 78K0 KF2 Voice User s Manual Overview Reader Purpose This manual consists of the following contents Read chapter 1 and 2 first for installing the development tools and using the sample programs Read chapter 3 for customizing the sample programs and the hardware Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Preparations Install the development tools Experiences Experience the basic operations of integrated development environment PM Plus and integrated debugger ID78KO TK with using sample programs Hardware Specifications Explain the hardware of TK 78K0 KF2 Voice Sample Programs Explain functions used in sample programs Troubleshooting Describe how to solve troubles you may face such as errors when starting the integrated debugger ID78KO TK Other Information Introduce other information such as how to create a new workspace project on integrated development environment PM Plus how to register additional source file and some useful tips of the integrated debugger The circuit diagrams of demonstrat
14. When the USB power supply has noise the output sound data will have noise as well 74 TK 78K0 KF2 Voice User s Manual 4 2 3 Sound Data Download Function This downloads modifies 4 sound data that are used in the sound play application by the download function with PC CvADPCM Tool Only Sample Program 2 can use this function As the CvADPOM tool uses the USB port the debugger ID78K0 TK cannot be used 1 DIPSW SW1 SW5 setting Set DIPSW SW1 bit8 to ON then reset SW6 DIPSW SW1 Pi t2ts a sfel7fe Pore ore orr orr ore x x ow X Don t Care SW5 side 2 Switch Operation DSELECT Switch SW2 It selects the area to modify from sound data storage areas 4 areas seg LED shows which is selected While you are waiting for transferring and downloading data SELECT switch SW2 cannot be used allowing download switch SW3 It starts the download It waits the data to be transferred from PC after the operation It cannot be operated when downloading While you are waiting for transferring data the dots of segL ED blink While you are waiting for transferring data you cannot cancel it even though you press the allowing download switch SW3 3 seg LED Display This displays the selected writing area number 15234 1 When the status is to wait for transferring data the dots blink the selected writing area number remains When it starts downloading the dots stop the blinking While it
15. Windows The identical problem may be observed if a language other than English is specified as the system language in the Regional Settings Properties tab Assembler RA78K0 and C compiler CC78KO limit the object size to 32 Kbyte 14 TK 78K0 KF2 Voice User s Manual 1 3 Installation of USB Driver When TK 78KO is used it is necessary to install USB Serial Converter and the USB Serial Port driver in the host machine Please install the driver according to the following procedures with appending CD in the drive Attention Please do not connect TK 78K0 by way of the USB hub It is likely not to operate normally 1 3 1 Installation on Windows XP D Once the TK 78K0 KF2 Voice is connected with USB the Found New Hardware Wizard will be started Select No not this time and click Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with pour permission Read our privacy policy MON an Windows connect to Windows Update to search for Select No not this time software CO Yes this time only CO Yes now and every time connect a device No not this time Click Next Click Next to continue Back Cancel 15 TK 78K0 KF2 Voice User s Manual 2 Select Install the software au
16. n m m Rm 66 CHAPTER 4 SAMPLE PROGRAMS snonon ooo 67 4 1 Sample Progra T S rus t ru ON 67 4 2 Sample Posrad z Ser Cll Ciuc hss A ARE N E 68 AZ R n oample ProBFalfis n 74 42 2 sound Play FUNCUO Nai 74 4 2 3 0und Data Download FUNCTION A A intenta Un 79 CHAPTER 5 TROUBLESHOOTING Lu ccc cccscsssssscscsesessecscscsesesessssssesasssssesesacsesasesesacacsasasesesacsesasaseaeaeseaneceeseaasanens TI 5 1 If you cannot find USB driver when you connect PC to the kit 71 5 2 Error when you start the debugger sd bad 71 5 2 1 Can not communicate with Emulator FO1b0 sette 78 5 2 2 No response form the CPU A01a0 or no response from ID78K0 TK 78 5 2 3 Incorrect ID Code Ff603 cnn nn 19 5 2 4 The on chip debug function had been disabled in the device FOc79 79 9 2 0 When the flash memory erasing is not well with PG FPLS3 ese 79 CHAPTER S OTRER INFORMA TION ada daa 80 6 Create a NeW WOrKkS ACE A AAA AA esed Aie 81 0 2 hegisteraqaltional source Meis cana 85 60 DEDUS Er HS uu ue cM E LM M M I I M Sere 87 6 3 1 Display source list and function list sss 87 6 32 Set delete breakpollits sdi sat o tn 88 60 9 Display slobal Variables caus Ds en aon cat ial ne mn C m E I 89 6 9 4 Display local Vallables utei tertio eben A t erected ehe td ao 90 0 3 9 DisDlay memory and o FR contenta 90 6 3
17. TK 78K0 KF2 Voice are selected Explain area displays an explanation of the selected product To change the installation destination click When all the settings are completed click Install In this document it is assumed that users install the programs under NECTools32 directory default installation directory Users can find the tools by selecting Start Menu gt Programs gt NEC Tools 32 d Tool Installer v DeviceFile Install DeviceF ile DF780547 v2 20 PORO x2 Search Tool Install Tools RATKO 3 80 10 808KB RAPS v3 80 Documents 14 7 84KB Phplus v5 21 14 204KB Ph plus 45 20 Documents 9 396F B CETERO 43 70 17 O00K B CETERO 43 70 Documents 14 0006 ID78K HB 780 Integrated Debugger V2 94 36 7 3BKB ID78K0 0B V2 94 Documents 12 768KB 7 E plain Drive Available Space 15 279 444KE Destination Required Space CANECT onls32 Browse 132 132KB 4 Click when Install comfirmation dialog box is opened CIOU gt C 22 Install the Tools and DeviceFile Cancel 11 TK 78K0 KF2 Voice User s Manual Read software license agreement and click for continuing the installation To stop the installation click Software License Agreement A X Please read the following license agreement Scroll down to see the rest of the agreement USER LICENSE AGREEMENT IMPORTANT READ CAREFULLY This User Licen
18. This produces object code and linker Assembler RA78KO W3 80 code size limited version Assembler for the 78K0 microcontrollers The object code size is limited to 32 Kbyte This convert the assembler code for 78K0 into object program The object program will be used for debugger 78KO0 Integrated Debugger ID 78KO TK V2 02 This is the tool for debugging the object program generated by C compiler and assembler The debugger enables to do C source level debugging With the debugger you can debug the code easily and efficiently by refering and changing variables using step in debuging function and so on Q Built in Flash Memory Writing Program PG FPL3 This is the Windows software to write programs on built in flash memory By connecting TK 78K0 KF2 and PC with bundled USB cable you can write delete programs on the built in flash memory Sample program 1 2 ADPCM SP2 Decompress Library Sound play program that uses the decompress library TK 78K0 KF2 Voice User s Manual 1 2 Installation of Development Tools 1 2 1 Installation Package The attached CD ROM includes the development tools and documentations Users can use the installer to install those development tools and documentations 1 2 2 Installation of Development Tools D Please insert the CD ROM in the drive The installer will show up automatically If it does not start automatically please initiate it by double clicking the SETUP EXE 2 NEC Electr
19. To install the driver Windows found click Next Click Next Back Ce Cancel 1 s d Ssdrversfrdisftdibus inf 20 TK 78K0 KF2 Voice User s Manual The installation of USB Serial converter driver is completed Click Found New Hardware Wizard Completing the Found New Hardware Wizard O USB Serial Converter Windows has finished installing the software Far this device Click Finish To close this wizard click Finish Back Ce Eancel 6 Once the TK 78K0 KF2 Voice is connected with USB the Found New Hardware Wizard will be started Click Found New Hardware Wizard Welcome to the Found New y Hardware Wizard This wizard helps you install a device driver Far a hardware device Click Next To continue click Next v lt e wee Cancel 21 TK 78K0 KF2 Voice User s Manual 7 Select Seach for suitable driver and click E Install Hardware Device Drivers device driver i a software program that enables a hardware device to work with an operating system This wizard will complete the installation for this device Seach for suitable driver Selection is confirmed are program that makes a hardware device work Windows r new device To locate driver files and complete the sat do you want the wizard to do Search for a suitable driver for my device recommended C Display a list of the k
20. it outputs the local symbol information in the load module file On Chip Debug specifies if you need to use on chip debug or not Check this when you wish to use on chip debug In this case you cannot locate segments in the address from 02H to 03H and from 8FH to the bytes specified at SIZE 1 Security ID is the ID code to protect the memory data from others The ID code is set with hexadecimal number The security ID is stored at the address 85H 8EH For that reason when a security ID is set you cannot locate segments in the address 85H 8EH If there is a security ID set in the assembler source code and another security ID in this option the system uses the one in this option If you forgot the security ID code in the address 0x89 0x8E or you write 0x00 at 0x84 ID 8KO TK will not be able to connect In this case run PG FPL3 and erase the built in flash memory For details refer to 6 3 8 Erase microcontroller built in flash memory Q1 TK 78K0 KF2 Voice User s Manual 2 5 Set Compiler Options The compiler options have been set by project file However because some compiler options are useful following two settings are covered specifically in this section Include file pass Enable C comments Select Tools on menu bar then Compiler options 2 5 1 Preprocessor tab Confirm that the Include Search Path combo box is set to CY TK78K0YEng 78K0 VoiceYad
21. library e TR SEQUSEU Voice aKO Voice DL hex The sample which added a download and renewal function of sound data to the above sample Only the object Click the ik of TE 7SEQ KFEZ TV eice sample program link 3nd install the sample programs e TI E 7SEU KT 2T Voice sftopble program e I E SEU KF e Voice efraluation lat User s manual TE TseE OE Fet Votce qvaluation kit User s manual Practice Audio Data Conversion ool Cv ADPCHID User s manual Keter to the User s manual ab gut usage E Done SSS Local intranet s 3 Click the TK 78K0 KF2 Voice Sample Programs link the following download confimation window appears x Some files can harm your computer IF the file information below looks suspicious or vau da nat fully trust the source do not open or save this File File name TEPBSK LERE File type Application From FASAMPLE_E MA This type of file could harm your computer if iE contains malicious code he file or save it to pour computer Cancel More Info Ways ask before opening thie type ar File Would vau like to open 4 Click the butten 26 TK 78K0 KF2 Voice User s Manual Save In Local Disk L 4m t Co B O Documents and Settings Program Files History WINNT m WUTemp D es kto p My Documents hy Computer Ec te us File name TKTSK H EXE My Network F Save as type Application hi After specifying the download des
22. options have been set by the project file However some option settings will be covered in this section because the linker option settings are important for debugging Following two settings are covered specifically Outputs from debugging On chip debug Disable Enable security ID Select Tools on menu bar then Linker options 2 4 1 Output1 Tab Select Output1 tab on Linker Options window Confirm Output Symbol Information and On Chip Debug are checked Also confirm Security ID and confirm FFFFFFFFFFFFFFFFFFFF 20 of F is entered at ID field if there will not be a problem entering tt Linker Options X Output Output Library Others Load Module File 0 Dutput File Mame da FORO Voice Im Browse v Output Symbol Infarmatian 3 Create Error List File e Output Ale Hame Browse E v In Chip Debug go SIZE 256 bytes v Security ID qi AA A Command Line Uptions OF BE Voice Int go256 giFFFFFFFFFFFFFFFFFFFFh pr 0 Voice map b LATTE SER OE na BRO Voice adpormzp LD PCM SPZ TORO OOSb Sk adporep lib bcl0s ib BelU ib bcl0F lib Cancel Apply Help 36 TK 78K0 KF2 Voice User s Manual Output File Name filed at Load Module File specifies the path and file name of output load module file When Output Symbol Information is checked
23. variables cannot be displayed when programs are running TA Local Variable Lo o x Refresh Close al 6 3 0 Display memory and SFR contents By clicking the button below you can open the memory window Sal Memory search A 2 Refresh Dp Close 1 4 TU 4 F001 HHHHHHHHHHH co co co co co co ca co ca eo eo 90 TK 78K0 KF2 Voice User s Manual 6 3 6 Erase microcontroller built in flash memory If you forgot the security ID or if you set On Chip Debug Option Byte to disable the on chip debug function you cannot start debugger In this case you need to delete the setting values of security ID and On Chip Debug Option Byte Use PG FPL3 to erase the flash memory The hardware for PG FPL3 is incorporated in TK 78KO Installation of PG FPL3 Run FPL3 FPL3_V110 Setup exe on bundled CD ROM from Windows Explorer The installation starts PG FPL3 cannot be installed by the integrated installer D Set the switches as shown below and connect the PC 1 2 Short USB side UARTside 2 Select Windows Start menu Programs NEC Tools32 then PG FPL3 to start PG FPL3 91 TK 78K0 KF2 Voice User s Manual 3 Click the setup button A FPLS C x File Device View Help S x gt gt FlashOpennine Flash Open OK Mame Firm Verzian ExtGode Vendor Parameter file Mame Format Version Processor Wer
24. 1 Preparation of Sample Programs sss ts 25 1 42 Overview of sample PFOBFPAITIS uomo iter epos o 28 CHAR EEN V UENPERIENUOIES GN det ret cuentan emi to iaa 29 Za Stab o n 31 22 Whats PM PUS Lao 32 2 3 Load Workspace project essent nr 34 245 SetXgnker ODUOLS ss RR a E M D PM ML DIA MEME 36 DAA Output abone ion cido alcoi a 36 2 93e Comper OB O suae acte EI ALI Xa n m Eu LI E IE E NE EE 38 25 1 Preprocessor Tab ii tbc 38 252 Elend Tabien 39 PO Grave k ad Module ES tada 40 2 1 Check Debugger Se UIA aiii 42 20 Gheck Board ES sumu o 44 2 9 Start Debugger ID78KO TK ccssssscecsscescessssescecsesssceessseceescsuecsesecsesssuecsessesssuscsescsecsencsusssesesueseeseauesenesueseess 45 ZO OSA 48 2 I Stop POTAH ENT 50 2 12 Close Debugger ID78K0 TI eee A E o De eel D Cr m 51 Z QUEMAS tor n 02 CHAPTER S HARDWARE SPECIFICATIONS sil S 93 ot bavout OF hardware TUCU OA S nin A a b la aa 54 3 2 Layout of solder short pad and test pad essent tans 54 3 o lardvare Functions o ele eee 00 xx S O E fa iced cana nnaemeanetia 99 Z A AE e a On CO ee 57 RO 57 9945 SA 57 A a a A EE A EM 58 TK 78K0 KF2 Voice User s Manual O jj OO 98 S SSS OJ A 58 330 U2 7seg LED atom adds 59 3 5 MEZDIM POWER LETT 99 5 9 EG BE QU MR 60 So U CNS PE 60 ZA N a AO 60 A A A e m ere ere 61 39 CN CNZ terminal Nb 62 AD he CAN Ch str
25. 4 NOVY NDV dNOV Ly P db P CX anow aNnov aNov fs HN FS ee ZA N l5 a 3d0089 440001 300081 Mvc s N Qd00zL P 9 0 ScH 129 929 6 yzi vey 920 EZA T MOL zz vzo LZH iz 340001 490001 ozy ls 4d000L 4d000L arn gt 4do000L 300001 orn E m vn gt v ezo zzo g 2 5 619 812 6 NFZEANT la m NYZEANT 9 gt 9 Mv vc WVZEANT yee P ie L L Z L Z L Z b Te L 6l ely HY 9LY GLY vi adav Jdoozz GadAv 4doozz adAv Jdoozz LO 919 GLO aNnov ZN N MOZ ely UNIV N dno ANDY ANDY MOC UNIV vVLO TNDY ANDY ly anyo lt AGZ ANL Y n QdAv eto alo E LLM MOGFLOLONIFZNS QGdAv ii M s AQL ANOL Z L daxv 68 LLO ad v lt Std vd 97 TK 78K0 KF2 Voice User s Manual 20 GLLOOSOL JequinN JUSWno20g vd 013s3Y lt lt qe LOGLODEDATPLNS vd 044 SAUK z 5 oen 5 aa a 44 Vd vluod lt zvy Ano 3n1 0 Ano geo i890 9 9 aa a anyo anyo geo veo aa asn anyo zeo aa asn 00L SENOAS S 2 eva O 9MS Sdl J9VYLLOHAPLOL 13838 MS 11524 aa asn MOGSZIOLONT ZNS q v MOL oin Lvy adAz aa asn aa asn 3n1 0 azezld Oro 6 9 daasn EA LNOEAE ND LJS3H GND aa asn be Z 1sng9 L V1 l1SS HA VvO9Xh S0S 9divW18 c SR Lasn l Lo AGZ ANL Y ceo 9c ON aa asn Zn aa asn 90 Uldy IN d ul E 1uvn el vd aLY0d K A 190409 O TP4NS SMS 8 O osx i og LKA Ld Hd O gen ma 7 A l aa a 00
26. 6 Erase microcontroller built in flash memory enne 91 oie COIFGUIE dIaSEali ia eee LEAL EL rn LL MM ALD D DD M DM CA MEE 95 TK 78K0 KF2 Voice User s Manual TK 78K0 KF2 Voice is the evaluation kit for development with sound systems using 78K0 Kx2 NEC Electronics 8bit all flash microcontroller The user only needs to install the development tools and USB driver and connect the host machine with the target board to start the code development build monitoring the output and debugging code This demonstration kit uses the on chip debug feature from the microcontroller itself without emulator connection Configuration for Debugging a A TAK LD DEMO par T 20 EIU P7vxAD NUMERO AL ZOS Se O AU ll e a 2440 Baamas 473 external clack input made if r lhi k re E Se aviles peripheral hardrar DETS M ds EE e nm His HABI 134l on lim Fr pig e mu of amp use port park inpul selling P b 4 IKES T PAI RIN re E amable Pull ue resistor Ff n A key inlerrupi delegi ian In it key inLerrupt ADPCO 000 S meh all port A Pat Daff JF ast all pari inoue Pub deb JF cutout buzzer Fi z x l Per brrr ddEb if a c of an umused pori Oxon Puli a Ff Tnitialigalian of Lia iv initialize Timers if X ek b A z o gel i nte al Lime ko mi As the sample programs are preloaded you can play the sound immediately by connecting a speaker Operations 1
27. 7 asm Cancel Help Add Files from Folder Zi File name Multiple source files can be selected by clicking them with pressing key 85 TK 78K0 KF2 Voice User s Manual 15 PM plus test prw ProjectWindow Include Files Project Related Files 3 Other Files TI kkk 4 86 TK 78K0 KF2 Voice User s Manual 6 3 Debugger tips This section describes some useful techniques for the debugger ID78KO TK 6 3 1 Display source list and function list When you wish to see source file list or function list select Browse on menu bar then Other gt List to open the list window The information in the windows is synchronized Therefore it is not just for referring to the list but It is useful when you wish to update files or functions El Source main c O x Alert BLD calc sr INTER sr INTTMBZ W aitB ase me W aitB asebl ms T ock El external c l FU clock Ed Initialization g OSCCTL Oxdt PLL 0x40 ml 8 TK 78K0 KF2 Voice User s Manual 6 3 2 Set delete breakpoints Breakpoints are executed by clicking lines in which is displayed B is displayed in the line where a breakpoint is set Breakpoints are deleted by clicking B alo x Search ne 54 gt Watch Lek Refresh Refresh 138llvoid DIG disable al
28. 78K0 KF2 Voice User s Manual Let s start using the development tools First start the PM Plus Select Windows Start Menu gt Program gt NEC Tools32 gt PM plus m PM plus No Workspace ProjectWindow ProjectWindow Ea Mo Works pace E Fri TICA RA 4 31 TK 78K0 KF2 Voice User s Manual 2 2 What is PM Plus In PM Plus application programs and environment setting are handled as a single project and series of actions such as program creation using the editor source management build and debugging are managed Also one of more project files Is managed together as a workspace Menu bar Tool bar 10 x ra PM plus No Workspace Project Window File Edit Find Layer View Project Build Tool Window Help amp DcH S XB amp ejw 1 la zl J AL E Projectwindow o lo 5 Files Memo For Help press F1 Project Window Output Window Project window A window in which project names source files and include file are displayed using a tree structure Output window A window in which the build execution status is displayed gt For details regarding menu bars and tool bars refer to Help menu in PM Plus Help on menu bar then PM Plus Help 32 TK 78K0 KF2 Voice User s Manual What is a project A project is the unit that is managed by PM Plus A project refers to an application system
29. 9EZZSSSS MOL ld L 6eu aa a PIN 10GL0D DNIFZNS l Z oo ven MOL aa asn bey aa a aasa 98
30. H E Project Related Files A Other Files Build process is executed es pos poem oo As is PM plus 78K0_Yoice prw OutPut 35 BD xj File Edit Find Layer View Project Build Tool Window Help Du l S amp e SM vac ADR la NSF Files Memo fg 78K0_Voice 1 Project s Target chip uPD 8F0547 804 78K0 Voice Device file V2 104 Source Files a Include Files ssembly complete 0 erroris and O warning s fou H Q Project Related Files C Other Files EN 1 Jun 2006 4 1 13500 Build completed normally nics Corporation 1990 2006 50 Link complete O error s and O varning s found C NECTOOLS32 BIN oc78KO exe f78K0 Voice poct 78K 0 Series Object Converter 13 80 19 May 2005 Copyright C NEC Electronics Corporation 1990 2005 Target chip uPD78F0547 80 Device file V2 10 Object Conversion Complete 0 error s and warn Build Total error s O Total warning s O EOF 4 PA a y Build has been completed successfully 40 TK 78K0 KF2 Voice User s Manual 41 TK 78K0 KF2 Voice User s Manual 2 7 Check Debugger Settings After the build you should configure the debugger settings The debugger settings have been set by the project file as well However because those settings are important for debugging some settings are covered in this section Select Tools on men
31. UM MIN 78KOR Voice cit776 IvKeyMon Standby 01711 13s 733 9ms Manual Break A he When the program stops the status bar changes back to the original color 50 TK 78K0 KF2 Voice User s Manual 2 12 Close Debugger ID78K0 TK Select File on menu bar then Exit 2 ID78K0 TK 78K0 Voice prj File Edit View Option Run Event Browse Jump Window Help Open ctrl O P ET Save As EE m Eje Q A fa Es Elf vi t S Close 10 x Download ch Quick Refresh Close Upload Project gt ucKeyStsLocked PLAY SW LOCK OFF ucPlaySts STATUS PLAY Environment d break gt Debu gger Reset 00 Y 4 SELECT switch detector lC a aka a a a a a a o a a a if Cuc KeyStsLocked SELECT SU LOCK_OND lt Al uc KeyStslocked SELECT SV1 LOCK OFF ucPlayNum 5 if CucPlayNum gt PLAY NUM MAX gt lt ucPlayNum PLAY NUM MIN gt Y AAEE E E E E E E E E E E E E E E E EEEE A 7segLED update Y vPlayNumLEDCucPlayNum 1 The exit confirmation dialog is displayed 78KO Voice c 261 KeyMon Standby 00438 BREAK Manual Break A ID FSKO TK xl 9 This will end your Debugger session Do you want to save the settings in the project File w coma If you click it saves the settings in the project file and then closes the ID 78KO TK It is recommended t
32. User s Manual TK 78K0 KF2 Voice Date published June 2008 Rev 1 1 TESSERA TECHNOLOGY INC 2008 Printed in Japan TK 78K0 KF2 Voice User s Manual Windows and Windows XP are registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries The information is subject to change without notice No part of this document may be copied or reproduced in any form or by any means without prior written consent of TESSERA TECHNOLOGY INC TESSERA TECHNOLOGY INC assumes no responsibility for any errors that may appear in this document TESSERA TECHNOLOGY INC does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of TESSERA TECHNOLOGY INC products listed in this document or any other liability arising from the use of such products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of TESSERA TECHNOLOGY INC or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the customer TESSERA TECHNOLOGY INC assumes no responsibility for any losses incurred by cust
33. X Sau Y LIX E X ZHINOZ S1LSO d 00XY 011S L Ld Lid S Ord Hx LA d 0QXL 0LMOS 0L d zvd M vd 5 E Old vod td 7 Vd m tlid i dis Sc SSd vrd 2 Pd aa ES 98d Std pz vyd gt y ax i f d Sd 3i 9bd Pd E anyo m Sd SUA 7 iba E 9yd E IX L BS Gy 3 innavaLniozid Z Ltd ES L33HAV g L Zld c v ND dan J3HAV S oS JdHAV JJYAV 3 0 Tu a TU vR ou SSSSSSSS 292882z 256 ISULENZS ARSS IES uno ON 2222222222003 402339 uno ON A OO s z ii 1 vsars z vaos HedIH L2vsavs z vaos HedIH OZd LZd LA Stld Zed EZd Eb ld ved Ged ZZLd Zd l d Lld RRE REEERE RERE FS S SIS Pi Psi De E E Sld 49d 99d ao See jo r olala 8 A S ld S9d vod A A 890 SHO aang E EA Ovid Std ttd 614 AXL tid bd E Old Hd 044 SJ Ed m 8lHOd d eed mE isd 99d be d d M00L cy A d Sd MOL 0 a d LH OgIN Od Od AZL O Ld Od Od Old lod 00d aa a 19 29 9 v9 S9 99 19 89 69 OL vi e Z vl GL 9L ZL 8L 64 08 jdHAV AAA 96 TK 78K0 KF2 Voice User s Manual 100c 6L Jequie e i 193114 00220 2SSSS 20 SLLOOSOL JequinN jueuinooq GNDY NDV 411 0 ASZ I3NL v INY leo 060 INS98TIA1 aNow adv Q clo UNIV ssed g uuoo ESH 0060 1099 191 GS I01 DG UIA is YNO S9VOELLAGONY L HLiHvYOZOd LVINJN 1MdINO 41XV4dS LAN XXX ced QdAv adsa 8L MeL AOZ c L ANDY c D e t Pa Ley LA oey NDV LS 6c4H IND ON E ES MOL MOL 8 4 MOL izu NOW GNDY IN5V GONOV 92
34. and environment development based on PM Plus PM Plus saves project information in a project file What is a project file A project file contains project information that includes the source files device name tool options for compiling editor and debugger information The file name format is xxxxx prj Project files are created in the directory you specifies when you create a new workspace What is a project group A project group is a group comprised of a number of projects in an application system The target device of each project must be the same within a project group What is a workspace A workspace is the unit used to manage all the projects and project group required for one application system A workspace file contains one or more project files The file name format is xxxxx prw 33 TK 78K0 KF2 Voice User s Manual 2 3 Load Workspace project In this section you will use the workspace that you created in 1 4 Sample Programs For creating a new workspace refer to Chapter 6 Other Information The workspace has information about the build environment for the sample programs Select File on menu bar and Open Workspace Then select 78KO Voice prw under the directory TK78KO0XEng 78K0 VoiceXsrcY 101 xi File Edit Find Layer View Project Build Tool Window Help Mew Ctrl N h B MAC ADDR gt Cl Open Ctrl O e A m Li Insert
35. ce V_Sample 4 Start download While it is downloading 7seg LED is blinked alternately Blinks of dots that shows the status of waiting for transferring data are turned off When the blinks of 7seg LED are turned off and the light is turned on it means that the download is completed If you wish to continue downloading repeat the steps from 2 If an error occurs the 7segLED displays the letter E In this case reset it and start the process from above 2 Preparation of the application again 9 Play downloaded sound data Set DIPSW SW1 bit8 to OFF and reset push reset switch Select the sound data by operating the SELECT switch SW2 and then press down the PLAY STOP switch SW3 The sound starts playing 16 TK 78K0 KF2 Voice User s Manual This chapter describes how to solve troubles you may face 5 1 If you cannot find USB driver when you connect PC to the kit Check Point 1 If you use USB hub do not use it USB hub is not supported Check Point 2 If you use a USB port that is different from the USB port you used before refer to 1 3 Installation of USB Driver to install the USB driver Check Point 3 If above 2 check points are confirmed disconnect the USB cable from PC and re connect again 5 2 Error when vou start the debugger There could be several reasons to make errors happen The solving processes differ depending on errors Please check the error message first The solving proce
36. ce User s Manual Check if ID78K0 TK Integrated Debugger is selected on Debugger Debugger Settings FORO Integrated Debugger ID SEU TK for TE 8 ATE SBR KE na SKU Woes rok Voice Inf Iv Execute ammi preset alter Lano ad Download the Debug Target Files m the same Project Group Debug Target File List 43 TK 78K0 KF2 Voice User s Manual 2 8 Check Board Settings Before connecting the PC and the TK 78K0 KF2 Voice with USB you should check the setting of SW1 SW5 and JP1 on the board Set the SW1 SW5 and JP1 of the TK 78K0 KF2 Voice as follows JP 1settings SWilsettings 112 3j4 516 7 8 on ON on ON ON OFF OFF OFF FEE cele NS AnS na mL 3 ELO OOO TC Pe jo c9 a MADE IN JA AN lt lt Ec ERRE si N e UR KONO WORO R3 ooo A ji UN 10 e y z e E cm in n a Om e AZ a 1 om zae EV x m 4 2 let OCD AG aca 4 gt SPEAKER OUTPUT m S az RISCIS RO a RA Robe Es 18 rs BB QOO TK TOS TCS NiS o25 000880 ICYOOICHOXOIO IO Oo E NO O Mel HOOOOUDODOOOOOOUUUOR SW5 settings OCD side Connect a speaker to CN4 on TK 78K0 KF2 Voice After the switch settings are completed connect the PC to USB1 on TK 78K0 KF2 Voice with USB cable If the Found New Hardware Wizard is started install USB driver with referring 1 3 Installation of USB Driver 44 TK 78K0 KF2 Voice Use
37. downloads the data selected writing area number blinks blinking speed is faster than the time of playing sound Caution In this sample program the sound data size is limited to 16000B in 1 data area 16KB 75 TK 78K0 KF2 Voice User s Manual 4 2 3 1 Procedure to change sound data by downloading In this section how to change the sound data by downloading is explained 1 Connection of devices Connect TK 78K0 KF2 Voice USB1 connector and PC with USB cable 17 segLED displays 2 Preparation of the application Select the writing area by operating the SELECT switch SW2 and then press down the allowing download switch SW3 The writing area number Is displayed at segLED After pressing the allowing download switch the dots of 7segLED start blinking waiting for transferring data After pressing the allowing download switch SW3 it deletes the data in the selected writing area If an error occurs the 7segLED displays the letter E In this case reset it and start the process from above 2 Preparation of the application again 3 Download sound data Start downloading by selecting the sound data with CvADPOM tool Caution Following compression format could be used ADPCM SP2 4bit Sample ADPCM SP2 2bit Sample For operation of CVADPCM tool refer to Audio Data Conversion Tool CVADPCM User s Manual You can find sample WAVE data in following directory TK78K0OYEng_78K0 Voi
38. ect use not use of the Filter LMV 324M When it sets to OFF it does not use the Filter and it inputs sound signals from microcontroller to AMP Microcontr Outsubdadk oller Filter b TK 78K0 KF2 Voice User s Manual 3 3 9 SW6 RESET SW This is the reset switch You can reset the microcontroller by pressing this switch 3 3 6 JP 1 JP1 is the jumper switch pin to select power supply JP1 1 2 Short Use power supply from USB power connected to USB1 2 3 Short Use power supply from MINICUBE connected to OCD1 Not mounted Use power supply from outside 3 3 7 COD1 OCD1 can connect to MINICUBE by installing a connector A1 10PA 2 54 DSA not mounted by Hirose Please do the following setting when you connect MINICUBE Pull out the oscillator that the socket is mounted on Y1 Set the SW5 to UART side when you communicate through PC with the terminal UART6 P13 TXD6 P14 RXD6 and the terminal RXD and TXD connected Set the bit 2 3 4 and 5 to OFF Connect MINICUBE with noting 1pin position 58 TK 78K0 KF2 Voice User s Manual 3 3 8 U2 7seg LED 7seg LED of U2 can be turned on with P50 P57 Set the port mode to Output and output a Low signal U2 P50 P56 Po4 P52 P53 O By writing the value shown below table in register Po you can display number 0 9 Examples for displaying numbers and the setting values 3 3 9 LED1 POWER This is the POWER LED
39. edure button to start writing ola File Device View Help Sa We ER 2 FlashOpennine O x Flash Open OK Name gt gt ParameterFile Readine success Read ParameterF ile Firm Version 2 LoadFile Reading ExtGnde success read HEX file red COMMAND Device Setup endor PRM File Read OF Parameter file gt gt COMMAND LoadFile Open all ri Success read HEX file WR ME Vi 4 Processor Wer 0200 Load file TOKU VOIGE DLHE 200741121 17 41 00 4B42h OO0000h 01582 Bh Connection to device Part COME speed 175200 Range Freq Multiply When Flash Internal Verify OK is displayed it completes writing the program Close PG FPL3 MEE File Device View Help PAGES gt gt COMMAND AutoProceduretEpy Flash Blank Check ine Mame DYAFOBA Firm Version 2 00 ExtGade TF ATCh Wendor 10h Parameter file Mame foFOb4 r D Format 0414 1 Version 014 Processor Wer 0200 Load file TOKU VOIGE DLHE Flash Programming cB E 200741121 17 41 00 serrer ll 4B42h C Flash Internal Verify Ok OO0000h 01582 Bh Connection to device Port COME speed 115200 Range Chip Freq 0 00 Multiply 1 00 79 TK 78K0 KF2 Voice User s Manual 1D Set the switched as shown below then press the reset switch SW6 The written program runs Set 1 and 2 of DIPSW SW1 to OFF then press reset switch
40. explains some useful operation techniques of development tools and circuit diagram of the kit for developing of user programs 6 1 Create a new workspace project 6 2 Register additional source file 6 3 Debugger tips 6 4 Circuit diagram 80 TK 78K0 KF2 Voice User s Manual 6 1 Create a new workspace Now create a new workspace and project PM Plus allows you to create a new workspace with following New WorkSpace dialog Please select File New Workspace in the pull down menu of the PM plus cr 3474 PM plus SAMPLE KF2 prw OutPut Oj x File Edit Find Layer View Project Build Tool Window Help New Ctrl sela ale a Open Ctri O Insert file Save Workspace Close Workspace Save Gtr 5 Save S Ghange Source File Mame Save All Source Files Print Preview Print Ctrl P Recent File 1 SAMPLE KF2 The dialog box for creating Exit PM plus New workspace is displayed Create a new workspace neg L 1 X 10 12 A Description of items Workspace File Name gt Specify the name of the workspace file that New WorkSpace Step 1 8 Workspace Information x manages the project files Workspace File Name gt gt 1 Workspace Information 2 Select Real Time OSH prw is automatically suffixed as the file type A project file prj of the same name is nim A eo REG
41. file The following line s need to be added to your File SET PATH EANECT aolz32 BIM Choose what you want Setup to do Let Setup modify the AUTOEXEC BAT file Save the required changes to AUTOEXEC NEW file Do not make any changes InstallShield 9 If it is necessary to restart the computer the following dialog box is displayed Click Yes to restart the computer AN Installation Finished Before vou can use Tools you must restart the computer Restart now 0 When the installation is completed the following dialog opens Click INSTALL ed J Installation Finished q x D D 13 TK 78K0 KF2 Voice User s Manual D USB Serial Converter USB driver must be installed on PC before you use TK 78K0 KF2 V oice Install the USB driver by referring 1 3 Installation of USB Driver Notes on the installation authority To install this tool in Windows 2000 or XP the authority of an administrator is necessary Therefore please login as an administrator Notes on the install directory Please do not use 2 byte characters such as umlaut in the directory name where the product is to be installed Note on the version of Windows If the language of the Windows is not English a file transfer error during installation might be observed In this case please abort the installation in the language and re install it in an English version of
42. file Close Open Workspace Glose Workspace Save atrl S Save As Ghange Source File Name Save All Source Files Print Previews Print Ctrl P Recent File Recent Workspace Exit PM plus Open an existing workspace Es Ko ie A Open Workspace Look ir C SIE da E E TOKO Voice pre File name 78KO Voice prel C Open y Files of type workspace Filej pri Cancel Help Select 78KO Voice prw_ then click i y 34 TK 78K0 KF2 Voice User s Manual Workspace name 78K0_Voice prw y rm PM plus T8KO Voice prw OutPut File Edit Find Layer View Project Build Tool Window Help Di cR El amp E f S uoc DDF Load the workspace file r8KO Voice prw zm co 7 I a m m ES ea x E lt lt a 1 m 1 a m rr ui rn Z OL 4 Be ae EE rad Li X Bra B xj EOF Project group 1 78K 23 Source Files nelude Files raject Related Files J Other Files Project 4 H g pest pe Ey ee The workspace file 78KO0 Voice prw contains one project called 78K0 Voice You will use this project 78KO Voice CAUTION Please ignore when you get a prompt saying files could not be found This may occurred when the installation directory Is not a default 3h TK 78K0 KF2 Voice User s Manual 2 4 Set Linker Options The linker
43. ion kit are included in this chapter This manual is intended for development engineers who wish to become familiar with the development tools for the 78K0 It is assumed that the readers have been familiar with basics of microcontrollers C and Assembler languages and the Windows operating system This manual is intended to give users an understanding of the features hardware configurations development tools for the 78K0 TK 78K0 KF2 Voice User s Manual This chapter describes following topics Overview and installation of development tools Installation of development tools Overview and preparation of sample programs Users can experience the development flow such as coding build debugging and test by using the development tools bundled with TK 78K0 KF2 7 Voice TK 78K0 KF2 Voice User s Manual 1 1 Development Tools Software Device file DF780547 V2 20 A device file contains device specific information So users need a device file to use the development tools Integrated Development Environment IDE PM plus V5 21 The IDE works on Windows operation system Users can develop a system efficiently by using the editor with Idea processor function compiler and debugger C Compiler CC78K0 W3 70 code size limited version C compiler for the 78K0 microcontrollers The object code size is limited to 32 Kbyte This compiles C code for 78K0 and ANSI C code program into assembler code
44. n byte settings and the authentication settings for security ID For details about option byte refer to the device user s manual For details about security ID refer to ID78K0 QB Operating Precautions The option byte setting file is included in the demonstration program Copy this file and use For adding files refer to 6 2 Register additional source file ORG 80H Option Bytes setting DB 0 0 0 0 ORG 84H DB2 on chip debug security enable end option byte asm Also you need to do the settings for on chip debug Please refer to 2 4 Set Linker Options 2 5 Set Compiler Options and 2 7 Check Debugger Settings 84 TK 78K0 KF2 Voice User s Manual 6 2 Register additional source file Now register additional source files The following example shows the additional registration of source files b c and c c with source file a c already registered Place the cursor on the source file in the Project window of PM Plus and select Add Source Files displayed in the right click menu PM plus test prw ProjectWindow l E oj xj Edit Find Layer View Project Build Tool Window Help I a a po Add Source Files B 3 Project Rel MP e 1 Other Files Assembler Options Add the source file to the project s fe T Add Source Files test 2 x Look in E test da t b c co Files of type Source Filesf c
45. n you communicate with the target device 24 TK 78K0 KF2 Voice User s Manual 1 4 Sample Programs This section explains the overview and preparation of sample programs For details about the sample programs see 4 Sample Programs 1 4 1 Preparation of Sample Programs D Insert the CD ROM disk in the CD ROM drive of your PC The NEC Electronics Microprocessor Development Tools Setup screen automatically appears if this screen does not appear automatically start setup exe from Explorer etc zi NEC Electronics Microcomputer Development Too s St tu Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programa TE BEROEF2 0ce 11 01 20 February 2008 Copyright E NEC Electronics Corporation 00 008 Install Documents B Sample Progam Sample Program MAT TE Eifel as 2 Press the Sample Program button to start the WWW browser 25 TK 78K0 KF2 Voice User s Manual E Sample Programs Microsoft Internet Explorer File Edit View Favorites Tools Help de Back mp fx fat TA Search Ga Favorites eMedia sa EMT E sample Programs Welcome to TE SSE E F2 V oie world The purpose of sample programs is to experience TEK 78K0 KF2 Yoice Sample programs consist of the following items e TIE7S8KOV SEQU VoiceircV SEK Voice pre Work space and source file that uses the decompress
46. nown drivers for this device so that can choose a 3 Click Next driver 4 Bad we Cancel Select CD ROM drives Click Found New Hardware wizard OO Locate Driver Files Where do you want Windows to search for driver files Search for driver files for the following hardware device y USE Serial Port E p for suitable drivers in its driver database on pour computer and in Select CD ROM drives optional search locations that you specify lick Nest IF you are searching on a floppy disk or CO ROM drive insert the Toppy disk or CO before clicking Next Optional search locations Floppy disk drives Click Next Iv CD ROM drives Specify a location Microsoft Windows Update Cancel 22 TK 78K0 KF2 Voice User s Manual Click Driver Files Search Results The wizard has finished searching Far driver files for your hardware device The wizard found a driver for the following device y USE Serial Port Windows found a driver for this device To install the driver Windows found click Next Click Next Back Ce Cancel The installation of USB Serial converter driver is completed Click d sdrreersfrdisftdipart inf Found New Hardware Wizard Completing the Found New Hardware Wizard O USB Serial Fort Windows has finished installing the software Far this device Click Finish To close this wizard click Fini
47. o save the settings as it saves the window you used window size layout etc If you click it does not save the settings and closes the ID78K0 TK 51 TK 78K0 KF2 Voice User s Manual 2 13 Quit PM Plus Select File on menu bar then Exit PM Plus Cr so PM plus 78K0 Voice prw OutPut File Edit Find Layer View Project Build Tool Window Help New Ctrl M h amp mac ADDR t Lal Open Ctrl O a Insert file Debug Build v gt A FA d amp X hd Fa Close New Workspace Open Workspace Target chip uPD7S8F054 7 804 Save Workspace Device file V2 10 Close Workspace A Assembly complete O error s and O warning s fou Save Gtr 5 C NECTOOLS32 BIN 1k78K0 exe 178K0_Voice plk Save As 78K 0 Series Linker 3 80 1 Jun 2006 Copyright C NEC Electronics Corporation 1990 2006 Target chip uPD78F0547 80 Device file V2 10 Link complete O error s and O warning s found C NECTOOLS32 BIN oc 8KO0 exe 78K0_Voice poc 1 78K0 Voice prw Exit PM ae AS 78K 0 Series Object Converter W3 80 19 May 2005 Copyright C NEC Electronics Corporation 1990 2005 Target chip uPD78F0547 80 Device file V2 10 Change Source File Name Save All Source Files Print Preview Print Ctrl P Recent File Object Conversion Complete O error
48. older the pad Solder short pad Solder short pad Solder short pad Opened Shorted Select Type Solder short pad Default Setting P50 P57 Short Connect to 7segLED through 1 5K Q Port 5 is used for general input output Port 15 is used for general input output Use for the connection of P121 P122 and main system clock oscillator Short P121 P 122 are used for general input output A Short AS Use for the connection of P123 P124 and sub XT1 XT2 system clock oscillator Short P123 P124 are used for general input output VDD AVREF1 Enable to supply different voltage to VDD terminal and AVREF1 terminal VDD EVDD1 EVDD1 Short Enable to supply different voltage to VDD terminal and EVDD1 terminal DCVDD1 DCVDD2 Open CODEC CN3 J1 to VDD Disconnect CN3 J1 from VDD 61 TK 78K0 KF2 Voice User s Manual 3 9 CN1 CN2 terminal list CN1 terminal list HIF 3H 50DA 2 54DSA Hirose not mounted Signal l CN1 CPU terminal Note name A A RET P33 TI51 TO51 INTP4 aee memo mms 5 VDD VOD e Piso PI30 o ooo A HY 8 FLMDO FIMDO 10KQPul DownSWi 1 2222 9 VDD VDD Ho ew ETT m vss VSSAVSSEWS OOOO mas O i omano hs wo wo LL E CTS ET co AS COCO S m pi Pwsnympo a po PysEU z ps EI gt ro pus PMyPOLANPR s mo osoo 2 fea esoo ws VssAvssENS as pp PW ESQD 9 ma
49. omers or third parties arising from the use of these circuits software and information CAUTION Do not give any physical damage to this equipment such as dropping Do not superimpose voltage to this equipment Do not use this equipment with the temperature below 0 C or over 40 C Make sure the USB cables are properly connected Do not bend or stretch the USB cables Keep this equipment away from water Take extra care to electric shock This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded using the wrist strap The connectors and or device pins should not be touched with bare hands TK 78K0 KF2 Voice User s Manual Contents CHARTER JTRBEPBABATION S ze ta nd a o a a 1 1 1 Development Tools 7 Software ii la on 8 2ilnstallaticnso Development PO On 9 L2 A o 9 1 2 2 Installation of Development Tools esses tne tns trenes 9 I 3 Installatiorni or USB DAVE min ane eraaentucteents rains Gas aiaeainlean ein GET 15 iol instalation Oh MIDdOWS AP ti dd data 15 1 3 2 Installation on Windows 2000 isses nene te tenete tnt tn tete tetris states na 19 133 Completon ot USB Driver install At o 24 t4 Sape Prora orn ipe utm um CP D M MM AU 25 1 4
50. onfirmation Project Group Name Device Insta V850 Series Ony 25 Don t input this item Series Name 78K 0 Series This will set up the basic information about the workspace and the project Required field Device Name uPD78F0547 80 Cancel Help Push the button AN 02011 CATK7EKO test This folder cannot be found Do you wish to create it Push the button New WorkSpace Step 5 8 Setup Source Files x Please setup Source Files Source File Name 1 Workspace Information Add 2 Select Real Time USH 3 Startup File i Loser 4 Register Mode tt 5 Link Directive Flel 6 Setup Source Files Select Debugger Up 8 Confirmation 41850 Series Only 2 5 You can also add source files by specifying the list file or the folder You dont need to specify all the files here and you can setup source files using Froject gt Project Settings later Cancel Push the button 82 TK 78K0 KF2 Voice User s Manual Please select 78K0 Integrated Debugger New WorkSpace Step 7 8 Select Debugger 1 xx ID78KO TK for TK 78K0 Please select the Debugger 1 Workspace Information 2 Select Heal Time USH TORO Integrated Debugger IE PBEL T K for T E z8K E 3 Startup Filet to iia File name A Register aded 5 Link Directive Filet CANECTODLS32ABINNIDKO32MTK2 EXE 6 Setup Source Files gt Select Debugger
51. onics Microcomputer Development Tools Seti Welcome to the NEC Electronics Microcomputer development tools setup program Before vau execute this installer please exit all windows programa TE 7BRO EF2 4b1ce 11 01 20 February 2008 Copyright E NEC Electronics Corporation 00 008 Readme First lt 1 gt Readme First The contents of the CD ROM and some notes are available Please read it at first lt 2 gt Install Click Install to start installation of development tools For details please refer to the next section TK 78K0 KF2 Voice User s Manual lt 3 gt Documents Manuals of development tools and the evaluation kit are available in PDF files When this button is clicked the WWW browser will start Adobe Acrobat Reader is available in the CD ROM X4 Sample Program Click this button to start the WWW browser for the sample program and the tutorial 5 Link to NEC Electronics Microcontrollers Click this button to start the WWW browser display the link to the NEC Electronics Microcontroller web site http www necel com micro index_e html The NEC Electronics Microcontroller web page provides with the latest product tool information and FAQs 6 Exit Terminate the setup 2 Click the Install 10 TK 78K0 KF2 Voice User s Manual 3 Tool Installer dialog box is opened Select products that you need to install as default all the products that you need to use the
52. out of solder short pad and test pad DCVDD1 2 EVDD AVREF P12 X1 X2 XTLXT2 VDD JOCOORO0 L TGs 1111 ra ri Hen 4 SAN T aret t n E aa 2 IRL e P15 P50 P57 GND 54 USB1 TK 78K0 KF2 Voice User s Manual 3 3 Hardware Functions 3 3 1 SW1 SW5 The bit 1 5 on SW1 are for mode settings and bit 6 8 are DIP switches connected to P45 P47 pins in microcontroller SW5 is slide switch for mode settings For the use of ID78KO TK use following settings SW1 SW5 OCD side X1 The reset signal make the CPU reset after the sampling by ID78K0 TK Because of this there is time lag about a few 100mSec from the external reset command By setting Bit 2 to OFF you can remove this time lag However the reset mask function of ID 78K0 TK will not work by this change X2 When you use ID 78KO TK it uses P31 and P32 pins to communicate with the host machine Therefore you cannot use those pins To run the programs stored in built in flash memory without using ID78KO TK use following settings and re supply power Swi Bit 1 OFF Bit 4 OFF OFF SW5 UART side hh TK 78K0 KF2 Voice User s Manual To write data on CPU built in flash memory by using PG FPL3 set the switches as shown below The hardware for PG FPL3 is incorporated in TK 78KO SW1 Bit 1 ON SW5 side To connect MINICUBE set the switches as shown below SW5 side
53. pa 62 TK 78K0 KF2 Voice User s Manual EME 38 PH DA Qo 39 P72 ol ao P73 Z Sl IA AA a3 p76 PORRO o 4 jer PTKR ss 45 46 47 PM2 PIAZ SCKAD O a8 PI43 PIAB SIAO JJ 5o p145 P1a5 sTB0 o O 63 TK 78K0 KF2 Voice User s Manual CN2 terminal list HIF 3H 50DA 2 54DSA Hirose not mounted Signal l CPU terminal Note name T an Poi POOL TOO Po2 PO2 500 JJ O Pos POJ SHT jo 0 O P04 PO4 SCK11 o 8 P120 P120 INTPO EXLVI SW 1714 I O TT TT A OA P52 P52 Comnect to 7segLED with solder short pad ZN DR TE AAA 0 _ _ _ _ 19 VSS VSSAVSSEVSS 20 EVDD EVDD Connect to VDD with solder short pad C ma LE P42 tut CUENTA oo CAL O hh n 5 5 5 26 P45 P48 lana nm RA a YA gI E 0 _0 __ 140 Bo A A a E ooo O 3 E O ooo ET O S EMI o A O DNE ML M NN p 38 P6 P65 EA o 1 O A Co 64 TK 78K0 KF2 Voice User s Manual P67 EE A IEEE E MEM E MEMIIMIIMIMMIEEMgMgEgSZSgSEE a P ZEN o s P26 P2 ANG o 45 P25 P25 an5 o ooo ae P24 PM ANA o ooo a ZE el as P22 PR ANB o 49 P2 Pza 50 P20 P2U ANO o O 65 TK 78K0 KF2 Voice User s Manual 3 6 Dimension of the board 66 TK 78K0 KF2 Voice User s Manual In this chapter the sample programs are explained 4 1 Sample Program 1 Structure Sample program 1
54. pcmsp2YADPCM SP2 78K0YV1 00Xinc78k0 You should select the directory that the include files are stored You can select multiple directories as well Compiler Options x E sterd Others Startup Routine Preprocessor Memory Model Data Assign Optimize Debug Output Define M acra d oo mj oo Ed Undefne M acra u Ed Include Ses LATE SSE BE ng SK Vorcehadpomsp AD FEM SP2 50 d Edit Command Line Options PLATE SSE DE ng 780 Vorceadpemeps 40PCM SP2 BSKOSSVT Dine ak0 gel a Cancel Apply Help 38 TK 78K0 KF2 Voice User s Manual 2 5 2 Extend Tab Select Extend tab and check Enable C Comment This setting allow you to use the C comment using It is useful feature when developing code E E n LI n 39 TK 78K0 KF2 Voice User s Manual 2 6 Create Load Module Files After developing the source code you have to create load module files by compiling assembling and linking This process is called build Click the build button ES or select Build on menu bar then Build o PM plus 78K0 Voice prw OutPut File Edit Find Layer View Project Build Tool Window Help s Do S X Fs f Gh vac ADDA Aer mala 78K0 Voice 78K0_Voice Debug Build ES Biz ma 10 x E A 78K0_Voice 1 Project s 78K0 Voice H E Source Files Include Files
55. r s Manual 2 9 Start Debugger ID 78KO TK Click the debug button FA or select Build on menu bar then Debug If you do not see the debug button go to 2 7 Check Debugger Settings for changing the settings The steps to start the debugger will be explained below i PM plus 78K0_Yoice prw OutPut m loj x Fie Edit Find Layer View Project Build Tool Window Help D oe S X Es e Gi MAC ADDR z e Eal 78K0 Voice 78KO Voice Debug Build JAH X im E e our Files Memo Pass2 Start Eg 78K0_Voice 1 Project s 1 8 78KO Voice Source Files Include Files E Project Related Files 4 Other Files Target chip uPD78F0547 80 Device file V2 10 Assembly complete D error s and O warning s fou C NECTOOLS32 BIN 1k78K0 exe 78K0_Voice plk y 78K 0 Series Linker 43 80 1 Jun 2006 Copyright C NEC Electronics Corporation 1990 2006 Target chip uPD7S8F0547 80Y Device file V2 10 Link complete 0 error s and C XNECTOOLS32VBINVoc78K0 exe f 78KQ 78K 0 Series Object Converter Wy Copyright C NEC Electronics ID78KO TK is launched Target chip uPD78F0547 80 Device file V2 10 Object Conversion Complete Build Total error s O Total warning s VE A d d d d Yd d Yd d d d Y Y d d Y q For Help press F1 psi kaikai Mio 4 45
56. re start the debugger 78 TK 78K0 KF2 Voice User s Manual 5 2 3 Incorrect ID Code Ff603 This error occurs when the security ID stored on microcontroller built in flash memory is different from the ID code you entered at the start of debugger Security ID entry area at the start of debugger ID Cade Check Point 1 Enter correct security ID and click OK on the configuration window Check Point 2 If you forgot the security ID you have to erase the microcontroller built in flash memory Before erasing check if you actually set the security ID with referring to 2 4 Set Linker Options Also remember the code you set for the security ID After this erase the flash memory with referring to 6 3 8 Erase microcontroller built in flash memory 5 2 4 The on chip debug function had been disabled in the device F0c79 Check Point 1 Check if you actually set the correct on chip debug option byte with referring to 2 4 Set Linker Options If it is not correct then set correctly 5 2 5 When the flash memory erasing is not well with PG FPL3 Check Point 1 Check if the Frequency is set to 20MHz Check Point 2 Check if the Parameter file is set to 78F0547D prm Check Point 3 Check if the COM port number the same as the COM port number assigned to the board Check Point 4 Check the switch settings on the board are correct 79 TK 78K0 KF2 Voice User s Manual This chapter
57. s and 0 warn Build Total error s O Total warning s 0 Download C TK 8KO Eng 78K0 Voice sre 78KO Voice Im to thy Exit PM plus and prompt to save the files UN L 1 ki Y 103 4 PM Plus is closed The experiences section ends now You can find more information how to use the development tool and information about other useful features in Chapter 6 Other Information 52 TK 78K0 KF2 Voice User s Manual In this chapter the hardware of TK 78K0 KF2 Voice will be explained Microcontroller u PD78F0547D 78K0 KF2 Clock External main system clock 20MHz Subsystem clock 32 768KHz Internal high speed oscillation clock 8MHz Internal low speed oscillation clock 240 kHz PWM output Filter LMV324M Filter ON OFF selectable SW4 AMP LM4865M Jack 3 5mm monaural speaker output Interface USB USB1 MINICUBE connector OCD1 Power supply voltage 5V USB Input output for Push switch SW2 SW3 operation check use Dip switch SW5 Volume control V1 7Seg LED U2 Reset switch SW6 k The name with bracket is the name printed on the board 53 TK 78K0 KF2 Voice User s Manual 3 1 Layout of hardware functions LED1 POWER JP1 OCD1 SW3 SW2 SWi1 CN1 CN3 V1 win RES Harte I zm E T j RiZRIS RIBCIS R A BEI eue ERA de ji CISR29 EHE Mo Sa CM T T T l CNA SW4 SW5 U2 7Seg LED CN2 3 2 Lay
58. se Agreement LILA is a legal agreement between you either a natural person or an entity and MEC Electronics Corporation NEC for the SOFTWARE PRODUCT As used herein SOFTWARE PRODUCT means the NEC s computer software products provided with this ULA which includes computer software and may include associated media printed materials and online files or data By installing and using the SOFTWARE FR BLICT vou agree to be bound by the terms of this ULA IF vou do nat agree to the terms of this ULA do nat install or use the SOFTWARE PRODUCT k Do vou accept all the terms of the preceding License Agreement To install this product you must click Yes to accept If pou choose No Setup will exit Be yes gt We 6 Enter the product ID and click The product ID is available on the other sheet InstallShield Wizard Please enter the product ID of the product xi Enter Product ID Product ID ig written an the case or in the accompanying documents Product ID InstallShield ST Back Next gt D Cancel 7 It starts copying the files 12 TK 78K0 KF2 Voice User s Manual 8 When the files have been completely copied and if AUTOEXEC BAT must be corrected the f ext gt button ollowing dialog box is displayed Select an option and click the N InstallShield Wizard Modifying File This product requires changes to be made to an existing
59. sh Back Ce Eancel D Driver Installation has been finished 23 TK 78K0 KF2 Voice User s Manual 1 3 3 Completion of USB Driver Installation Confirm the two USB drivers are installed on PC Start Device Manager and find USB Serial Converter without mark under the Universal Serial Bus controllers and USB Serial Port COMx without mark under the Ports COM 8 LPT Device Manager Device Manager Ela lx File Action View Help He Y A My Za Disk drives E Display adapters 4 DVD CD ROM drives ic Floppy disk controllers Y Floppy disk drives f IDE ATAJ ATAPI controllers Keyboards 1 Mice and other pointing devices E Monitors pal Find USB Serial Port COMx Ports COM amp LPT A Communications Port COMI I 4 USB Serial Port COM3 m Processors i Sound video and game controllers System devices Find USB Serial Converter Universal Serial Bus controllers Intel r 8237 1 4B EB PCI to USB Upi USE Serial Converter The screen above shows that the COM port number is COM3 Run Portconfig for ID78KO TK to set the port number for ID78K0 TK to COMD after installing the software If ID78KO TK is not in use you can use this port number for connecting TK 78K0 KF2 Voice When you change the USB port connection the COM port number will be changed as well CAUTION Do not do Hardware Modification Scan whe
60. signed char data type 16kbps or unsigned short data count unsigned char address ucPlayNum PLAY NUM MIN reset pla OCCORRE EE ZE EE EE IEEE When programs are running the status bar will be red 48 TK 78K0 KF2 Voice User s Manual Confirm the displaying 1 on 7 segment LED SOC Oel oos offe 3 0 C L e G Oo oS CJ E 3 O bed V i MADE TM JAPAN L m 7 m SCIBRIB LJ IITIN ABRIERA EEE B mu Riz gh RIS CIS BAR ILU pig gt BRE SUART pag ba 2 U 3 SvAlFitei co dh O E SE J K TAKOK E DICE TCEDON 02 bes PSL END gt a Cy FOO OCCA OD 929 dolne 43 You could confirm the sample program is working The sample programs contain 4 different audio data By using the SW3 you can play the sound For more information about the functions that are used in those sample program see Chapter 4 Sample Programs When the USB power supply has noise the output sound data will have noise as well 49 TK 78K0 KF2 Voice User s Manual 2 11 Stop Programs Now you are going to stop the program Click the stop button II or select Run on menu bar then Stop 2 ID78K0 TK 78K0_Yoice prj dit Yiew Option Run Event Browse Jump Window Help b qu gt BZA aa AA ALEJ 2 5 15 El t V S 5 Source 78K0 Yoice c Search lt lt gt gt watch Quick Refresh Close DIG
61. sses for each error are as follows 71 TK 78K0 KF2 Voice User s Manual 5 2 1 Can not communicate with Emulator FO1b0 Check Point 1 If you use USB hub do not use it USB hub is not supported Check Point 2 Check if the settings of switch on the kit are correct with referring 3 3 1 SW1 SW5 Check Point 3 Confirm the USB driver installation with referring to 1 3 3 Completion of USB Driver Installation And check if the COM port number assigned to the board and the COM port number set at Portconfig for ID78KO TK is the same Check Point 4 If above 3 check points are confirmed close the debugger and disconnect the USB cable from PC Re connect USB cable properly to both the PC and the kit and then re start the debugger 5 2 2 No response form the CPU AO01a0 or no response from ID78K0 TK Check Point 1 If you use USB hub do not use it USB hub is not supported Check Point 2 Check if the settings of switch on the kit are correct with referring 3 3 1 SW1 SW5 Check Point 3 Confirm the USB driver installation with referring to 1 3 3 Completion of USB Driver Installation And check if the COM port number assigned to the board and the COM port number set at Portconfig for ID78KO TK is the same Check Point 4 If above 3 check points are confirmed close the debugger and disconnect the USB cable from PC Re connect USB cable properly to both the PC and the kit and then
62. tem This wizard will complete the installation for this device o TK starter kit device driver i a software needs driver files for your nev device installation click Nest Select Search for a suitable driver for my Click Next Cancel What do vou want thg lzard to do Search for a suitable driver for my device recommended C Display a list of the known drivers for this device so that can chod driver 19 TK 78K0 KF2 Voice User s Manual 3 Select CD ROM drives Click Found New Hardware Wizard Locate Driver Files Where do you want Windows to search for driver files Search for driver files Far the following hardware device 1 TK starter kit s for suitable drivers in its driver database on pour computer and in Select CD ROM drives optional search locations that you specify lick Nest IF you are searching on a floppy disk or CO ROM drive insert the Toppy disk or CO before clicking Next Click Next Optional search locations Floppy disk drives Iv CD ROM drives Specify a location Microsoft Windows Update Cancel G Click Found New Hardware Wizard Driver Files Search Results The wizard has finished searching Far driver files for your hardware device The wizard found a driver for the following device T TK starter kit Windows found a driver for this device
63. th USB cable 1 2 short USB side UART side 68 TK 78K0 KF2 Voice User s Manual 2 Select Windows Start menu Programs NEC Tools32 then PG FPL3 to start PG FPL3 3 Click the setup button Initial Screen gt gt Flash penn ne Flash Open OK Click PRM File Read button i Device Setup 69 TK 78K0 KF2 Voice User s Manual Open the bundled CD ROM and select YPRMYPRM78F0547 V107Y78F0547D prm Se 0 Look in O PRM7aF0547_V107 e A es Ed E 78FOS3S prm Ef z8F 537D prm Z FSFOS46 orm 78FOS37DA prm E 78F05464 prm 7870544 prm 78F0547 prm 7B8FD544A prm 7B8FD547A pr 78F0545 prm 5 78F 545A prm 6 Select the COM port number that TK 78K0 is assigned in Port combo box Enter 20 00 in the Frequency field Click OK button E Device Setup i x Standard Advance Parameter file 78F0547D prm PRM File Read Supply oscillator Multiply rate f1 00 Hast connection Speed 115207 Operation Mode iv Chip Start ooo r Block End fiz O Area Show Address Aart The port pull down menu only shows those active COM port numbers in the PC 70 TK 78K0 KF2 Voice User s Manual 7 Click load button Ema FORO Voice DL hex FORO YVorce L hex Sec Hex files rec s hex 71 TK 78K0 KF2 Voice User s Manual 9 Click Autoproc
64. tination folder click the button 6 The self extraction sample program set TK78K0 exe is copied to the specified folder The folder that the TK78K0 folder is made when this file is executed and the sample program is stored under the folder in addition is made 2 TK 78K0 KF2 Voice User s Manual 1 4 2 Overview of Sample Programs The sample programs consist of following directories TK78KO YEng 78KO Voice Ysrc Project workspace folder Ysound Sound data folder Yadpcmsp2 ADPCM SP2 folder YCVADPCM Audio data conversion tool folder YV Sample Sample sound data folder Y78K0 Voice DL hex Sample program 2 28 TK 78K0 KF2 Voice User s Manual In this chapter you will experience how to use the development tools with using the sample programs The development tools are Integrated Development Environment IDE PM Plus Integrated Debugger ID78K0 TK You will use the programs that you prepared in 1 4 Sample Programs as the sample programs for TK 78K0 KF2 Voice You will be able to understand how to use the development tools and the concept of project files which you need for producing application programs 29 TK 78K0 KF2 Voice User s Manual The overall steps are as follows 29 oad Workspace 2 4 Set Linker Options 2 5 Set Compiler Options 2 6 Greate Load Module Files un Programs 2 9 Start Debugger 2 10 Run Programs a 30 TK
65. tomatically and click Found New Hardware Wizard This wizard helps pon install software for TK starter kit Select Install the software automatically If your hardware came with an installation CD cad or floppy disk insert it now What do vou want the wizard to do 5 Install the software automatically Recommended O Install from a list or specific location Adve Click Next Click Next to continue es Ee 3 The installation of USB Serial Converter driver is completed Click Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software Far 2 USB Serial Converter Click Finish Click Finish to close the wizard 16 TK 78K0 KF2 Voice User s Manual A The USB Serial Port driver s installation begins continuously Select No not this time and click Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on Your computer an the hardware installation CD ar on the Windows Update Web site with your permission Read our privacy policy s uc Can Windows connect ta Windows Update to search Far Select No not this time silna j CO Yes this time only CO Yes now and every time connect a device Click Co es No not this time Click Next to continue
66. u bar then Debugger Setting zo PM plus 78K0_Yoice prw OutPut File Edit Find Layer View Project Build Tool Window Help Structured Assembler Options Assembler Options 8K0 Voice PORO Voice vi Dep Linker Options Object Converter Options ProjectWindow List Converter Options E Memo Compiler Ontinn rH 78KU Voice 1 Project s Essere E T 504 HB 78KO Voice REN 104 ee E cos Source Files Start up Ex taal b ue Include Files D error s FL Project Related Files File Compare m Other Files Device File Installer PI plus Settings Font Customize o p78F0547 80 Record the Key Operations 10 Play Back Save the Key Operations Load the Macro File Play Back the Macro File sj 4 e mit a a m PH O error s and oc GK exe 7GKO Voice poc Er Converter 53 50 Register the Macro Files C Electronics Corporation 19580 2005 101 xl Y lol xi and O warningi s fou lk78EU exe 1 7580 Voice plk r 13 80 1 Jun 2006 C Electronics Corporation 1290 2006 O warningi s found 13 May 2005 Play Back the Register Macro k arde sp UPD SFOS47 504 Device file V2 10 4 Object Conversion Complete O error s and O warn Build Total erroris O Total warningis O EOF 4 k E Change debugger settings L 1 x 1 Ni 101 4 42 TK 78K0 KF2 Voi
67. vCPlinitialize CPU initializatio vVoice_mainC gt sound play functi Function sound play function play the selected sound data void vloice_maintvoid gt Descr Inputs Out puts Return oid vVoice_maintvoid gt lt unsigned char data type 16kbps or unsigned short data count unsigned char address ucPlayNum PLAY NUM MIN Y HOODOOOODODOODODODODODODODOODODEOO reset pla rr er re AAA AAA er rr rr er er er Stop the program ID78KOR QB 78KOR Voice prj File Edit View Option Run Event Browse Jump Window Help mo gt r Ela Ejea ala al Bl 4 El e 5 Source 78KOR Yoice c Search lt lt gt gt Watch Quick Refresh Close usKeyStsCount JOVSTK PUSH NUM1 8 ucKeyStsLocked JOYSTK PUSH NUM KEY OFF break gt Y Y LEFT Key A HOOOOOOOOODOODODODODODODODODODORO de CucKeyStslLocked JOYSTK LEFT NUM KEY SHORT ON gt amp amp lt lt usKeyStsCount JOYSTK LEFT NUM1 8 uckKeyStsLocked JOVSTK LEFT NUM KEY OFF lt p_mode PWM_MODE gt p mode DA MODE gt else lt p mode PWM_MODE gt FARRER BBB Y RIGHT Key OCC ECC COCOA E Cuc Ke yStslocked JOYSTK RIGHT NUM1 KEY SHORT ON amp amp lt usKeyStsCount JOVSTK RIGHT NUM 8 ucKeyStsLocked JOVSTK RIGHT NUM1 KEY OFF p num p num 1 er p num gt PLAY NUM MAX gt p num PLAY N
Download Pdf Manuals
Related Search
Related Contents
MANUAL DE INSTRUÇÕES Módulos analógicos de encastrar y de carril DIN La HP LaserJet 3150 – Impresora · Fax · Copiadora ASUS B551LG User's Manual SoftWall Finishing Systems SW9729667030 Instructions / Assembly Samsung Digimax U-CA 401 User's Manual 取扱説明書 Copyright © All rights reserved.
Failed to retrieve file