background image

Applications Engineering 

 

RTA-FOUSB-MON User’s Manual Rev 1.8 

15 / 29 

August 2003 

e. CE 

Pin 

This pin is used to enter boot mode for programming of the target M16C MCU. Not all M16C MCU’s have 
a CE pin. If a CE pin exists on the target MCU, it should be connected to this pin (refer to serial mode 
flash programming in the target MCU’s datasheet). If not, leave pin unconnected. 
 
This pin is in high impedance when in user mode (during debug operations). 
 
If the target MCU’s CE pin is used as input, isolate the driving circuit from the header connection with a 
1Kohm resistor.   
 
If to be left unconnected (if users decides to), care must be taken to ensure that the target MCU’s CE pin 
has a high signal level using a pull-up resistor during any programming operations.  

 

f. EPM 

Pin 

The pin is used to control target MCU’s EPM pin (if it exists on the target MCU). EPM pin is used during 
programming of the target MCU. If this pin exists on the target MCU (and in Target Powered mode), it 
should be connected to the header (refer to serial mode flash programming of the target MCU’s 
datasheet). If not, leave pin unconnected. 
 
If the target MCU’s EPM pin is used as input, isolate the driving circuit from the header connection using 
a 1Kohm resistor.   
 
If the EPM pin of the M16C MCU is left unconnected (no external circuit and not connected to 10-pin 
header), care must be taken to ensure that the target MCU’s EPM pin has a low signal level using a pull-
down resistor during any programming operations. 

 

g.  GND – Ground Pin 

This provides the common point where the ICD ground and target board ground planes can be 
connected. This must be connected to target board’s GND line/plane. 

 

h.  RESET – Target MCU Reset Signal 

This active low signal is used by the ICD to reset the target MCU. This must be connected to the target 
board’s reset circuit or target MCU’s reset pin. 
 
The user must ensure that the ICD can drive the pin to a valid low level with 5mA current. 

 

i.  CNVss – Target MCU CNVss Pin 

This active high signal is used by the ICD to control the target MCU’s CNVss pin for programming 
purposes. This must be connected to the target MCU’s CNVss pin. During normal operation, this pin must 
have a low signal. To accomplish this, connect a 10K (nominal) pull-down resistor. See M16C MCU 
datasheet on CNVss pin description for details. 

 

j.  RXD – Target MCU Transmit Data Output Signal (ICD Receive Data Input 

Signal) 

This is the ICD SIO receive data input. This must be connected to the target M16C MCU’s boot 
UART/SIO transmit data output (TXD) pin.  
 
This pin must be pulled down with a resistor connected to GND. The target MCU’s Kernel program polls 
this pin for the presence of the ICD before running the user program. Without the pull-down resistor, the 
target MCU will only run the Kernel program program. 
 
This pin cannot be used while the Kernel program is running (during in-circuit debug operations).  

 

Summary of Contents for RTA-FoUSB-MON

Page 1: ...RTA FoUSB MON Flash Programmer In Circuit Debugger User s Manual w w w renesas com A pplications Engineering Powerful Processors Easy to Use Rev 1 8 August 2003 ...

Page 2: ...mmer 7 6 Target Hardware Connectivity for In System Programming 10 7 Target Hardware Connectivity for In Circuit Debugging 14 8 Target MCU Resources Used by the ICD for In Circuit Debugging 18 Appendix A ICD Specifications 20 Appendix B Technical Notes Limitations 21 Appendix C Troubleshooting 22 Appendix D Reference Manuals 27 Appendix E Connecting to Legacy RS 232C Port 28 Appendix F USB Board S...

Page 3: ...ply needed when connecting to Renesas SKP s Starter Kits Target connection through a 10 pin header with matching 6 in cable 4 pin port available for Renesas MSV RS232 cable connectivity 8 pin port available for external interrupts and timers which can be use for debug and development Mini USB connector with matching 6ft cable to connect to host PC Semtech USB upstream port filter EMI and ESD prote...

Page 4: ...ck on RTA FOUSB MON to start software installation The install will create a new directory C MTOOL RTA FOUSB MON on your PC where it will copy the necessary files for the ICD During the install process development tools installation will come up as these have specific install programs to setup software necessary for the ICD 2 4 After installation please review the Quick Start Guide which may conta...

Page 5: ...are Windows applications supplied on the accompanying disk Getting the board up and running is easy Simply plug the board into an available USB port of a PC running Windows XP 2000 Windows ME or Windows 98 install the drivers and Windows software and that s it The following is a step by step process on how this is accomplished using Windows 2000 Professional Windows ME or Windows 98 will work simi...

Page 6: ...t this time if you look at the ICD s Status LED it should be blinking every second indicating that the Windows successfully recognized the ICD To verify that the driver was installed properly right click on the My Computer icon on the Windows desktop Click on the Hardware tab and then click on Device Manager button Open the Universal Serial Bus Controllers list and see that the ICD was loaded into...

Page 7: ...lect target powered mode and supply power on the target board To run the KD30 debugger double click on kd30 exe shortcut in your desktop An initial window similar to one shown below will be displayed Fig 4 1 KD30 Debugger Initialization Screen Select USB option and click on OK button The KD30 screen should appear Please see the KD30 Help on how to use the debugger Start Programs Renesas Tools KD30...

Page 8: ...ammer Screen NOTE 1 For additional descriptions and operations please click on Help button of the FoUSB Programmer 2 Renesas continues to update the application and the version number may be different from what is on this document MCU Device Select Button Standard Device Programmer Functions Status of ICD Connection Provide access to the FoUSB Programmer GUI options and other functions Provides a ...

Page 9: ...rnal RAM memory including MCU SFRs Program allows you to program or erase program and verify the target MCU The Unlock function used to unlock Renesas MCU s for memory access Renesas M16C MCU s are equipped with a security feature a 7 byte ID to prevent firmware program disassembly The user must enter the security ID information to be able to access Flash memory access In a Locked state the only f...

Page 10: ...ings button allows the user to configure the FoUSB Programmer application such as colors etc The firmware version and loaded MMI MCU Monitor Image file shows the following information a Monitor Firmware displays the version of ICD M37641 firmware that the board was programmed with b MMI Loaded displays the MMI MCU Monitor Image file that the ICD firmware is using This image file contains the infor...

Page 11: ...et board This must be connected to the target board s Vcc line plane In Target Power mode the ICD requires at least 3 3V 5 0V max and 45mA to operate properly b Busy Target MCU SIO Busy Signal This line indicates whether the target is busy and cannot receive data or not This must be connected to the target MCU s boot UART SIO BUSY CTS RTS pin This pin may be used for other applications as long as ...

Page 12: ...16C MCU is left unconnected no external circuit and not connected to 10 pin header care must be taken to ensure that the target MCU s EPM pin has a high signal level by a pull up resistor during any programming operations g GND Ground Pin This provides the common point where the ICD ground and target board ground planes can be connected This must be connected to target board s GND line plane h RES...

Page 13: ...ary M16C MCU CE EPM Pin Boot UART SIO M30100F3 None UART0 M30245FC Both UART1 M30262F8 CE UART1 M3062GF8N Both UART1 M30620FCA Both UART1 M30624FGA Both UART1 M30626FGP Both UART1 M306V7FG Both UART0 Examples of target board hardware connection to the 10 pin header ICD when used for in system programming only are shown below If you cannot find your M16C Flash MCU in the examples shown please conta...

Page 14: ...inal P5_5 HOLD EPM M30620F M30624F M30626F M306NAF M306NBF M30803F M30835F in Single Chip Mode User UART SIO Circuit Risolation 1K nominal When only used in programming i e no debug operation and user uses boot UART CE and EPM pins connect 1K nominal isolation resistors between user UART CE EPM circuit and M16C MCU 10 pin header connection User GPIO Hold Ckt Risolation 1K nominal EPM 1 2 3 4 5 6 7...

Page 15: ...in This provides the common connection point for power between ICD and the target board This must be connected to the target board s Vcc line plane In Target Power mode the ICD requires at least 3 3V and 45mA to operate properly The ICD requires 5V when downloading new MCU Monitor Image MMI b Busy Target MCU SIO Busy Signal This line indicates whether the target is busy and cannot receive data or ...

Page 16: ...ader care must be taken to ensure that the target MCU s EPM pin has a low signal level using a pull down resistor during any programming operations g GND Ground Pin This provides the common point where the ICD ground and target board ground planes can be connected This must be connected to target board s GND line plane h RESET Target MCU Reset Signal This active low signal is used by the ICD to re...

Page 17: ...ART SIO DBC Irq Support Breakpoints M30100F3 None UART0 No 2 M30245FC Both UART1 No 2 M30262F8 CE UART1 Yes 6 M3062GF8N Both UART1 No 2 M30620FCA Both UART1 No 2 M30624FGA Both UART1 No 2 M30626FGP Both UART1 Yes 8 M306V7FG Both UART0 No 2 Examples of target hardware connection to the 10 pin header ICD when used for debugging purposes If you cannot find your M16C Flash MCU in the examples shown pl...

Page 18: ...20F M30624F M30626F in Expanded Memory Mode RHOLD 47K nominal EPM 1 2 3 4 5 6 7 8 9 10 Vcc P6_4 RTS1 Busy P6_5 CLK1 SCLK P6_6 RxD1 RxD P5_0 WRL CE Vss RESET CNVss P6_7 TxD1 TxD BUSY Vcc CLK RxD CE GND RESET CNVss TxD M30245F 10 Pin Header Vcc 47K nominal 47K nominal EPM 1 2 3 4 5 6 7 8 9 10 Vcc P6_4 RTS1 Busy P6_5 CLK1 SCLK P6_6 RxD1 RxD P5_0 WRL CE Vss RESET CNVss P6_7 TxD1 TxD BUSY Vcc CLK RxD C...

Page 19: ...hould not be used Any attempt to use this area by the user code will be ignored The special page vector table is mapped from 0FFE00H to 0FFFDBH It is suggested that if special page jumps are used the special page numbers start with the minimum value of 20 and increases to a maximum of 127 to accommodate future monitor size increases b RAM The kernel program utilizes 128 bytes of RAM memory located...

Page 20: ...eal Time Capability Please be aware that while the kernel program is in its STOP ed state the hardware peripherals will continue to run Therefore interrupts may not be serviced properly Also the watchdog timer will not be serviced and will likely timeout if active NOTE While the kernel program is in its RUN ning state there is no overhead on the application code UNLESS a RAM monitor window is open...

Page 21: ...y on how to design the target hardware to connect the ICD LED 4 LED s 2 red 1 green 1 yellow a Red D1 Power LED b Red D2 Lights up when target MCU is stopped c Green D3 Lights up when target MCU is running d Yellow D4 ICD ready status blinking Switch Jumpers Provide additional debug pins microprocessor mode and power supply selection a Bus Power S1 Power selection Bus powered or target powered b M...

Page 22: ...32 SKP Board When using the ICD with the MSV1632 SKP board connect a 10KOhm pull down resistor on JP9 s UART1 RXD line to be able to run user code The monitor program polls the RXD line for the presence of the ICD before running the user program Without the pull down resistor the M16C 62 MCU will only run the monitor program ...

Page 23: ...g Windows 2000 or XP you will need Administrator privileges to be able to install the drivers 1 Windows 2000 a Install FoUSB Programmer by double clicking on fousb exe from the Tools FOUSB folder of the CD b Copy the fousb inf and usbmon inf files from C MTOOL FOUSB USB Drivers folder to WINNT INF folder c Copy the fousb sys and usbmon sys files from C MTOOL FOUSB USB Drivers folder to WINNT SYSTE...

Page 24: ... or yellow exclamation point the driver was installed properly For cases where the Device Status states the device is not working properly please try the following 1 Double click on Renesas USB ICD and a Renesas USB ICD Properties dialog box appears 2 Click on Driver tab and click on Update Driver button 3 Select Display a list and click on Have Disk button 4 Locate the C MTOOL FOUSB USB Drivers f...

Page 25: ... to both ICD and SKP boards Renesas SKP boards were designed so that the combination of ICD and SKP board will be under 100mA limit If your target board is a non Renesas SKP board change S1 to TRGTPWRD and connect an external power supply to your target board 4 The target MCU programmed on the ICD during KD30 initialization does not match the actual target MCU Close the error message by clicking o...

Page 26: ...e USB cable to the PC 2 The FoUSB Programmer driver fousb inf and fousb sys was not installed properly Please install the drivers manually please read Installing Required Files Manually 3 The ICD has no user ROM firmware Please read Using the ICD Boot Mode to program the user ROM firmware If you encounter a target is not connected the possible causes and countermeasures are listed below 1 The targ...

Page 27: ...is not connected at this time A new hardware found window would come up showing Flash over USB and installs the necessary drivers If Windows requests for the drivers select Specify a location locate C MTOOL FoUSB USB Drivers folder and follow Windows instruction on driver installation If the drivers were already installed before this will not appear 5 Open FoUSB Programmer and it should come as M3...

Page 28: ...eries Software Manual This document details the instruction set and timing information for the M16C 20 60 series CPU cores 8 M16C 20 60 Series Sample Programs This document details some sample programs and application notes for the M16C 20 60 series MCUs 9 Tool Manager User s Manual This document describes installation and operation of this Integrated Development Environment for Renesas Tools 10 K...

Page 29: ...n will only allow you to use the ICD as a debugger but not a programmer 1 2 3 4 Vcc TXD1 RXD1 GND Fig E 1 J2 Pin Assignment ICD J2 Pin Header 1 2 3 4 1 2 3 4 5 6 7 8 9 10 MSV RS232 10 Pin Header Fig E 2 Connecting the ICD to an MSV RS232 Cable NOTES An external power supply is required to power the ICD and MSV RS232 cable when connecting the ICD to an RS 232C port On KD30 the Baud Rate must be set...

Page 30: ...4 3 3 6 6 5 5 8 8 7 7 10 10 9 9 R14 10K 1 2 R5 3 3K 1 2 R7 1 5K 1 2 C6 2 2 uF 1 2 C4 0 1uF 1 2 C7 0 1uF 1 2 C3 0 1uF 1 2 C1 0 1 uF 1 2 C2 0 1uF 1 2 D4 SML LX0603YW 1 2 D1 SML LX0603IW 1 2 D2 SML LX0603IW 1 2 D3 SML LX0603GW 1 2 R25 100 1 2 OUT OUT PG FB IN IN EN GND U2 TPS77433DGK 5 6 8 7 2 1 3 4 R13 4 7K 1 2 U4 MCP120T 270I TT Vdd 2 RST 1 GND 3 R28 3 3K 1 2 R21 1 5K 1 2 JP1 22 03 2021 Q2 ZXM61P02...

Reviews: