background image

14

EPSON

S5U1C63000H2 MANUAL

(S1C63 FAMILY IN-CIRCUIT EMULATOR)

CHAPTER 5: OPERATION AND FUNCTION OF S5U1C63000H2

5.6 Target Interrupt and Break

When an interrupt in the target program and a break are simultaneously occurred, the target interrupt is
prioritized. The break occurs after completing the stack operation of the interrupt. The program counter
at the break shows the top address of the interrupt handler routine. When the target program is restarted,
it executes from the top address of the interrupt handler routine.

It is the same when "I (interrupt flag) = 1" is set as the break condition by the BR command. The break
occurs when the I flag goes 1. However if an interrupt occurs simultaneously, the contents of the flags
after the break is displayed as "EICZ:0000" (the I flag is reset) because of the prioritized interrupt process.

5.7 Trace Function

In the execution of the emulation mode, information of the S1C63000 CPU (PC, instruction code, data
RAM address, data content and CPU register value) is stored into the trace memory at every CPU bus
cycle. The trace memory has a capacity of 8,192 cycles, which can store the latest instructions up to 4,096
in 2 bus cycles instruction and 2,048 in 4 bus cycles instruction.

Free space

Trace memory

Effective trace

Execution of

a program

Earliest instruction
(TP = 0)

Instruction just before
break (TP = 700)

Trace memory

Effective trace

Earliest instruction
(TP = 0)

(TP = 8,191)
Instruction just before break

Effective trace

Fig. 5.7.1  Trace function

Figure 5.7.1 shows the trace function. When the trace memory is full, old information is erased and new
information is overwritten. TP called trace pointer shows that the point of 0 means the earliest instruction
and the break point means the latest information. The maximum value of the TP is 8,191.

Latest

instruction

Trace information

Earliest

instruction

TP = 0

Trace information at any point can be displayed
by the TD command.

TP = 8,191

Summary of Contents for MF1436-02

Page 1: ...MF1436 02 CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C63 Family In Circuit Emulator S5U1C63000H2 Manual ...

Page 2: ...ing made in accordance with this material will be free from any patent or copyright infringement of a third party This material or portions thereof may contain technology or the subject relating to strategic products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from the Ministry of International Trade and Industry or other approval from...

Page 3: ...158 F 0A01 Packing specification Specification Package D die form F QFP Model number Model name C microcomputer digital products Product classification S1 semiconductor Development tools S5U1 C 63000 A1 1 Packing specification Version 1 Version 1 Tool type A1 Assembler Package Corresponding model number 63000 common to S1C63 Family Tool classification C microcomputer use Product classification S5U...

Page 4: ......

Page 5: ...RTED _________________________________________ 9 4 1 Operation in ICE Mode 9 4 2 Operation in Free Run Mode 9 CHAPTER 5 OPERATION AND FUNCTION OF S5U1C63000H2 __________________ 11 5 1 General of Operation 11 5 2 Break Function 12 5 3 Monitoring Terminals 12 5 4 Display During Execution and During Break 13 5 5 Break Commands 13 5 6 Target Interrupt and Break 14 5 7 Trace Function 14 5 8 Trace Mode...

Page 6: ...__ 21 CHAPTER 9 SPECIFICATIONS OF LCD BOARD ______________________________ 22 9 1 Introduction 22 9 1 1 General description of LCD board 22 9 1 2 External view of LCD board 22 9 2 Precautions on Using 23 9 2 1 Notes on operations 23 9 2 2 Difference from an actual IC 23 9 3 Connection with Target System 24 9 4 Product Specifications 26 ...

Page 7: ...rs In combination with a peripheral circuit board S5U1C63xxxP it provides the development environment of the software using a personal computer as a host computer which requires Windows This manual describes the operation of the S5U1C63000H2 hardware and connections of the S5U1C63000H2 system Refer to S5U1C63000A Manual for use of the debugging commands Figure 1 1 shows the external view of the S5...

Page 8: ...card 1 card 13 Precautions on using the S5U1C63000H2 1 sheet Note Following items need to be provided separately not included in this package 14 S5U1C63xxxP board included in the S5U1C63xxxP package 15 S5U1C63xxxP Manual included in the S5U1C63xxxP package 16 S1C63 Family Debugger included in the S1C63 Family Assembler package 17 S5U1C63000A Manual included in the S1C63 Family Assembler package AC...

Page 9: ...ns Materials Total weight of package Specifications 282 W 177 L 90 H Approx 3 5 kg main body Cygnus white DC 5 V 2 A max ICE board and LCD board 3 m EIA RS232C level 12 pair shielded cab tyre cable DEU 9S F0 DE 9P 160 80 60 AC 90 V to 264 V 47 Hz to 63 Hz 25 W max in ICE system load DC 5 V 5 A with over current protection 1 8 m Bipolar with ground for installing dismounting option boards 380 W 260...

Page 10: ...e 2 4 1 shows the external view of the panels 1 T R G O U T P C 0 STOPOUT T R C I N B R K I N G N D 2 3 4 5 6 7 8 ICE RUN RS232C S5U1C63000H2 EPSON P C 1 P C 2 P C 3 P C 4 P C 5 P C 6 P C 7 P C 8 P C 9 P C 1 0 P C 1 1 P C 1 2 P C 1 3 P C 1 4 P C 1 5 S L P H L T E M U P O W E R POWER ON OFF DC 5V CB Fig 2 4 1 External view of S5U1C63000H2 panels Front view Rear view Side view Rear Front ...

Page 11: ... At the break mode low level signal is also output Information is stored in the trace memory by connection with a signal of the target system A running program enters in break status by input a low level signal from the target system In case the above terminal is monitored with such an oscilloscope the GND line of the oscilloscope is connected to this terminal This is also used as a GND in case th...

Page 12: ... Setting baud rate SW1 3 OPEN OPEN OPEN OPEN OPEN Other settings SW4 OPEN OPEN ON OPEN ON SW5 OPEN ON OPEN OPEN ON SW6 OPEN ON ON ON OPEN Baud rate setting 9600 bps 8 bit character 1 stop bit no parity factory setting 2400 bps 8 bit character 1 stop bit no parity 4800 bps 8 bit character 1 stop bit no parity 19200 bps 8 bit character 1 stop bit no parity 38400 bps 8 bit character 1 stop bit no par...

Page 13: ... Fig 3 1 1 Connection of AC line 3 2 DC Cable The DC output cable of the AC adapter is connected to the DCIN DC 5 V input terminal as shown in Figure 3 1 1 3 3 Connection with Host Personal Computer Figure 3 3 1 shows the external view of the RS232C cable connector and Table 3 3 1 shows the signal specifications of the RS232C cable A Viewed from side A 2 5 1 9 6 9 pin 9 pin RS232C cable connector ...

Page 14: ...into the uppermost slot and push it using the jig attached with the S5U1C63000H2 as shown in Figure 3 4 2 Using this jig as a lever push it toward the inside of the board evenly on the left and right sides After confirming that the peripheral circuit board has been firmly fitted into the internal slot of the S5U1C63000H2 remove the jig Peripheral circuit board Fig 3 4 2 Installing the peripheral c...

Page 15: ...executed the PC LEDs red indicate the current program counter value When the SLP or HLT instruction is executed the SLP HLT LED yellow goes on and the PC LEDs red stop 4 Occurrence of a break When the target program stops at the break point set with the debugger the EMU LED red goes off and the PC LEDs red stops at the break address The break address means the program counter of next execution 4 2...

Page 16: ...arget program and display the current program counter with the LEDs on the front panel The BRKIN terminal on the front panel becomes invalid 3 In the case any incorrect access exceeding configured program size or data RAM size is occurred by reason of a improper target program the S5U1C63000H2 immediately stops at the program counter where the incorrect access is made by the LEDs on the front pane...

Page 17: ...am running The other status is called standby mode which turns the EMU LED off and makes the program counter display LEDs show program counter position at the break The target program to be executed with the S1C63000 CPU is stored in the emulation program memory and data RAM area of the S1C63000 CPU is assigned to the emulation data memory Loading a program from the flash memory or the host is don...

Page 18: ...This break occurs when the target program writes data to the read only memory such as a character generator ROM The memory contents are protected even this break occurs Break by incorrect stack accessing This break occurs when the target program makes incorrectly stacking operation exceeding the defined stack area in the S1C63000 CPU BRKIN terminal When a signal is input to the BRKIN terminal a br...

Page 19: ...eak functions 1 PC break This break function is specified by the BP command When the program counter of the S1C63000 CPU coincides with the specified address a break occurs before executing the instruction Multiple PC values up to maximum size of program memory can be specified as break points 2 PC sequential break This break function is specified by the BS command The break occurs when the PC of ...

Page 20: ... execution of the emulation mode information of the S1C63000 CPU PC instruction code data RAM address data content and CPU register value is stored into the trace memory at every CPU bus cycle The trace memory has a capacity of 8 192 cycles which can store the latest instructions up to 4 096 in 2 bus cycles instruction and 2 048 in 4 bus cycles instruction Free space Trace memory Effective trace E...

Page 21: ...is specified as the program counter conditions of the S1C63000 CPU A low level pulse is output from the TRGOUT terminal with the timing of T3 upon coincidence of the specified value and the program counter The information of the trace trigger point is also stored into the trace memory In the single delay trigger mode the trace trigger point becomes a condition for stopping the trace 5 10 Coverage ...

Page 22: ...emulation memory The self diagnosis takes about five minutes after power on If an error is displayed while testing it is considered to be failure of the hardware Please consult us 5 13 Restrictions on Emulation 1 Timer operation in standby mode In the emulation with the peripheral circuit board connected to the S5U1C63000H2 the S1C63000 CPU is ordinarily at the idle status standby mode as shown in...

Page 23: ...ctions is immediately suspended and the program counter indicates an address next to the HALT or SLP instructions The N command operates similar to the S command in the execution of the main routine however it enables interrupts regardless of the setting by the MD command in the execution of the sub routine 4 Data read from undefined RAM area When a data RAM ROM area or an I O area that is not ava...

Page 24: ...ing to undefined area function 8 Register data break and hardware interrupt The register data value after completion of the break operation may differ from the original setting register data condition for the break Furthermore when a hardware interrupt is occurred in this point the break address shifts to the top address of the interrupt handler routine For instance in the timing chart to set sequ...

Page 25: ...ferences from Actual IC 1 Initialization of RAM Data RAM of the actual IC becomes indefinite value however of the S5U1C63000H2 is initialized to 0AH Therefore the initialization must be done in the target program and any program depending on the initial value must not be made 2 Initialization of registers In the actual IC registers have indefinite values at power on and keep values prior to the re...

Page 26: ...xxxx CPU version x x PRC board version x x LCD board version x x EXT board version x x ICE hardware version x x ICE software version x x DIAG test OK Map done Initialize done When an error is detected the error message is output at the point of instead of done If an error message is output stop using the S5U1C63000H2 because it may have a hardware failure This diagnosis test takes approx 5 minuets...

Page 27: ...n Is circuit breaker CB off Is host cable connected correctly Is DIP switch of S5U1C63000H2 set correctly Is baud rate between host and ICE set correctly Is target cable connected correctly Is various board peripheral circuit board LCD board inserted firmly The circuit breaker CB operates and the power LED goes off when the S5U1C63000H2 power is turned on Is target cable connected correctly Is VDD...

Page 28: ...he S1C63 Family microcom puters other than the core CPU The board can work as an emulator corresponding to each model of the S1C63 Family by installing into the S5U1C63000H2 along with a S1C63 Family peripheral circuit board S5U1C63xxxP This board may be set for each model by loading mask option data generated by the function option generator using the ICE command 9 1 2 External view of LCD board ...

Page 29: ...t surely clears or sets the segment memory after the system reset must be installed 2 LCD segment RAM for models that have fixed assignment of LCD segments to memory bits In the actual IC when reading a segment memory address that includes bits not assigned for LCD segment the non assigned bits are always read as 0 However in this board the non assigned bits in the segment memory can be read and w...

Page 30: ... Connection with Target System Use the connection cables 100 pin 50 pin 2 flat type 34 pin flat type supplied for the connection between the LCD board and target systems CN4 1 50 pin I O connection cable To target board To target board CN4 2 50 pin CN5 34 pin mark Fig 9 3 1 Connection with target system ...

Page 31: ...G76 SEG77 SEG78 SEG79 Cannot be connected Cannot be connected Cannot be connected Cannot be connected Cannot be connected Cannot be connected Cannot be connected Cannot be connected Cannot be connected Cannot be connected Cannot be connected Cannot be connected No 1 2 3 4 5 6 7 8 9 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 ...

Page 32: ...t Specifications Following shows the specifications of the LCD board components LCD board Dimension 254 mm wide 144 8 mm depth 13 mm height including screws Weight Approx 220 g Power supply DC 5 V 5 less than 1 A supplied from S5U1C63000H2 main unit LCD cable Onboard connector KEL8830E 100 170L 3M3431 5002LCSC ...

Page 33: ...llès SPAIN Phone 34 93 544 2490 Fax 34 93 544 2491 ASIA EPSON CHINA CO LTD 23F Beijing Silver Tower 2 North RD DongSanHuan ChaoYang District Beijing CHINA Phone 64106655 Fax 64107319 SHANGHAI BRANCH 4F Bldg 27 No 69 Gui Qing Road Caohejing Shanghai CHINA Phone 21 6485 5552 Fax 21 6485 0775 EPSON HONG KONG LTD 20 F Harbour Centre 25 Harbour Road Wanchai Hong Kong Phone 852 2585 4600 Fax 852 2827 43...

Page 34: ...ursuit of Saving Technology Epson electronic devices Our lineup of semiconductors liquid crystal displays and quartz devices assists in creating the products of our customers dreams Epson IS energy savings ...

Page 35: ...C63 Family In Circuit Emulator S5U1C63000H2 Manual EPSON Electronic Devices Website ELECTRONIC DEVICES MARKETING DIVISION First issue June 2001 Printed February 2002 in Japan A L M http www epsondevice com ...

Reviews: