Table of Contents

Advertisement

Quick Links

User's Manual
78K0/Fx2 - CAN it!
Demonstration Kit for the F_Line Family
Document No. 78K0FX2CANITV101
Date Published June 2006
© NEC Electronics (Europe) GmbH

Advertisement

Table of Contents
loading

Summary of Contents for NEC 78K0/Fx2

  • Page 1 User’s Manual 78K0/Fx2 - CAN it! Demonstration Kit for the F_Line Family Document No. 78K0FX2CANITV101 Date Published June 2006 © NEC Electronics (Europe) GmbH...
  • Page 2 NEC Electronics 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 NEC Electronics products listed in this document or any other liability arising from the use of such NEC Electronics products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others.
  • Page 3 European Union only: This equipment (including all accessories) is not intended for household use. After use the equipment cannot be disposed of as household waste. NEC Electronics (Europe) GmbH offers to take back the equipment. All you need to do is register at www.eu.necel.com/weee.
  • Page 4 78K0/Fx2 – CAN it! Revision History Date Revision Chapter Description 16-12-2005 V1.00 First release 21-06-2006 V1.01 Correction of CAN connector CN8...
  • Page 5: Table Of Contents

    78K0/Fx2 – CAN it! Table of Contents Introduction ........................10 Main features of 78K0/Fx2 – CAN it! ..................... 10 System requirements........................11 Package contents..........................11 Trademarks ............................11 78K0/Fx2 – CAN it! system configuration................12 78K0/Fx2 – CAN it! .......................... 12 Host computer ..........................12 Power supply via USB interface ....................
  • Page 6 78K0/Fx2 – CAN it! Hardware installation......................28 Software installation......................28 IAR Systems Embedded Workbench for 78K0/78K0S installation ..........28 Device file installation ........................28 FPL3 FLASH programming GUI installation................. 28 Sample program installation......................28 USB Driver Installation ........................29 8.5.1 Installation on Windows 98SE/Me ....................29 8.5.2...
  • Page 7 78K0/Fx2 – CAN it! 14.1 General Introduction........................77 14.2 ADC demo ............................78 14.3 CAN demo ............................78 14.4 ReacTime demo..........................78 14.5 Timer demo ............................ 79 14.6 UART demo............................ 79 USB interface cable (Mini-B type) ..................80 Schematics ........................81...
  • Page 8 List of Figures Figure 1: 78K0/Fx2 – CAN it! system configuration ..................12 Figure 2: 78K0/Fx2 – CAN it! baseboard connectors, switches and LED’s..........13 Figure 3: Connector CN6, USB Mini-B Type Host Connector Pin Configuration........16 Figure 4: 78K0/Fx2 – CAN it! CPU module components ................21 Figure 5: 78K0/Fx2 –...
  • Page 9 Figure 75: IAR project download .........................75 Figure 76: IAR C-SPY debugger .........................76 Figure 77: USB interface cable (Mini-B type)....................80 Figure 78: 78K0/Fx2 – CAN it! baseboard schematics ................81 Figure 79: 78K0/Fx2 – CAN it! CPU module schematics................82 List of Tables Table 1: Configuration switch SW4, factory settings...................14...
  • Page 10: Introduction

    Workbench, IAR Systems C-SPY debugger / simulator and the NEC FPL3 FLASH programming software. 78K0/Fx2 – CAN it! is not intended for code development. NEC does not allow and does not support in any way any attempt to use 78K0/Fx2 – CAN it! in a commercial or technical product.
  • Page 11: System Requirements

    Please verify that you have received all parts listed in the package contents list attached to the 78K0/Fx2 – CAN it! package. If any part is missing or seems to be damaged, please contact the dealer from whom you received your 78K0/Fx2 – CAN it!.
  • Page 12: K0/Fx2 - Can It! System Configuration

    2.1 78K0/Fx2 – CAN it! 78K0/Fx2 – CAN it! is a demonstration kit for the 78K0/FF2 8-Bit microcontroller. The 78K0/Fx2 – CAN it! board is connected to the host system via USB interface cable. The host system may be used for On-...
  • Page 13: K0/Fx2 - Can It! Baseboard Components

    Some of the 78K0/Fx2 – CAN it! components are free for user application hardware and software. Please read the user’s manual of the 78K0/FF2 device carefully to get information about the electrical specification of the available I/O ports before you connect any external signal to the 78K0/Fx2 – CAN it! board.
  • Page 14: Reset Button Sw1

    SW4, S2 Operation Mode OFF (default) OCD disabled OCD enabled Table 3: OCD mode selection SW4/S2 For more details on how to configure 78K0/Fx2 – CAN it! in order to use On-Chip debugging please refer to CHAPTER 5, ON-CHIP DEBUGGING.
  • Page 15: Uart Selection Sw4/S3

    Table 4: UART selection SW4/S3 3.4.4 UART/ LIN mode SW4/S4 SW4 switch S4 controls the serial communication mode of 78K0/Fx2 – CAN it! board. The corresponding UART signals RxD and TxD selected by SW4/S3 are connected to the TJA1020 LIN transceiver when setting SW4/S4 to ON.
  • Page 16: Usb Interface Connector Cn6

    The CN6 connector allows connecting the IAR C-SPY debugger or FPL3 FLASH programming software to the 78K0/Fx2 – CAN it! board in order to debug application software or program the 78K0/FF2 internal FLASH memory. The board power supply of 5V is also provided by connector CN6.
  • Page 17: Connector Cn4

    Table 8: CN4, PG-FP4 connector When using PG-FP4, the programming interface to the 78K0/FF2 device must be set to clock serial interface, CSI. Set configuration of switch SW4 of the 78K0/Fx2 – CAN it! board to the following: Setting Table 9: SW4 configuration when using PG-FP4 3.8 External Potentiometer R7...
  • Page 18: Display D1, 12*2 Character Lc Display

    3.9 Display D1, 12*2 character LC display The 78K0/Fx2 – CAN it! board is equipped with a character LC display. The display font is equal to 12 character words at 2 lines. The LCD module contains about a character generator ROM - including predefined standard characters - and a character RAM where the user can define its own characters.
  • Page 19: Temperature Sensor

    78K0/Fx2 – CAN it! 3.12 Temperature sensor For temperature measurement and primarily as an application example a silicon temperature sensor KTY13-5 is connected to the ANI2 analogue input, equal to port P82 of 78K0/FF2 device. The temperature sensor has a resistor range of R = 1950 •...
  • Page 20: External Led's D1-D4

    78K0/Fx2 – CAN it! The temperature at the sensor can be calculated from the change in the sensors resistance from the following equation, which approximates the characteristic curve: α² - 4 x β + 4 x β x k α² - 4 x β + 4 x β x k - α...
  • Page 21: K0/Fx2 - Can It! Cpu Module Components

    The 78K0/FF2 CPU module is equipped with 4 connectors in order to be connected to user defined hardware. Additionally the 78K0/FF2 CPU module contains about connector CN7 for On-Chip debugging purpose and connector CN8 for CAN communication. 4.1 78K0/Fx2 – CAN it! CPU module Figure 4: 78K0/Fx2 – CAN it! CPU module components...
  • Page 22: External Connector Cn3, Cn4, Cn5, And Cn6

    78K0/Fx2 – CAN it! 4.1.1 External connector CN3, CN4, CN5, and CN6 CN3, CN4, CN5, and CN6 are connectors for external user hardware. Port 78K0/FF2 Port 78K0/FF2 Port 78K0/FF2 Port 78K0/FF2 P120, INTP0, EXLVI P31, TI002, INTP2 P97, ANI15 P96, ANI14...
  • Page 23: Ocd Connector Cn7

    To enable On-Chip debugging by using the QB-78K0MINI, please set switch SW4 to the following configuration: Setting Table 16: SW4 configuration for OCD via QB-78K0MINI For more details on how to configure 78K0/Fx2 – CAN it! in order to use On-Chip debugging please refer to CHAPTER 5, ON-CHIP DEBUGGING.
  • Page 24: On-Chip Debugging

    Figure 5: 78K0/Fx2 – CAN it! configuration for On-Chip debugging 5.1 OCD via On-Board debug function To operate the 78K0/Fx2 – CAN it! board within the On-Board debug mode configure switch SW4 as following: Setting Table 17: SW4 configuration for OCD via On-Board debug function...
  • Page 25: Ocd Via Qb-78K0Mini On-Chip Debug Emulator

    78K0/Fx2 – CAN it! 5.2 OCD via QB-78K0MINI On-Chip debug emulator To operate the 78K0/Fx2 – CAN it! board together with the QB-78K0MINI On-Chip debug emulator, configure switch SW4 as following: Setting Table 18: SW4 configuration for OCD via QB-78K0MINI...
  • Page 26: 78K0/Ff2 Memory Map

    The 78K0/FF2 memory layout is shown in the table below. Table 19: 78K0/FF2 memory map The 78K0/Fx2 – CAN it! does not reserve any resources of the 78K0/FF2 device, consequently all available memory of the device is free for application software.
  • Page 27: K0/Fx2 - Can It! Installation And Operation

    78K0/FF2 internal FLASH memory. As communication interface between the host computer and the 78K0/Fx2 – CAN it! board a USB interface line is needed. Before you can download, debug or execute an application program, hardware and software must be installed properly.
  • Page 28: Hardware Installation

    8.2 Device file installation To install the device files for the 78K0/Fx2 – CAN it! in order to use the IAR C-SPY debugger, select the SETUP program in the directory \Device Files\ of the CDROM. The setup dialogues will guide you through the installation process.
  • Page 29: Usb Driver Installation

    78K0/Fx2 – CAN it! 8.5 USB Driver Installation In order to use the 78K0/Fx2 – CAN it! board for On-Chip debugging or FLASH programming, the USB driver needs to be installed on the host machine. Install the driver according to the following procedure: Installation on Windows 98SE/Me ..
  • Page 30: Figure 8: Search Location Specification (Windows 98Se)

    78K0/Fx2 – CAN it! Check "Specify location" check only enter "C:\Program Files\NECTools32\FPL3\DRIVER" in the address bar, then click Next>. Figure 8: Search Location Specification (Windows 98SE) <1> Check "Specify a location" only. <3> Click. <2> Enter "C:\Program Files\NECTools32\FPL3\DRIVER". 備考 3.1 ソフトウエアのインストール先のフォルダを変更した場合は,...
  • Page 31: Installation On Windows 2000

    Figure 10: Installation Completion (Windows 98SE) Click. 8.5.2 Installation on Windows 2000 When the 78K0/Fx2 – CAN it! board is connected with the host machine, the board is recognized by Plug and Play, and the wizard for finding new hardware is started. Click Next>.
  • Page 32: Figure 12: Search Method 1 (Windows 2000)

    78K0/Fx2 – CAN it! The window below is displayed. So, check that "Search for a suitable driver ..." is selected, then click Next>. Figure 12: Search Method 1 (Windows 2000) Check that "Search for a suitable driver ..." is selected.
  • Page 33: Figure 14: Address Specification 1 (Windows 2000)

    78K0/Fx2 – CAN it! Enter "C:\Program Files\NECTools32\FPL3\DRIVER" in the address bar, then click OK. Figure 14: Address Specification 1 (Windows 2000) Click. Enter "C:\Program Files\NECTools32\FPL3\DRIVER". Remark If the installation destination folder is changed at the time of GUI software installation, enter "new-folder\FPL3\DRIVER".
  • Page 34: Figure 16: Usb Driver Installation Completion 1 (Windows 2000)

    78K0/Fx2 – CAN it! Click Finish to complete the installation of the USB driver. Figure 16: USB Driver Installation Completion 1 (Windows 2000) Click. Proceed to the installation of the USB Serial Port driver. Click Next>. Figure 17: Found New Hardware Wizard 2 (Windows 2000)
  • Page 35: Figure 18: Search Method 2 (Windows 2000)

    78K0/Fx2 – CAN it! The window below is displayed. So, check that "Search for a suitable driver ..." is selected, then click Next>. Figure 18: Search Method 2 (Windows 2000) Check that "Search for a suitable driver ..." is selected.
  • Page 36: Figure 20: Address Specification 2 (Windows 2000)

    78K0/Fx2 – CAN it! 10. Enter "C:\Program Files\NECTools32\FPL3\DRIVER" in the address bar, then click OK. Figure 20: Address Specification 2 (Windows 2000) Click. Enter "C:\Program Files\NECTools32\FPL3\DRIVER". Remark If the installation destination folder is changed at the time of GUI software installation, enter "new-folder\DRIVER".
  • Page 37: Installation On Windows Xp

    Click. 8.5.3 Installation on Windows XP When the 78K0/Fx2 – CAN it! board is connected with the host machine, the board is recognized by Plug and Play, and the wizard for finding new hardware is started. Check that "Install from a list or specific ..." is selected, then click Next>.
  • Page 38: Figure 24: Search Location Specification 3 (Windows Xp)

    78K0/Fx2 – CAN it! Check that "Search for the best driver in these locations." is selected. Check the "Include this location search:" check enter "C:\Program Files\NECTools32\FPL3\DRIVER" in the address bar, then click Next>. Figure 24: Search Location Specification 3 (Windows XP) <1>...
  • Page 39: Figure 26: Usb Driver Installation Completion 1 (Windows Xp)

    78K0/Fx2 – CAN it! When the window below is displayed, the installation of the USB driver is completed. Click Finish. Figure 26: USB Driver Installation Completion 1 (Windows XP) Click. Proceed to the installation of the USB Serial Port driver. Click Next>.
  • Page 40: Figure 28: Search Location Specification 2 (Windows Xp)

    78K0/Fx2 – CAN it! Check that "Search for the best driver in these locations." is selected. Check the "Include this location search:" check enter "C:\Program Files\NECTools32\FPL3\DRIVER", then click Next>. Figure 28: Search Location Specification 2 (Windows XP) <1> Check that "Search for the best driver in these locations."...
  • Page 41: Figure 30: Usb Serial Port2 Driver Installation Completion (Windows Xp)

    78K0/Fx2 – CAN it! When the window below is displayed, the installation of the USB driver is completed. Click Finish. Figure 30: USB Serial Port2 Driver Installation Completion (Windows XP) Click.
  • Page 42: Confirmation Of Usb Driver Installation

    After installing the two types of drivers, check that the drivers have been installed normally, according to the procedure below. When using the 78K0/Fx2 – CAN it! board in combination with FPL3 GUI, the information to be checked here is needed.
  • Page 43: Driver Deinstallation

    78K0/Fx2 – CAN it! 8.7 Driver deinstallation The driver deinstallation program is installed on the host machine when the FPL3 software is installed. Use the procedure below for deinstall the USB driver. When using Windows XP, log on as the computer administrator. When using Windows 2000, log on as the Administrator.
  • Page 44: Figure 34: Completion Of Driver Uninstallation

    78K0/Fx2 – CAN it! Click Finish to complete driver uninstallation. Figure 34: Completion of Driver Uninstallation Click. Caution If the GUI software is uninstalled earlier, "Ftdiunin.exe" is also deleted. At this time, delete "USB Serial Port (COM?)" and "USB High Speed Serial Converter" from Device Manager...
  • Page 45: Fpl3 Flash Programming Software

    GUI, folder <FPL3 install-path>\PRM. Nevertheless, newest version of parameter file for the μPD78F0893 device can by download from the NEC Electronics Web site. Download the parameter file for the PG-FP4 from the following NEC Electronics Web site: http://www.eu.necel.com/updates Copy the parameter file downloaded from the NEC Electronics Web site into sub-directory <FPL3.EXE-install-path>\PRM created during GUI software setup (refer to CHAPTER 8...
  • Page 46: Toolbar

    78K0/Fx2 – CAN it! This window consists of the following items: Name Display Information Menu bar Displays menu items executable by the (displayed at the top) FPL3. Toolbar Displays frequently used commands as (displayed under the menu bar) icons. Action log window Displays an FPL3 action log.
  • Page 47: Menu Bar

    78K0/Fx2 – CAN it! 9.4 Menu Bar Depending on the actual device status and device type, some menu items may be enabled or disabled. 9.4.1 [File] menu Clicking the [File] menu displays the pull-down menu as shown below. This menu mainly contains commands related to file operation.
  • Page 48: Device] Menu

    78K0/Fx2 – CAN it! [Quit] command The [Quit] menu is the command for terminating the FPL3 GUI software. Clicking × on the right side of the task bar also terminates the FPL3 GUI software. Note User settings are saved in the FPL3.INI file, so that the GUI software starts up next time with the same settings.
  • Page 49 78K0/Fx2 – CAN it! (3) [Program] command The [Program] command sends a specified user program to the target device and writes the program to the flash memory. The execution of Verify operation for detecting an error in user program communication from the FPL3 to the target device after the execution of the [Program] command follows the setting of the 'Command options' on the Advance tab displayed by selecting [Device] →...
  • Page 50: Figure 40: Device Setup Window - Standard

    78K0/Fx2 – CAN it! [Setup] command The [Setup] menu allows you to make settings related to flash memory rewriting according to the user environment and to set command options. Each time the GUI software is started, the most recently used parameter file (.PRM) is read and the settings are displayed.
  • Page 51: Figure 41: Device Setup Window - Parameter File Selection

    78K0/Fx2 – CAN it! <1> Parameter file This file holds parameters and timing data required to rewrite the flash memory of the target device. Do not modify the data in the parameter file because the data is related to the guarantee of rewrite data.
  • Page 52: Figure 43: Device Setup Window - Host Connection

    "Host connection" is used to select a channel for communication between the 78K0/Fx2 – CAN it! board and host machine. Figure 43: Device Setup Window – Host connection [Port list box] Select a channel for communication between the 78K0/Fx2 – CAN it! board and host machine. • COM1 to COM256 Remark Selectable ports can be checked using Device Manager.
  • Page 53: Figure 45: Device Setup Window - Operation Mode

    78K0/Fx2 – CAN it! <4> Operation Mode The setting of "Operation Mode" may divide the flash memory of some target devices into blocks or areas. This menu is used to select an operation mode of the flash memory. Some devices do not have the block and area division modes, and some devices have only one of the modes.
  • Page 54: Figure 47: Device Setup Window - Advance

    78K0/Fx2 – CAN it! (b) Advance setup The Advance setup menu is used to specify the command options and security flag settings. When "Advance" is clicked, the following window is displayed: Figure 47: Device Setup Window - Advance <1> Command options This dialog box is used to specify the FPL3 flash processing command options.
  • Page 55: Figure 49: Device Setup Window - Security Flag Settings

    78K0/Fx2 – CAN it! [Checksum after Program check box] If this check box is checked, the flash memory checksum value of the target device is read from the target device after execution of the Program command and EPV command. This value differs from the value displayed in the parameter window of the main window.
  • Page 56: Figure 50: Device Setup Window - Disable Chip Erase

    78K0/Fx2 – CAN it! [Disable Chip Erase check box] If this check box is checked, the [Erase] command becomes invalid in the entire flash memory area of the target device. At this time, the warning message shown below is displayed.
  • Page 57: View] Menu

    78K0/Fx2 – CAN it! 9.4.3 [View] menu Clicking the [View] menu displays the pull-down menu shown below. This menu contains commands for setting whether to display the toolbar and status bar. Figure 52: [View] Menu [Toolbar] command Checking the [Toolbar] command displays the toolbar. Unchecking the command hides the toolbar.
  • Page 58: Help] Menu

    78K0/Fx2 – CAN it! 9.4.4 [Help] menu Clicking the [Help] menu displays the following pull-down menu: Figure 53: [Help] Menu [About FPL3] command The [About FPL3] command opens the program entry window as shown below and indicates the version. Clicking OK terminates the display.
  • Page 59: Programmer Parameter Window

    78K0/Fx2 – CAN it! 9.5 Programmer Parameter Window This window displays the settings of the programming parameters. Figure 55: Programmer Parameter Window [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.
  • Page 60: How To Use Fpl3 Flash Programming Software

    10. How to use FPL3 FLASH programming software This chapter explains the basic operation of the FPL3 GUI for programming the 78K0/Fx2 – CAN it! board. This chapter covers how to start the system, execute the EPV command, and program the 78K0/FF2 target device.
  • Page 61: Connecting And Starting

    <1> Set the 78K0/Fx2 – CAN it! board to the FLASH programming mode by switching SW4/S1 to Setting <2> <Plug and Play> Connect the 78K0/Fx2 – CAN it! board with the host machine via the USB cable. If the connection was already done, press the reset button SW1 to release the FLASH...
  • Page 62: Setting The Programming Environment

    78K0/Fx2 – CAN it! <3> Start the FPL3 GUI. Figure 56: GUI Software Startup Screen Setting the programming environment <1> Select [Device] → [Setup] from the menu bar. <2> The Standard dialog box for device setup is activated. Figure 57: <Standard Device Setup> Dialog Box...
  • Page 63: Figure 58: Parameter File Selection

    78K0/Fx2 – CAN it! <3> Click PRM File Read to open the parameter file selection window. Select the parameter file “78F0893.prm” then click Open. Figure 58: Parameter File Selection <4> From the Port list box, select the communication port that matches the host machine being used.
  • Page 64: Figure 60: Dialog Box After Setting

    78K0/Fx2 – CAN it! <5> Set "Supply oscillator" according to the specifications of the 78K0/Fx2 – CAN it! board, “Frequency = 12.00 MHz” and “Multiply rate = 1.00”. In "Operation Mode", please specify the “Chip” mode. The following figure shows the recommended settings: Figure 60: <Standard Device Setup>...
  • Page 65: Selecting A User Program

    78K0/Fx2 – CAN it! <7> Click the OK button. The GUI software sets the parameters. When the settings have been completed, the following screen is displayed: Figure 62: Completion of Parameter Setting "PRM File Read OK." is displayed. The display is updated.
  • Page 66: [Autoprocedure(Epv)] Command Execution

    Set the 78K0/Fx2 – CAN it! board to the normal operation mode by switching SW4/S1 to OFF. < Plug and Play> the 78K0/Fx2 – CAN it! board to start in normal operation mode or press the reset button SW1 to release the normal operation mode.
  • Page 67: Troubleshooting

    78K0/Fx2 – CAN it! 11. TROUBLESHOOTING In driver installation, recognition based on Plug and Play is disabled. Cause: The USB connector may not be inserted normally into the USB port of the personal computer. Action: Check that the USB connector is inserted fully into the USB port of the personal computer.
  • Page 68 Action: Set the port checked using Device Manager. Cause: The 78K0/Fx2 – CAN it! board is operating in normal mode. Action: Set the board to the FLASH programming mode by setting SW4 switch S1 to ON. Cause: The PRM file selected in [Device Setup] may be incorrect.
  • Page 69: Iar Configuration For On-Board Debugging

    Figure 65: Registry entry for IAR C-SPY debugger COM port setting As default the serial port COM3 is set in the script file. If the 78K0/Fx2 – CAN it! board is used on a different USB serial COM port, please edit the script file accordingly. To do so, open the script file with your preferred editor i.e.
  • Page 70: Figure 67: Configuration Of Com Port For Iar C-Spy Debugger 2/4

    78K0/Fx2 – CAN it! The following USB Serial Port Properties Window appears: Figure 67: Configuration of COM port for IAR C-SPY debugger 2/4 Then select the “Port Settings” tab of the USB Serial Port Properties Window and press the “Advanced”...
  • Page 71: Figure 69: Configuration Of Com Port For Iar C-Spy Debugger 4/4

    The configuration of the USB serial COM port is finished now and the IAR C-SPY debugger can now be used in combination with the On- Board debug function of the 78K0/Fx2 – CAN it! board.
  • Page 72: Iar Sample Session

    78K0/Fx2 – CAN it! 13. IAR sample session When everything is set up correctly the IAR Embedded Workbench can be started. To do so, start the Embedded Workbench from Windows “Start” menu > “Programs” > folder “IAR Systems” > “IAR Embedded Workbench Kickstart for 78K”.
  • Page 73: Figure 71: Iar Project Workspace

    “Debugger”. Mak e sure that the driver is set to “TK-78” in rder to use the On-Board debug function of the 78K0/Fx2 – CAN it! board. The device description file must be set to “io78F0893.ddf”. Select “TK-78” to use On-Board debugging.
  • Page 74: Figure 73: Iar Linker Options

    Options menu and select “Rebuild All” from the “Project” menu. If the project is compiled and linked without errors or warnings it can now be downloaded to the 78K0/Fx2 – CAN it! board and debugged. To start the IAR C-SPY debugge r select the option “Debug”...
  • Page 75: Figure 75: Iar Project Download

    78K0/Fx2 – CAN it! Now the debugger is started and the demo project is downloaded to the 78K0/Fx2 – CAN it! board. The progress of downloading is indicated by blue dots in the TK-78 Emulator window. Please note, downloading of greater executables can take some time.
  • Page 76: Figure 76: Iar C-Spy Debugger

    78K0/Fx2 – CAN it! After the download was completed all debug features of IAR C-SPY debugger are available, i.e. Si ngle Stepping (Step Over/-In/-Out), Go, Stop, Breakpoints, Register / Memory view etc. o get more details on the debugger configuration and capabilities please refer to the “78K IAR Embedded Workbench IDE User Guide”...
  • Page 77: Sample Programs

    78K0/Fx2 – CAN it! 14. Sample programs 14.1 General Introduction ach of the sample programs is located in a single directory, which will be called main-directory of the sample. This main directory of each sample contains the complete project inclusive all output files of the development tool.
  • Page 78: Adc Demo

    78K0/Fx2 – CAN it! 14.2 ADC demo This sample program realizes a simple voltage meter. By using the integrated ADC, the voltage supplied to ADC on input channel 0, port P 80 of 78K0/FF2 device, is measured. The input voltage is adjusted by potentiometer R14.
  • Page 79: Timer Demo

    78K0/Fx2 – CAN it! 14.5 Timer demo This sample program demonstrates a real time clock. After the program is started the watch timer is initialized to generate an exact clock reference, based on the 32.768 kHz sub-clock. The actual time is displayed using the LCD module.
  • Page 80: Usb Interface Cable (Mini-B Type)

    78K0/Fx2 – CAN it! 15. USB interface cable (Mini-B type) Figure 77: USB interface cable (Mini-B type)
  • Page 81: Schematics

    78K0/Fx2 – CAN it! 16. Schematics Figure 78: 78K0/Fx2 – CAN it! baseboard schematics...
  • Page 82: Figure 79: 78K0/Fx2 - Can It! Cpu Module Schematics

    78K0/Fx2 – CAN it! Figure 79: 78K0/Fx2 – CAN it! CPU module schematics...
  • Page 83 78K0/Fx2 – CAN it! [MEMO]...

Table of Contents