TESSERA TECHNOLOGY 0001 ZigBee RF4CE Module Board User Manual TK RF8058 SB UM E

TESSERA TECHNOLOGY INC. ZigBee RF4CE Module Board TK RF8058 SB UM E

User Manual

Download: TESSERA TECHNOLOGY 0001 ZigBee RF4CE Module Board User Manual TK RF8058 SB UM E
Mirror Download [FCC.gov]TESSERA TECHNOLOGY 0001 ZigBee RF4CE Module Board User Manual TK RF8058 SB UM E
Document ID1266888
Application IDX5UJ/iRqGVCcDRkWkhxG9Q==
Document DescriptionUser Manual
Short Term ConfidentialNo
Permanent ConfidentialNo
SupercedeNo
Document TypeUser Manual
Display FormatAdobe Acrobat PDF - pdf
Filesize136.89kB (1711168 bits)
Date Submitted2010-04-14 00:00:00
Date Available2010-04-15 00:00:00
Creation Date2010-03-23 18:51:15
Producing SoftwareAcrobat Elements 7.0 (Windows)
Document Lastmod2010-03-23 18:51:15
Document TitleMicrosoft Word - TK-RF8058+SB_UM_E.doc
Document CreatorPScript5.dll Version 5.2
Document Author: remote

User’s Manual
TK-RF8058+SB
ZigBeeTM/RF4CETM-ready
Wireless Network Evaluation Board
Date published: March 8, 2010
Rev. 5.0
© TESSERA TECHNOLOGY INC.
Printed in Japan
-1-
Welcome to the world of TK-RF8058+SB.
You are now being navigated to the design environment
of the μPD78F8058 microcontroller for developing
wireless network applications. Please follow the tutorial
step by step.
-2-
[NOTES]
The information in this document is subject to change without notice. No part of
this document may be copied or reproduced in any form or by any means without
the prior written consent of TESSERA TECHNOLOGY INC.
TESSERA TECHNOLOGY INC. assumes no liability for infringement of patents or
copyrights of third parties by or arising from use of a product described herein.
This product is designed and manufactured with intention for use in evaluation
and prototyping by engineers with knowledge of security, safety and reliability.
TESSERA TECHNOLOGY INC. would like to inform, that the standard quality
assurance procedure(s) have not been fully applied to this product and its
documentation and that TESSERA TECHNOLOGY INC. cannot assure the full
and error free function and/or the standard quality level.
[CAUTION]
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.
-3-
[FCC WARNING & NOTICE]
●Changes or modifications not expressly approved by the party responsible for
compliance could void the user’s authority to operate the equipment.
●The intended use of the product is generally not for the general public.
It is generally for industry/commercial use by the professional electric engineer.
To be in compliance with FCC 15.203 requirements, the product must be
installed by professional installers with approved antenna that was included in
the product.
Class B:
This equipment has been tested and found to comply with the limits for a Class B
digital device, pursuant to part 15 of the FCC Rules. These limits are designed to
provide reasonable protection against harmful interference in a residential
installation. This equipment generates, uses and can radiate radio frequency
energy and, if not installed and used in accordance with the instructions, may
cause harmful interference to radio communications. However, there is no
guarantee that interference will not occur in a particular installation. If this
equipment does cause harmful interference to radio or television reception, which
can be determined by turning the equipment off and on, the user is encouraged to
try to correct the interference by one or more of the following measures:
● Reorient or relocate the receiving antenna.
● Increase the separation between the equipment and receiver.
● Connect the equipment into an outlet on a circuit different from that to which the
receiver is connected.
● Consult the dealer or an experienced radio/TV technician for help.
This device complies with Part 15 of the FCC Rules. Operation is subject to the
following two conditions:
●this device may not cause harmful interference, and
●this device must accept any interference received, including interference that
may cause undesired operation.
●The host device shall also comply with the certification labeling requirements of
each of the modules it contains.
●A reference to the enclosed module displaying its FCC ID certification number.
Recommended wording:
Contains FCC ID: X8U0001
-4-
Contents
INTRODUCTION........................................................................................... 8
PREPARATIONS........................................................................................ 10
2.1
Development Tools, Sample Programs, and the MAC Library.................................. 11
2.1.1 Integrated Development Environment PM + V6.31 .......................................................... 11
2.1.2 Device file DF788058 e1.00b ........................................................................................... 11
2.1.3 C Compiler CC78K0R W2.12 : Code size limited version................................................ 11
2.1.4 Assembler RA78K0R W1.33 : Code size limited version ................................................. 11
2.1.5 78K0R integrated debugger ID78K0R-QB V3.60 ............................................................. 11
2.1.6 Built-in Flash Memory Writing Program WriteEZ5............................................................ 11
2.1.7 78K0R Starter Kit Setting.................................................................................................. 11
2.1.8 Starter kit USB driver ........................................................................................................ 12
2.1.9 The RF Test Program ....................................................................................................... 12
2.2
Installation of Software Development Tools............................................................... 13
2.2.1 Start-up of the installation CD-ROM ................................................................................. 13
2.2.2 Installation of the software development tools.................................................................. 13
2.2.3 Uninstall ............................................................................................................................ 20
2.2.4 File Configuration in PC.................................................................................................... 21
2.3
USB Driver .................................................................................................................... 22
2.3.1 Install to Windows XP ....................................................................................................... 23
2.3.2 Install to Windows2000..................................................................................................... 26
2.3.3 Confirmation of the installation ......................................................................................... 30
2.4
Sample Environment .................................................................................................... 31
2.4.1 Installation of the sample programs.................................................................................. 32
2.4.2 File Configuration of the sample program ........................................................................ 34
EXPERIENCES........................................................................................... 35
3.1
Starting PM + ................................................................................................................ 37
3.2
Introduction to PM +..................................................................................................... 38
3.3
Loading Workspace (Project) ...................................................................................... 40
3.4
Configuration of Linker Option.................................................................................... 42
3.4.1 "Output1" Tab ................................................................................................................... 42
3.4.2 "Output2" Tab ................................................................................................................... 44
-5-
3.5
Configuration of Compiler Option............................................................................... 45
3.5.1 "Extend" Tab ..................................................................................................................... 45
3.5.2 "Startup Routine" Tab ....................................................................................................... 46
3.6
Configuration of Debugger setting ............................................................................. 47
3.7
TK board setting ........................................................................................................... 49
3.8
Creating execution format ........................................................................................... 50
3.9
Starting integrated debugger (ID78K0R-QB) .............................................................. 52
3.10
Introduction of the integrated debugger (ID78K0R-QB) ........................................... 57
3.11
Executing a program .................................................................................................... 58
3.12
Stop a program ............................................................................................................. 59
3.13
Terminating integrated debugger (ID78K0R-QB) ....................................................... 60
3.14
The RF Test Program ................................................................................................... 61
3.14.1 Procedure for one to one transmit/receive test .............................................................. 61
3.14.2 PER test / receiver.......................................................................................................... 73
3.14.3 Continuous TX / Pseudo Noise ...................................................................................... 73
3.14.4 Continuous TX / Raw carrier .......................................................................................... 73
3.14.5 RX Mode ......................................................................................................................... 73
3.14.6 IDLE MODE .................................................................................................................... 73
3.14.7 Standby MODE............................................................................................................... 73
3.14.8 Deep Sleep mode ........................................................................................................... 73
3.14.9 Power down mode .......................................................................................................... 73
3.14.10 Set RF channel ............................................................................................................. 74
3.14.11 Manually set UZ2400 register....................................................................................... 74
3.14.12 Resetting RF................................................................................................................. 74
3.15
4.1
Terminating PM +.......................................................................................................... 75
HARDWARE SPECIFICATIONS................................................................ 76
Layout of hardware functions...................................................................................... 77
4.2
Hardware Functions ..................................................................................................... 78
4.2.1 SW4 (Dip Switch).............................................................................................................. 78
4.2.2 SW5 .................................................................................................................................. 78
4.2.3 SW6 .................................................................................................................................. 78
4.2.4 JP1.................................................................................................................................... 78
4.2.5 JP2.................................................................................................................................... 78
-6-
4.2.6 JP3 ..................................................................................................................................... 79
4.2.7 JP4 ..................................................................................................................................... 79
4.2.8 JP5 ..................................................................................................................................... 79
4.2.9 SW1,SW2,SW3...................................................................................................................... 79
4.2.10 SW7................................................................................................................................... 79
4.2.11 LED4 ................................................................................................................................. 80
4.2.12 LED1, LED2, and LED3....................................................................................................... 80
4.2.13 FP1 ................................................................................................................................... 80
4.2.14 J2 and J3 .......................................................................................................................... 80
4.3
Summary of Power Supply Settings ........................................................................... 80
4.4
Solder-short pad........................................................................................................... 81
5.1
TROUBLESHOOTING................................................................................ 82
If you cannot find USB driver when you connect PC to the kit................................. 82
5.2
Error when you start the debugger ............................................................................. 82
5.2.1 "Can not communicate with Emulator..." (F0100 or A0109)............................................. 83
5.2.2 "Incorrect ID Code." (Ff603) ............................................................................................. 83
5.2.3 "The on-chip debug function had been disabled in the device." (F0c79) ......................... 84
5.2.4 "Disabling the on-chip debug function is prohibited." (F0c33).......................................... 84
OTHER INFORMATION ............................................................................. 85
6.1
Create a new workspace .............................................................................................. 86
6.2
Registration of new source files.................................................................................. 91
6.3
Debugger tips ............................................................................................................... 93
6.3.1 Change display of buttons ................................................................................................ 93
6.3.2 Display source list and function list................................................................................... 93
6.3.3 Set/delete breakpoints ...................................................................................................... 94
6.3.4 Display global variables .................................................................................................... 95
6.3.5 Display global variables while programs are running ....................................................... 96
6.3.6 Display local variables ...................................................................................................... 97
6.3.7 Display memory and SFR contents .................................................................................. 97
6.4
Erase of flash memory ................................................................................................. 98
6.5
BOM List, Circuit diagram & Pin Connection ........................................................... 104
MODE SETTING OF THE BOARD........................................................... 110
-7-
1 Introduction
Target Reader
Software development engineers who wish to become
familiar with the development environment of the 78K0R
microcontrollers. It is assumed that the readers have been
familiar with basics of microcontrollers, C and assembler
languages, and the WindowsTM operating system.
Purpose
For readers to become familiar with the design environment
and the application examples of wireless networks.
Overview
This manual consists of the following contents
Chapter 1 Introductions
→Overview of this manual
Chapter 2 Preparations
→Introduction of soft tools, and sample programs and installation
Chapter 3 Experiences
→ Guide to the basic operations of PM + and the integrated
debugger using sample programs.
Chapter 4 Hardware Specifications
→Explain the hardware of TK-RF8058+SB
Chapter 5 Troubleshooting
→Describe how to solve troubles you may face, such as errors when
starting the integrated debugger (ID78K0R-QB)
Chapter 6 Other Information
→Introduce other information, such as how to create a new
workspace (project) on integrated development environment (PM+),
how to register additional source file, and some useful tips of the
integrated debugger.
The circuit diagrams of demonstration kit are included in this
chapter.
Chapter 7 Mode Setting of the Board
→ Explanation of switch setting.
-8-
Trademark
Microsoft and Windows are either registered trademarks or
trademarks of Microsoft Corporation in the United States and/or
other countries.
Adobe and Acrobat are trademarks of Adobe Systems
Incorporated (Adobe System Incorporated).
Other company names and product names that appear in this
document are the registered trademarks or trademarks of their
respective companies.
-9-
2 Preparations
This chapter introduces the development environment and describes how to
install the sample programs. The sample program can be tested on this
hardware platform of the evaluation kit.
- 10 -
2.1
Development Tools, Sample Programs, and the MAC Library
This section outlines the development tools, sample programs and the MAC
library used in this tutorial.
2.1.1 Integrated Development Environment PM + V6.31
This is a project manager, where you work for editing the source code,
compiling it, and initiating the debugger. The project manager works on MS
Windows 2000 or XP.
2.1.2 Device file DF788058 e1.00b
A device file contains an MCU specific information. It instructs the
development tools what kind of an MCU the tools shall work for.
2.1.3 C Compiler CC78K0R W2.12 : Code size limited version
This is a free compiler for the 78K0R microcontrollers. The object code size
is limited to 64 Kbytes. It works on MS Windows 2000 or XP.
2.1.4 Assembler RA78K0R W1.33 : Code size limited version
This is a free assembler for the 78K0R microcontrollers. The object code
size is limited to 64 Kbytes. It works on MS Windows 2000 or XP. The
RA78K0R Assembler Package contains Structured Assembler
Preprocessor, Assembler, Linker, Object Converter, Librarian, and List
Converter.
2.1.5 78K0R integrated debugger ID78K0R-QB V3.60
The Integrated Debugger ID78K0R-QB offers a debug environment on
your PC, where the MS Windows 2000 or XP runs, if the TK board is
connected to the PC with USB. The USB I/F accesses to the OCD, On
Chip Debug, interface on the microcontroller.
2.1.6 Built-in Flash Memory Writing Program WriteEZ5
This is the Windows software to write programs on built-in flash memory.
By connecting TK-RF8058+SB and PC with bundled USB cable, you can
write/delete programs on the built-in flash memory.
2.1.7 78K0R Starter Kit Setting
If you forget about the security ID or if you set “Does not erases data of
flash memory in case of failures in enabling on-chip debugging”, you can
- 11 -
erase the flash memory by using this starter kit.
2.1.8 Starter kit USB driver
This is a software driver for PC to access to the USB interface of the
TK-RF8058+SB board.
2.1.9 The RF Test Program
The RF Test Program is used in [chapter 3 Experiences].
The RF Test Program is provided in the form of the C source codes.
If you wish to tailor the RF Test Program to meet your specific needs, you
can edit the source code, re-compile it with debug build to generate a load
module file, then, start the debugger to load the tailored execution code on
to the microcontroller for further debugging on the project manager PM +.
Alternatively, if debugging is not required, you can make a release build to
achieve a new hex file, on the project manager PM +.
As a general remark, please respect your local regulation of
electro-magnetic emission. In general, it is suggested to use the
TK-RF8058+SB board in a radio anechoic chamber.
- 12 -
2.2
Installation of Software Development Tools
2.2.1 Start-up of the installation CD-ROM
The attached CD-ROM contains Development Tools, documents and sample
soft ware.
You can install it using an installer.
2.2.2 Installation of the software development tools.
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.
<1> Readme First
The contents of the CD-ROM, and some notes are available.
Please read it at first.
<2> Install…
Click “Install” to start installation of development tools.
For details, please refer to the next section.
- 13 -
<3> 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.
<4> 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.
- 14 -
①
Select products that you need to install.
(as default, all the products that you need to use the demostration kit
are selected.)
"Explain" area displays an explanation of the selected product.
To change the installation destination, click Browse… .
When all the settings are completed, click
Install…
* In this document, it is assumed that users install the programs under "NEC
Electronics Tools" directory (default installation directory). Users can find the
tools by selecting “Start Menu” -> "Programs" -> "NEC Electronics Tools".
- 15 -
②
Click
OK
when "Install" comfirmation dialog box is opened.
③
Read "software license agreement" and click Yes
installation.To stop the installation, click No .
- 16 -
for continuing the
④
Enter the product ID, and click Next .
* The product ID is available on the “README.html” the other sheet.
⑤
It starts copying the files.
- 17 -
⑥
When the installation is completed, the following dialog opens.
Click OK .
⑦
"NEC Electronics Starter Kit Virtual UART" USB driver must be installed on
PC before you connect to TK-RF8058+SB . Install the USB driver by
referring "2.3USB Driver".
- 18 -
Notes on the installation authority
To install this tool in Windows 2000 or XP, the authority of a 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 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.
- 19 -
2.2.3 Uninstall
<1>
Start "Add /Remove Programs" in the Control Panel.
(Example here is based on Windows2000)
<2>
Select the tool that you want to uninstall from the list displayed in
"Install/Uninstall" and click [Add/Remove...].
<3> A dialog box for confirming deletion of files will be displayed.
Yes . Deleting of the files will be started.
<4>
When the completion message is displayed, click
OK
Caution:
Deletion of some files may be asked during uninstallation.
deletion of these files causes no problem.
<5>
This completes uninstalling this tool.
- 20 -
Click
Normally,
2.2.4 File Configuration in PC
Software Development Tools are installed in "C:¥Program Files¥NEC Electronics
Tools" on default setting.
When you use the tools, please open the tools from [Start menu] ->
[Programs]->[NEC Electronics Tools].
- 21 -
2.3
USB Driver
You need to install “NEC Electronics Starter Kit Virtual UART” in your PC.
When TK-RF8058+SB is used, it is necessary to install the “NEC Electronics Starter Kit
Virtual UART” driver in the host machine. Please install the driver according to the following
procedures with appending CD in the drive.
"Starter Kit USB Driver" must be installed on the PC. If not, please refer to "2.2 Installation of
Software Development Tools" to install the “Starter Kit USB Driver” first.
Attention
Do not use a USB hub for connecting TK-RF8058+SB .
Depending on the version of Windows OS, the installation will be differed.
Please check your Windows version, and follow the instructions
- Windows XP
-> "2.3.1Install to Windows XP"
- Windows 2000
-> "2.3.2Install to Windows2000"
After the installation, go to "2.3.3Confirmation of the installation"
- 22 -
2.3.1 Install to Windows XP
1.
Once the TK-RF8058+SB is connected with USB, the "Found New Hardware Wizard"
will be started. Select "No, not this time" and click Next > .
Select "No, not this time"
Click "Next"
2.
Select "Install from a list or specific location" and click
Next >
Select "Install from a list or specific
location"
Click "Next"
- 23 -
3.
Select "Search for the best driver in these locations.” , check "Include this location in
the search:", and then click "Browse..." to select the driver directory path. The path
should be "C:¥Program Files¥NEC Electronics Tools¥TK-driver" as default installation.
If the installation directory is not default, then select "TK-driver" under the installation
directory.
Click Next > .
Select the driver directory
Click "Next"
4.
If the following dialog is opened, click
Continue Anyway
Click "Continue Anyway"
- 24 -
5.
The installation of "NEC Electronics Starter Kit Virtual UART" driver is completed.
Click Finish .
Click "Finish"
6.
Go to "1.3.3 Completion of the installation".
- 25 -
2.3.2 Install to Windows2000
1. Once the TK-RF8058+SB is connected with USB, the "Found New Hardware Wizard" will
be started.
Select "No, not this time" and click Next > .
Click
- 26 -
2. Select "Search for a suitable driver for my device".
Click Next > .
Select "Search for a suitable driver for my
device"
Click "Next"
3. Select "Specify a location".
Click Next > .
Select "Specify a location"
Click "Next"
- 27 -
4. Select the driver directory path. The path should be "C:¥Program Files¥NEC
Electronics Tools¥TK-driver" as default installation.
If the installation directory is not default, then select "TK-driver" under the installation
directory.
Click OK .
Click "OK"
Select the driver directory
5.
Click
Next >
Click "Next"
- 28 -
6.
The installation of "NEC Electronics Starter Kit Virtual UART" driver is completed.
Click Finish .
Click
7.
Go to "1.3.3 Confirmation of the installation".
- 29 -
2.3.3 Confirmation of the installation
Please confirm “NEC Electronics Starter Kit Virtual UART(COMx)” in the device
manager of system in the control panel of the MS Windows.
Device Manager
It is confirmed that “NEC
Electronics Starter Kit Virtual
UART(COMx)” exists.
The screen above shows that the COM port number is "COM8". If ID78K0R-QB is
not in use, you can use this port number for connecting TK-RF8058+SB.
When you change the USB port connection, the COM port number will be
changed as well.
Select this COM port number when you use WriteEZ5.
CAUTION
・Do not do “Hardware Modification Scan” when you communicate with the target device.
- 30 -
2.4
Sample Environment
This section explains the overview and preparation of sample programs.
You need to install the sample programs on your system first before using them.
How to install the sample programs and where they should be intalled on your
system will be explained.
- 31 -
2.4.1 Installation of the sample programs
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.)
Press the Sample Program button to start the WWW browser, and then click the
[TK-RF8058+SB Sample Programs] link.
The WWW browser
starts up.
Click the [TK-RF8058+SB Sample
programs] link you can also
download the [User's Manual]
When[TK-RF8058+SB Sample Programs] is clicked, the following download
confimation window appears.
- 32 -
Click the
Save
butten.
After specifying the download destination folder,click the
Save
button.
The self-extraction sample program (TK78K0R.exe) is copied to the specified
folder.
The folder that the “TK78K0R” folder is made when this file is executed, and the
sample program is stored under the” TK78K0R” folder.
- 33 -
2.4.2 File Configuration of the sample program
The sample programs ware the following folders.
TK78K0R
SAMPLE_RF8058+SB
TKRF8058SB_RF_Test
The sample program used in chapter 3.
The packet error rate and received signal
- 34 -
3 Experiences
Now you are ready to experience the operation of the TK-RF8058+SB using the
integrated development environment, PM +.
As a program for the TK-RF8058+SB, the RF test program (RF_Test) which you
installed in "2.4.1Installation of the sample programs" is used.
Later in this chapter, you will learn how to generate an executable file, how to
download it to the Flash, and how to execute the program.
You can understand the basic operation of the development tools (PM+,
ID78K0R-QB) and the basics of the project files that you need when you develop
application programs.
- 35 -
The overall flow is as follows.
Starting PM +
Loading workspace (project)
Reviewing Linker, Compiler option, Debug setting
TK board setting
Creating execution format
Operation
Starting integrated debugger (ID78K0R-QB)
Executing program
Stopping program
Terminating integrated debugger (ID78K0R-QB)
Terminating PM +
- 36 -
3.1 Starting PM +
In the Windows Start menu, select [Programs]->[NEC Electronics Tools]->[PM +
V6.31]
PM + start up
- 37 -
3.2 Introduction to PM +
In PM +, 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
Project window
Project window
Tool bar
Output 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.
For details regarding menu bars and tool bars, refer to the PM + User’s Manual.
- 38 -
What is a project?
A project is the unit in which PM + executes management, and refers to an application system
and environment development based on PM +.
PM + complies project information and saves it in a “project file”, from which it is then referenced.
What is a project file?
A project file is a file to which information such as the source file to be used in the project, the
device name, the tool options for complying, and the editor and debugger to be used have been
saved as “project information”.
The file name format is “ΔΔΔΔprj”.
Project files are created in folders that are set when creating new workspaces.
What is a project group?
A project group is a group comprised of a number of projects in an application system.
The target devices of each project that can be registered to one project group must be the
same.
What is a workspace?
A workspace is the unit used to manage all the projects or project group required for one
application system.
The file name of multiple project files is saved to a workspace file for referencing.
The file name format is “ΔΔΔΔprw”.
- 39 -
3.3 Loading Workspace (Project)
In this section, you will use the workspace that you created in "2.4Sample Environment"
For creating a new workspace, refer to "6.1Create a new workspace".
The workspace has information about the build environment for the sample programs.
Select "File" on menu bar and "Open Workspace…".
Then, select “C:¥TK78K0R¥SAMPLE_RF8058+SB¥TKRF8058SB_RF_Test¥RF_Test.prw” .
- 40 -
Open the folder in which the
sample program is located.
“RF_Test.prw”and then press the
Open
button.
Workspace file name :RF_Test.prw
The “RF_Test.prw” workspace
file is read
Project group
Project
- 41 -
3.4 Configuration of Linker Option
The linker 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 three settings are covered specifically.
- Outputs from debugging
- On-chip debug (bytes, security ID)
- Watchdog timer
Select "Tools" on menu bar, then "Linker options".
3.4.1 "Output1" Tab
Select "Output1" tab on "Linker Options" window, and see following settings.
- 42 -
- Load Module File settings
Check "Output Symbol Information".
This enables to do source level debugging (setting break points, monitoring variables in
watch window, etc).
Also, you can specify the load module file name.
- On-Chip Debug Option Byte
Check "On-Chip Debug Option Byte". Enter "85" in "Control value". This setting enables
the on-chip debugging function of the microcontroller.
*For details of "Control value", refer to the user's manual of 78K0R/KG3 (U17894E).
See "Start address" is set to "1FC00", and "Size" is set to "1024".
These settings reserve the memory address area for the monitor program (the flash
memory area that the debugger uses for on-chip debugging).
In this case, the "Control value" is allocated to the address of C3H in flash memory, and
FFH is set to the next address. Because of this, the following areas could not be set the
segments.
- 2H, 3H - CEH-D7H - From the address set in "Start address" to the byte set in "Size" - Security ID Check "Security ID", and enter the security ID which is a unique ID code (10 bytes) to authenticate when the debugger is launched. The security ID is stored in the flash memory (C4H-CDH), and checked if it is the same as the code entered in Linker options dialog when the debugger is launched. The debugger will not be launched when the security ID is unmatched. By using this function, you can secure the programs from leaks. If you do not need to set the security, it is recommended to set the security ID "FFFFFFFFFFFFFFFFFFFF" as this is the initial code. If you forget about the security ID (stored in the address of C4H-CDH) or if you set wrong on-chip debug option byte, you will not be able to use the debugger (ID78K0R-QB). In this case, you need to use "WriteEZ5" to erase the built-in flash memory. By erasing the flash memory, the security ID is set to "FFFFFFFFFFFFFFFFFFFF". For details, refer to "6.4Erase of flash memory". - 43 - 3.4.2 "Output2" Tab Select "Output2" tab on "Linker Options" window, and see following settings. - User Option Byte Check "User Option Byte", and then enter "EFFBFF". Here, you can do the setting of watchdog timer, low-voltage detector, and system reserved memory area. The 3 bytes you entered are stored at C0H-C2H on flash memory: - C0H: setting for watchdog timer - C1H: setting for low-voltage detector - C2H: setting for system reserved memory area (must be set as FFH) This time, you disabled the watchdog timer and the default start function of low-voltage detector. For details, refer to the user's manual for uPD78F8058. - 44 - 3.5 Configuration of Compiler Option 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. - Enable C++ comments - Use multiplier and divider Select "Tools" on menu bar, then "Compiler options". 3.5.1 "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. - 45 - 3.5.2 "Startup Routine" Tab Select "Startup Routine" tab, and check "Using Library" and "Using Multiplier/Divider". The Microcontroller has feature of multiplier/divider to increase those calculation speed. - 46 - 3.6 Configuration of Debugger setting Please Choose [Tool] -> [Debugger Setting] at the pull-down menu. - 47 - Check if "ID78K0R-QB V3.60 78K0R Integrated Debugger" is selected on "Debugger". - 48 - 3.7 TK board setting Please set the switches on the TK-RF8058+SB board as follows. ON ON ON SW4 setting ON ON ON OFF OFF JP5:Any JP3: 1-2short(USB) SW5:3.0V SW6: 「Debug/Writer」 JP2: JP1:short JP4:short 1-2short(Regulator) After the switch settings are completed, connect the PC to USB1 on TK-RF8058+SB with USB cable.If the "Found New Hardware Wizard" is started, install USB driver with referring "2.3USB Driver". - 49 - 3.8 Creating execution format Please go back to PM +. Please re-compile the project by clicking the button at the menu bar. Build process is executed Build has been completed successfully. - 50 - What is build ? Build is a function that creates an executable file, etc., from a source file registered to a project. PM + automatically performs compiling, linking, and other processing actions. On the second and subsequent build, PM + also automatically delects files that have been updated from the previous build processing, and complies and assembles only the relevant files, thereby reading the time required for build processing. What is rebuild ? Build compiles and assembles only the source files that have been updated since the previous time, whereas rebuild compiles and assembles all the source files. When setting, such as compiler options, have been changed, not build, but rebuild, must be Selected. - 51 - 3.9 Starting integrated debugger (ID78K0R-QB) Please select the Debug button →[Debug(D)]. ,of PM +, or in the menu, select [Build(B)] If the debug button is not displayed, in the menu, select [Tool]→[Debugger Setting...]“ID78K0R-QB V3.60 78K0R Integrated Debugger” ID78K0R-QB is launched - 52 - Then, you will see the Configuration dialog. Please choose “Tool0+Tool1” in the "Target Device Connection", and choose "4.00MHz" in the "Main Clock", then, please input 20 Fs, 0xFFFFFFFFFFFFFFFFFFFF, in the ID Code. Then, please click “OK”. Click Yes when the confirmation dialog for downloading load module file is opened. - 53 - ID78K0R-QB starts and downloading the program to flash memory. When the download is completed, the source code will be displayed NOTE: Completion of the download does not mean running the programs. To run the sample programs, go to "3.11 Executing program". - 54 - Normally, if communication with the CPU fails, the following error messages are output. If you observe the message please confirm the following items. 1. Please confirm the switch on the board is set as follows. SW4 Bit1 Bit2 Bit3 Bit4 Bit5 ON Bit6 ON Bit7 OFF Bit8 OFF ALL ON SW6 SW5 JP3 JP5 JP2 JP1 JP4 「Debug/Writer」 3.0V 1-2short(USB) Any 1-2 short (Regulator) Short Short 2. Please confirm the power LED4 is lighted. After checking the above items, start ID78K0R-QB again. - 55 - If the ID code is wrong, you may find the following messages on the display. The following "Configuration" screen is displayed when OK is pushed and input a correct ID code, please. The default setting of the ID code is ”0xFFFFFFFFFFFFFFFFFFFF”. You can set an alternative ID code on the linker option tab. If the setting of On-Chip Debug Option Byte is "Does not erase data of flash memory in case of failures in enabling on-chip debugging" and if you forget the security ID, you need to erase the flash memory completely. To erase the flash memory, please refer to the section 6.4, “Erasing the Flash Memory”. - 56 - 3.10 Introduction of the integrated debugger (ID78K0R-QB) ID78K0R-QB displays the internal status of the CPU and controls monitor functions in the main window. The initial screen of ID78K0R-QB is as follows. < Main window> Menu bar Tool bar Window display area Status bar For more details, please refer to the user’s manuals of ID78K0R-QB. - 57 - 3.11 Executing a program If you click “GO” , the execution of the code will start. You can know it by the red bar at the bottom. Execute the program While a program is running, the status bar will be red. - 58 - 3.12 Stop a program Now, you are going to stop the program. Press the ID78K0R-QB’s stop button , or in the menu, select [Run]→[Stop]. Stop the program When the program stops, the status bar changes back to the original color. - 59 - 3.13 Terminating integrated debugger (ID78K0R-QB) Select "File" on menu bar, then "Exit". The Exit confirmation dialog box is displayed. If you push the “Yes”, ID78K0R-QB is terminated after preserving a present environment. If you push the “No”, ID78K0R-QB is terminated without preserving a present environment. - 60 - 3.14 The RF Test Program 3.14.1 Procedure for one to one transmit/receive test Assumption here in this section is, you have two TK-RF8058+SB boards, in one of which the execution code for the “RF_TEST” was programmed by the debugger. You also prepare two PCs or one PC with more than one usb interface. We will use the board you have downloaded the executable program with the short address 0x0001 as a transmitter. We now learn how to prepare an executable program for receiver side, which may be assigned a short address of 0x0002. Transmitter Receiver Short address : 0001 Short address : 0002 Settings for a receiver 1). Please start-up the PM+ from the “C:/TK78K0R/SAMPLE_RF8058+SB/TKRF8058SB_RF_Test/RF_Test.prw” 2). Please choose [Tool(T)] → [Compiler Options] Æ [Preprocessor] - 61 - 3). Please alter the Macro Definition from “CPU78K0R,MAC_ADDR=0x0001” to “CPU78K0R,MAC_ADDR=0x0002”. 4). Now, you set the short address of the receiver at 0x0002. 5). Please set the switches on the receiver as follows, SW4 6). 7). 8). 9). Bit1 Bit2 Bit3 Bit4 Bit5 ON Bit6 ON Bit7 OFF Bit8 OFF ALL ON SW6 SW5 JP3 JP5 JP2 JP1 JP4 Debug/Writer 3.0V 1-2short (USB) Any 1-2 short (Regulator) Short Short button, or select [Biild(B)]→[rebuild(R)]. Then, please rebuild it by pushing the You will follow the instructions in the chapter 3.9. If you complete the download of the load module file, please close the debugger. Then, please remove the USB cable. - 62 - 10). Then, the board setting is configured as follows as a receiver. SW4 Bit1 Bit2 Bit3 Bit4 Bit5 ON Bit6 ON Bit7 OFF Bit8 OFF ALL OFF SW6 SW5 JP3 JP5 JP2 JP1 JP4 「K0R-K0USB」 3.0V 1-2 Short(USB) Any 1-2 Short (Regulator) Short Short 11). Connect the board with a PC by a USB cable, then you will find the Power LED lit on the board. - 63 - 12).Then, we need a hyperterminal on the PC. 13). On MS-Windows in your PC, please select [All Programs] -> [Accessory] -> [Communication] -> [HyperTerminal] 14).You may assign your favorite name on a connection. Then, click OK. 15).You need to learn the COM port number you connected the USB cable. If you don’t know the com port number, please find it at [Control Panel] Æ [System] Æ [Hardware] Æ [Device Manager] Æ [Port (COM and LPT)]. - 64 - Bits per second Data bits Parity Stop bits Flow control 115200 None None (Property -> Setting -> ASCII) Local Echo OFF No Line Feed 16).Please set the COM port at 115200 bps, 8 data bits, no parity, 1 stop bit, and no flow control. Then, please click “OK”. 17).Then, please reset the receiver board by pressing the SW7. 18).Now you will find the following opening menu in the window. - 65 - 19).Please select “2” from the MENU to start the board as a receiver. Command? >2 (PER test/reciever) [My Profile] ------------------------------------MAC : 22:95:00:02:00:00:00:47 Short : 0002 PanID : 2514 ------------------------------------[Set channel to 11 (Cmd)] 20).If you see the display as shown above, the receiver set-up has been completed. - 66 - Settings for a transmitter 1). Please configure the board of a transmitter as follows, SW4 Bit1 Bit2 Bit3 Bit4 Bit5 ON Bit6 ON Bit7 OFF Bit8 OFF ALL OFF SW6 SW5 JP3 JP5 JP2 JP1 JP4 「K0R-K0USB」 3.0V 1-2 short(USB) Any 1-2 short(Regulator) Short Short 2). Please connect the transmitter board to a PC. Please confirm the LED lit on the board. 3). Please start-up a hyperterminal for a transmitter. 4). Please reset the transmitter board by pressing the SW7. 5). Now you will find the following opening menu in the window. - 67 - 6). Please select the command “1” to start the Packet Error Rate test. Command? >1 (PER test/sender) [My Profile] ------------------------------------MAC : 22:95:00:01:00:00:00:47 Short : 0001 PanID : 2514 ------------------------------------Send to (Short addr) ? : 7). If you see “Send to (Short addr) ? :”, please input the receiver address of 0002. 8). Then, you will be asked how many packets you wish to consume in the PER test. 9). You may input “1000”. 10).Then, you will be asked the interval of packets in msec. 11).You may input 3 msec. 12).Then, the PER test will be executed. 13). You will see, Sent: The number of packets sent. Received: The number of the received packets. PER: The calculated PER in %. RSSI: The maximum and minimum RSSI values in the PER test [Note] PER= Packet Error Rate RSSI= Received Signal Strength Indication ------------------------------------Send to (Short addr) ? : 2 Send count (dec) ? : 1000 Interval (dec/msec) ? : 3 [Set channel to 11 (Cmd)] Prepare to send..OK [Set channel to 11 (Current)] Request to result..OK [Results] ------------------------------------From : 0001 To : 0002 ------------------------------------Sent : 1000 Recieved : 1000 PER 0.0000% RSSI : max FF / min D0 ------------------------------------Press any key to the menu - 68 - 21).Channel setting In the previous example, you may have also found the RF channel used in this test is the Channel 11. The channel is specified by the IEEE 802.15.4 specification. The channel 11 is assigned at 2405 MHz. You can change the channel in the PER test in 5MHz step to the maximum channel of 26th at 2480 MHz. To do it, please press “A” in the command prompt. Then, please choose the channel by [+], [-], [A], [B], or [C]. In the example below, the channel 23th, 2465 MHz, was selected. - 69 - To execute the PER test at the channel 23, press [Enter] in your keyboard, then, choose “1” to initiate the PER test mode. Then, you may input 1000 packet in 5 msec interval to see the following example. Please confirm the channel used is 23th in the display. Please note the receiver will learn which channel is to be used for the test automatically. [My Profile] ------------------------------------MAC : 22:95:78:01:00:00:00:47 Short : 0001 PanID : 2514 ------------------------------------Send to (Short addr) ? : 02 Send count (dec) ? : 1000 Interval (dec/msec) ? : 5 [Set channel to 11 (Cmd)] Prepare to send..OK [Set channel to 23 (Current)] Send.. Request to result..OK [Results] ------------------------------------From : 0001 To : 0002 ------------------------------------Sent : 1000 Recieved : 1000 PER 0.0000% RSSI : max FF / min FF ------------------------------------- - 70 - 22).Adjusting the output power You may wish to control the output power in the PER test. For it, please select “M” in the menu. You will be asked the register ID. Please input “203”. Then you will see, “LREG[203] : 00 >1F”. It means the current value at the register [203] is 0x00, which means 0 dB. 0x00 is the reset default. The register bits are defined as follows, LREG[203]: [7:3] -> small scale tuning 000000: 0 dB 000001: -0.1dB 111111: -8.30 dB For instance, if you wish -8 dB, please input “1F”, as follows, “LREG[203] : 00 > 1F” Then, you will start the PER test. - 71 - You may find larger PER value with smaller RSSI value in this case. Please note this adjustment is applied only to the transmitter. The receiver always sends back the test results with the 0 dB output power using the channel 11th. - 72 - 3.14.2 PER test / receiver The Menu 2 sets the board to the receiver in the PER test. If you have two PCs, you can connect two boards to each of two PCs, then, you will apply this mode to one of them. 3.14.3 Continuous TX / Pseudo Noise The Menu 3 initiates the modulated RF transmission. The data carried are pseudo random numbers. You can define the channel using the menu 9, and the output power using the menu 0. 3.14.4 Continuous TX / Raw carrier The Menu 4 initiates the carrier transmission. The output power is not 0 dB as a reset default. You can define the channel using the menu 9. 3.14.5 RX Mode The Menu 5 initiates the receiver mode. 3.14.6 IDLE MODE The Menu 6 sets the UZ2400 into the IDLE mode. 3.14.7 Standby MODE The Menu 8 sets the UZ2400 into the Standby mode. 3.14.8 Deep Sleep mode The Menu 9 sets the UZ2400 into the Deep Sleep mode. 3.14.9 Power down mode The Menu 0 sets the UZ2400 into the Power down mode. - 73 - 3.14.10 Set RF channel The Menu A allows you to set the RF channel. 3.14.11 Manually set UZ2400 register The Menu M allows you to set the UZ2400 registers. Please refer to the datasheet for the definition of registers. 3.14.12 Resetting RF The Menu R allows you to reset the UZ2400 registers. - 74 - 3.15 Terminating PM + In the PM + menu, select [File]→[Save Workspace]. Then, select [File]→[Close Workspace]. In the PM + menu, select [File]→[Exit PM +]. PM + ends. - 75 - 4 Hardware Specifications In this chapter, the hardware of TK-RF8058+SB will be explained. Microcontroller Clock Interface Power supply voltage Input/output for operation check use Other hardware μPD78F8058 CPU main system clock: 20/8/1MHz (Internal oscillator) 16/8/4/2/1MHz (Generated from the 32MHz main clock) CPU subsystem clock:32.768KHz USB connector(MiniB) Extension connector(CN1: not mounted) External Power Supply Terminals (J2,J3) MINICUBE2 connector(FP1) USB Power: 5.0V One AA battery: 1.5V Two AA batteries: 3.0V External Power Supply at J2 and J3: 1.8V - 3.6V ・LED x3 : Only LED1 is connected to the MB-RF8058 module. ・Push switch x3: Only SW1 is connected ・Dip switch (SW4) ・Reset switch (SW7) ・Temperature sensor (U1: not used) ・Illminance sensor (Q1: not used) ・7LED x3 ・Power LED(LED4) ・Voltage regulation selection by SW5 to 3.0V, 2.0V, or 1.8V - 76 - 4.1 Layout of hardware functions JP3 J2 JP5 SW4 SW7 CN1 JP2 J3 USB1 SW1, 2, 3 JP4 SW5 SW6 JP2JP1 - 77 - JP4 FP1 LED1, 2, 3 4.2 Hardware Functions 4.2.1 SW4 (Dip Switch) Mode setting 1 bit 2 bit ALL ON → USB TK debugger 3 bit ALL OFF → PC HyperTerminal mode 4 bit 5 bit Pull-up for RESET terminal(ON)/ no pull-up (OFF) 6 bit Power LED ON/OFF 7 bit Not used (TP2) 8 bit Not used (TP3) 4.2.2 SW5 Selection of the regulator 1.8V 1.8V output to the module 2.0V 2.0V output to the module 3.0V 3.0V output to the module Caution) Never alter the SW5 settings while a power source is being applied. The regulator chip may be destroyed. Alter the SW5 settings after the SW3 jumper pin is removed. 4.2.3 SW6 Serial Communication Mode Setting K0R-K0USB UART- USB for HyperTerminal Debug/Writer For ID78K0R-QB or WriteEZ5 4.2.4 JP1 Power supply to peripheral circuits such as LEDs and the temp sensor. 4.2.5 JP2 Selection of a power source 1-2 short-circuit Regulation output of 1.8V, 2.0V, or 3.0V 2-3 short-circuit No regulation from two batteries or the external power source - 78 - 4.2.6 JP3 Selection of a power source to the regulator 1-2 USB 2-3 Battery 4.2.7 JP4 A jumper to measure a consumed current on the module. If you don’t execute measurement, please keep short-circuited. If you measure a consumed current to the module, please use external power supply or two batteries for precision measurement. 4.2.8 JP5 A selection of one battery or two batteries. 1-2 One battery 2-3 Two batteries 4.2.9 SW1,SW2,SW3 SW3 and SW4 are tact switches. The port inputs are short-circuited to ground, while they are being pushed, and kept open otherwise. Therefore please set the on-chip pull-up registors(PU1) during initializing routine of your program code. (For more detail, please refer to the User’s manual of the μPD 78F8058CPU.) Connected MCU pin Note SW1 P15/RTCDIV/RTCCL/GPIO2 GPIO2 belongs to the RF part SW2 Not connected SW3 Not Connected 4.2.10 SW7 SW7 is the reset switch. CPU can be reset by pushing. - 79 - 4.2.11 LED4 LED4 indicates if power is being applied to the board, if SW4-5 is on. If you want to save power by turning the LED4 off, please set SW4-5 to off. 4.2.12 LED1, LED2, and LED3 LED1, LED2, and LED3 are available for applications. To make an LED on, please set the output port LOW. Connection of LED1, LED2, and LED3 Connected MCU pin Note LED1 P16/TI01/TO01/INTP5/GPIO3 GPIO2 belongs to the RF part LED2 Not connected LED3 Not connected 4.2.13 FP1 The connector for MINICUBE2. Please set the side switches of MINICUBE2 to “M1” and “T”. 4.2.14 J2 and J3 J2 and J3 is a pair of terminals to input power supply from an external power source. The accepted range of power source is from 1.8V to 3.6V. 4.3 Summary of Power Supply Settings Summary of power supply settings USB Power An external source At J2 and J3 Two batteries One battery JP3 1-2 connected (USB) Any 1-2 connected (USB) 2-3 connected (Battery) JP5 Any 1-2 connected (1Cell) 2-3 connected (2Cells) 1-2 connected (1Cell) JP2 1-2 connected (Regulator) 2-3 connected (Battery or External) - 80 - 1-2connected (Regulator) 4.4 Solder-short pad The solder-short pad offers a way to modify the circuit on the module. The solder-short pad looks like the picture below. To open it, please cut the narrow part by a knife. To connect them back, please form a solder bridge on the pad. Solder-short pad (Open) Solder-short pad name Solder-short pad (Short) Factory default Connection Connection between P16/TI01/TO01/INTP5/GPIO3 and LED1 S_LED1 Short S_LED2 Short S_LED3 Short S_SW1 Short S_SW2 Short S_SW3 Short AD1 Short AD2 Short SCK Open Not used SI Open Not used SO Open Not used Connection to LED2 No connection to the MB-RF8058 board. Connection to LED3 No connection to the MB-RF8058 board Connection from SW1 Connection from SW2 No connection to the MB-RF8058 board Connection from SW3 No connection to the MB-RF8058 board Analogue output from the temperature sensor No connection to the MB-RF8058 board Analogue output from the illumination sensor No connection to the MB-RF8058 board - 81 - 5 Troubleshooting 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 Check if you installed "Starter Kit USB Driver" in "1.2 Installation of Development Tools". If not, install the driver. Check Point 3 Check if the settings of the switch on the kit are correct with referring to "1.3 Installation of USB Driver". Check Point 4 If above 3 check points are confirmed, disconnect the USB cable from PC and re-connect again. It should show the "Found New Hardware Wizard" wizard. Operate the installation with referring to "1.3 Installation of USB Driver". After the installation, make sure you go through "1.3.3 Completion of USB Driver Installation" to confirm the USB driver installation. 5.2 Error when you 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 processes for each error are as follows. - 82 - 5.2.1 "Can not communicate with Emulator..." (F0100 or A0109) 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 the switch on the kit are correct with referring "1.3 Installation of USB Driver". Check Point 3 Confirm the USB driver installation with referring to "1.3.3 Completion of USB Driver Installation". 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 "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 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 "3.4Configuration of Linker Option". Also remember the code you set for the security ID. After this, erase the flash memory with referring to "6.4Erase of flash memory". - 83 - 5.2.3 "The on-chip debug function had been disabled in the device." (F0c79) This error occurs when the value at address C3H (On-chip debug option byte) in microcontroller built-in flash memory is incorrect. You need to erase the flash memory. Check Point 1 Check if you actually set the correct on-chip debug option byte with referring to "3.4Configuration of Linker Option". If it is not correct, then set correctly. Check Point 2 Erase the flash memory with referring to "6.4Erase of flash memory". 5.2.4 "Disabling the on-chip debug function is prohibited." (F0c33) Basically, this error occurs when you start (download) the debugger without doing the settings described at "3.4Configuration of Linker Option". Do the same checking processes as"4.2.3 The on-chip debug function had been disabled in the device. (F0c79)". - 84 - 6 Other Information This chapter explains some useful operation techniques of development tools and circuit diagram of the kit for developing of user programs. 7.1 Create a new workspace (project) 7.2 Register additional source file 7.3 Debugger tips 7.4 Erase microcontroller built-in flash memory 7.5 Circuit diagram - 85 - 6.1 Create a new workspace Now, create a new workspace and project. PM+ allows you to create a new workspace with following "New WorkSpace" dialog. Select "File" on PM+ menu bar, then "New Workspace...". "New WorkSpace" dialog opens Workspace File Name: -> Specify the name of the workspace file that manages the project files. .prw is automatically suffixed as the file type. A project file (.prj) of the same name is simultaneously created. Folder: -> Specify the folder for saving the workspace file by writing its absolute path. This item can be selected from a reference dialog box by pressing the Browse… button. Project Group Name: -> Specify this item if wishing to manage multiple projects together in function units. If nothing is specified, this item is the same as the workspace file name. Microcontroller Name: -> Specify the name of the microcontroller to be used. Device Name: -> Specify the name of the device to be used. The concrete information set here is described on the following pages - 86 - Input the workspace information setting as follows. Workspace file name → test Folder → C:¥TK78K0R Project Group Name → (no input) Microcontroller Name → 78K0R Device Name → uPD78F8058 Click Click Yes Next > button button Click - 87 - Detail Setting button Set the version of tools as follows. CC78K0R:W2.12 RA78K0R:W1.33 ID78K0R-QB:V3.60 Select tools as above screenshot, then click Click Next > - 88 - OK Click Next > Select ID78K0R-QB V3.60 Click Next > Check the project information settings Click - 89 - Finish Project “test" was registered. This completes workspace and project creation. Additional source files can be registered at any time thereafter. For details, refer to "7.2 Register additional source file". Also, you need to do the settings for on-chip debug. Please refer to "3.4 Set Linker Options", "3.5 Set Compiler Options", and "3.7 Check Debugger Settings". - 90 - 6.2 Registration of new source files Now, we learn how to register new source files. The following example shows how to register two additional source files of “b.c” and “c.c” with source file “a.c” already registered. Place the cursor on a source file in the Project window of PM+, and select [Add Source Files…] displayed in the right-click menu. Select source files "b.c" and "c.c", then click Open Multiple source files can be selected by clicking them while keep pressing - 91 - Ctrl key. Source files "b.c" and "c.c" are added to the project. - 92 - 6.3 Debugger tips This section describes some useful techniques for the debugger (ID78K0R-QB). 6.3.1 Change display of buttons Execution controls (run, stop, step-in debugging, reset, etc) and opening functional window can be made by below buttons. However, it could be difficult to know which button does what. In this case, select "Options" on menu bar, then "Debugger Options". Check "Pictures and Text" on setting area. With this setting, the buttons display the text as well, so that it is easier to know what they are. 6.3.2 Display source list and function list When you wish to see source file list or function list, select "Browse" on menu bar, then "Other" -> "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. When you click "game1"... Source window shows "game1" - 93 - 6.3.3 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". Click Breakpoint was set - 94 - 6.3.4 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. ①Right-click the variable on source window, then select "Add Watch..." ②Add Watch dialog opens. Click OK ③Adding a variable to watch window is completed. - 95 - 6.3.5 Display global variables while programs are running RAM, general-purpose register, and SFR can be referred by the pseudo real-time monitor function even when the programs are running. Select "Option" on menu bar, then "Extended Option...". Configure the settings for "RAM Monitor And DMM". Check Specify the sampling interval time of the pseudo real-time monitor function. The sampling time can be specified from 0 to 65500 with unit of 100ms. It will not monitor if it is set to "0" or blank. This completes the settings. Note: ・ The user program momentarily breaks upon a read. ・ Do not use the pseudo real-time monitor function while using the memory window. It uses the system resources significantly as it monitors the displaying memory as well. ・ It is recommended to close the memory window when you use the pseudo real-time monitor function. - 96 - 6.3.6 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 variables cannot be displayed when programs are running. 6.3.7 Display memory and SFR contents By clicking the button below, you can open the memory window. By clicking the button below, you can open the SFR window. - 97 - 6.4 Erase of flash memory If the On-Chip Debug Option Byte is set to "Do not erase data of flash memory in case of failures in enabling on-chip debugging" and if you forget the security ID, you need to erase the flash memory completely. To erase the flash memory, please follow the steps below. WriteEZ5 is installed at "1.2.2 Installation of Development Tools". ① Start WriteEZ5 by selecting "Windows Start" menu, "Programs", "NEC Electronics Tools", "WriteEZ5", "V1.00", and "WriteEZ5". - 98 - ② The switch of TK-RF8058+SB is set as follows. ON ON ON SW4 setting ON ON ON OFF OFF JP5:Any JP3: 1-2 short (USB) SW5:3.0V SW6: 「Debug/Writer」 JP2: JP1:short JP4:short 1-2 short(Regulator) ③ Then, please connect the “USB1” connector on the TK-RF8058+SB board with the USB connector of your PC. - 99 - ④ Push the「Setup」button. ⑤ Push the「PRM File Read」button. - 100 - ⑥ Please select “78F8058.prm” in the directory of “¥PRM” in the CD-ROM. ⑦ "Port" selects the COM port number where TK-RF8058+SB is allocated. *Only the COM port number that the personal computer has is displayed in this pulldown menu. - 101 - ⑧ "Erase" The deletion of the flash memory begins when the button is pushed. ⑨ If Flash EEPROM has been erased successfully, “chip erase finish” will be displayed as shown below. - 102 - ※ ID Code The ID Code is a mechanism to prevent an unwelcome third party from accessing your source code by initiating the debugger. Therefore, it is recommended to modify the ID Code from the default value to secure your original source code. However, once you modify it, then, if you forget the security ID or mistakenly over-write 0x00(value) to the address of 0xC3, the debugger ID78K0R-QB is unable to access to the CPU via OCD interface. In this case, you have to start over from erasing all data in the Flash EEPROM. Then, you can define the new ID Code. You may load your source code from the debugger with a load module file. - 103 - 6.5 BOM List, Circuit diagram & Pin Connection Here is the BOM List, circuit diagram & Pin Connection of the evaluation kit. ● SB-UD board BOM list No. Mount Quantity 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 Mount Parts Reference Unmount Parts Reference S_SW1,S_LED1,A/D1,S_SW2, S_LED2,A/D2,S_SW3,S_LED3 SO,SI,SCK BT1,BT2 CN1 CN2 C1 C2 C3 C6,C7,C11,C12,C13, C14,C15,C16 C10,C8 C9 FP1 JP1,JP4 JP2,JP3,JP5 J1 J2 J3 LED1,LED2,LED3 LED4 L1 L2 MR1 C4,C5 P2,P1 Q1 R1,R44 R2,R3,R4, R32,R33,R38,R42,R45 R5 R7,R8 R16 R17 R18 R20,R21 R22 R27,R34,R37,R43 R39,R40 R6,R35,R36,R41 R24,R25,R26,R28 R29,R31 R30 SW1,SW2,SW3,SW7 SW4 SW6,SW5 TPU1,TPU2,TPU3,TPU4,TPU5, TPU6,TPU7,TPU8,TPU9 TP1,TP2,TP3,TP4,TP5 USB1 U1 U2 U5 U6 U7 U8 U9 Y1 JP1,JP2,JP3,JP4,JP5 U3 U4 R9,R10,R12,R13,R14, R15,R19 R11,R23,R46 - 104 - Type Short Pad Parts No SS Short Pad Batt case Connecter Connecter Chip ceramic cap Tantal cap Chip ceramic cap Chip ceramic cap SO 2460 HIF3H-50DA-2.54DSA HIF3H-20DA-2.54DSA 2.2uF F931A476MCC 10uF 0.1uF Chip ceramic cap Aluminum Electrolytic Cap Connecter Connecter Connecter Connecter Terminal Terminal LED LED inductor Filter resister module Connecter IC Chip resister Chip resister 0.47uF 4.7uF/25V HIF3FC-16PA-2.54DSA FFC-2AMEP1 FFC-3AMEP1 DF17(3.0)-60DS-0.5V(57) T-16-Red T-16-Black SML-311UTT86 PG1112H CDRH5D28NP-8R2NC BLM41PG750S CN1E4K-105J XR2C-1011N TPS851 120 1.5K Chip resister Chip resister Chip resister Chip resister Chip resister Chip resister Chip resister Chip resister Chip resister Chip resister Chip resister Switch Switch Switch Trough hole 7.5K 390K 487K 562K 909K 187K 182K 100K 27 10K 100 SKQMBB CHS-08B SSSS223600 TPU Terminal Connecter IC IC IC IC IC IC IC IC IC Jumper Chip resister LC-2 UX60A-MB-5ST S-8120CNB TPS61020DRC SN74LVC3G07DCT SN74LVC2G125DCU SN74LVC2G07DCK UPD78F0730MC SN74LVC1G125DCK SN74LVC2T45DCU CSTCE16M0V53-R0 HIF3GA-2.54SP Chip resister Maker Note KEYSTONE HIROSE HIROSE NICHICON HIROSE HONDA HONDA HIROSE SATO PARTS SATO PARTS STANLY ROHM Sumida MURATA KOA OMRON TOSHIBA for A&D ALPS COPAL ALPS MAC8 HIROSE SII TI TI TI TI NECEL TI TI MURATA HIROSE For SIO I/F For K0R For K0R ● MB-RF8058 board BOM list No. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Mount Quantity Mount Parts Reference CN1 C2,C5,C6,C11,C15 C4,C7,C10,C16 C8,C18 C9 C12 C24,C13 C14,C1,C3 C17 C19 C23,C20 C21 C22 F1 J1 L1 L2 Unmount Parts Reference L3,L4 R1 R2,R4,R5,R7,R8,R9,R10 R3 R6 TP1,TP2,TP3,TP4 U1 VDD_R,VDD Y1 Y2 Type Connecter Chip ceramic cap Chip ceramic cap Chip ceramic cap Chip ceramic cap Chip resister Chip ceramic cap Chip ceramic cap Chip ceramic cap Chip ceramic cap Chip ceramic cap Chip ceramic cap Chip ceramic cap Filter Connecter inductor inductor inductor Chip resister Chip resister Chip resister Chip resister Check Pin IC Short pad Resonator Resonator - 105 - Parts No 901-144-8RFX 47pF 0.01uF 1uF 39pF 0.1uF 10pF 0.47uF 4.7uF/10V 10uF/10V 3pF 4pF LDB212G4020C-001 DF17(2.0)-060DP-0.5V(57) LQG15HN3N9S02 LQH2MCN8R2M02 Manufacturer AMPHENOL MURATA HIROSE Murata MURATA 1M 10K LC-33 uPD78F8058 SS NX3225SA-32.000M-STD-CSR-3 SSP-T7-FL 3.7pF NECEL NDK SII 2 IOVDD - 106 - 2460 GND VDD 2460 R1 120 3V T-16-Black J3A T-16-Red J2A JP5 S_LED1 IOVDD LED2 JP3 FFC-3AMEP1 EXTVDD USBVDD 10uF C3 R8 390K R7 390K 1V 8.2uH L1 S_LED2 LED3 11 13 15 17 19 CN2 10 12 14 16 18 20 G_PAD PGND LBO FB VOUT R20 187K R16 487K 11 10 R6 1.5K R21 187K R17 562K IOVDD TP1 LC-2 R22 182K R18 909K SW1 CHS-08B SW4-8 CHS-08B A/D1 TOOL0 RESET FLMD0 RxD_MCU C2 A/D1 47uF 2.2uF 1pin : 3.0V Center : 2.0V 4pin : 1.8V 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 JP2 TP4 LC-2 GND U1 FFC-2AMEP1 JP4 VDD IOVDD IOVDD FFC-2AMEP1 JP1 TP5 LC-2 VDD xxx xxx R23 R11 A/D2 TxD_MCU I/O_01 I/O_03 LED1 P_SW2 A/D2 LED3 I/O_04 I/O_06 I/O_08 I/O_10 I/O_12 I/O_14 I/O_16 I/O_18 I/O_20 I/O_22 I/O_24 I/O_26 I/O_28 I/O_30 I/O_32 I/O_34 I/O_36 I/O_38 I/O_40 TOOL1 xxx xxx xxx xxx A/D2 R14 R13 R10 R9 TxD_MCU TOOL1 R19 xxx T_RESET R15 R12 R5 7.5K Date: Size A3 Title VDD I/O_01 I/O_02 I/O_03 P_SW1 P_SW2 P_SW3 I/O_03 I/O_02 I/O_01 TxD_MCU SO SI SCK 10 10 11 13 15 SO_MCU SI_MCU SCK_MCU Monday , September 14, 2009 Sheet HIF3FC-16PA-2.54DSA 10 12 14 16 of FLMD0 RESET 11.VDD 12.SCK10 13.SI10(/RxD1) 14.SO10(/TxD1) 15.P13/TxD3 16.GND 17.P75/KR5/INTP10 18.P76/KR6/INTP11 19.P77/KR7/INTP12 20.GND XR2C-1011N P2 GND RES SI VDD SO 10 11 12 13 FL0 RESET_IN CLK_IN FP1 Document Number TS-TCS00327 SB-UD 1.VDD 2.FLMD0 3.RESET 4.P41/TOOL1 5.P40/TOOL0 6.GND 7.P30/INT3 8.P74/KR4/INTP8 9.P14/RxD3 10.GND XR2C-1011N P1 MINICUBE2 MINICUBE2 I/FI/F IOVDD Illuminance Sensor xxx xxx VDD FLMD0 RESET TOOL1 TOOL0 LED1 LED2 RxD_MCU Q1 TPS851 IOVDD 126 Parts, 33 Library Parts, 136 Nets, 490 Pins VDD TOOL1 TOOL0 TxD_MCU RxD_MCU Current Measure S-8120CNB VSS VOUT VDD NC 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 DF17(3.0)-60DS-0.5V(57) J1 Temp. Sensor FFC-3AMEP1 VDD TOOL0 RESET FLMD1 RxD_MCU I/O_02 P_SW1 A/D1 LED2 P_SW3 A/D3 I/O_05 I/O_07 I/O_09 I/O_11 I/O_13 I/O_15 I/O_17 I/O_19 I/O_21 I/O_23 I/O_25 I/O_27 I/O_29 I/O_31 I/O_33 I/O_35 I/O_37 I/O_39 VDD 1-2 : Regulator 2-3 : Battery or External 10 SW4-7 C1 SKQMBB SW3 SKQMBB SW2 SKQMBB SW5 SSSS223600 S_SW3 S_SW2 TP3 LC-2 TP2 LC-2 S_SW1 USBVDD 8 6 5 4 2 1 P_SW3 P_SW2 P_SW1 EXTVDD I/O_32 I/O_34 I/O_36 I/O_38 I/O_40 LED3 SML-311UTT86 R4 1.5K TPS61020DRC GND PS LBI EN VBAT SW U2 S_LED3 IOVDD No Mount HIF3H-20DA-2.54DSA LED2 SML-311UTT86 R3 1.5K EXTVDD I/O_31 I/O_33 I/O_35 I/O_37 I/O_39 IOVDD USBVDD LED1 SML-311UTT86 R2 1.5K TxD_MCU I/O_01 I/O_03 LED1 P_SW2 A/D2 LED3 I/O_04 I/O_06 I/O_08 I/O_10 I/O_12 I/O_14 I/O_16 I/O_18 I/O_20 I/O_22 I/O_24 I/O_26 I/O_28 I/O_30 TOOL1 Regulator Input 1-2 : USB 2-3 : Battery LED1 No Mount : 1Cell : 2Cell 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 HIF3H-50DA-2.54DSA FFC-3AMEP1 1.5V 1-2 2-3 POWER LED4 PG1112H BT1 BT2 TOOL0 T_RESET FLMD1 RxD_MCU I/O_02 P_SW1 A/D1 LED2 P_SW3 A/D3 I/O_05 I/O_07 I/O_09 I/O_11 I/O_13 I/O_15 I/O_17 I/O_19 I/O_21 I/O_23 I/O_25 I/O_27 I/O_29 SW4-6 CHS-08B T_RESET 11 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 CN1 VDD Rev 1.0 ● SB-UD board schematic 0.1uF C16 GND ID_NC DD+ VBUS USB1 UX60A-MB-5ST SW7 SKQMBB RESET SW R46 L2 USBVDD R44 120 1.5K R45 SW4-5 CHS-08B IOVDD BLM41PG750S C9 4.7uF/25V T_RESET R42 T_RESET RESET TOOL1 1.5K C7 0.1uF IOVDD C5 0.1uF IOVDD U4A C10 R39 R40 13 CHS-08B SW4-4 TPU4 TPU5 1.5K C13 SN74LVC2T45DCU A2 A1 DIR VCCA U9 GND B2 B1 VCCB USBVDD C15 0.1uF USBVDD PD5 PD6 17 16 18 19 20 21 22 23 24 25 R38 MR1 1.5K 100K IOVDD PD5 PD6 PD1 10K R41 USBVDD SO_MCU SI_MCU RxD6USB Date: Size A3 Title TxD6USB Monday , September 14, 2009 Document Number TS-TCS00327 SB-UD SW6 ↓Debug/Writer ↑K0R<-->K0USB SSSS223600 14 SW4-3 CHS-08B TPU8 TPU9 TxD6USB 16 SW4-1 USBVDD R33 1.5K TOOL1_SW IOVDD SN74LVC2G07DCK U6B TPU6 TPU7 SN74LVC2G125DCU U5B IOVDD Mounted only 78K0. 27 R30 15 SW4-2 CHS-08B FLMD0 TOOL0 TxD_MCU RxD_MCU RESET C6 0.1uF IOVDD Sheet Mounted only 78K0. Mounted only 78K0. SN74LVC2G125DCU U5A SCK_MCU SN74LVC2G125DCU CHS-08B IOVDD IOVDD U4B IOVDD 1.5K IOVDD 1.5K R24 R26 SN74LVC3G07DCT U3C 100K R37 SN74LVC3G07DCT U3A R34 IOVDD FLMD0U (Shield) IOVDD CN1E4K-105J TPU3 TPU1 TPU2 26 R31 100K Mounted only 78K0. 27 100K R29 100K R27 Mounted only 78K0. 29 C12 0.1uF U3B SN74LVC3G07DCT IOVDD 28 USBVDD P61 P60 P32/INTP3/OCD1B P31/INTP2/OCD1A EVdd EVss P33/TI51/TO51 P17/TI50/TO50 UPD78F0730MC C14 0.1uF IOVDD Mounted expect 78K0. RxD6USB IOVDD C11 0.1uF TOOL1_SW 100K R43 IOVDD 0.1uF USBPUC USBM USBP USBREGC Vdd Vss REGC P121/X1/OCD0A P16/TOH1 P15 P14/RxD6 P13/TxD6 P12/SO10 P11/SI10 P10/SCK10 30 1.5K R25 USBVDD C4 0.1uF P122/X2/EXCLK/OCD0B FLMD0 RESET P120/INTP0/EXLVI P00/TI000 P01/TI010/TO00 P30/INTP1 U7 USBVDD 15 14 13 27 27 11 10 12 PD1 0.47uF 0.47uF 10K FLMD0U 10K CSTCE16M0V53-R0 Y1 C8 SN74LVC1G125DCK U8 R35 R36 SN74LVC2G07DCK U6A R32 1.5K R28 Mounted only 78K0. USBVDD Mounted only 78K0. SN74LVC2G125DCU USBVDD IOVDD USBVDD IOVDD FG4 FG3 FG2 FG1 FG4 FG3 FG2 FG1 RxD6USB Mounted only SIO. IOVDD Mounted only 78K0. 12 - 107 - of Rev 1.0 RxD SI/RxD SW1 A/D1(Temp) LED2 SW3 A/D3 P130P11P17P76 GPIO0 SCAN_MODE I2CSEL TOOL0 RESET FLMD0 P14 P03 P15 VDD 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 J1 SMA 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 P120 P12P10P31P121 GPIO1 SCAN_EN P144- P13 P02 P04 P16 TOOL1 L3 xxx DF17(2.0)-060DP-0.5V(57) CN1 L4 xxx TxD SO/TxD SCK LED1 SW2 A/D2(Illumi) LED3 C12 C23 10uF/10V C14 10pF VDD C18 1uF BAL C19 4.7uF/10V VDD xxx R6 L1 3.9nH VDD_R BAL GND GND LDB212G4020C-001 NC UNB F1 VDD_RF VDD_RF VDD_R C20 + 10uF/10V VDD_R 8.2uH TP2 LC-33 L2 C13 0.1uF C11 47pF VDD_R TP5 LC-33 R7 10K 56 P14 C9 39pF C8 1uF TP6 LC-33 uPD78F8058 GND_pad P14/RxD3 P15(/GPIO2) INT P16(/GPIO3) RESETn C2 47pF VDD_RF VDD_3V(/AVDD) VDD_2V2 GPIO1 GPIO0 GND_GR VDD_GR VDD_RF2 RF_N RF_P VDD_RF1 U1 VDD_M 57 55 54 53 52 51 50 49 48 47 46 45 44 43 42 P15 P16 GPIO1 GPIO0 C15 47pF VDD_RF TP4 LC-33 VDD_R VDD_R C10 0.01uF VDD_RF C4 0.01uF VDD_RF 41 LOOP_C P13 39 VDD_CP 38 GND_PLL P12- P13/TxD3 40 VDD_VCO (SI/P12/SC00) (SO/P11/SI00) P11- (SCLK/P10/SCK00) 37 VDD_PLL P10- 36 XTAL_P WAKE 35 VDD_RF R1 1M C5 47pF VDD_R C6 47pF C1 VDD_D P40/TOOL0 RESET P124/XT2 P123/XT1 FLMD0 P122/X2/EXCLK P121/X1 REGC VSS VDD P31/TI03/TO03/INTP4 P76/INTP10 10pF TOOL0 Date: Size A3 Title R5 10K RESET 15 FLMD0 P121 P31- P76 VDD R4 10K VDD_M R10 10K TP3 C21 3pF R3 0.47uF Sheet VDD_M C17 TP1 VDD LC-33 Friday , September 11, 2009 Document Number TS-TCS00326 R9 10K C24 0.1uF VDD_M R8 10K LC-33 MB-RF8058 VDD_M C16 0.01uF VDD_RF 10pF 16 17 18 19 20 21 22 23 24 25 26 27 C3 R2 10K C7 0.01uF 45 Parts, 12 Library Parts, 44 Nets, 177 Pins Y1 NX3225SA-32.000M-STD-CSR-3 (SEN/P17) P17- 34 VDD_A XTAL_N SCAN_MODE P130- AVSS 33 VDD_BG P04 P130 32 CLK_OUT 10 P02/SO10/TxD1 11 P03 P04/SCK1 31 SCAN_MODE P02 P144 12 P144- P03/SI10/RxD1 SCAN_EN 30 SCAN_EN 28 GND_D I2CSEL 29 I2CSEL P120 13 P41/TOOL1 14 P120 - 108 TOOL1 VDD_RF of C22 4pF Rev 1.0 Y2 SSP-T7-FL 3.7pF ● MB-RF8058 board schematic ● SB-UD board CN1 Pin connecting list Pin number 10 11 12 13 14 Net name VDD GND VDD GND TOOL0 TOOL1 T_RESET GND FLMD1 TxD_MCU RxD_MCU I/O_01 I/O_02 I/O_03 uPD78F8058 Signal Port Connection P13/TxD3 P14/RxD3 P02/SO10/TxD1 P03/SI10/RxD1/SDA10 P04/SCK10/SCL10 15 P_SW1 P15/RTCDIV/RTCCL/GPIO2 16 LED1 P16/TI01/TO01/INTP5/GPIO3 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 A/D1 P_SW2 LED2 A/D2 P_SW3 LED3 A/D3 I/O_04 I/O_05 I/O_06 I/O_07 I/O_08 I/O_09 I/O_10 I/O_11 I/O_12 I/O_13 I/O_14 I/O_15 I/O_16 I/O_17 I/O_18 I/O_19 I/O_20 I/O_21 I/O_22 I/O_23 I/O_24 I/O_25 I/O_26 I/O_27 I/O_28 I/O_29 I/O_30 P120/INTP0/EXLVI P76/INTP10 P121/X1 GPIO0 GPIO1 Requirement for using the signal Don't use the USB connection as debugging or serial communication when you use this signal. Separate a switch with cutting the solder short pad for use as general-purpose port. Separate a LED with cutting the solder short pad for use as general-purpose port. This port has a pull-up resister. RF transceiver port RF transceiver port - 109 - 7 Mode setting of the board The combination table of the switch of this board is shown. JP3 JP5 SW4 JP2 JP4 SW5 SW6 JP2JP1 Mode Setting Table User mode on USB power with Debugging and Flash programming with MINICUBE2, and UART-USB conversion to a HyperTerminal. (NOTE) (Dip switch) 1-4 → ALL OFF SW4 5 → ON (Pull-up the RESET pin) 6 → ON (Power LED on) 7,8 → Any SW6 「K0R-K0USB」 JP4 Debug/Flash programming mode via USB without MINICUBE2 using ID78K0R-QB/WriteEZ5 (Dip switch) 1-6 → ALL ON 7,8 → Any 「Debug/Writer」 SW5 1.8V, 2.0V or 3.0V 1.8V, 2.0V or 3.0V JP3 1-2 (USB) short 1-2 (USB) short JP5 Any Any JP2 1-2 short 1-2 short JP1 short short JP4 short short (NOTE): The side switches of MINICUBE2 have to be set to “M1” and “T”. - 110 -

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : Yes
XMP Toolkit                     : 3.1-701
Producer                        : Acrobat Elements 7.0 (Windows)
Creator Tool                    : PScript5.dll Version 5.2
Modify Date                     : 2010:03:23 18:51:15+09:00
Create Date                     : 2010:03:23 18:51:15+09:00
Format                          : application/pdf
Title                           : Microsoft Word - TK-RF8058+SB_UM_E.doc
Creator                         : remote
Document ID                     : uuid:26a75e43-c109-4428-a3e7-aa9803c4899b
Instance ID                     : uuid:056864cf-d5ad-47e7-915e-03edd10b8550
Page Count                      : 110
Author                          : remote
EXIF Metadata provided by EXIF.tools
FCC ID Filing: X8U0001

Navigation menu