in circuit scope tutorial guide variable waveform...

40
P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 1 of 40 In Circuit Scope Tutorial Guide Variable waveform display tool Summary In Circuit Scope is the tool that enables the waveform display of global variable value of the program executed on the target system, on the personal computer in real system. This application note explains the method of handling In Circuit Scope. Also, the In Circuit Scope board (here after, refer to as ICS board) required for using In Circuit Scope is explain in chapter 4. Target devices 16bit integer support devices: RL78/G1F, RL78/G14, RL78/F14, RL78/F13, RL78/G12, RL78/G13, 78K0RIC3, 78K0R/ID3, 78K0R/IE3 32bit integer support devices: RX111, RX210, RX220, V850/IA3, V850/IA4, V850E2/IG3, V850E/FJ3, SH7047, SH7146, SH7149, SH7237, 32bit floating point support devices: RX23T, RX62T, RX63T, RX631, RX64M, RX71M, V850E2M/FJ4, V850E2/ML4, SH7216, SH7239, Please ask Desk Top Laboratories Inc about other CPUs. We can support Most of RENESAS 16bit, 32bit CPUs. About ICS ICS is the product of RENESAS electronics. Desk Top Laboratories Inc performs ICS related support business, such as the directions for ICS and a library

Upload: others

Post on 06-Aug-2020

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 1 of 40

In Circuit Scope Tutorial Guide

Variable waveform display tool

Summary

In Circuit Scope is the tool that enables the waveform display of global variable value of the program executed on the

target system, on the personal computer in real system.

This application note explains the method of handling In Circuit Scope.

Also, the In Circuit Scope board (here after, refer to as ICS board) required for using In Circuit Scope is explain in

chapter 4.

Target devices

〇16bit integer support devices:

RL78/G1F, RL78/G14, RL78/F14, RL78/F13, RL78/G12, RL78/G13, 78K0RIC3, 78K0R/ID3, 78K0R/IE3

〇32bit integer support devices:

RX111, RX210, RX220, V850/IA3, V850/IA4, V850E2/IG3, V850E/FJ3, SH7047, SH7146, SH7149, SH7237,

〇32bit floating point support devices:

RX23T, RX62T, RX63T, RX631, RX64M, RX71M, V850E2M/FJ4, V850E2/ML4, SH7216, SH7239,

Please ask Desk Top Laboratories Inc about other CPUs. We can support Most of RENESAS 16bit, 32bit CPUs.

About ICS

ICS is the product of RENESAS electronics. Desk Top Laboratories Inc performs ICS related support business, such

as the directions for ICS and a library

Page 2: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 2 of 40

Table of Contents

1. Overview ........................................................................................................................................... 3

2. Specifications .................................................................................................................................... 5

3. In Circuit Scope usage method ......................................................................................................... 6

4. ICS board ........................................................................................................................................ 23

5. Precaution ....................................................................................................................................... 37

Page 3: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 3 of 40

1. Overview

1.1 Overview

In Circuit Scope is the tool that enables waveform display of the global value of the program executed on the target

system, to the personal computer in real time.

Figure 1-1 Overview of In Circuit Scope

1.2 Features

(1) Enables the waveform display of global variable even during the program execution, to the personal computer in

real time.

(2) It can be used in the same sense as oscilloscope, like change in range or settings of trigger etc.

(3) As any value can be written to global variable, by using In Circuit Scope, gain adjustment during program

execution becomes possible.

Page 4: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 4 of 40

1.3 Connection structure

Connect it to personal computer from the target processor through ICS board. For connection, refer to the flow of

usage given in section. Flow of usage is given in section 3.1 of this manual. For ICS board, refer to Chapter 4.

Figure 1-2 Hardware structure

1.4 Software structure

In Circuit Scope processes the data sent from target MCU through ICS board and performs waveform display on the

personal computer, based on the variable names and memory address information stored in the variable information file.

Figure 1-3 Software structure

Source file

Object file

Compiler

Linker

Binary file

Target board

Variable executable file Map file Variable information file

In Circuit Scope

ICS board

ICS library

USB communication

Serial communication

ICS board Target MCU Personal computer

Page 5: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 5 of 40

2. Specifications

2.1 Product specifications

This product includes the following.

Table 2-1 Product configuration

No. Item

1 In Circuit Scope CD-ROM

2.2 Operation environment

Following specifications are required for installing the In Circuit Scope.

Desk Top Laboratories Inc recommends high speed windows PC. It affects the waveform refresh rates.

Table 2-2 Operation environment

No. Item Contents

1 Personal computer

Free disk space: 20M [byte] or more

RAM: 512M [byte] or more

USB port: 1 [channel] (USB2.0)

.Net framework support 4.0 installed

2 OS

Windows XP 32bit

Windows Vista 32bit

Windows 7 32bit / 64bit

2.3 Tool specifications

Specifications overview list of In Circuit Scope is given below.

Table 2-3 In Circuit Scope specifications overview

Item Contents

Measurement cycle Depends on the library installed in the target MCU

Measurement channels 8 [channels] it depends on the ICS model

Measurement variable type

name Depends on the library installed in target MCU

Trigger mode Single / Auto / Normal

Trigger source Measurement channels 8 [channels] it depends on the ICS model

Numeric display channel Max 32 variables. It depends on the ICS model

Data management Waveform save / load function

Waveform display window Main window + expanded display window (4 windows)

Used port TXD, RXD

Used peripheral function UART 1 [channel], DMA or DTC

Support MCU RX62T, RL78/G14, RX111

Page 6: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 6 of 40

3. In Circuit Scope usage method

3.1 Flow of usage

Do preparations as given in following (1) ~ (9), for using In Circuit Scope.

(1) Connect the ICS board to the target board (For wiring, refer to Section)

(2) Connect the ICS board to the personal computer, by using USB cable

(3) Switch on the power supply to target board

(4) Download the program to target MCU

(5) Execute the program

(6) Start In Circuit Scope (chapter 3.2)

(7) Check the establishment of communication (chapter 3.2)

(8) Read the variable information file (chapter 3.3)

(9) Finish the preparations

Page 7: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 7 of 40

3.2 Startup

Run In Circuit Scope.exe file to start In Circuit Scope. When it is start, the Main window will be display.

Figure 3-1 Main window

When connection is correctly performed, connected COM port is automatically selected in the personal computer and

communication is started between the target processor and the personal computer. When the communication is

established, “Ready || || CPU : ‘Device name’ Status” is displayed in the Status bar at the bottom of In Circuit Scope

and COM port is displayed as shown in the following figure.

When device name is not displayed in the status bar or ‘No Connection’ is displayed, it means that the connection is

not established. In such case, refer to Flow of usage described in Chapter 3.1, once again.

Figure 3-2 Status bar

Status bar

Device name is display

Page 8: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 8 of 40

3.3 Reading the variable information file

After In Circuit Scope startup, it is necessary to read the variable information file (extension: csv) of the program

written in the target MCU.

Click [Load Variables] on the Status bar.

Figure 3-3 Load Variables

Window as shown in the following diagram is display. Select the created variable information file (extension: csv).

Figure 3-4 Variable information file selection window

Reading is complete, if ”Variable List Loaded Successfully” is displayed.

Figure 3-5 Successful reading of the variable information file

Page 9: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 9 of 40

3.4 Perspectives of the screen

In Circuit Scope basically comprises of the following 4 windows. Overview of the functions of each window is

explained in this chapter. For details of each window, refer to the succeeding chapters.

Figure 3-6 Default windows

Table 3-1 Overview of each window

Window name Overview

(a) Menu Window Window for file saving, reading, window display etc.

(b) Main Scope Window Displays the waveform set in Window-Channel Settings.

(c) Window-Channel Settings Performs range setting or trigger condition settings.

(b) Control Window Reads, writes any variable value.

(c). Window-Channel Settings (b). Main Scope Window

(d). Control Window

(a). Menu Window

Chapter 3.5

Chapter 3.6

Chapter 3.7

Page 10: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 10 of 40

Figure 3-7 Menu Window

Figure 3-8 Control Window Variable Data Tab

Figure 3-6 Control Window Variable List Tab

Auto Read reading interval

Reads variable value once

Writes the variable value once

Variable data type

Interval reading of variable value in a fixed time

Target variable selection

Reading permission

Check box

Reading variable value

Writing permission

Check box

Writing variable value

Scale selection

Variable data type Variable name Variable data address

Tools bar Status bar

Menu bar Connection COM port

Page 11: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 11 of 40

Figure 3-70 Window-Channel Settings Main Tab

Diagram 3-8 Window-Channel Settings Channel Setting Tab

Waveform color

Display Zoom Window selection

Val/Div settings

Offset settings

Setting channel selection

Trigger mode selection

Trigger position/Level/Source

selection

Oscilloscope

Start/Stop

Display variable selection

Trigger edge selection

Sampling cycle and

Time/Div settings

Display waveform selection

Check box

Select waveform color

Page 12: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 12 of 40

Figure 3-12 Window-Channel Settings Zoom Tab

Figure 3-13 Main Scope Window

Trigger setting

information

Previous window display

waveform switching

Max value, Min value of waveform within cursor

measurement value, Val/Div, offset, Main

Scope Window within the channel

Trigger level setting

cursor

Trigger position

Setting cursor

Zoom Window display

channel selection

Color of frame that shows the

display range on the Main Scope

Window

Magnified display range

width settings

Magnified display start position

setting

Page 13: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 13 of 40

3.5 Menu Window

Figure 3-14 Menu bar

3.5.1 File menu

(1) Open Project (Ctrl + O)

Read the project environment file (extension: env) of In Circuit Scope.

(2) Save Project (Ctrl + S)

Save the current project environment in the project environment information file (extension: env) of the folder in which

In Circuit Scope is installed.

(3) Save Project As (Ctrl + A)

Save the current project environment, on specifying the folder and file name.

(4) Load Variables (Ctrl + V)

Read on specifying the variable information file.

(5) Clear Variables (Ctrl + C)

Clear the variable information.

(6) Exit (Ctrl + X)

End the In Circuit Scope.

3.5.2 View menu

(1) Toolbar (Ctrl + T)

Switch the display/hide of the Menu bar.

(2) Status Bar

Switch the display/hide of the Status bar.

(3) Full Screen (F11)

Switch the full screen/non-full screen for the In Circuit Scope window.

(4) Control Window (Ctrl + Q)

Switch the display/hide of Control Window.

(5) Window Settings (Ctrl + W)

Switch the display/hide of Window-Channel Settings.

Menu bar

Page 14: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 14 of 40

3.5.3 Channels Windows menu

(1) Main Window (Ctrl + M)

Open the Main Window.

(2) Zoom Window(1 ,2, 3, 4) (Ctrl + (1 ,2, 3, 4))

Open the Zoom Window (1, 2, 3, 4).

(3) Show All Channels (Ctrl + Shift + S)

Open all the Zoom Window.

(4) Hide All Channels (Ctrl + Shift + C)

Open all the Zoom Window.

3.5.4 Help menu

(1) About In Circuit Scope

Display target MCU name, In Circuit Scope version, hardware version, hardware model number, library version.

Figure 3-15 about In Circuit Scope

3.5.5 Tool menu

(1) Graph Smoothing

Switch the waveform display method.

(2) Set Color

Change the background color.

(3) Graph Alignment

Align the Zoom window

CPU: Target MCU name

S/W Version: In Circuit Scope version

H/W Version: Hardware version

H/W Model No: Hardware model number

Lib Version: Library version

Page 15: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 15 of 40

3.6 Oscilloscope function

This chapter explains the settings required for using Oscilloscope function. Note that type of variable for which

waveform display is possible by using this function differs depending on the type of library incorporated in MCU.

3.6.1 Waveform display variable settings

Select the variable name to be measured from the pull down button of Channel Variable. It is also possible to search

by entering directly from the key board.

Variables list is based on the read variable information file (extension: csv).

Figure 3-16 Variable selection

3.6.2 Width range and sampling cycle settings

(1) Width range

Time/Div, which is the width range of Main Scope Window and Zoom /Window; it is set by Time/Div of Acquisition

column. Time/Div expresses the time around horizontal axis 1 scale. It can be set in the range of 200 us/Div~131.07

ms/Div.

(2) Sampling cycle

Set the sampling cycle of variable data by using the sample of Acquisition column. Setting is possible in the range of

20 us~10 ms. Sampling cycle specified here differs than Measurement cycle. Measurement cycle shows the cycle of

variable data transfer from target MCU to ICS board. On the other hand, sampling cycle shows the cycle of sampling the

variable data stored in the buffer of ICS board.

Page 16: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 16 of 40

Figure 3-17 Difference between sampling cycle and Measurement cycle

(3) Record length

Record length of obtained waveform data is displayed in length of Acquisition column. Value cannot be changed

directly. The length varies depending on the horizontal axis range and sampling cycle value. (Length = Time/Div ÷

Sample)

Figure 3-18 Time/Div and Sample settings

ICS board Personal computer

Variable data A

Variable data A1

Variable data A2

Variable data A n

Display waveform data

Buffer Memory RAM

Measurem

ent cycle

Sampling cycle

Target MCU

Variable data A

Page 17: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 17 of 40

3.6.3 Vertical axis range and offset settings

Set the vertical axis range and offset, for each channel.

(1) Vertical axis range

Set Val/Div, which is vertical range of Main Scope Window and Zoom Window, by using Val/Div of Channel Settings.

Val/Div displays the value around vertical axis 1 scale. Setting is possible in the range of 1 n/Div~5 G/Div.

(2) Offset

Set offset by using Val/Div column of Channel Settings. Waveform is displayed by divide the value part set in offset, to

vertical.

Figure 3-19 Val/Div and Offset settings

Page 18: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 18 of 40

3.6.4 Trigger settings

(1) Trigger channel

Select the channel for target of trigger, by Source pull down of Trigger column.

Selected trigger channel displayed in the upper part of Main Scope Window.

(2) Trigger mode

Select the Trigger mode from following 3 types.

Selected Trigger mode is displayed in the upper part of Main Scope Window.

Auto mode : Updates the waveform display, every time when trigger signal occurs. Also, if fixed time

trigger does not occur, waveform display is automatically updated.

Single mode : When trigger signal occurs, displays the waveform once and changes status to STOP

status.

Normal mode: Waveform display is updated every time when trigger signal occurs.

(3) Trigger position and trigger level

When CH1~CH8 is selected in the trigger channel, trigger point is set in the cross section point of trigger position and

trigger level.

The set trigger position value is displayed in the upper part of Main Scope Window.

Trigger position: It can be set by dragging the () cursor of Main Scope Window or Zoom Window. Also, it

can be set by the position of Trigger column.

(Max value: Record length * sampling cycle, Min value: sampling cycle)

Trigger level: It can be set by dragging the () cursor of Main Scope Window or Zoom Window. Also, it can

be set by the Level of Trigger column.

(Max value: Val/Div * 5, Min value: Val/Div * (-5))

(4) Trigger edge

Select trigger edge from the following 3 types.

Selected trigger channel is displayed on the upper part of Main Scope Window.

Rise : Rising edge

Fall : Falling edge

Both : Rising edge and falling edge

Figure 3-20 Trigger setting (1)

Page 19: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 19 of 40

Figure 3-21 Trigger settings (2)

3.6.5 Cursor settings

Measure the value of cross section points with waveform by cursor Ver-A, Ver-B, Hor-A, Hor-B. Measurement value is

displayed in the bottom part of Main Scope Window or Zoom Window. Select the display/hide of cursor in the display

cursor selection column. Cursor can be moved by clicking the cursor by mouse and dragging the same.

Figure 3-22 Cursor setting

Cursor measurement value

Display cursor selection

Cursor Ver-A Cursor Ver-A measurement

point

Trigger mode

Trigger channel/

Trigger edge/

Trigger level value Trigger position cursor

Trigger position value

Trigger level cursor

Trigger setting position

Page 20: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 20 of 40

3.6.6 Magnification display setting

In Circuit Scope is equipped with 4 windows of Zoom window for magnified display of a part of Main Scope Window.

Display range of each Zoom window is displayed in the frame on the Main Scope Window. Also, switch the display/hide

of display range frame by using check boxes on the Main Scope Window.

(1) Magnification display range width

Set by moving the right cursor of magnification display range of Main Scope Window. It can be set even by using

Sec/Div column of Zoom setting window of Window-Channel Settings. Set the magnification display range width in us

unit.

(2) Magnification display start position

Set by moving the left cursor of magnification display range of Main Scope Window. Set by using Position column of

Zoom setting window of Window-Channel Settings. Set the magnification display start position by record length.

Figure 3-23 Magnification display settings

Magnification

display range

Zoom Window display

Channel selection

Color of frame that shows the display

range in Main Scope Window

Setting of magnification

display range width

Setting of magnification display

starting position

Page 21: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 21 of 40

3.6.7 Waveform data saving/reading

Waveform data saving and reading function is mounted. Select the saving format from the following 2 types.

(1) ICS_Wave Data File (*.csv1) : Save the setting information at the time of waveform measurement as well,

in addition to the sampling value of waveform data. It can be read by Load button.

(2) Comma Separated File (*.csv) : Save only the sampling value of waveform data as csv format.

Reading by Load button is not possible.

Figure 3-24 Waveform data saving/reading

Waveform data saving

Waveform data reading

Page 22: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 22 of 40

3.7 Variable value reading/writing function

Variable value reading/writing function is explained in this chapter.

Figure 3-25 Control Window Variable Data Tab

Variable value reading/writing function can be used by performing operations according to the steps (1)~(5) given

below.

(1) Variable selection

Select the variable, which is the target for Read/write function, in the row of Variable Name.

(2) Data type selection

Select the respective data type name of the variable selected in (1), in the row of Data Type.

(3) Scale selection

Select the scale of reading/writing value in the row of Scale.

When n (n is 0~31) is selected in the row of Scale, vale obtained by read value x (n[power] of 2) is displayed in row of

Read, at the time of executing Read. Also, value obtained by value set in the row of Write÷ (n [power] of 2) is written at

the time of executing Write.

(4) Reading/writing permission

Read, write is respectively permitted, by inserting check mark in the check box of row of R?, W?

(5) Read/Write/Auto Read execution

On pressing Read button, variable value is read and value is displayed in the row of Read.

On pressing Write button, value set in the row of Write is written to the variables.

On pressing Auto Read button, variable value is read in the interval set in the Auto Read reading interval column.

Auto Read reading interval

Reads variable value once

Writes variable value once

Variable data type

Reads the variable value in a fixed time

Target variable selection

Reading permission

Check box

Reading variable value

Writing permission

Check box

Writing variable value

Scale selection

Page 23: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 23 of 40

4. ICS board

4.1 ICS board overview

ICS board is required for using In Circuit Scope. It sets up the communication between personal computer and target

MCU. On 10th-Oct-2013, there are 7 models of ICS hardware. There is difference on each model.

4.1.1 ICS Original model (W1001: Communication speed 1Mbps fix type)

This model is not sold on 10th

-Oct-2013.

Table 4-1 In Circuit Scope Board specifications overview

Item Contents

Product name In Circuit Scope Board

Appearance

Hardware model number 1

Memory 16M [byte]

Target side power supply 3.3V / 5V

Target side supply current 10 [mA] type

Isolation Insulation element is mounted immediately after CN1(serial signal connector)

Waveform display channel Max 8 channels

Numeric display channel Max 32 channels

Serial communication type UART (TXD, RXD)

Communication rate 1Mbps (fix)

Maximum record length 250000 points

External trigger Support IN / OUT

Communication clock NA

Reset switch

USB connector

CN2: External

trigger connector

DSW1: Dip

switch

CN1: Serial

signal connector

Page 24: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 24 of 40

(1) Terminals

Table 4-2 Terminals

Connector Pin number function Note

CN1

CN1:1 VCC

CN1:2 GND

CN1:3 RXD (Target CPU’s TXD)

CN1:4 GND

CN1:5 TXD (Target CPU’s RXD)

CN1:6 GND

CN1:7 NC ( Keep open)

CN1:8 NC ( Keep open)

CN2

CN2:1 Vcc (3.3V) non-isolated Connector for external

trigger. This connector

can connect external

trigger board.

CN2:2 Trigger in (3.3V) non-isolated

CN2:3 Trigger out(3.3V) non-isolated

CN2:4 GND non-isolated

(2) Connection diagram

Figure 4-1 Connection diagram

(3) Dip switch setting

Please use DSW1 with initial setting. (Tableエラー! 参照元が見つかりません。)

Table 4-3 DSW1

SWITCH Initial setting

name No. Pin

name

DSW1 1 MD1 OFF

2 MD0 OFF

3 MDE ON

4 (NC) ON

GND

TXD(Target side RXD)

GND

RXD(Target side TXD)

GND

VCC

GND

EXTRG_OUT

EXTRG_IN

VCC

USB

CN2 CN1

Page 25: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 25 of 40

Figure 4-2 DSW1

1 2 3 4

Page 26: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 26 of 40

4.1.2 RSSK RL78G14 ICS function built in type (Communication rate 1Mbps fix)

This board is a built-in type board sold by RENESAS Electronics.

Table 4-4 RSSK RL78G14 Board specification summary Hardware model 1

Item

Name RSSK RL78G14 board

Appearance

Hardware model number 1

Memory 16M [byte]

Target side power supply 5V

Target side supply current NA

Isolation Insulation element is mounted

Waveform display channel Max 8 channels

Numeric display channel Max 32 channels

Serial communication type UART (TXD, RXD)

Communication rate 1Mbps (fix)

Maximum record length 250000 points

External trigger Support IN / OUT

Communication clock NA

This model does not need to connect between ICS and the target CPU. ICS and Target CPU is already connected by

PCB pattern.

Reset switch

USB connector CN2 :External

trigger connector

DSW1 :DIP switch

Page 27: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 27 of 40

(1) Dip switch setting

Please use DSW1 with initial setting. (Tableエラー! 参照元が見つかりません。)

Table 4-5 DSW1

SWITCH Initial setting

name No. Pin

name

DSW1 1 MD1 OFF

2 MD0 OFF

3 MDE ON

4 (NC) ON

Figure 4-3 DSW1

1 2 3 4

Page 28: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 28 of 40

4.1.3 RSSK RX62T ICS function built in type (Communication rate 1Mbps fix)

This board is a built-in type board sold by RENESAS Electronics.

Table 4-6 RSSK RX62T Board specification summary

Item

Name RSSK RX62T board

Appearance

Hardware model number 1

Memory 16M [byte]

Target side power supply 5V

Target side supply current NA

Isolation Insulation element is mounted

Waveform display channel Max 8 channels

Numeric display channel Max 32 channels

Serial communication type UART (TXD, RXD)

Communication rate 1Mbps (fix)

Maximum record length 250000 points

External trigger Support IN / OUT

Communication clock NA

This model does not need to connect between ICS and the target CPU. ICS and Target CPU is already connected by

PCB pattern.

Reset switch

USB connector CN2 :External

trigger connector

DSW1 :DIP switch

Page 29: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 29 of 40

(1) Dip switch setting

Please use DSW1 with initial setting. (TableTable 4-7 DSW1)

Table 4-7 DSW1

SWITCH Initial

setting

No. name

No. name

DSW1 1 DSW1 1

2 2

3 3

4 4

Figure 4-4 DSW1

1 2 3 4

Page 30: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 30 of 40

4.1.4 CQ publish (INV-1TGKIT-A) built-in ICS

Table 4-8 In Circuit Scope Board specification summary

Item

Name In Circuit Scope Board

Appearance

Hardware model number 3

Memory 64k [byte]

Target side power supply 5 [V]

Target side supply current NA

Isolation Insulation element is mounted

Waveform display channel Max 4 channels

Numeric display channel Max 16 channels

Serial communication type UART (TXD, RXD)

Communication rate 1Mbps (fix)

Maximum record length 1024 points

External trigger NA

Communication clock NA

※Caution 1 This model has fewer channels than other models for waveform display function.

※Caution 2 This model has fewer channels than other models for numeric display function.

※Caution 3 This model has shorter record length than other models for waveform display function.

USB connector

Page 31: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 31 of 40

4.1.5 ICS W1003 (Variable clock type)

This is a current standard version for ICS on 18-OCT-2013

Table 4-9 In Circuit Scope Board specification summary

Item 内容

Name In Circuit Scope Board

Appearance

Hardware model number 4

Memory 16M [byte]

Target side power supply 3 .3[V]/5 [V]

Target side power supply

current 10 [mA] type

Isolation Insulation element is mounted

Waveform display channel MAX 8 channels

Numeric display channel MAX 32 variables

Serial communication type UART (TXD, RXD)

Communication rate The communication rate can be changed by exchanging communication clock

module.

Maximum record length 250000points

External trigger Supported

Communication clock 8MHz (default)

Reset switch USB connector

CN2 :External

trigger connector

CN1 :ICS Target

connection connector Clock for

Communication rate

Page 32: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 32 of 40

(1) Terminals

Table 4-10 Terminals

Connector Pin number Function Note

CN1

CN1:1 VCC (Target CPU Vcc)

CN1:2 RXD(Target side TXD)

CN1:3 TXD(Target side RXD)

CN1:4 GND

CN2

CN2:1 Vcc (3.3V)

CN2:2 Trigger IN

CN2:3 Trigger OUT

CN2:4 GND

CN2:5 NC

(2) Connection diagram

Figure 4-5 Connection diagram

(3) Clock selection

Please refer section 5 “Information for choosing communication clock”.

VCC

RXD(Target side TXD)

TXD(Target side RXD)

GND

VCC

EXTRG_IN

EXTRG_OUT

GND

NC

USB CN2

CN1

Page 33: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 33 of 40

4.1.6 Low voltage inverter T2001 built-in ICS (Variable clock type)

Table 4-11 Low voltage inverter T2001 specification summary

Item

Name Low voltage inverter T2001

Appearance

Hardware model number 5

Memory 64k [byte]

Target side power supply 5 [V]

Target side power supply

current 10 [mA] type

Isolation Insulation element is mounted

Waveform display channel MAX 8 channels

Numeric display channel MAX 32 variables

Serial communication type UART (TXD, RXD)

Communication rate The communication rate can be changed by exchanging communication clock

module.

Maximum record length 1024points

External trigger Supported

Communication clock 8MHz (default)

When you connect ICS and target CPU, please connect the serial signal connector in a figure to the connector on a

target CPU board.

USB connector

External trigger connector

CN1: Serial signal connector

Reser switch

Communication rate clock

Page 34: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 34 of 40

(1) Terminals

Table 4-12 Terminals

Connector Pin number Function Note

CN5

CN5:1 VCC (Target CPU Vcc)

CN5:2 RXD(Target side TXD)

CN5:3 TXD( Target side RXD)

CN5:4 GND

CN6

CN6:1 Vcc (3.3V)

CN6:2 Trigger IN

CN6:3 Trigger OUT

CN6:4 GND

CN6:5 NC

(2) Clock selection

Please refer section 5 “Information for choosing communication clock”.

Page 35: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 35 of 40

4.1.7 Low voltage inverter T2002 built-in ICS (Variable clock type)

Table 4-13 Low voltage inverter T2002 specification summary

Item

Name Low voltage inverter T2002

Appearance

Hardware model number 5

Memory 64k [byte]

Target side power supply 5 [V]

Target side power supply

current 10 [mA] type

Isolation Insulation element is mounted

Waveform display channel MAX 8 channels

Numeric display channel MAX 32 variables

Serial communication type UART (TXD, RXD)

Communication rate The communication rate can be changed by exchanging communication clock

module.

Maximum record length 1024points

External trigger Supported

Communication clock 8MHz (default)

When you connect ICS and target CPU, please connect the serial signal connector in a figure to the connector on a

target CPU board.

USB connector External trigger

connector

CN1: Serial signal connector

Reset switch

Communication rate clock

Page 36: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 36 of 40

(1) Terminals

Table 4-14 Tarminals

Connector Pin number Function Note

CN5

CN5:1 VCC (Target CPU Vcc)

CN5:2 RXD(Target side TXD)

CN5:3 TXD( Target side RXD)

CN5:4 GND

CN6

CN6:1 Vcc (3.3V)

CN6:2 Trigger IN

CN6:3 Trigger OUT

CN6:4 GND

CN6:5 NC

(2) Clock selection

Please refer section 5 “Information for choosing communication clock”.

Page 37: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 37 of 40

5. Precaution

5.1 Support CPU for each ICS model

W1001, RSSK (RL78G14), RSSK (RX62T), INV-1TGKIT-A can support fixed communication rate, but W1003,

T2001 and T2002 can support any clock rate by exchanging communication clock module on ICS board.

Model Support CPU Clock type

W1001

RX62T when PCLK =48MHz

RL78G14 when CPU Clock = 32MHz

RX111 when PCLK = 32MHz

RL78F14 when CPU Clock=32MHz

78K0R/Ix4 when CPU Clock=20MHz

RX63T when PCLK = 48MHz

Fixed clock

RSSK (RL78G14) RL78G14 when CPU Clock = 32MHz Fixed clock

RSSK (RX62T) RX62T when PCLK=48MHz Fixed clock

INV-1TGKIT-A RX62T when PCLK=48MHz Fixed clock

W1003

T2001

T2002

Any CPU is OK Variable clock

5.2 The clock frequency calculation method for the variable clock type ICS

5.2.1 Case of RX62T

When changing the clock of CPU used in a RX62T ICS library, it is necessary to change the clock on an ICS board.

The default setting is ICLK=96MHz, PCLK=48MHz. and communication clock module frequency is 8Mhz.

When user target CPU’s PCLK is not 48MHz, you need to set a clock module on ICS board as calculated below

In case of ICLK=96MHz and PCLK=48MHz, clock module frequency is set to 8MHz. 8MHz clock module is

already installed on ICS board.

6/_ PCLKfrequencyCLOCK

Page 38: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 38 of 40

ICLK PCLK Clock module

80MHz 40MHz 6.667MHz

96MHz 48MHz 8MHz (Default)

100MHz 50MHz 8.333MHz

5.3 How to purchase the clock module

Maker: ESPON SG-8002DC 3.3V version

This clock module, it is possible to program the frequency at the time of shipment, please specify the frequency

when purchasing from such trading.

How to purchase 1) Buy at Digikey

www.digikey.jp

Delivery is about 1week.

How to purchase 2) Buy at Desk Top Laboratories Inc has prepared the following clock module as a standard

frequency. In the case of other frequencies, please purchase such as Digikey.

Clock frequency P/N

8MHz W8002-F8.000

8.333MHz W8002-F8.333

10MHz W8002-F10.000

Page 39: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

In Circuit Scope Manual

P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page 39 of 40

Homepage and support

Desk Top Laboratories Inc homepage

http://desktoplab.co.jp/

Contact

http://[email protected]

Revision history

Rev. Date

PC software

Version

Page Note

1.05 2013.10.18 V2.5.05 First English version release

1.11 2014.07.22 Ver.2.8.00 Add the support devices.

1.12 2015.11.11 Ver.2.8.00 Add the support devices.

-

-

-

-

-

-

-

-

-

-

-

All trademarks and registered trademarks belong to respective owners.

Page 40: In Circuit Scope Tutorial Guide Variable waveform …desktoplab.co.jp/P00301-A2-012_InCircuitScope_Rev1.12EN.pdfIn Circuit Scope Manual P00301-A2-012_InCircuitScope_Rev1.12EN.doc Page

Notes of product usage

This section explains “Notes related to the usage”, which are applicable to all microcomputer products. For the

precautions related to individual usage, refer to this text. If the description is different from this text of this manual, give

preference to the description of this text.

1. Process of unused terminal

[Note] For unused terminal, please perform the process according to the “Process of unused terminal” of this text.

The impedance of input terminals of CMOS product is generally considered as high-impedance. If the operations

are performed when unused terminal is in opened status, noise surrounding the LSI is applied and pass-through

current is circulated internally in LSI due to induction event and due to this, it is recognized as input signal and there

is a risk of malfunctioning. Please process the unused terminal according to the instructions explained in this text

“Process of unused terminal”.

2. Process at the time of power activation

[Note] At the time of power activation, the product status is undefined.

At the time of power activation, the status of internal circuit of LSI is undetermined and resistor settings or status of

each terminal is undefined. In case of the products to be reset in external reset terminal, terminal status cannot be

guaranteed during the period from power activation till reset becomes enabled.

Similarly, in case of products to be reset by using in-built Power-on reset function, terminal status cannot be

guaranteed during the period from power activation till attaining fixed voltage required for reset.

3. Prohibit the access of reserve address

[Note] Access of reserve address is prohibited.

In the address area, there are reserve addresses that are allocated for function expansion in future. The operations

cannot be guaranteed when these addresses are accessed. Therefore, please do not access those reserve

addresses.

4. Regarding clock

[Note] At the time of reset, release the reset after the clock is stable.

At the time of switching the clock during the program execution, please switchover after the clock at switchover

destination is stable. At the time of resetting, in case of system that starts the operations with clock where external

oscillator (or external oscillator circuit) is used, release the reset after the clock is stable properly. However, in case

of switching to the clock where external oscillator (or external oscillator circuit) is used, in-between the program

execution, please switchover after the clock at switchover destination is stable properly.

5. Regarding differences between products

[Note] In case of changing to the product of different models, please check in advance that there is no problem.

If the model is different even in the microcomputer of same group, the characteristics might be different depending

on the difference in internal memory, layout pattern etc. In case of changing to the product of different model,

implement the system evaluation test for each product model.