・ The information in this document is current as of date of its publication. 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-to-date specifications of NEC Electronics products. Not all
products and/or types are available in every country. Please check with an NEC sales representative
for availability and additional information.
・ No part of this document may be copied or reproduced in any form or by any means without prior
written consent of NEC Electronics. NEC Electronics assumes no responsibility for any errors that may
appear in this document.
・ 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.
・ 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 customer's equipment shall be done under
the full responsibility of customer. NEC Electronics no responsibility for any losses incurred by
customers or third parties arising from the use of these circuits, software and information.
・ While NEC Electronics endeavors to enhance the quality, reliability and safety of NEC Electronics
products, customers agree and acknowledge that the possibility of defects thereof cannot be
eliminated entirely. To minimize risks of damage to property or injury (including death) to persons
arising from defects in NEC Electronics products, customers must incorporate sufficient safety
measures in their design, such as redundancy, fire-containment and anti-failure features.
・ NEC Electronics products are classified into the following three quality grades: “Standard”, “Special”
and “Specific”.
The "Specific" quality grade applies only to NEC Electronics products developed based on a customerdesignated “quality assurance program” for a specific application. The recommended applications of NEC
Electronics product depend on its quality grade, as indicated below. Customers must check the quality
grade of each NEC Electronics product before using it in a particular application.
"Standard": Computers, office equipment, communications equipment, test and measurement
equipment, audio and visual equipment, home electronic appliances, machine tools,
personal electronic equipment and industrial robots.
"Special": Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti disaster systems, anti-crime systems, safety equipment and medical equipment (not
specifically designed for life support).
"Specific": Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems,
life support systems and medical equipment for life support, etc.
The quality grade of NEC Electronics products is “Standard” unless otherwise expressly specified in NEC
Electronics data sheets or data books, etc. If customers wish to use NEC Electronics products in
applications not intended by NEC Electronics, they must contact NEC Electronics sales representative in
advance to determine NEC Electronics 's willingness to support a given application.
Notes: 1." NEC Electronics" as used in this statement means NEC Electronics Corporation and also
includes its majority-owned subsidiaries.
2. " NEC Electronics products" means any product developed or manufactured by or for NEC
Electronics (as defined above).
2
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
CAUTION
This is a Test- and Measurement equipment with possibility to be significantly
altered by user through hardware enhancements/modifications and/or test or
application software. Thus, with respect to Council Directive 89/336/EEC
(Directive on compliance with the EMC protection requirements), this equipment
has no autonomous function. Consequently this equipment is not marked by the
CE-symbol.
EEDT-ST-0005-10
Redemption of Waste Electrical and Electronic Equipment
(WEEE) in accordance with legal regulations applicable in the
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.
3
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
Revision History
Date Revision Chapter Description
16-12-2005 V1.00 --- First release
21-06-2006 V1.01 4.2 Correction of CAN connector CN8
3.4.4 UART/ LIN mode SW4/S4.............................................................................................................. 15
3.5 LIN plug JP1..................................................................................................................................... 15
3.6 USB interface connector CN6........................................................................................................ 16
9.4 Menu Bar.......................................................................................................................................... 47
9.4.2 [Device] menu ................................................................................................................................ 48
10. How to use FPL3 FLASH programming software ......................................................... 60
(1) Installing the FPL3 GUI software....................................................................................................... 60
(2) Installing the driver............................................................................................................................. 60
(3) Installing the parameter file................................................................................................................ 60
(4) Connecting and starting..................................................................................................................... 61
(5) Setting the programming environment .............................................................................................. 62
(6) Selecting a user program .................................................................................................................. 65
Figure 39: [Device] Menu ............................................................................................................................48
Figure 40: Device Setup Window - Standard ..............................................................................................50
Figure 53: [Help] Menu ................................................................................................................................58
Figure 54: About FPL3 Window ..................................................................................................................58
Figure 59: Port Selection .............................................................................................................................63
Figure 60: <Standard Device Setup> Dialog Box after Setting...................................................................64
Table 20: 78K0/Fx2 – CAN it! CD-ROM directory structure........................................................................27
Table 21: Example directory structure ........................................................................................................77
9
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
1. Introduction
78K0/Fx2 – CAN it! is a demonstration kit for the NEC’s F_Line 78K0/Fx2 microcontroller family. It
supports On-Board debugging, FLASH programming and real time execution of application programs up
to 4 kBytes of program code for the 78K0/FF2 microcontroller. The board is prepared to be connected to
user hardware parts such as digital I/O or analogue signals.
1.1 Main features of 78K0/Fx2 – CAN it!
• Easy to use device demonstration capabilities
78K0/Fx2 – CAN it! contains elements to easily demonstrate simple I/O-functions, i.e. push buttons,
12*2 character LC display, LED output, AD reference voltage, I/O lines, UART serial interface, LIN
and CAN serial interfaces.
•On-Board debug function
The 78K0/Fx2 – CAN it! supports an On-Board debug function by using the IAR C-SPY debugger. It
allows FLASH downloading and standard debug functions i.e. code execution, single stepping,
breakpoints, memory manipulation etc.
•Power supply via USB interface
78K0/Fx2 – CAN it! is powered via USB interface, no separate power supply is needed.
•Character LCD module
78K0/Fx2 – CAN it! provides a 12*2 character LC display, allowing the implementation of human /
machine interfaces, comfortable input / output functions, output of measurement values, output of
status information etc.
•FPL3, FLASH programming software
A windows based FLASH programming software allows to select and download application programs
to the 78K0/Fx2 – CAN it! board for evaluation purposes.
• Analogue to digital signal conversion is supported
• Various input / output signals available, such as
° All I/O ports prepared to be connected to user hardware
° Timer input / output signals
° Two or three wire serial I/O
° UART interface, via USB UART chip FT232
° High Speed CAN bus interface with transceiver PCA82C250
° LIN bus support, via TJA 1020 transceiver
° 16 analogue input lines
° Temperature sensor KTY13-5
° 4 I/O ports connected to LED
° 2 push buttons prepared for external interrupt generation
• The IAR Embedded Workbench for 78K0/78K0S and the IAR C-SPY debugger / simulator are
included. These packages are restricted in such that maximum program code size is limited to
4 kByte of program code.
•Full documentation is included for the NEC 78K0/FF2 microcontroller, IAR Systems Embedded
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.
10
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
1.2 System requirements
HOST PC
Host interface
1.3 Package contents
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!.
Note:
Updates of the IAR Embedded Workbench for 78K, FP3 FLASH programming software,
documentation and/or utilities for 78K0/Fx2 – CAN it!, if available, may be downloaded from the
NEC WEB page(s) at
A PC supporting Windows 98SE, Windows ME, Windows 2000 or
Windows XP is required for the IAR Systems Embedded Workbench
demo-version and the FPL3 FLASH programming software.
Pentium 166 MHz (at least), 128 MB of RAM, 256-color display (1024 *
768), mouse, CD-ROM drive and 200 Mbytes of free hard disk space are
required to install the tool packages.
Above listed requirements are valid for the IAR Systems Embedded
Workbench and the FPL3 FLASH programming software.
USB interface that enables communication based on USB (Ver1.1 or
later)
http://www.eu.necel.com/updates
1.4 Trademarks
IAR Embedded Workbench, visualSTATE, IAR MakeApp and C-SPY are registered trademarks of IAR
Systems AB. Microsoft and Windows are registered trademarks of Microsoft Corporation. Adobe and
Acrobat Reader are registered trademarks of Adobe Systems Incorporated.
All other product names are trademarks or registered trademarks of their respective owners.
11
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
2. 78K0/Fx2 – CAN it! system configuration
The 78K0/Fx2 – CAN it! system configuration is given in the diagram below:
Figure 1: 78K0/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 OnBoard debugging of application software by using the IAR C-SPY debugger or the programming of the
78K0/FF2 internal FLASH memory by using the FPL3 programming GUI, to allow execution of application
programs on the 78K0/Fx2 – CAN it! starterkit hardware.
78K0/Fx2 – CAN it! runs the microcontroller at 12.0000 MHz operating speed. Sub-clock is provided with
32.768 kHz.
2.2 Host computer
The USB host interface enables communication to the 78K0/Fx2 – CAN it! board. The USB UART chip
FT232 allows application software to access the USB device in the same way as it would access a
standard RS232 interface. The FTDI's Virtual COM Port (VCP) driver appears to the windows system as
an extra Com Port, in addition to any existing hardware Com Ports.
2.3 Power supply via USB interface
78K0/Fx2 – CAN it! is powered by USB interface, no separate power supply is needed. The USB
interface provides the 78K0/Fx2 – CAN it! board with 5V supply voltage.
12
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
3. 78K0/Fx2 – CAN it! baseboard components
The 78K0/Fx2 – CAN it! baseboard is equipped with push buttons, a 12*2 character LC display, LED’s
and with several connectors in order to be connected to host computers, FLASH programmer, LIN and High Speed CAN busses.
Figure 2: 78K0/Fx2 – CAN it! baseboard connectors, switches and LED’s
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.
13
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
3.1 RESET button SW1
SW1 is a reset button. It activates the power on reset. It is connected to the reset input of the 78K0/FF2
CPU module.
3.2 User button SW2
SW2 is a push button connecting V
to port P120 of the 78K0/FF2 device. The port may be programmed to generate interrupt INTP0. The
necessary initialisation for this purpose is described in the user’s manual of the 78K0/FF2 device. The
port is connected to a 4.7K pull down resistor.
3.3 User button SW3
SW3 is a push button connecting V
to port P30 of the 78K0/FF2 device. The port may be programmed to generate interrupt INTP1. The
necessary initialisation for this purpose is described in the user’s manual of the 78K0/FF2 device. The
port is connected to a 4.7K pull down resistor.
3.4 Configuration switch SW4
The different operation modes of the 78K0/Fx2 – CAN it! board can be set by SW4 switches S1-S4.
SW4 Factory settings
S1 OFF Normal operation mode
S2 OFF OCD disabled
S3 OFF UART60 select
S4 OFF LIN bus disabled
to external interrupt input INTP0 of the microcontroller. This is equal
CC
to external interrupt input INTP1 of the microcontroller. This is equal
CC
Operation Mode
3.4.1 Operation mode selection SW4/S1
SW4 switch S1 controls the operation mode of the 78K0/Fx2 – CAN it! board. Setting SW4/S1 to ON
allows to reprogram the internal FLASH memory of the 78K0/FF2 device using the FPL3 FLASH
programming software.
SW4, S1 Operation mode
OFF (default) Normal operation mode
ON FLASH memory programming mode
Table 2: Operation mode selection SW4/S1
Within normal operation mode the user program stored in the FLASH memory of 78K0/FF2 device is
executed.
3.4.2 On-Chip debug mode selection SW4/S2
SW4 switch S2 controls the On-Chip debug function of the 78K0/FF2 device. Setting switch S2 to ON
allows to use the On-Board debug function of the 78K0/Fx2 – CAN it! board or alternative connecting the
QB-78K0MINI On-Chip debug emulator to the 78K0/FF2 CPU module, connector CN7.
SW4, S2
Operation Mode
OFF (default) OCD disabled
ON 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.
14
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
3.4.3 UART selection SW4/S3
SW4 switch S3 specifies the corresponding UART signals of the 78K0/FF2 device connected to the
FT232 interface lines.
SW4, S3
OFF (default) UART60 select
ON UART61 select
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. Setting SW4/S4 to OFF connects the UART signals to the FT232 interface lines.
SW4, S4 Operation mode
OFF (default) UART mode
ON LIN mode
Table 5: UART / LIN selection SW4/S4
78K0/FF2
3.5 LIN plug JP1
JP1 is a 3 pin connector for the LIN bus, connected to the transceiver TJA1020.
JP1 Signal Description
1 BAT Reference voltage for the LIN bus level
2 LIN LIN bus line
3 GND Ground
Table 6: LIN plug JP1
15
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
3.6 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.
For standard communication to a host system, i.e. by using a terminal program, the input/output signals
of UART60 respectively UART61 of the 78K0/FF2 device are connected to CN6. Please configure switch
SW4 accordingly to use this mode.
1
Figure 3: Connector CN6, USB Mini-B Type Host Connector Pin Configuration
USB Connector
CN6
1 VBUS
2 DM
3 DP
4 N.C.
5 GNDBUS
Table 7: Pin Configuration of USB Connector CN6
5
Signal Name
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 78K0/Fx2 – CAN it! board.
16
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
3.7 Connector CN4
CN4 connector (not assembled) allows connecting the PG-FP4 flash programmer to 78K0/Fx2 – CAN it!
board in order to program application programs into the microcontroller internal FLASH memory. Please
note, PG-FP4 is a separate product from NEC and it is not included in this package.
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:
SW4 Setting
S1 OFF
S2 OFF
S3 OFF
S4 OFF
Table 9: SW4 configuration when using PG-FP4
3.8 External Potentiometer R7
A 47K potentiometer R7 is connected between Vcc and ground. The potentiometer arm is connected to
the V0 signal of the LCD module. It controls the operating voltage - contrast adjustment - of the display.
17
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
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. The
display is connected to the 78K0/FF2 device via three control lines and eight data lines.
For more details about the LC display specification, commands and character table, please refer to the
corresponding User’s Manual “WH1202A-NFA-ET.pdf” located in the /doc folder of the 78K0/Fx2 – CAN it!.
3.10 External Potentiometer R14
A 47K potentiometer R14 is connected between Vcc and ground. The potentiometer arm is connected to
port P80 of 78K0/FF2 device. This is equal to the ANI0 analogue input.
3.11 AD converter reference voltage input
A 1.2V reference voltage is supplied to the ANI1 analogue input, equal to port P81 of 78K0/FF2 device.
18
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
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
centigrade, with I
= 1mA. The distribution of the temperature factor kT is shown in the table below:
OP
= 1950 • and R
25 min
= 1990 • at 25 degrees
25 max
1) Normalising point
Table 11: Distribution of temperature factor k
The sensor resistance can be calculated as following:
T
RT = kT * R
25 =
•(TA)
19
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
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 kT- α
T =25 + ° C
T =25 + ° C
2 x β
2 x β
-3
-3
25
25
25
-3
T
T
T
with:
with:
α = 7,88 x 10 x K
α = 7,88 x 10 x K
α = 7,88 x 10 x K
β = 1,937 x 10 x K
β = 1,937 x 10 x K
β = 1,937 x 10 x K
R
R
R
T
=
T
=
T
=
k
k
k
R
R
R
-1
-1
-1
-5-2
-5-2
-5-2
T
- α
3.13 External LED’s D1–D4
LED’s D1 to D4 are connected to port P5 of the 78K0/FF2 device. A low signal output at each port
switches the corresponding LED on.
LED
Port 78K0/FF2
D1 P50
D2 P51
D3 P52
D4 P53
Table 12: LED D1–D4 connection
20
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
4. 78K0/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
21
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
4.1.1 External connector CN3, CN4, CN5, and CN6
CN3, CN4, CN5, and CN6 are connectors for external user hardware.
CN3 Port 78K0/FF2 CN4 Port 78K0/FF2 CN5Port 78K0/FF2 CN6 Port 78K0/FF2
Table 13: CN3, CN4, CN5, and CN6 connection to 78K0/FF2
4.2 High Speed CAN connector CN8
CN8 is a D-SUB 9 connector for High Speed CAN with CiA standard pin assignment. The used
transceiver is the PCA82C250 with bus termination. The transceiver is connected to the CAN interface of
the 78K0/FF2 device, whereby the s
Connector CN7 (not assembled) allows connecting the QB-78K0MINI On-Chip debug emulator to the
78K0/Fx2 – CAN it! board in order to use the On-Chip debug function of the 78K0/FF2 device.
QB-78K0MINI is a separate product from NEC and it is not included in this starterkit package.
To enable On-Chip debugging by using the QB-78K0MINI, please set switch SW4 to the following
configuration:
SW4 Setting
S1 OFF
S2 ON
S3 OFF
S4 OFF
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.
23
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
5. On-Chip debugging
The 78K0/Fx2 – CAN it! board offers two possibilities to use On-Chip debugging (OCD). The On-Board
debug function of 78K0/Fx2 – CAN it! allows On-Chip debugging without a need of external debug
hardware. Within this mode the default USB / UART connection to the Host computer is used as debug
interface. All standard debug functions are available in the On-Board debugging mode like FLASH
programming / downloading, code execution, single stepping, breakpoints, memory manipulation etc.
Additionally 78K0/Fx2 – CAN it! supports the QB-78K0MINI On-Chip debug emulator in order to use OnChip debug function of the 78K0/FF2 device. The system configuration for On-Chip debugging is shown
in figure below.
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:
SW4 Setting
S1 ON
S2 ON
S3 OFF
S4 OFF
Table 17: SW4 configuration for OCD via On-Board debug function
24
78K0/Fx2 – CAN it!
Global Document No. U18414EE1V1UM00 (1st edition)
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:
SW4 Setting
S1 OFF
S2 ON
S3 OFF
S4 OFF
Table 18: SW4 configuration for OCD via QB-78K0MINI
25
Loading...
+ 58 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.