DEMOKIT-KA1 Renesas Electronics America, DEMOKIT-KA1 Datasheet
![no-image](/images/manufacturer_photos/0/5/560/renesas_electronics_america_sml.jpg)
DEMOKIT-KA1
Specifications of DEMOKIT-KA1
Related parts for DEMOKIT-KA1
DEMOKIT-KA1 Summary of contents
Page 1
... User’s Manual DemoKit-KA1 Demonstration Kit for NEC Electronics Low-Pin-Count Devices Document No. U17680EU1V0UM00 ©August 2005. NEC Electronics America, Inc. All rights reserved. ...
Page 2
The information in this document is current as of August 2005. The information is subject to change without notice. For actual design-in, refer to the latest publications of NEC Electronics data sheets or data books, etc., for the most up- ...
Page 3
... DemoKit-KA1 User’s Manual DemoKit-KA1 complies with the EMC protection requirements. WARNING This is “Class A” (EN 55022:1998) equipment. This equipment can cause radio frequency noise when used in the residential area. In such cases, the user/operator of the equipment may be required to take appropriate countermeasures under his responsibility. ...
Page 4
Revision History Date Revision August 2005 — iv Section Description — Initial release ...
Page 5
... DemoKit-KA1 User’s Manual Contents 1. Introduction.....................................................................................................................................1 1.1 Features..................................................................................................................................................1 1.2 System Requirements ...........................................................................................................................2 1.3 Package Contents ..................................................................................................................................2 2. System Configuration .....................................................................................................................3 2.1 DemoKit-KA1 ........................................................................................................................................3 2.2 Host Computer.......................................................................................................................................3 2.3 Power Supply .........................................................................................................................................3 3. Board Components .........................................................................................................................4 3.1 SW3 Configuration Switch ...................................................................................................................4 3.1.1 Operating Mode Selection: SW3/S1.........................................................................................5 3.1.2 UART Selection: SW3/S2 ........................................................................................................5 3 ...
Page 6
Erase Command .................................................................................................... 32 6.3.2.3 Program Command................................................................................................ 32 6.3.2.4 Verify Command ................................................................................................... 33 6.3.2.5 Security Command ................................................................................................ 33 6.3.2.6 Checksum Command............................................................................................. 33 6.3.2.7 Autoprocedure (EPV) Command .......................................................................... 33 6.3.2.8 Signature Read Command..................................................................................... 33 6.3.2.9 Setup Command .................................................................................................... 33 6.3.3 ...
Page 7
... System Simulator Plus (SM+) software debugger Full documentation for the NEC Electronics 78K0S/KA1+ microcontroller and the NEC Electronics software tools and PG-LPC flash programming software The DemoKit-KA1 is not intended for code development. NEC Electronics does not support attempts to use the kit in commercial or technical products. 1 ...
Page 8
... NEC Electronics software development tools and PG-LPC flash programming software are to be installed.) 1.3 Package Contents Please verify that you have received all parts listed in the contents list bundled with the DemoKit-KA1 package. If any part is missing or seems to be damaged, please contact your NEC Electronics sales representative. ...
Page 9
... Windows operating system, the FTDI's virtual COM port (VCP) driver appears as an extra communications port, in addition to any existing hardware communications ports. For detailed specifications for the host interface, refer to section 10, “Connectors and Cables.” 2.3 Power Supply The USB interface supplies 5V of power to the DemoKit-KA1; no separate power supply is needed. Figure 1. System Configuration 3 ...
Page 10
... Board Components The DemoKit-KA1 board is equipped with pushbuttons, LEDs and several connectors to the host computer and target hardware. Additionally, the board provides a wire-wrap field (2.54 mm grid) that can be used to integrate user application hardware. The µPD78F9222’s on-chip resources are free for user application hardware and software. Before connecting any external signals to the board, please refer to the MCU user’ ...
Page 11
... RxD6 and TxD6 UART6 signals to the FT232 interface lines. SW3, S2 OFF (default) ON 3.1.3 SW3/S3: Clock Mode Selection SW3 switch S3 controls the clock operation frequency of the DemoKit-KA1 board. SW3/S3 OFF (default) ON 3.1.4 SW3/S4: UART Mode Selection SW3/S4 controls the board’s UART communication mode. Setting SW3/ enables UART communication with handshake ...
Page 12
... UART6 of the 78K0S/KA1+ device to the host system. 3.5 Connector CN1 / Clock Configuration Connector CN1 is used to define the operating clock of the DemoKit-KA1 board. Closing the connectors CN1/3–5 and CN1/4–6 (default setting) provides an 8 MHz clock frequency to the MCU. In this mode, the clock frequency is supplied by the CPLD ...
Page 13
... DemoKit-KA1 User’s Manual 3.9 External LEDs D1–D4 The D1–D4 LEDs are connected to the 78K0S/KA1+ device and are free for user application purposes. The LEDs are connected via a 4.7K pull-up resistor to V Port P23 P130 P45 P123 To disconnect an LED from a port for alternative usage, cut the connection (default) of the corresponding soldering bridge SB1– ...
Page 14
... CN3, CN4, CN5, and CN6 are connectors for external user hardware. All CPU signals are connected to CN3, with the exception of X1 and X2 signals. The DemoKit-KA1 board provides a wire wrap field— connectors CN4, CN5 and CN6—allowing the integration of additional application hardware. ...
Page 15
... The DemoKit-KA1 board does not reserve any of the MCU’s resources; consequently all available device memory is free for application software. SFR area 256 × 8 bits Internal high-speed RAM 256 × 8 bits Use prohibited Flash memory 4096 × ...
Page 16
... USB interface. Before you can download and run a program, the hardware and software must be installed properly. 5.1 Hardware Installation After unpacking the DemoKit-KA1, connect the board to the host using the provided USB interface cable. Afterward, install the USB driver as directed in section 5.2, “Software Installation.” 5.2 Software installation ...
Page 17
... Program → NEC Tools32 → SM+ for 78K0S_Kx1+ Help → CHAPTER 6 SIMULATION FUNCTION. • The sample programs can be downloaded to the DemoKit-KA1 board directly from the CD- ROM. If you intend to modify or debug (simulate) the sample programs, then you need to copy the complete \SamplePrograms folder to your hard disk. ...
Page 18
... For Windows XP systems, follow the procedure explained in section 5.2.5.3. 5.2.5.1 Windows 98SE/ME Systems 1. Once the DemoKit-KA1 board and host connect, the Plug and Play feature initializes the wizard for adding new hardware. Click Next the Search Method box, check "Search for a suitable driver ..." and then click Next. ...
Page 19
... DemoKit-KA1 User’s Manual 3. Check the "Specify a location" box, select "C:\Program Files\NECTools32\PG- LPC\DRIVERS" and then click Next. Figure 6. Search Location Specification (Windows 98SE) Note: If the destination folder changed at the time of PG-LPC installation, enter "new- folder\PG-LPC\DRIVERS". 4. When you see this window, click Next. ...
Page 20
... Figure 7. Checking Driver to Be Installed (Windows 98SE) 5. After installation of the software, click Finish to install the USB serial port driver. 5.2.5.2 Windows 2000 Systems 1. When the DemoKit-KA1 board and host computer connect, the Plug and Play function initializes the wizard for finding new hardware. Click Next. 14 ...
Page 21
... DemoKit-KA1 User’s Manual Figure 9. Found New Hardware Wizard 1 (Windows 2000 the first box, check "Search for a suitable driver ..." and then click Next. 3. Check the "Specify a location" only and then click Next. Figure 10. Search Method 1 (Windows 2000) 15 ...
Page 22
Select "C:\Program Files\NECTools32\PG-LPC\DRIVERS" and then click OK. Note: If the installation destination folder changed at the time of PG-LPC installation, enter new-folder-name\PG-LPC\DRIVERS. 5. Click Next. 16 Figure 11. Driver File Location 1 (Windows 2000) Figure 12. Address Specification 1 ...
Page 23
... DemoKit-KA1 User’s Manual 6. Click Finish to complete the installation. Figure 14. USB Driver Installation Completion 1 (Windows 2000) 7. Click Next to install the USB serial port driver. Figure 13. Driver File Search 1 (Windows 2000) 17 ...
Page 24
Figure 15. Found New Hardware Wizard 2 (Windows 2000) 8. Check "Search for a suitable driver ..." and then click Next. 9. Check the "Specify a location" box only and then click Next. 18 Figure 16. Search Method 2 (Windows ...
Page 25
... DemoKit-KA1 User’s Manual 10. Select C:\Program Files\NECTools32\PG-LPC\DRIVERS and then click OK. Note: If the destination folder changed at the time of PG-LPC GUI software installation, enter new-folder-name\PG-LPC\DRIVERS. 11. Click Next. Figure 17. Driver File Location 2 (Windows 2000) Figure 18. Address Specification 2 (Windows 2000) 19 ...
Page 26
... Click Finish to complete the installation. Figure 20. USB Driver Installation Completion 2 (Windows 2000) 5.2.5.3 Windows XP Systems 13. When the DemoKit-KA1 board and host machine connect, the Plug and Play function initializes the wizard for finding new hardware. Check Install from a list or specific ... and then click Next. ...
Page 27
... DemoKit-KA1 User’s Manual Figure 21. Found New Hardware Wizard 1 (Windows XP) 21 ...
Page 28
Check Search for the best driver in these locations and Include this location in the search. 15. Select C:\Program Files\NECTools32\PG-LPC\DRIVERS and then click Next. Figure 22. Search Location Specification 3 (Windows XP) 16. When you see the has not ...
Page 29
... DemoKit-KA1 User’s Manual 17. When you see this box, click Finish. Figure 24. USB Driver Installation Completion 1 (Windows XP) 18. Click Next to install the driver. Figure 25. Found New Hardware Wizard 2 (Windows XP) 23 ...
Page 30
Check Search for the best driver in these locations and Include this location in the search. 20. Select C:\Program Files\NECTools32\PG-LPC\DRIVERS and then click Next. Figure 26. Search Location Specification 2 (Windows XP) 21. When you see the "has not ...
Page 31
... After installing the two types of USB drivers, check that the drivers have been installed correctly, according to the procedure below. When using the DemoKit-KA1 board, the information to be checked here is needed. Click the Device Manager tab and then check that the drivers are installed correctly. ...
Page 32
... Windows 2000/XP Systems Do not perform a hardware modification scan when communicating with the DemoKit-KA1 board. Note: In the GUI port list box, the same communication port as COM? of the USB serial port (COM?) needs to be selected. If the drivers above are not displayed, or the mark "×" or "!" ...
Page 33
... DemoKit-KA1 User’s Manual 5.4 Driver Uninstallation The driver uninstallation program is installed on the host machine when the PG-LPC software is installed. Use the procedure below to uninstall the driver. 1. When using Windows 2000 or Windows XP, log on as the computer administrator. 2. Double-click My Computer → (C:) Program Files → NECTools32 → PG-LPC → DRIVERS → ...
Page 34
Click Finish to complete driver uninstallation. Caution: If the PG-LPC software was uninstalled earlier, the Ftdiunin.exe was also deleted. In this case, manually delete "USB Serial Port (COM?)" and "USB High Speed Serial Converter" from the device manager. 28 ...
Page 35
... DemoKit-KA1 User’s Manual 6. PG-LPC Flash Programming Software 6.1 Starting the Software GUI Select PG-LPC.EXE from the Start menu and wait for the main window to appear. Menu bar Toolbar Action log window Status bar Figure 33. PG-LCP GUI Software Main Window Programmer ...
Page 36
This window consists of the following: Name Menu bar (displayed at the top) Toolbar (displayed under the menu bar) Action log window (displayed under the toolbar) Programmer parameter window (displayed to the right of the action log window) Status bar ...
Page 37
... DemoKit-KA1 User’s Manual 6.3.1.1 Load Command The Load command allows you to select a program file. The selected program file is programmed into the flash memory of the device by executing the Program command or Autoprocedure(EPV) command. The file selection window for program loading displays the most recently used directory to which a user program has been loaded ...
Page 38
Blank Check Command The Blank Check command allows you to make a blank check on the 78K0S/KA1+ target machine connected to the PG-LPC. If the flash memory of the device is erased, a blank check is terminated normally. If ...
Page 39
... DemoKit-KA1 User’s Manual 6.3.2.4 Verify Command This command is not supported. 6.3.2.5 Security Command This command is not supported. 6.3.2.6 Checksum Command The Checksum command reads the checksum value of the 78K0S/KA1+ device connected with the PG-LPC. This value differs from the value displayed in the parameter window of the main window ...
Page 40
Clicking OK saves the settings selected on the Standard and Advance tabs and closes the dialog box. • Clicking Cancel closes the dialog box without saving the settings selected on the Standard and Advance tabs. • Parameter file holds ...
Page 41
... DemoKit-KA1 User’s Manual locked loop (PLL) circuit, enter a division rate or multiplication rate according to the use environment. Division and multiplication rates differ depending on the device sure to check the specifications of the device used before choosing a rate. If the target device does not have an on-chip PLL circuit, select "1.0". On the initial screen, the default setting is displayed according to the parameter file ...
Page 42
The Command options box is used to specify the PG-LPC flash processing command options. • Selecting the Blank check before Erase box executes a Blank Check command before an Erase command or EPV command is executed. If the result of ...
Page 43
... DemoKit-KA1 User’s Manual 6.3.3.2 Status Bar Command Checking the Status Bar command displays the status bar. Unchecking the command hides the status bar. 6.3.4 Help Menu Clicking the Help menu displays the About PG-LPC… command. Clicking the About PG-LPC command displays information about the PG-LPC program. To terminate the display, click OK ...
Page 44
Device: Updated after communication with the target device to display information about the target device. • Parameter file: Updated after Setup command execution to display information about a read parameter file. • Load file: Updated after Load command execution ...
Page 45
... This section explains the basic operations of the PG-LPC GUI for programming the DemoKit-KA1 board. This chapter covers how to start the system, execute the EPV command, and program the target device µPD78F9222 mounted on the DemoKit-KA1 board. The conditions of the series of operations described in this section are as follows: ...
Page 46
... Connecting and Starting 1. Set the DemoKit-KA1 board to the flash programming mode by switching SW3/S1 to ON. The recommended configuration of connectors CN1, CN2 and CN12 is shown below: SW3 Setting Don’t care S3 Don’t care S4 Don’t care CN12 Jumper Setting 1-2 Closed 3-4 Don’ ...
Page 47
... DemoKit-KA1 User’s Manual 3. Start the PG-LPC GUI. 4. Set the programming environment by selecting Device → Setup to display the Standard tab in the Device Setup box. 5. Click PRM File Read to display the Open dialog box. Figure 49. PG-LPC Main Window Figure 50. Device Setup: Standard Tab ...
Page 48
Select 78F9222.prm and then click Open. 7. From the Port list, select the communication port that matches the host machine being used. Select the communication speed of the host connection. Note: Selectable ports can be checked using Device Manager. ...
Page 49
... DemoKit-KA1 User’s Manual 8. Set "Supply oscillator" according to the specifications of the DemoKit-KA1 board: Frequency = 8.00 MHz Multiply rate = 1.00 Operation Mode = Chip 9. Switch to the Advance tab. Figure 53. Device Setup: Settings for Standard Tab Figure 54. Advance Tab: Device Setup Dialog Box 43 ...
Page 50
Command Options 7.5.1 Executing a Blank Check Before Erase Command Click OK to set parameters for the GUI software and display the following dialog box. "PRM File Read OK." is displayed. 7.5.2 Selecting and Opening a User Program Click ...
Page 51
... DemoKit-KA1 User’s Manual "Success read HEX file." is displayed. 7.5.3 Executing the Autoprocedure(EPV) Command Click Device → Autoprocedure(EPV) to execute the automatically execute the Blank Check → Erase → Program commands in sequence on the µPD78F9222 device. Figure 56. After Downloading The display is updated. ...
Page 52
... PG-LPC.INI file, so that those settings can be reused when the GUI software is restarted. 7.5.5 Executing “LIGHT_DEMO” Application Set the DemoKit-KA1 board to normal operation by switching SW3/S1 to OFF. The Plug and Play function will then initialize the board in normal operating mode. 7.5.6 Restarting the GUI When the system restarts, the main window appears ...
Page 53
... Alternatively, disconnect the USB connector, then insert the USB connector again after a while. The driver file cannot be found at a specified location. Cause: The PG-LPC software of the DemoKit-KA1 board may not be installed correctly. Action: Install the GUI software again by referring to “Software Installation.” ...
Page 54
... If the USB connector of this product is inserted not into the USB port used at the installation time but into another USB port, this product may be recognized as a new hardware item. Action: Install the driver by referring to section 7.2. Communication with the DemoKit-KA1 board is disabled. Cause: The driver may not be installed correctly. Action: Check if " ...
Page 55
... DemoKit-KA1 User’s Manual Action: Use the 78F9222.prm that matches the DemoKit-KA1 target device. For information about the PRM file, refer to section 7. Cause: The setting of "Supply oscillator" in the Device Setup dialog box may be incorrect. Action: Make a correct setting according to the specifications of the target device. ...
Page 56
... UART demonstration Workspace setting file NEC Electronics workspace file Make file Project file Individual workspace file C source file Output files for DemoKit-KA1 board (i.e. Intel HEX file) Output load module file, linker Map file Parameter file for compiler Object module file ...
Page 57
... DemoKit-KA1 User’s Manual Figure 58. NEC Electronics Project Manager Plus (PM+) 78K0/K0S 51 ...
Page 58
Figure 59. NEC Electronics System Simulator (SM+) 78K0S 9.2 ADC Demo This sample program simulates a simple voltage meter. Using the integrated A/D converter, the program measures the voltage supplied to the converter on input channel 0, port P20/ANI0. The ...
Page 59
... DemoKit-KA1 User’s Manual SW3 Setting S1 OFF S2 OFF S3 OFF S4 OFF CN12 Jumper Setting 1-2 Closed 3-4 Closed 5-6 Closed 7-8 Don’t care 9-10 Don’t care 9.3 Light Demo This sample programs plays one of eight predefined lightshows. After the program-start-signal, the program plays the first lightshow ...
Page 60
SW3 Setting S1 OFF S2 OFF S3 OFF S4 OFF CN12 Jumper Setting 1-2 Closed 3-4 Don’t care 5-6 Don’t care 7-8 Don’t care 9-10 Don’t care Note: To run light demo with SM+, modify the sim variable to 1 ...
Page 61
... DemoKit-KA1 User’s Manual SW3 Setting S1 OFF S2 OFF S3 OFF S4 OFF CN12 Jumper Setting 1-2 Closed 3-4 Don’t care 5-6 Don’t care 7-8 Don’t care 9-10 Don’t care 9.5 Timer Demo This sample program simulates a darkroom timer. The board starts after reset flashing all LEDs. ...
Page 62
SW3 Setting S1 OFF S2 OFF S3 OFF S4 OFF CN12 Jumper Setting 1-2 Closed 3-4 Don’t care 5-6 Don’t care 7-8 Don’t care 9-10 Don’t care Note: To run timer demo with SM+, modify the sim variable to 1 ...
Page 63
... DemoKit-KA1 User’s Manual SW3 Setting S1 OFF OFF S4 OFF CN12 Jumper setting 1-2 Closed 3-4 Closed 5-6 Closed 7-8 Closed 9-10 Closed CN1 Jumper Setting 1-2 Open 3-5 Closed 4-6 Closed CN2 Jumper setting 1-2 Closed 3-4 Closed 5-6 Don’t care 7-8 Don’ ...
Page 64
... USB Connector CN7 For connection with the host machine, use a USB cable (Mini-B type). For confirmation, NEC Electronics used only the USB cable delivered with the DemoKit-KA1 board. 10.1 USB Interface Cable (Mini-B type Table 4. Pin Configuration of USB Connector CN7 Signal Name ...
Page 65
... DemoKit-KA1 User’s Manual Figure 61. USB Interface Cable (Mini-B type) 59 ...
Page 66
... Schematics Note: Schematics also are available on CD-ROM directory \Doc\DemoKit-KA1_SCHEMATICS.pdf 60 ...