Renesas SH7362 manual

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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Renesas SH7362, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Renesas SH7362 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Renesas SH7362. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Renesas SH7362 should contain:
- informations concerning technical data of Renesas SH7362
- name of the manufacturer and a year of construction of the Renesas SH7362 item
- rules of operation, control and maintenance of the Renesas SH7362 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Renesas SH7362 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Renesas SH7362, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Renesas service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Renesas SH7362.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Renesas SH7362 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    Revision Date: A ug. 20, 2007 Renesas Microcomputer Deve lopment Environment System SuperH ™ Family E10A-USB for SH7362 HS7362KCU01HE Rev.1.00 SuperH ™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7362 REJ10J1709-0100[...]

  • Page 2

    [...]

  • Page 3

    1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor g rants any license to any intellectual property ri g hts or [...]

  • Page 4

    [...]

  • Page 5

    i Contents Section 1 Connecting the Emul ator with the User System ................................1 1.1 Components of the Emulator ............................................................................................ 1 1.2 Connecting the Em ulator with the User System ............................................................... 2 1.3 Ins[...]

  • Page 6

    ii[...]

  • Page 7

    1 Section 1 C onnecting t he Emulat or with the User Syst em 1.1 Components of the Emulator The E10A-USB emul ator support s the SH7362. Ta ble 1.1 lis ts the components of t he emulat or. Table 1.1 Comp onents of th e Emulator Classi- fication Component Appearance Quan- tity Remarks Hard- ware Emulator box 1 HS0005KCU01H: Depth: 65.0 mm , Width: 9[...]

  • Page 8

    2 1.2 Connecting the Emulator with the User System To connect the E10A-USB emulator (he reinafter referre d to as the emulator), t he H-UDI port connector must be ins talled on the user s ystem to connect the user s ystem interface cable. When designing the user system, ref er to an example o f recommended connection between the connector and the M[...]

  • Page 9

    3 1.3 Installing the H-UDI Port Connector on the User System Table 1.3 show s the recommended H-UD I port connect ors for the em ulator. Table 1.3 Recommended H-UDI Port Connectors Connector Type Number Ma nufacturer Specifications DX10M-36S Screw type 36-pin conne ctor DX10M-36SE, DX10G1M-36SE Hirose Electri c Co., Ltd. Lock-pin ty pe 14-pin conne[...]

  • Page 10

    4 5 mm 2-5767004-2 Tar g et system E10A-USB optional 38-pin user system interface cable H-UDI port connector (top view) : Area to be kept free of other components 50 mm 20 mm 1 37 38 2 Figure 1.1 Restri ction on Com ponent Moun ting 1.4 Pin Assignments of th e H-UDI Port Connector Figures 1.2 t hrough 1. 4 show the pin as signments of the 36-p in, [...]

  • Page 11

    5 1. Input to or output from the user system. 2. The symbol (/) means that the si g nal is active-low. Notes: H-UDI port connector (Pin 1 mark) (top view) Unit: mm 4.8 M 2.6 x 0.45 9.0 0.3 3.9 H-UDI port connector (front view) 3. The emulator monitors the GND si g nal of the user system and detects whether or not the user system is connected. 4. Wh[...]

  • Page 12

    6 Pin 1 mark Notes: 1. Input to or output from the user system. 2. The symbol (/) means that the si g nal is active-low. 3. The emulator monitors the GND si g nal of the user system and detects whether or not the user system is connected. 25.0 23.0 6 x 2.54 = 15.24 (2.54) 0.45 Pin 1 Pin 8 Pin 7 Pin 14 Pin 1 mark H-UDI port connector (top view) H-UD[...]

  • Page 13

    7 N.C. N.C. MPMD (GND) TCK N.C. /A UDSYNC N.C. N.C. A U D ATA 0 A U D ATA 1 UVCC_A UD N.C. N.C. TMS /UCON (GND) N.C. A UDCK UVCC N.C. N.C. /RESETP /RESET A TDI H-UDI por t connector (top view) Unit: mm TDO K13 K14 J17 K15 M15 Output Output Input/ Output Output Output Output Output Output Output Output Output Input Input Input Input N13 D15 D12 1 2 [...]

  • Page 14

    8 1.5 Recommended Circuit between th e H- UDI Port Connector and the MPU 1.5.1 Recommended Circuit (36- Pin Type) Figure 1.5 shows a recommended circuit for connection between the H-UDI and AUD port connectors (36 pins) and t he MPU when the emulat or is in us e. Notes: 1. Do not connect an ything to t he N.C. pins of the H-UDI port connector. 2. T[...]

  • Page 15

    9 When the circuit is connected as shown in figure 1. 5, the switches of the emulato r are set as SW 2 = 1 and SW3 = 1. F or details , refer to section 3.8, Setting t he DIP Swi tches, in the SuperH TM Family E10A-US B Emulator U ser’s Manual. 1 AUDATA0 AUDATA2 AUDATA1 AUDATA3 TCK TMS AUDSYNC N.C. N.C. RESET TDI TDO TRST ASEBRK / BRKACK UVCC GND [...]

  • Page 16

    10 3. When the voltage level of Vcc Q_SR (power supply for H-UDI and AUD) is 2.85 V and that of VccQ_MF I (power suppl y for /RESETA ) is 1.8 V, a le vel-shift circuit i s required as show n in the fi gure. 1.5.2 Recommended Circuit (14- Pin Type) Figure 1.6 shows a recomme nded circuit for connection between the H-UDI port con nector (14 pins) and[...]

  • Page 17

    11 When the circuit is connected as shown in figure 1. 6, the switches of the emulato r are set as SW 2 = 1 and SW3 = 1. F or details , refer to section 3.8, Setting t he DIP Swi tches, in the SuperH TM Family E10A-US B Emulator U ser’s Manual. 1 TCK TMS RESET TDI TDO TRST ASEBRK / BRKACK GND GND GND GND (GND) 2 3 4 5 6 7 8 9 11 10 12 13 14 TCK T[...]

  • Page 18

    12 1.5.3 Recommended Circuit (38- Pin Type) Figure 1.7 shows a recommended circuit for connection between the H-UDI and AUD port connectors (38 pins) and t he MPU when the emulat or is in us e. Notes: 1. Do not connect an ything to t he N.C. pins of the H-UDI port connector. 2. The MPMD pin must be 0 when the emul ator is connected a nd 1 when the [...]

  • Page 19

    13 When the circuit is connected as shown in figure 1. 7, the switches of the emulato r are set as SW 2 = 1 and SW3 = 1. F or details , refer to section 3.8, Setting t he DIP Swi tches, in the SuperH TM Family E10A-US B Emulator U ser’s Manual. SH7362 6 AUDATA0 AUDATA2 AUDATA1 AUDATA3 TCK TMS TDI TDO UVCC UVCC_AUD MPMD(GND) 32 30 28 26 24 15 17 2[...]

  • Page 20

    14 Notes: 1. Do not use /R ESETP in the emul ator after the user syst em has been activated. When reset s ignals are used fo r debugging, use / RESETA. 2. Fix /RES ETA as high level w hen it is not used. 3. When the voltage level of Vcc Q_SR (power supply for H-UDI and AUD) is 2.85 V and that of VccQ_MF I (power suppl y for /RESETA ) is 1.8 V, a le[...]

  • Page 21

    15 Section 2 Soft ware Specific ati ons w hen Usi ng the SH 7362 2.1 Differences between th e SH7362 and the Emulator 1. When the emu lator system is initiated, it initializes th e genera l registers and part of the control registers as s hown in table 2.1. The initial va lues of the actu al SH7362 registers are undefi ned. When the emulator is ini[...]

  • Page 22

    16 3. Low-Power S tates (Sleep, Soft ware Standby, Module S tandby, U Standb y, and R St andby) For low-power consumption, t he SH7362 has sleep, softw are standby, m odule stand by, U standby, and R standby stat es. The sleep, softw are standby, U Standby, and R S tandby states are switched us ing the SLEEP instruction. W hen the emulat or is used[...]

  • Page 23

    17 7. Memory Access during User Program Break The emulator can download t he program f or the fl ash memor y area (for details, refer to s ection 6.22, Download Fu nction to th e Flash Memory Area, in the SuperH TM Family E10A-USB Emulator User’s Manual). Other memo ry write operations a re enabled for the R AM area. Therefore, an operation such [...]

  • Page 24

    18 11. MFI When the MFI boot mode is u sed, be sure to activate the emulator by setting the MFIINT signal as a trigger f or the MFI transfer from the base- band side. 12. Memory Access durin g Break In the enabled MMU, when a memory is accessed and a TLB error occu rs during b reak, it can be selected whether the TLB e xception is c ontrolle d or t[...]

  • Page 25

    19 The RCLK wa tchdog timer op erates only when t he user program i s executed. D o not change the value of the freque ncy change register in t he [IO] window or [Memory] wind ow. The internal I/O registers can be accessed fr om the [IO] window. However, n ote the following when accessi ng the SDMR register of the bus-state controller. Before acces[...]

  • Page 26

    20 2.2 Specific Functions for the Em ulator when Using the SH7362 2.2.1 Event Cond ition Func tions The emulator is used t o set 12 event conditions (C h1 to Ch12) and the software trace. Tabl e 2.4 lists the conditio ns of Event Co ndition. Table 2.4 T ypes of Event Cond itions Event Condition T ype Description Address bus condition (A ddress) Bre[...]

  • Page 27

    21 Table 2.5 Di alog Boxes f or Setting E vent Condition s Fu ncti on Dialog Box Addr ess Bus Con ditio n (Addres s) Data Bus Con ditio n (Data) ASID Con ditio n (ASID) Bus State Con ditio n (Bus Status) Window Addr ess Con ditio n (Windo w addres s) System Bus LDTLB Inst ruct ion Break Count Con ditio n (Count) Branch Con ditio n (Branc h Trace) S[...]

  • Page 28

    22 Table 2.5 Di alog Boxes f or Setting E vent Condition s (cont) F u n c t i o n Dialog Box Addr ess Bus Con ditio n (Addres s) Data Bus Con ditio n (Data) ASID Con ditio n (ASID) Bus State Con ditio n (Bus Status) Window Addr ess Con ditio n (Windo w addres s) System Bus LDTLB Inst ruct ion Break Count Con ditio n (Count) Branch Con ditio n (Bran[...]

  • Page 29

    23 Sequential Setting : In the emulator , sequential setting o f an Event Condition is enabled. Table 2.6 Sequent ial Event Co nditions Type Event Condition Description [CPU Sequential Event] Page 2 Channel Sequential Ch2 -> 1 Halts a pro gram when a c ondition i s satisfied i n the order of Event C ondition 2, 1. An event cond ition mus t be se[...]

  • Page 30

    24 Table 2.6 Sequent ial Event Co nditions (c ont) Type Event Condition Description [CPU Sequential Event] Page (cont) CPU Extend Expands the [C PU Sequentia l Extend] pa ge. The sequential sett ing is enabled with any combinatio n. For details, r efer to sect ion 2.2.1, Seq uential Br eak Extension Sett ing, in thi s manual. SystemBu s Sequential [...]

  • Page 31

    25 Sequential Break Extensio n Setting: Figure 2.1 [CPU Sequent ial Ex tend] Pag e (a) Indicates the channel name for setting condi tions. (b) Selects a condition that is satis fied bef ore the channel which sets up con ditions. When a channel name is s elected, it is required that the condition of the c hannel selected here must have already been [...]

  • Page 32

    26 Usage Exa mple of Sequentia l Break Ex tension Setting: A tutorial program provi ded for the product is used as an example. For the tutorial program , refer to section 6, Tuto rial, in the SuperH TM Fa mily E10A-USB Emulator User’s Manual . The conditions of Event Condition ar e set as follows: 1. Ch1 Breaks address H’00001068 when the condi[...]

  • Page 33

    27 Figure 2.2 [Source] Window at Execu tion Halted (Se quential B reak)[...]

  • Page 34

    28 2.2.2 Trace Functions The emulator su pports the trac e functions li sted in table 2.7. Table 2.7 Tr ace Functions Function Internal Trace AUD Trace Memory Output Trace Branch trace Supported (eight branches) Support ed Supported Range memory access tr ace Supported (e ight event s) Supported Supported Software trace Supported (eight event s) Su[...]

  • Page 35

    29 Branch Trace Functions: The branch s ource and desti nation addr esses , their source lines, branch types, and types of acces sed bus mast ers are displayed. [Setting Met hod] Select the check box in the [B ranch] group box in the [Branch trace] pa ge of the [Branch trace] dialog box t hat opens by do uble-cli cking on the C h12 (Branc h) column[...]

  • Page 36

    30 Range Memory Access T race Functions: The memory access within the specified range is acquired by a trace. The rea d cycle, write cycle, or read/write cycle can be se lected as the bus type, ASID value, or bus cycle for trace acquisition. [Setting Met hod] (i) To open the [Event condition 5] o r [Event condition 6] dialog box, double-click on th[...]

  • Page 37

    31 (iii) Open the [ASID] page, remove the check mark of the [Don’t care] check box, and enter the ASID value to b e set. When the ASID val ue is not se t as a condition, do not remo ve the check mark of the [Don’t care] check box. (iv) Open the [Bus s tate] page and specify th e bus type an d bus cycle that are to be s et. Figure 2.5 [B us Stat[...]

  • Page 38

    32 Software Trace Func tion: Note: This function ca n be suppo rted with SHC /C++ compiler (manufacture d by Renes as Technology Corp .; includin g OEM and bundle p roducts) V 6.0 or later. However, SHC /C++ compiler (incl uding OEM and bundle products ) V8.0 or l ater is needed when ins tructions ot her than th ose compatible wi th SH4 are out put[...]

  • Page 39

    33 AUD Trace Function: This function is o perational when the AUD pin of the device is conn ected to the emulator. It is activat ed by selecting the [AUD trace] radio b utton in the [Trace type ] group box of the [Trace mo de] page. Set the trace condition to be used. [Restrictions] • Set bits 2 an d 1 in r egister HIZCRB and bit 15 in registe r [...]

  • Page 40

    34 To set the AUD trace acquisition mode, click the [T race] window with the right mouse but ton and select [Setting] from the pop -u p menu to display the [Acqui sition] dialog box. The AUD trace acquisition mode can be s et in the [Trace Mode 1] or [Trace Mode 2] gro up box in the [T race Mode] page of the [Acquisi tion] dialog bo x. Figure 2.6 [[...]

  • Page 41

    35 Notes on AUD Trace: 1. When the trace display is per formed durin g us er program execution, the m nemonics, operands , or source is n ot displayed. 2. The AUD branch trace functio n outputs the diff erences between newly o u tput branch source addresses and pre viously outp ut branch sour ce addres ses. The window trace function outp uts the di[...]

  • Page 42

    36 Memory Output Tra ce Funct ion: This function is activated by selectin g the [Use Memory trace] radio button in the [ Trace type] grou p box of the [Tra ce mode] page. In this fun ction, write the trace data in the sp ecified user memory range. Specify the start address to o utput a trace for the [Start] e dit box in t he [User memory area ] gro[...]

  • Page 43

    37 To set the memory-output trac e acquisition mode, click the [ Trace] window with the right mous e button and s elect [Setti ng] from the po p-up menu to displ ay the [Acquis ition] dialo g box. The AUD trace acquisition mod e can be set in the [Trace Mode 1] or [Trace Mode 2] group box in the [Trace Mode] page of the [Acquisition] dialog box. Fi[...]

  • Page 44

    38 Notes: 1. The memor y range for which trace is out put is the address on the system bus and not supported for the MMU or cache. 2. In the memory range for outp ut, do not specify t he ranges that the user program has been downloaded or t he user program acces ses. 3. Do not select an internal RA M area as the memory range f or output. 4. The ran[...]

  • Page 45

    39 instructions cannot be set . For these cases , do not set BR EAKPOINTs. Refer to t he hardware manual for d etails. 7. When the [Normal ] option i s selected in t he [Memory area] group box in the [General] pa ge of the [Configurat ion] dialog box, a BREA KPOINT is set t o a physical address or a virtual address according to the SH7 362 MMU stat[...]

  • Page 46

    40 2.2.5 Notes on Se tting the [Event Conditi on] Dialog Box an d the B REAKCONDITION_ SET Command 1. When [Go to cu rsor], [St ep In], [Step Over] , or [Step Out ] is se lected, the setti ngs of Event Conditi on 3 are disa bled. 2. When an Even t Condition is satisf ied, emulation may stop after two or more instructions have been executed. 3. If a[...]

  • Page 47

    41 2.2.8 Performance Me asurement Function The emulator su pports the per formance measurement function. 1. Sett ing the performance meas urement conditions To set the performance measurement conditions , use t he [Performa nce Analysis] dial og box and the PERFORMANCE_SET command. When a channel line on the [Performance Analysis ] window is cl ick[...]

  • Page 48

    42 Note: Fo r the comm and line syntax, refer to th e online help. (a) Specifying the measur ement s tart/end conditions Set the performan ce measurement cond itions in the [Action] pag e after conditions have been set in t he [Event Conditi on] dialog bo x that is ope ned by dou ble-clicking C h1 to Ch6 an d Ch8 to Ch12 on t he [Event Condit ion] [...]

  • Page 49

    43 Table 2.11 Cond itions Sp ecifi ed in the [Action] Page Item Description PA1 pa1_start_po int Specifies th e conditio ns of Eve nt Condition th at has been set as the measurem ent start c ondition of performance channel 1. pa1_end_poi nt Specifies the c onditions of Event C ondition th at has been set as the measurem ent end co ndition of p erfo[...]

  • Page 50

    44 Figure 2.9 [A ction] Page Note: PA1 or PA2 cann ot be set fo r Ch8 and Ch9.[...]

  • Page 51

    45 (b) Measurement tolerance • The measured value in cludes tolerance. • Tolerance will be generated before or after a break. For details , see table 2.14. (c) Measurement items Items are measured in the [P er formance Analysi s] dialog bo x for each channel from Ch1 t o Ch4. A maximu m of four condi tions can be speci fied at the same time. Ta[...]

  • Page 52

    46 Table 2.12 Measurement Items Classification Type Measur ement Item Option Note Disabled None Not measured. CPU performance Cycle Elapsed cycles AC Except for power-on perio d; counted by t he CPU c lock. Cy cl es ex ecu ted in privileged m ode PM The number of privileged- mode cycl es among t he number of ela psed cycle s. Cycles f or asser ting[...]

  • Page 53

    47 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note CPU performance (cont) Stalled cycle Cycles stalled in f ull- trace mode (w ith multi-count s) SFM All items are counted independent ly. Cycles stalled in full- trace mode (w ithout multi-count s) SF This item i s not count ed if the stall cyc le is gener ate[...]

  • Page 54

    48 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note Instructi on bus performance (cont) Instructi on (cont) Number of instruct ion cache miss ICM The number of cache mi sses by an instru ction cac he access (th e number of accesses to t he outside of the CPU core d ue to a cac he miss). Number of internal- RAM[...]

  • Page 55

    49 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note Operand bus performance (cont) Access count (cont) Number of intern al- RAM acce ss for operand fetch (READ) (XY-RAM or O-L memo ry) XLR The number of accesses to XY memory in t he SH7362 durin g memory acces s (read) of an operand. (Accesses via the XY bus a[...]

  • Page 56

    50 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note Operand bus performance (cont) Access miss count Number of opera nd cache miss (READ) CMR The n umber of ca che miss es by an op erand cach e access (read) (number of access es to the outside of the CPU core due to a cac he miss). Cache mi sses are n ot count[...]

  • Page 57

    51 Table 2.12 M easu rement Items (cont) Classification Type Measur ement Item Option Note System b us performance (only avail able for Ch3 and Ch4) System bus Number of reque sts RQ The number of va lid bus c ycles (cells) is counted by the system bu s clock. Number of respons es RS The number of va lid bus cycl es (cells) is counted by the system[...]

  • Page 58

    52 Table 2.13 shows the measurement i tems and methods that are mainly us ed. Table 2.13 Main Measurement Items Main Measurem ent Item Measurement Method Elapsed t ime Number of e lapsed cycles x CPU clo ck cycle s Number of e xecution instr uctio ns Number of va lid instr uctions i ssued + num ber of ca ses of simultaneo us execution of two instru[...]

  • Page 59

    53 Each measurement conditio n is also counted wh en con ditions in table 2.14 are ge nerated. Table 2.14 Perf ormance Measu rement Conditions to be Co unted Measurement Condition Notes No cachi ng due to the settings of T LB cacheab le bit Counted for accessing th e cacheab le area. Cache-on coun ting Accessing the non- cacheable area is coun ted [...]

  • Page 60

    54[...]

  • Page 61

    SuperH ™ Family E10A-USB Emulator Additional Document for User's Manual Supplementary Information on Using the SH7362 Publication Date: Rev.1.00, August 20, 2007 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Customer Support Department Global Strategic Communication Div. Renesas Solutions Corp. © 2007. Rene[...]

  • Page 62

    Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan http://www.renesas.com Refer to " http://www.renesas.com/en/network " for the latest and detailed information. Renesas Technology America, Inc. 450 Holger Way, San Jose, CA 95134-1368, U.S.A Tel: <1> (408) 382-7500, Fax: <1> (408) [...]

  • Page 63

    [...]

  • Page 64

    SuperH ™ Family E10A-USB Emulator Additional Doc ument for User’s Manu al Supplementary Information on Using the S H7362[...]