Home

AP4, Application Leading Tool, Applilet3 Common Operations

image

Contents

1. 44 5 2 5 Example of a Module Panel for a Peripheral Function 1 Un 45 ToPo view E E 46 E ei Dirgent 48 R20UT3420EJ0100 Rev1 00 CENESAS Page 5 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual Chapter 1 Outline 1 1 Overview The AP4 and Application Leading Tool Applilet is a software tool that automatically generates device drivers for the RL78 microcontroller and the RX microcontroller made by Renesas Electronics The Applilet consistent with the device to be employed should be used Through the GUI the Apllilet allows you to quickly initialize peripheral module registers This manual provides common operation specifications such as the Applilet main window menus and dialog operating methods which are not dependent on the specific device to be employed This manual provides explanations by using RX111 Applilet screens as examples 1 2 Names and Functions of Hardware The flowchart of developmental tasks using the Applilet is shown in the figure below Figure 1 1 Developmental Flowchart Product Planning System Design Applilet IAR Embedded Workbench Software Design Software Design Implement Test Compile Assemble System Debug System Test commodification Remark e studio An eclipse based integrated development environment provided by Renesas Electronics Corporation IAR Embedded Workbench An integrated developm
2. E uj Voltage Detection Circuit U r par es a oa Mm TTT mM sz mM Mmm TT Ev rica de IP E Ev coh userc tout x SE Lega MO4OSO04 sreV cg cge h was overwritten av Clock Frequency Accuracy Measureme Fl Qi eg_cac c E l eg_cac_user c HIT d i I Lq Cac h bd Low Power Consumption e Interrupt Controller Unt T A ofl MO409000 sre r cg SCLC was generated MOADAODO srcwr cg scluserc was generated MUAUOUUU anch co sch was generated MO409003 The operation of generating file was successful MCU RX111 128KB Chip RSF511154 FM 1 Preview Tree Double clicking the source file or API function name on the Preview tree changes the display of the source code display area On the Preview tree the shapes of the icons change according to the status of the settings Table 5 3 Preview Tree Icons seg Peripheral function unused used SCC Fi The API function to be output during code generation required The API function to be output during code generation user specifiable GG The API function not to be output during code generation user specifiable R20UT3420EJ0100 Rev1 00 LENESAS Page 46 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual Right clicking the API function file name brings up the context menu Table 5 4 Preview Tree Context Menu Generate Code API function GL Ep Sets the API function a
3. LENESAS o D A o lt D D AP4 Application Leading Tool Applilet3 Common Operations User s Manual Target Devices RX Family RL78 Family RZ Family All information contained in these matenals including products and product specifications represents information on the product at the time of publication and is subject to change by Renesas Electronics Com without notice Please review the latest information published by Renesas Electronics Com through various means including the Renesas Electronics Com website hilpi www renesas com Renesas Electronics Rev 1 00 Mar 2015 WWW TENESaz COM 10 11 12 Notice Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information 1n the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information Renesas Electronics has used reasonable care 1n preparing the information included in this document but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein
4. Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from such alteration modification copy or otherwise misappropriation of Renesas Electronics product Renesas Electronics products are classified according to the following two quality grades Standard and High Quality The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots etc High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems and safety equipment etc Renesas Electronics products are neither intended nor aut
5. SEENEN eege eege Eege 8 2 9 UR eil EEN HoN Geet 11 Chapter 3 Operating Procedure ssssssssssssssccssssssssscssssunsssersnnasssernsnnasscensqnnsssrennqnnssssensnnnnsstttt s 12 3 1 Names of Parts 12 SETIO EH 13 e MENU Ba EEN 13 o E lIa Rojo or EE 13 Fe Module Kolo lo EE 13 NR e ul EE 13 soJa emi eege 14 e deo TR cere 0 ETE E 14 ses POVON Pan ETE 15 o GODS IY g in EE 15 Su OW Vaz STE TTTTEETERRRREE E 15 32 Operating erer 16 SAS Pe N UN EE 17 3 4 Creating a New Project File ssesccesesscessensscenassesennssessensscesqustsesqunssennnstcerqnntstntens 18 SE ele ale Ee Ree Re EE 19 3 6 Setting up a Peripheral FUNCTION ccccccceseeseccceeeecaeeeeseeeeeeeseaeeeeeceeeeessaeaaeeeeeeeessauesseeceeeeessuaaaeeeeeees 20 20 Well 1619 9 6 9 ogee eee E O Ce OA ne ee 21 3 6 2 Icon Display on Invalid Input Fields sesssseeeeessneseennnnnnseennnnnnaeeennnnnnsesennnnns 21 3 6 3 Icon Display on Pin CGontenton 22 3 GNECKNO SOLUCE See PRTITTTTTEFT FTRRTIE 23 37 1 OSUNO OUUU ne EE 24 347 sss anlls oke hBE hEq 25 37 3 Renaming an API re EE 26 So OUP ee Ree 27 3 8 1 Modifying the Output Modes 28 3 8 2 Changing
6. 3 24 Renaming an API SU IOR wm A D Converter void H CGC Create rh ea D A Converter i pr Data Operation Circuit uintil6 t w count E E Code Preview oO E Li Common JE Set uaj z i e Er wi Clock Generator SYSTEM jae Tree Vr AN MAIN E NM Log ce c SYSTEM l ias 45 R CGC Create oj mw AD Converter Men CGC Set Flock Made seki ME D A Converter Le leg cgc_usq ap Generate Code Ten i ps Data Operation Circuit 2 L LI D LGL OH Not Generate Code E E Code Preview eege COC Oi Wait E Se ER Common 19 Gesech Pee i b Voltage SEET E Default E wi Clock Generator mo Clock Frequency om Er ry Leg cgc c E o Low Power Core property TEM a H CSC Create 0 CG E o Interrupt Lontrollero D CGC Set ClockMode ie Buses ME L eg cmo LIZET C Remarks 1 The name of the main function cannot be changed 2 In file names single byte alphanumeric characters and underscore can be used 3 Whether output is on or off can be checked by the type of each icon on the Preview panel R20UT3420EJ0100 Rev1 00 w NSA Page 26 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 8 Output of Source Code Source code a device driver program can be output by any of the following methods From the File menu select Generate Code On the toolbar click the e button Onthe module toolbar click the e Generate code button Figure 3 25 Code Generatio
7. C Out D F Pull up CMOS au E Dutot HEN Unused C In e Out F Full up N channel open drain gt E Output 1 PER Unused Ge In C Out Ni Pull up EMOS output F tout PEf Unused Ge In C Out E Pull up CMOS output E tout R20UT3420EJ0100 Rev1 00 LENESAS Page 42 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet8 Common Operations User s Manual 5 2 3 Example of a Module Panel for a Peripheral Function 1 Channel The figure below shows an example of a Module panel for a peripheral function with only one channel installed The operation of the peripheral function can be set by setting the various items that are displayed on the panel Executing Return to Reset Value from the Project Tree panel resets the settings to their default values Figure 5 5 Example of a Module Panel A D Converter P Peripheral Functions VE Code Preview Properby x felGeneratecode ee Pe DE OS ES vd 2 General setting Setting Function setting Unused SE Ce Analog input channel mode Temperature sensor mode Internal reference voltage mode prr Peripheral Functions EES Code Preview Fe Property e Generate code gy Et a MM ZC ep A As Es ae Lo eebe bio e e General setting Setting Operation mode setting Ce Single scan mode Group scan mode Continuous scan mode Conversion mode setting e Normal 1 894 AVEC 4 244 High speed AVCC gt 2 444 MREFi Setting e AVCCO AVREFHO VREF
8. Fu Project Tree Clock Generator voltage Detection Circuit Clock Frequency Accuracy Measurement Circuit Low Power Consumption ge Clock Ge mi Voltage D Interrupt Controller Unit pr LYDI si Buses wi DUO D G mil Clock Fred ZZ pr Low Powe ge Data Transfer Controller Event Link Controller Interupt O eg UO Ports pr Buses d ei Dala Tra Multi Function Timer Pulse Unit 2 em Event Lin ca Port Output Enable 2 Cel a vO Parts Compare Match Timer Oe Mult Fung ogee Port Dud Realtime Clock E a Compare kda Independent Watchdog Timer e Serial Communications InterFace a DC Bus Interface 7 Serial Peripheral InterFace A CRC Calculator bi AID Converter d DIA Converter 24 Data Operation Circuit Table 4 2 Peripheral Functions Menu Peripheral function name Displays the associated settings screen on the Module panel The names of peripheral functions that are displayed may vary from one product to another R20UT3420EJ0100 Rev1 00 Mar 31 2015 LENESAS Page 34 of 48 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 4 3 Options Menu Figure 4 3 Options Menu Application Leading Tool for RX111 SampleOl cgp File View Peripheral Functions Options a esse E Compiler File Generation Control Project Tree unctions Code Previe Ssma o pon Type koseedi E ka Peripheral Functions APT Output Control f Clock Generator Voltag
9. Output Destinations s ssesssssssssssssssssssssnennssssnnnsssennnnssrnnnnsstrnnnnstth 29 30 Generaing a REDON EE 30 OVO ee ER EE 31 ua Ee g e TE 32 I ee ee RRRRTTTTTFTTRTTRTRTTTRTRTRTrTTrrFRRRTRTT 32 R20UT3420EJ0100 Rev1 00 LENESAS Page 4 of 48 Mar 31 2015 Chapter 4 Menu Reference cccccccssssecceceeeeeeeecceauseceeecaeueceeeesauseeeesseaaseeeeeseaaeeesssaeaeceeessuaeceessasaaeeeeesssagseeees 33 Alt e UN EE 33 4 2 Peripheral Functions Menu A 34 Ae OIG FS I SM E EE 35 E Re leif EE 36 A Ree le TFE mp M HRFHRHR E 7yqx FFFTERE 37 kouis Wi Keele EE 37 BSNS OOM AN RLRhk E E L EE ELRrRRREREFR m 38 Chapter 5 Window Heierence sanersiierrecuriosisei ionieni ennei eae onai niera eda Eaa naii en aaa ERNA naa 39 e Poet e Pane ET 39 2 NOUE PANG eege 40 5 2 1 Example of a Module Panel for Clock Generation Circuits sesssseeeesenneseennnnnns 41 5 2 2 Example of a Module Panel for Ports esessscceesesnsseennnnnssseennnnnssssennnnnsssstnnnnns 42 5 2 3 Example of a Module Panel for a Peripheral Function 1 Channel 43 5 2 4 Example of a Module Panel for a Peripheral Function Multiple Channels
10. R20UT3420EJ0100 Rev1 00 LENESAS Page 22 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 Checking Source Code The Applilet generates source code a device driver program that matches peripheral function settings see 3 6 Setting up a Peripheral Function The source code can be checked on the Preview panel If the Preview panel is not open clicking the Preview tab switches the Module panel to the Preview Panel On the tree on the Preview panel double clicking either the source code file name or the API function name switches the display of the source code On the Preview panel tree you can specify whether to turn on or off an output rename API functions or rename files Figure 3 20 Verifying Source Code Application Leading Tool for RX111 SampleOl cgp l IO x File View Peripheral Functions Options Help O ee bed 1S Bm ceux for e2studic 1 x cel Peripheral Functions 7 Code Preview oom A D Converter A roid R CGC Create void m D A Converter m Data Operation Circuit uintl6 t w count Multi Function Timer Pulse Unit 2 Port Output Enable 2 Compare Match Timer Realtime Clack Independent Watchdog Timer Serial Communications Interface 2C Bus Interlace MOdOQAOO4 src4r cg cogc h was overwritten al MUAUOUUU arcH co scic was generated MUAUOUUU ac co sci user CG was generated MUAUOUUU ac co sch was generated Serial Peripheral Inte
11. RX111 in Windows 7 as an example The contents of display may vary depending upon the particular operating system and software being used Cautions 1 You need to perform uninstallation by logging in as a user with Administrator privileges 2 Uninstalling the Applilet will not uninstall the NET Framework Version 4 and Microsoft Visual C 2010 SP1 run time library and associated files 1 In Add or Remove Programs of Windows 7 click the Uninstall button for the Applilet to be uninstalled Figure 2 4 Add or Remove Programs Uninstalling Applilet BEE SC amp Currently installed programs show updates Sort by Mame sl Change or CA Application Leading Tool for RX111 1 00 00 Size 19 34ME Remove Programs 2 Add Mer Click here For support information Used rarely To change this program or remove it From your computer click Change or Remove Fi enlilara Fee DIFA mini Ono Oj mee d mARAM 2 In the wizard dialog box that appears select Yes Figure 2 5 Confirming Uninstallation I xi Ze Currently installed programs show updates Sort by Mame sl Change or A Remove ica Programs HB Applic Add or Remove Programs f zll Click he To chan 2 Are you sure you want to remove Application Leading Tool For R111 1 00 00 from your computer Add Mer Fi annlilar 3 The uninstallation process finishes Figure 2 6 Uninstall Finished ID xi Current
12. Setting Ge AMC C AVREFLO Double trigger mode setting Ce Disable Enable Analog input channel seting I E Convert Group 4 Convert Group B Add AD converted value ANOOO M z a ANODI pi E a ANDO M p a AND Je p a SE ANOO4 E E E ANODE pi E a ANOOS a F Ni ANOOS is Dia F ANDID E a E ANOTI pi IT a AND12 pi F a ANO13 is Di F i i dE R20UT3420EJ0100 Rev1 00 LENESAS Page 43 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 5 2 4 Example of a Module Panel for a Peripheral Function Multiple Channels The figure below shows an example of a Module panel for a peripheral function containing multiple channels By changing channels to be set through the tabs you can set peripheral function operations by channel Executing Return to Reset Value from the Project Tree panel resets the settings for the currently selected channel to their default values Figure 5 6 Example of a Module Panel Compare match timer y Peripheral Functions 7 Code Preview Property x e Generate code fs L ce fe w af of Nk KTA kij ZAJ LI i e Le i el CMTo CMT Compare match timer operation setting Unused e Used Count clock setting Ge PELKAB PCLK 32 PCLE128 PCLK S12 Interval value seting lM FF Interval value A us Actual value 100 Interrupt setting MW Enable compare match interrupt CH Friority Leve
13. by the military including but not limited to the development of weapons of mass destruction When exporting the Renesas Electronics products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations It is the responsibility of the buyer or distributor of Renesas Electronics products who distributes disposes of or otherwise places the product with a third party to notify such third party in advance of the contents and conditions set forth in this document Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of unauthorized use of Renesas Electronics products This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics 2012 4 Terminology The meanings of the terms used in this manual are described in the table below Renesas en
14. deck sine ord ATT RTII wra d Oasen Pregare x A High speed clock geck MOCOJ esfung Doman Ra MIME 27 Peripheral Functions Clock Generator Voltage Detection Circuit Clock Frequency Accuracy Measurement Circuit Low Power Consumption Interrupt Controller Unit Buses Data Transfer Controller Event Link Controller LO Ports Multi Function Timer Pulse Unit 2 Port Qutput Enable 2 Compare Match Timer Realtime Clock Independent Watchdog Timer Serial Communications InterFace T2C Bus Interface Serial Peripheral Interface CRC Calculator AID Converter DIA Converter 1001 VIC aM Burj kim Upped cated mondano LININ cartarg TO Dea RT PT eck a a Ke end konki sche Hat LUH Di sali iarten Treier ikiii i taroj Dech surpa iien Elek BELAJ Faspheraj see chek PO LFN Fina plasa sarhan chk kaaf ELEC Te E rakia ELLE Pea ged E Bckeet IL DLC pn kantino Fim Caution The Clock setting can affect other peripheral function settings If the Clock setting is modified the settings for other peripheral functions need to be rechecked R20UT3420EJ0100 Rev1 00 Mar 31 2015 LENESAS Page 20 of 48 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 6 1 Input Conventions Input of information into the Module panel is subject to the following conventions 1 Character set Table 3 2 lists character sets that the Module panel can accept for input Table
15. html b function html Look My Devens eerie Seep Fues Fran Jidd Wanka Internet Eph Ix Cem ES H D ome fe feiere je rs Ki ietis iradi a y Deen prerg vr aere Lee U Ereteen kemi MALU nama KELTI TIKI TIEKO s Che name ASF S11 Used ICC a NGG seting ZIVI VGC 36 V ken mame IL KES LL lock source Main ckek oseitator AE dems Main clock oscilahon source Resonator p JERMAN Usea Main clock oscilation source meet eg inpe Le nip E E e veid MAN bamgertogt NIMI handoj oscikatorwaimee 2 cyeles 12 us li voto BRK handlenjvand BRK handier Oscillation stop detection Disabhed eg systeminite f eg spsberenral c dm O O ean spasme Syste Ge TTT Jeanne i E fe jo pea tet low Jevel init Enn mand Auk FATIMA C eg macrodriverh rcg macodiverh HOCOJ seting koki Li teg user System dock CLG vumm Pa Peripheral module click er It CO Ege C I LEE PCLKB See keep CGC Createjvoid R CGC Create Eege eg och 4 12 MH E P R_CGC_Registernte_Cgc E II FlashiF clock FCLIK x 112 MHz ied Las uze EE EE EE ee NN EE FETT FF ee TT emas IT SEIS R20UT3420EJ0100 Rev1 00 LENESAS Page 30 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 10 Saving a Project To save information that
16. sub clock Remark Whether output is on or off can be checked by the type of each icon on the Preview panel Table 3 4 Source Code Output on off The source code for this API function will be output The API function for which this icon is displayed is treated as a function requiring source code output not changeable to a Ch Jo source code for this API function will be output q The source code for this API function will not be output R20UT3420EJ0100 Rev1 00 LENESAS Page 24 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 2 Renaming a File In the Applilet the code to be output can be assigned any file name On the Preview panel tree right clicking the file name brings up the context menu By selecting Rename you can edit the file name Figure 3 22 Renaming a File i Ef Code Preview Property a Serial Peripheral Interface void R CGC Create UserInit void pr CRC Calculator i i Ml A D Converter ZS Start user code Do not edit comment generate CH mw D A Converter ZS End user code Do not edit comment generated Le Data Operation Circuit E E Code Previews Peripheral Functions we SiR GR Common Liuj i pis zi ke ERT Clock Generator po el Serial Peripheral Interface voaske ERT Leg cge c wm CAC Calculator 24 mw AD Converter mw D A Converter e L CO CC l i l eG DU Berens o ae Data Operation C
17. 1 0 Ports Multi Function Timer Pulse Unit 2 Port Qutput Enable 2 Compare Match Timer Realtime Clock Independent Watchdog Timer Serial Communications Interface 12C Bus Interface Serial Peripheral Interface Voltage Detection Circuit W mo E wm Low Power Consumption w Interrupt Controller Unit mw Buses w Data Transter Controller Event Link Controller wo 1 0 Ports w Mult Function Timer Pulse Unit 2 mw Port Output Enable 2 E imo mo La mo mo mo mo mo mo Main clock oscillator setting Je Operation Main clock oscillation source Frequency Oscillator wait time Oscillation stop detection function PLL circuit setting Operation Frequency Sub clock oscillator and RTC RTCSCLK setting Compare Match Timer MUOSOCCECECECECECECECECECCCECCCCCCECUEN MUAUOUUd acht cq cge c was overwritten MO409004 srcwr cg cge user c was overwritten CRC Calculator j A D Converter M Operation a Realtime Clock D A Converter Data Operation Circuit a Independent Watchdog Timer ode Preview MO409004 sre r_cg_userdefine h was overwritten E Serial Communications interface AC Bus Interlace Denel Peripheral Interface CAC Calculator AD Converter D A Converter Data Operation Circuit LI uia L CO malh MO409004 srcwr co cge h was overwritten FRO main S R MAIN Userlnit 8405003 The opera
18. 3 2 List of Character Sets ASCII Single byte alphabetic numeric and symbol characters Double byte alphabetic numeric symbol hiragana katakana and kanji characters and single byte katakana characters Double byte alphabetic numeric symbol hiragana katakana and kanji characters and single byte katakana characters Double byte alphabetic numeric symbol hiragana katakana or kanji including Chinese characters and single byte katakana characters 2 Numeric values Table 3 3 shows radix base numbers that the Module panel can accept for input Table 3 3 List of Radix Base Numbers Radix number Summary representation Decimal JA number beginning with a numeral 1 to 9 followed by numerals 0 to 9 including 0 Hexadecimal A number beginning with Ox followed by O to 9 or alphabetic characters a to f not case sensitive 3 6 2 Icon Display on Invalid Input Fields If an illegal character string is entered or if a value is not entered in a required field the Module panel displays a g icon indicating that the input data is incorrect In addition the Module panel represents the affected character string in red to provide a warning that input is invalid Remarks 1 lf an invalid input field is present control cannot move to another peripheral function setup view 2 If the mouse cursor is moved to the o icon information on the character string to be input a helpful hint on how to resolve the input error is
19. 3 Common Operations User s Manual 1 Using the Applilet installer execute the Setup exe file Remarks 1 The Applilet installer can be acquired from the website for Renesas Electronics http www renesas com products tools coding_tools coding_assistance applilet The address of the website is subject to change without notice 2 The downloaded installer may be compressed If it is compressed decompress it and execute the Setup exe file 2 The Choose Setup Language dialog box appears Select the desired language and click the OK button Figure 2 1 Choose Setup Language Dialog Box Choose Setup Language x Select the language for this installation from the choices below ti ech 3 Specify installation settings according to the wizard dialog that appears In each dialog box clicking either the Next or Yes button brings up the next screen Figure 2 2 Installation Wizard Dialog Box Welcome to the InstallShield Wizard for Application Leading Tool for RX111 Y1 00 00 License Agreement Please read the Followina license aoreement carefully USER LICENSE Ac Destination Folder Click Next to install to this folder or click Chanae to install to a different IMPORTANT READ This User License ISS Install4 Ready to Install the Program either a natural p C Prog Renesas for ti means the Renes The wizard is ready to begin installation compute
20. A D Converter D A Converter Data Operation Circuit R20UT3420EJ0100 Rev1 00 LENESAS Page 38 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual Chapter 5 Window Reference The Applilet provides different windows for different microcontroller products that it supports This manual describes the displays and operating procedures that are common to the microcontroller products that the Applilet supports Product by product descriptions of windows are omitted 5 1 Project Tree Panel The Project Tree panel displays in tree format the peripheral functions those which are supported by the Applilet that target devices possess By double clicking the name of a peripheral function you can switch between modules that are displayed or set up on the Module panel Figure 5 1 Display of Project Tree Panel Application Leading Tool for RX111 SampleO1 cgp Samplel1 File View Peripheral Functions Options Help Cun IGUS fel 2 MI GNURX for e2studig Peri F 2 l ew big enpheral Functions Project Tree GC Peripheral Functions E Clock t Generator i Sample 1 fe Generate code O w ZC e Sg P Gheral Functions Clock Generator VCC setting Voltage Detection Circuit GG 27 lt VCC lt 3 6 V 2 Clock Frequency Accuracy Measureme Low Power Consumption Interrupt Controller Unit Buses Data Transfer Controller Event Link Controller
21. Clock setting Block oa am do Property as s CS KI zl Device ListView i epok setting Device Top View WEC setting Perpheral Functions e gt a a P Clock Generator e V 2 YCC W 6 V ed M YCC lt 47 VI Voltage Detection l About AP4 Si DEET APA 1 04 01 05 2014 2015 Renesas Electronics Corporation a WO mo mw Low Power Consun mw Interrupt Controller ke mo mo LN Gel Rises Buses oe wm WO Forte R111 VT UD 30 Dec 2014 Multi Function Time RATIS WV1 OA DOM 07 Jan 2015 S 0 5 us em Compare Match Tir Rabat W1 02 00 07 30 Dec 2074 El Ss wm Realtime Clock a a Independent afatci Cp Serial Communicati i pe l2U Bus Interface Sub clock oscillator drive capacity Middle drive capacity d eem Denel Peripheral Intertace as CRC Calculator Frequency a2 768 KU em A D Converter Table 4 4 Help Menu About AP4 Displays version information and other items R20UT3420EJ0100 Rev1 00 s t N E SAS Page 36 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations 4 5 Toolbars User s Manual Applilet provides two toolbars The main toolbar which is always displayed below the Manu bar and a module toolbar which is displayed above the Module panel 4 5 1 Main Toolbar The main toolbar is always displayed below the menu bar By clicking buttons on the main toolbar you can execute function
22. EGN1 INTP EGN RESET VALUE During code generation whether this line is to be or INTP User lnit not to be actually output depends on the settings for the API function INTP User Init that is called R20UT3420EJ0100 Rev1 00 LENESAS Page 47 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 5 4 Output Panel The Output panel displays information such as the execution status of code generation or report output and the allowable setting range for a selected input field Figure 5 10 Output Panel Display Application Leading Tool for RX111 SampleOl cop pO sl File View Peripheral Functions Options Help LI ki fe vo Cl MURS For eZstudio i Froject Tree x Ti Peripheral Functions E Code Preview TE Property Code Preview void R CGC Create void S Common I EGI reg mainc uintl6 t w count Podo ug main ai PD MAIN Dserlnit f4 Set main clock control registers 5 Si Ar reg vector table c SYSTEM MOFCR BYTE OO CGC _MAINOSC RESONATOR 20 CGC MAINOSC_ OW cg reset program asm SYSTEM MOSCUTCR BYTE OO CGC_OSC_WAIT_ CYCLE 2 H pos Ip r ca mtemupt handlers h ER rea hardware setup c ZS Set main clock operation SA Ar reg macrodriver h SYSTEM MOSCCR BIT MOSTP OU pa uu CO userdefire h Eg Clock Generator f4 Wait for main clock oscillator wait counter overflow l Ip Ieg_cgc c while 1U SYSTEM OSCOVFSR BIT MOOVF Sa a R_CGC Create SP
23. ESAS Page 23 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 7 1 Setting Output on off According to the peripheral function settings the Applilet automatically enables the output of a required API function For non mandatory API functions the user can enable disable the output of the API function On the Preview panel tree right clicking the API function name brings up a context menu By selecting Generate Code Not Generate Code the user can specify whether to turn on or off an output of the API function Figure 3 21 Output on off PENOS SE Code Preview 7 Property Peripheral Functions void R CGC Create void 1 em ASD Converter ma W D A Converter m Data Operation Circuit SE Code Preview ley Common uintl6 t w count ZX Set main clock control registers 5 E Clock Generator SYSTEM MOFCR BYTE OO CGC MAINOSC RESONATOR CH eg OG SYSTEM MOSCUTCR BYTE DO CGC OSC WAIT CYCLE 2 GN BER SES H et main clock operation 5 A 7 LEO Co Ser EM MOSCCR BIT MOSTP OU NT R_CGC_Cr OC one oscil ait for main clock oscillator wait counter c uj Leo cgc h e 1U SYSTEM OSCOVFOZR EBIT HOO VFI Voltage Detection O Clock Frequency d et system clock je Low Power Consum pe EM SCECE LONG 00000000 cec PCLED DIV 1 ee Interrupt Controller 00000000 CGC FCLE DIV 1 Buses mj Data Transfer Controller ZS Set
24. HS LIEN s Project Tree D x Recent Projects Modified New Project Open Project Output n xX R20UT3420EJ0100 Rev1 00 LENESAS Page 17 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 4 Creating a New Project File 1 On the main window press the New Project button to display the New Project dialog box Figure 3 14 New Project Dialog Box Application Leading Tool ID x File View Peripheral Functions Options Help UB i i f ec Draianta na E Eo Microcontroller Fix Using microcontroller Using compiler Za RX111 128KB me R5F511154xFM BE R5F511154xFK NE A5F511154xLF EE ASF511154xFL E ASFS11154xNE Te AXI11 96KB amp CCRX CCRX for EAR e2studia EED Re RXI11 6AKB GNURX for RX111 32KB eZstudio e AXITI 16KB Output ROM size 128KB Pin count 64 Project name AXI 11 sample Place CAD ocuments and Settings toolgi My Docume DI Browse A 2 Setup items and then click the OK button to create a new project Table 3 1 Project Creation Settings ltem Summary Microcontroller Specify a target device Peripheral functions that can be set up vary with the specified device Using compiler 1 From CCRX made by Renesas EWRX made by IAR and GNURX made by KPIT select the compiler to be used for the build process The build tool c
25. PI output control Output all API functions according to the setting mj Clock Frequency Accuracy Measureme File generation control Merge file dE 8 Low Power Consumption Output folder C Documents and SettingsvtoolgnMly Documents Sample01 5 ow Interrupt Controller Unit alo LENNE gas r NEA bJ Desktop My Documents vg My Computer a My Network Places 3 20130329 OQOO OO RH850 Eis an rDlanO718ej0102 rl78g13 Flash AP4 RXIII CubeSuite E2 00 DOm CubeSuite E2 01 Dis aj Error Report Data Make New Folder Cancel Zi Remark In the installation destination folder name none of these 11 characters Y can be used Also a space a single byte blank character cannot be used at the beginning or end of a folder name The output changing process may fail if an illegal character is specified in the folder name R20UT3420EJ0100 Rev1 00 LENESAS Page 29 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 9 Generating a Report File A report file can be output by either of the following methods e From the File menu select Generate Report e Onthet Figure 3 28 Report Output Er Eu Remarks 1 Application Leading Tool for RX111 SampleOl cgp Fe view Peripheral Functions Options Help J Is kiij 24 Fl GNURX For e2studio Sve e Fl LT Sampled a el Generate code l Per
26. R_CGC_Set_ClockMode Set system clock Ur Long use SYSTEM SCECR LONG OOQOOOODO CGC PCLED DIW 1 ODOOOOOO CGC PCLE AM R_CGC_Create_Userlnit 00000000 CGC FCLE DIV 1 Se l rege oscilation stop interrupt Se IT r ca coh ft Set sub clock g roca kel BQ Geo led userc Output D x oz Q icadh MO409004 sre4r og coc h was overwritten EN El ing Clock Frequency Accuracy Measuremen MO409000 sre r co SCLC was generated H g r cg cac c MOADAODO srcwr cg sci userc was generated H l CO Cao UBET C MO409000 sre4r co sch was generated So D Leg cac h MO409003 The operation of generating file was successful 1 Select All E o Low Power Consumption Clear m Intermpt Controller Unt x MCU RX111 128KB Chip RSFS11154xFM Messages that are displayed on the Output panel are color coded depending on the type of message involved Table 5 6 Message Character Colors Normal message Indicates information such as the execution status of code generation or report output Displays a warning if the value in the input field is invalid Error message Indicates that the execution of processing is disabled due to a fatal error or other reasons Right clicking the Output panel displays a context menu Table 5 7 Output Panel Context Menu Selecting Clear from the context menu deletes all messages that are displayed on the Output panel Dragging a message character string on the Output panel selects producing an inverted
27. T SOSTP OU Interrupt Controller Unit hy Buses 5 Wait for the register modification to complete m Data Transfer Controller while OU SYSTEM SOSCCR BIT SOSTP Event Link Controller Sr 170 Ports for w count OU w count lt 0051 CGC SUBOSCUT WAIT w_count e Multi Function Timer Pulse Unit 2 Port Dutput Enable 2 nopi 3 Compare Match Timer Realtime Clock a al I D al I udi 3 1 9 This panel is used to view or make output macro and file settings Property Panel For a description of what is displayed see 5 4 Property Panel Figure 3 10 Property Panel L Code Preview Z Property 4 x 4 Peripheral Functions API output control Output all API functions according to the setting File generation control Merge file Output folder C Documents and Settings toolgi My Documents Sa Report type CSY file E Microcontroller Information Microcontroller name R5F511154 FM Nickname RX1TI 129KB A Product Information Release date 6 8 2013 Version 1 00 00 03 E Project Information Project name Sample 1 Project path C Documents and Settings toolgi My Documents S ample01 5 a Drainab huma Amnlim shan 3 1 10 Output Panel This panel displays the execution status of code generation or report output and information such as the allowable range for a selected input field For a description of what is displayed see 5 4 Output Panel Figure 3 11 Output Panel Out
28. User s Manual 3 1 8 Preview Panel This panel is used to set the file and the API function that are output during the code generation process For the operating procedure see 3 7 Checking Source Code Figure 3 9 Preview Panel Sal Peripheral Functions A Code Preview 77 Project Tree a x Property U reg vector table c void R CGC Create void wi r CO reset program asm U reg interrupt handlers h zg A r cag hardware setup c Ar reg macrodriver h Ar reg userdefine h g7 Clock Generator El qi reg ege c R CGC Create IP CGC Registerwfrite Cor IR CGC Registerwfrite Model IP CGC Registerwfrite Lwd R_CGC_Set_ClockMode A8 reg cgc user c Ip CC Create Userlnit Ml rege oscillation stop interrup Us reg cgc h uint16 t w count Set main clock control registers SYSTEM MOFCR BYTE OO CGC MAINOSC RESONATOR 20 CGC MAINOSC OVEI SYSTEM MOSCWTCR BYTE OO CGC OSC WAIT CYCLE 2 7 Set main clock operation SYSTEM MOSCCR BIT MOSTP OU Wait for main clock oscillator wait counter overflow while 1U SYSTEM OSCOVFSR BIT MOOVF 7 Set system clock SYSTEM SCKCR LONG 00000000 CGC PCLKD DIV 1 _00000000 CGC PCLKB 00000000 CGC FCLK DIV 1 Voltage Detection Circuit zi Clock Frequency Accuracy Measureme vs Set sub clock zg Low Power Consumption SYSTEM SOSCCR BI
29. _count H E SECCCCCCCCCCCCCCCCLCEL Oscillator wait time 7 Set main clock control registers SYSTEM MOFCR BYTE O00 CGC MAINOSC RESONATOR 20 CGC MAINOSC OVEI SYSTEM MOSCUTCR BYTE 00 CGC OSC WAIT CYCLE 2 Oscillation stop detection function PLL circuit setting Operation Frequency 57 Set SYSTEM main clock operation MOSCCR BIT MOSTP OU Wait for main clock oscillator wait counter overflow LG Sub clock oscilla EIER SE CRC Calculator z A D Converter E Operation a Peripheral Functions i A Code Preview 7 Property D A Converter Zi d s 95 Data Operation Circuit Output E Generate File Mode lt 8 gt E A Code Preview MO409004 sre r_cq_user defini API output control Output all API functions according to the setting C I File generation control Merge file a ommon l M0403004 stc r_cg_ege c ge Output folder C Documents and Settings toolgi My Docu wi r CO maln c MO40O3O0OO4 srcwr co co use Report type CS file MO409004 srcwr ca cge h wal oras MO409003 The operation of generating file was successful i 4 lt 10 gt of Pal main Pol R MAIN Userlnit J Leg vector table c NI MCU RX111 128KB Chip RSF51115AxFM I Title Displays the product name and the Applilet project file name 25 Menu Allows the user to select and execute a comma
30. ab 45 Set details on MTUO R20UT3420EJ0100 Rev1 00 LENESAS Page 45 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 5 3 Preview Panel The Preview panel is used to the file and the API function to be output during code generation For a description of operating procedure see 3 7 Checking Source Code Figure 5 8 Display of Preview Panel Application Leading Tool for RX111 SampleOl cgp DO x File View Peripheral Functions Options Help A ag Code Preview B wi Common Er Uu r eg maln c i kag ed mairi da ka Sr H MAIN Lzerlnit EI AU reg vector table c Sie fe CO Iesel program asm Bee co interupt handlers h E r Co hardware setup c g og macrodriver h po ka d r Log userdefine h E e Clock Generator i Laj a SNLURX For e2studio ojec am uf cour EEF Source code display area x uinti t w count f4 Set main clock control registers 5 sYoTEM MOFCE BYTE OO GC MATNOSC RESONATOR 20 CGO MAINOSC ov SYSTEM MOSCUTCR BYTE OO CGC OSC WAIT CYCLE 2 p f Set main clock operation SYSTEM MOSCCR BIT MOSTP OU ZS Wait for main clock oscillator wait counter overflow 4 E While 10 SYSTEM OSCOVFOR BIT MOO WVF LGL Set ZS Set system clock sYoTEM SCECE LONG DOOOOOOOO CGC PCLED DIV 1 OO000000 Col POLE ed EN OOOOOOOO Coc FCLE DIV l MAU f Set sub clock
31. an be changed even after a project is created Project name Specify a project folder file name If IAR Embedded Workbench is specified as the build tool the project folder file name is also used as the Project Connection file name icpf Specify where the project is to be saved 1 The item which can be chosen changes with a micro controller Caution ln a folder file name a single byte alphanumeric character and underbar can be used Also a space a single byte blank character cannot be used at the beginning orend ofa folder file name The creation process may fail if an illegal character is specified in the folder file name Remark If a project with the same name already exists in a specified location an overwrite confirmation message appears Clicking the OK button overwrites the existing project file R20UT3420EJ0100 Rev1 00 LENESAS Page 18 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 5 Opening an Existing Project If a previously created project exists it can be opened by either specifying the file name or by selecting it from a list of recent projects 1 Opening a file by selecting it In the Main window press the File button The Open dialog box appears Figure 3 15 Open Dialog Box open Als Look in E Sample01 D OH F gt fale Fe cg src Sg HardwareDebug My Recent Release Documents src Sample01 cap Desktop My Docu
32. ar The menu bar is used to select and execute a command For the functions of the various menus see Chapter 4 Menu Reference Figure 3 3 Menu Bar File view Peripheral Functions Options Hein 3 1 3 Main Toolbar Clicking a button on the main toolbar allows the user to execute frequently used functions For button functions see 4 5 1 Main Toolbar Figure 3 4 Toolbar 0 E ket di GNURX for e2studio 3 1 4 Module Toolbar Code generation can be executed by clicking the J FE G button on the module toolbar Also clicking a peripheral function button switches between peripheral functions that are displayed or set up on the Module panel For button functions see 4 5 2 Module Toolbar Figure 3 5 Module Toolbar fe Generate code SE UO gy B ge eo Feo we ko dk e 3 1 5 Status Bar The status bar displays device information the product series name and device name Figure 3 6 Status Bar MCU NEC 8KORKE3 ChipuPD78F1142 64 1 25 Remark 1 Device product group name 2 Applicable device name R20UT3420EJ0100 Rev1 00 LENESAS Page 13 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 1 6 Project Tree Panel This panel shows the settings status of each peripheral function in the form of an icon Double clicking a peripheral function name switches between modules that are displayed or set up on the Module panel For a description of what is displayed
33. color display the character string Selecting Copy from the context menu copies the selected inverted color display character string stores it in the clipboard Select All Selects in inverted color display all the messages character strings on the Output panel R20UT3420EJ0100 Rev1 00 LENESAS Page 48 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual Publication Date Rev 1 00 Mar 31 2015 Published by Renesas Electronics Corporation LENESAS SALES OFFICES Renesas Electronics Corporation http www renesas com Refer to http www renesas com for the latest and detailed information Renesas Electronics America Inc 2801 Scott Boulevard Santa Clara CA 95050 2549 U S A Tel 1 408 588 6000 Fax 1 408 588 6130 Renesas Electronics Canada Limited 9251 Yonge Street Suite 8309 Richmond Hill Ontario Canada L4C 9T3 Tel 1 905 237 2004 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel 44 1628 585 100 Fax 44 1628 585 900 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 Dusseldorf Germany Tel 49 21 1 6503 0 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd Room 1709 Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100191 P R China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Shanghai Co Ltd Unit 301 Tower A Central Towers 555 La
34. ct to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or systems manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations You should not use Renesas Electronics products or technology described in this document for any purpose relating to military applications or use
35. ctions Options Help 7 c E BEER B HEITEN ii cel Peripheral Functions Ej Code Preview E Property Blz A r 5 jez 24 E Property ie Clock Generator El Generate File Mode Voltage Detection Circuit API output control Output all API functions according to the setting Clock Frequency Accuracy Measureme File generation control Merge file Low Power Consumption Output folder C Documents and SettingsvtoolgisMiy Doc Interrupt Controller Unit Report type CS file Buses EH Microcontroller Information Nata Transfer Controller Microcontroller name HhP5OTI TERM E vent Link Controller IO Porta Multi Function Timer Pulst Port Qutput Enable 2 Compare Match Timer Realtime Clock Independent Watchdog S 7 Code Preview 27 SS Ze Peripheral Functions oz 2 El El Generate File Mode API output control Output all Pl functione according to the setting File generation control Merge file o Output folder Do nothing if file exists Seral Communications In eee Report type Merge file E Microcontroller Information Microcontroller name Overvwrite file An output mode can be selected from the three modes listed in Table 3 5 Table 3 5 Source Code Output Mode Output mode Overwrite file If an identically named file already exists overwrites that file Merge file If an identically named file already exists merges that file with the current file Only the content
36. displayed as a popup Figure 3 18 Icon Display on Invalid Input Fields Mam clock oscillator setting E Operation Main clock oscillation source Resonator o Frequency BO 111 MHz o Oscillator wait time 2opoles Information of valid input value range 1 20 Oscillation stop detection function Disabled sl R20UT3420EJ0100 Rev1 00 LENESAS Page 21 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 6 3 Icon Display on Pin Contention As peripheral functions are set on items in which pin contention can occur the Module panel displays a 1 icon in the affected spot to provide a warning on pin contention indicating that a contention has occurred Remarks 1 The function for which a pin contention warning icon is displayed cannot be enabled When using the affected function the contending peripheral function should be disabled If the mouse cursor is moved to the icon information on pin contention a helpful hint on how to avoid contention appears as a popup Figure 3 19 Icon Display on Pin Contention Ce Unused In C Out Polo Emos output M Gutput 1 AI _ fe Unused Cut C Dt PO Fulup Emos output P Gutput 1 EE aa Unused Cin Dt FO Pul ur Emos output LC Gutput 7 FAB D The Following pin conflicts have been detected You must change the setting in that module before you can use it For other purpose Unused In pa4 was used as TXDS
37. e Detection Circuit f 27 VEC e 3 6 VI Clock Frequency Accuracy Measureme Low Power Consumption Main clack oscillator setting Interrupt Controller Unit Iw Operation e ado antalle Mam clack oscillation source Event Link Controller Frequency LO Ports Table 4 3 Options Menu wm Gswwm Compiler Selects the format of the output code The compiler names that are displayed may vary from one product to another File Generation Control File generation control can be selected from overwrite file merge files and do nothing if a file already exists Report Type Select either HTML or CSV API Output Control API function output control can be selected from output all API functions according to the setting and output only initialization API function The default is output all according to the settings Selecting the output only initialization API function option skips the generation of the file R_xxx_user c that codes interrupt handlers in which case all interrupt handlers must be coded by the customer himself herself R20UT3420EJ0100 Rev1 00 LENESAS Page 35 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 4 4 Help Menu Figure 4 4 Help Menu AP4 for RX110 APd RXIIO RSF5S1103AxFM cgp File View Peripheral Functions Options OCHS dice mota S FR Peripheral Fundtions e Generate code E lL ce E j dE e i Sp Pin View
38. e View panel Figure 3 17 Setting up a Peripheral Function APA lor RALLI APdeZgec RXIUI BEES Laast op K GEI lor Eskil BD E Peripheral Functions of Corie Preview FE Property GE a Nlrd negege Xo a a Blom a Do AJ La Feng al Felen HRZ ei Deck Dereger Ekek agting Fingre veda protection lunchon esting e Ki Wolla e Detection Citu MET pentraj TU w Glock reo ween ccuge E Le Ki Lee Pews Longue ZTM VEC 1EM uli dE a Wee EO Ham check oncilalo setting Heie 1 mj Date Transloi Controller E Opecation TAH w Evert Link Controls Man clock gacilation sure Ra E e LO Pita i mm S ei Mulrunchon lemi Pula Deag Drchga vak timo kzi Ke Loose Match Timer mi laskme Cik ue Inceperderi Watches T u Fema raner Inte tuj LAL Bus interface Wi Serial Parphela Irtedace mi CRC Coda e AD Dante mj DISA Correta o ae ias PLL eg petting TO pen Al Code Preview 7 Coenen gg Deck Germa e vi Moss Deletion Cool 7 zi Loch Prequerip Accu D ei L ns Faea Dorii j nesu Costroller Um E ri Bus F Daa Tranche Logrchbe Fw Evert Link Corgolsi k doj LAD Peer Multi F ureien Tenas Pulpo C oi Port Quiput Enable 2 ge Compare Much ama F Hastris Lach PEURS LICI ZIE Corso ELSA VEC setting ME tn Manai na datis eting v Oan Man thet mn dubio marso Timumrcy F Droles mat trum L oe Dinkokon E detector Macon Onti FLL aad tro Nnn Zo
39. ent environment provided by IAR Systems R20UT3420EJ0100 Rev1 00 LENESAS Page 6 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 1 3 Functions Outputting device drivers According to the parameters that are set through the GUI the Applilet automatically generates in a file the source code that initializes peripheral functions File names can be changed as desired O Providing API functions stopping a peripheral function or modifying the conditions In addition to peripheral function initialization code the Applilet provides API functions such as starting and API function names can be changed as desired O Selecting a build tool The type of a build tool compiler can be selected from gcc and IAR The Applilet outputs the workspace project file for the integrated development environment platform that matches the selected build tool e Renesas environment Link directive file dr for the C compiler e IAR environment Project Connection file for IAR Embedded Workbench icpf e GNU environment e studio project file O Merging Merging source codes Programs written between the merge comments can be retained without deletion during the re output overwriting of the code Merging workspace project files The Applilet stores output files as target files to be built in a workspace project file in the integrated development environment platform During code regeneration t
40. has been set any of the following methods can be used 1 Save as Select the File menu gt Save As Alternatively click the Kl button on the toolbar The Save As dialog box appears Figure 3 30 Save As Dialog Box 2x My Recent Documents Desktop o My Documents My Computer LU Mu Network File name SampleD1 Di Places Save as type Code Generator project cap DI Cancel LZ To save the information that has been set specify a destination and a file name and click the Save button 2 Save Select the File menu gt Save Or on the toolbar click the lij button The file project being edited is saved on an overwrite basis 3 Close and save When an attempt is made to exit from the Applilet without saving the modified settings a save confirmation dialog box appears Clicking the Yes button saves the file project being edited on an overwrite basis Clicking the No button skips the save process Figure 3 31 Question Dialog Box Question W0403025 x 2 CWOF0S025 Project changed Save Mo Cancel Remark The name ofthe file to be saved not including the extension is identical to the Applilet project name R20UT3420EJ0100 Rev1 00 LENESAS Page 31 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 11 Closing The Applilet can be closed by any of the following methods On the Main window se
41. he Applilet changes the storage of target build files as the number of files that are output by the Applilet increases or decreases In such a case any previously stored user files are retained without being deleted The Applilet stores files on an add on basis but it does not delete files that are no longer needed Outputting report Reports on peripheral function settings API function names associated with the various functions and file names can be output in a file As the format of an output file either HTML or CSV can be selected R20UT3420EJ0100 Rev1 00 LENESAS Mar 31 2015 Page 7 of 48 AP4 Application Leading Tool Applilet3 Common Operations User s Manual Chapter 2 Installation 21 Features of Installer The Applilet Installer has the features described below O Accommodating multiple versions Multiple versions of the Applilet can be installed on a single PC O Acommon package handling both English and Japanese environments The Installer does not automatically distinguish languages At the beginning of the installation process the user should select a desired language Even in Japanese version Windows if the Applilet is installed after selecting English the Installer can install the version of the Applilet that displays items in English Caution The Applilet is used as a single application 2 2 Installation Procedure This section describes the procedure for installing the Applilet taking the in
42. horized for use in products or systems that may pose a direct threat to human life or bodily injury artificial life support devices or systems surgical implantations etc or may cause serious property damages nuclear reactor control systems military equipment etc You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application for which it is not intended Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for which the product is not intended by Renesas Electronics You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subje
43. ipheral Functions c SSES fe Generate Code Chr Clock Generator VCL setting oolbar click the button New Ctrl h Oper Ctrl O Save Chrltz D x pa Peripheral Fl close 2 Generate Report El Voltage Detection Circuit f 27 MIX VEO wo Clock Frequency Accuracy Measureme Recent Projects a Low Power Consumption Main clock oscillator _ oof Interrupt Controller Unit JW Operation 2 Exit oie Buses IN kd lock llat Wi Data Transfer Controller EE d mo Event Link Controller Frequency 20 lw LO Ports i D Multi Function Timer Pulse Unit 2 Oscillator wait time OH ps Port Output Enable 2 ko Ee uu Oscillation stop detection function ise The names of report files are macro and function macro Peripheral function settings information function Source code information The format HTML or CSV for the report file and its output destination can be selected on the output tab on the Property panel If the destination folder for the report file already contains a report file the existing file will be overwritten irrespective of file generation mode settings Figure 3 29 Example of Report File Output Mu nama CITI TIBA HO Che riam REF5ETII5AxFIA iza preza are Sri Linge konki hr Deter tare Samplelii Marr him Wider r ie Esploner Eia iradi r okt Doneis la reio i Lee Matro hemi a macro
44. ircuit Eo EJE p ca XK E Code Preview SENN Ejo tajo a reg COOC i ER mmar e ay L bd voltage Dete Property Ely Clock Generator B Clock Frequency Accuracy Measurerme S E Da CO coe e aj Low Power Consumption 2 fag a D CGC Create lB CGC Set ClockMode SI i cq m fe Remarks 1 To reset the file name to the default file name provided by the Applilet select Default from the context menu 2 In file names single byte alphanumeric characters and underscore can be used 3 Information on the file selected on the Preview panel is displayed in File name on the Property panel File names can also be edited in File Information Figure 3 23 File Information Tab Renaming a File cil Peripheral Functions 7 Code Preview x E File Information Default name TES File name rcg_cgc c File used Used Output folder LXDocumernts and Settings stoolgihhdy Documents ample 45 ample ar Default name Indicates selects whether to use by the default file name IT ng is changed to yes the file name returns to the default name R20UT3420EJ0100 Rev1 00 LENESAS Page 25 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 3 Renaming an API Function In the Applilet the code to be output can be assigned any API function name On the Preview panel tree right clicking the API function name brings up the context menu By selecting Rename you can edit the file name Bez
45. l 15 highest Caution Executing the Return to Reset Value when a target peripheral function is not displayed on the Module panel resets the settings for the starting channel the leftmost tab to their default values R20UT3420EJ0100 Rev1 00 LENESAS Page 44 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 5 2 5 Example of a Module Panel for a Peripheral Function 1 Unit The figure below shows an example of a Module panel in which settings change by channel according to a selected function For each channel select the function to be used and for each selected channel set details Executing Return to Reset Value from the Project Tree panel resets all tab channel settings to their default values Figure 5 7 Example of a Module panel Multi Function Timer Puls Unit2 vs Peripheral Functions i Ja Code Preview Bee Property 1 fe Generate code 5 OD e E a Mi E si C A ft F General Setting dl Wru1 MTU2 MTU3 MTU4 wus Function setting lt 9 I MTLIO Normal mode sl 2 MTU Normal mode sl MTLZ PWM mode 1 sl hy mm 192 CO db je on Ge er AL ii La MTU3 Unused lt 4 gt 7 MTU4 P e Peripheral Functions Code Preview T Property fe Generate code a ae EZ if CC Si A El al 3 SIE oo la bo l Se General Setting MTUS _Fetermal clack Mormal mode description The counter counts up inthis mode The followi
46. lect the File menu gt Exit On the toolbar click the al button On the Main window click the button On the menu that appears when an icon on the title bar is clicked select Close 3 12 Coding After code is generated the source code that has been output is read using the integrated development environment platform The program is completed by adding user source files as necessary or adding code in the merge comment in the file that is output by the Applilet When outputting a source code using the Applilet again after editing the source code on the integrated development environment platform observe the following points Cautions 1 If the output mode is Overwrite file any editing that was performed on the integrated development environment platform with respect to the Applilet output file will be disabled 2 If the output mode is Merge file any editing that was performed on the integrated development environment platform outside a merge comment will be disabled 3 If the output mode is Do nothing if file exists any changes to Applilet settings other than a new output file will be disabled 4 The Applilet does not delete files that are no longer needed due to changes in settings R20UT3420EJ0100 Rev1 00 LENESAS Page 32 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual Chapter 4 Menu Reference 4 1 File Menu Figure 4 1 File Menu APA fo
47. ly installed programs show updates Sort by Name Ene or Agere Systems ACO 7 Modem A EMOVE Programs A Applilet3 For RL78 G13 41 03 01 Size 17 54 IB e ATI Control Panel Size 10 66MB R20UT3420EJ0100 Rev1 00 LENESAS Page 11 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual Chapter 3 Operating Procedure 3 1 Names of Parts Figure 3 1 Main Window lt 1 gt lt 2 gt Application Leading Tool for RX111 sampleO1 cgp l Oj x v lt 3 gt Fie View Peripheral Functions Options Help Via ki 23 e a al GNURX for eZstudio X lt 4 gt E Fp Property E kom l fb Generate code I e KE a Wt te si 2 Oe PEP Su Hh E E Peripheral Functions VCC setti setting Ps Clock Generator nm Voltage Detection Circuit 27 VM YCC lt 3 6 0 Clock Frequency Accuracy Measureme Low Power Consumption Interrupt Controller Unit Buses Data Transfer Controller Event Link Controller 1 0 Ports Multi Function Timer Pulse Unit 2 Port Qutput Enable 2 Compare Match Timer Realtime Clock Independent Watchdog Timer Serial Communications Interface 2C Bus Interface Serial Peripheral Interface J Peripheral Functions A Code Preview lt 6 gt lt s C 24M VCC 27 V A 18ME Main clock oscillator setting M Operation Main clock oscillation source Property lt 8 gt Frequency uint16_t w
48. ments St Mu Computer RK e My Network File name Places Files of type Code Generator project cap D Cancel Z Selecting the file and clicking the Open button opens the selected file 2 Opening a recently used file From the Recent Projects displayed in the Main window select the file to be opened Figure 3 16 Opening a Recent Project File view Peripheral Functions Options Help C New Ctrl N Open Ctrl O e Start kd Save Ctrl S Mi save As Recent Projects A Ee Name TI Modified Location LA Close ge Generate Code Ctrl G Generate Report Recent Projects 1 C Documents and SettingsitoolgilMy Documents Sample01 Sample01 Sample01 cgp al Exit R20UT3420EJ0100 Rev1 00 LENESAS Page 19 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 6 Setting up a Peripheral Function Peripheral functions to be displayed on the Module panel can be selected by one of the methods listed below For a description of what is displayed on the Module panel see 5 2 Module Panel e From the Peripheral Functions menu in the Main window select a peripheral function e On the Tree View panel double click the peripheral function name e Click the module toolbar button Remark Even when the Module panel is not being displayed the Module panel can be opened by selecting a peripheral function from either the Peripheral Functions menu or the Tre
49. n Application Leading Tool for R3111 SampleO1 cgp View Functions poutine _ Help HA ki i lhe GNURX for e2studia Project Tree Ctrl M Ctrl O G Ctrl s cil Peripheral Fu SE re Generate code SL Close Samplel Er Peripheral Functions kurda we Clock Generator WLC setting ER Voltage Detection Circuit Ge 27 lt VCC e Generate Code Ctrl siu Clock Frequency Accuracy Measureme Bl Generate sper em Low Power Consumption Mam clock oscillator se w Interrupt Controller Unit m Operation Recent t Projects Le Buses l Mam clock oscillati Wi Data Transfer Controller du Exit mo Event Link Controller Frequency Dim ML Ports zip Multi Function Timer Pulse Unit 2 Oscillator wait tine em Port Output Enable 2 CS b te Camere kd etek Timer Oscillation stop detection function Dizz R20UT3420EJ0100 Rev1 00 LEN ESAS Page 27 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 8 1 Modifying the Output Modes In the Applilet you can select an output mode overwriting merging or previous file priority from Generate File Mode on the Property panel To change output modes in the File generation control field click the button to select a desired mode from the list Figure 3 26 Changing Output Modes Application Leading Tool for RX111 SampleOl1 cgp File View Peripheral Fun
50. nd 35 Main Toolbar Allows the user to select and execute a command by clicking a button 45 Module Toolbar Generates code Also switches between peripheral functions that are displayed or set up on the Module Panel lt 5 gt Status Displays information on the current project lt 6 gt Project Tree Indicates the settings for a peripheral function Also switches between peripheral functions that are displayed or set up on the Module Panel lt 7 gt Module Allows the user to set up a peripheral function The Module and Preview panels can be switched by pressing the tab key lt 8 gt Preview Allows the user to set the file and API function to be output when code is generated The Preview and Module panels can be switched by pressing the tab key lt 9 gt Property Allows the user to view or make output macro or file settings 105 Output Displays information including the execution status of code generation or report output or the allowable range for a selected input field R20UT3420EJ0100 Rev1 00 LENESAS Page 12 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 1 1 Title Bar The title bar displays the product name and the Applilet project file name A project file name tagged with a ck indicates that the file does not contain the latest settings Figure 3 2 Title Bar Application Leading Tool for RX111 SampleOl1 cgp l pO sl 3 1 2 Menu B
51. ng types of operation are possible MICLK FreE running operation when Disable counter clear rz selected for Counter clear source counting continues until the counter overflows and then restarts from 0 Periodic counter operation when a compare match with a general register TGRa ie selected for Counter clear source the counter is cleared to 0 on a compare IT MTECLE match between the values of the selected general register and of the counter External event count operation when an external pin input is selected for Counter clock selection ever edge of the input signal i counted l MTCLK Synchronous mode setting T MTCLK IT Include this channel in the synchronous operation Count source setting Counter clock selection PCLE sl Clock edge setting Ce Rising edge Falling edge Both edges TENTO counter setting Counter clear source Disabled counter clear sl General register setting TGRAO Input capture register e ito ls Actual value 100 TGRBO Input capture register 100 Tes ki Actual value 100 TGRCO Input capture register Jo lis Actual value 100 TGRDO Input capture register Jo p Actual value 100 TEREN iba copmpate recieber Ke i 10 TE PAH isl wesc INI ES Remark In the example shown in Figure 5 7 settings are specified in the following order 1 Select the general Setting tab 25 Select MTUO function the MTUO tab is enabled 35 Select the MTUO t
52. ngao Road Putuo District Shanghai P R China 200333 Tel 86 21 2226 0888 Fax 86 21 2226 0999 Renesas Electronics Hong Kong Limited Unit 1601 1611 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2265 6688 Fax 852 2886 9022 Renesas Electronics Taiwan Co Ltd 13F No 363 Fu Shing North Road Taipei 10543 Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 80 Bendemeer Road Unit 06 02 Hyflux Innovation Centre Singapore 339949 Tel 65 6213 0200 Fax 65 6213 0300 Renesas Electronics Malaysia Sdn Bhd Unit 1207 Block B Menara Amcorp Amcorp Trade Centre No 18 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel 60 3 7955 9390 Fax 60 3 7955 9510 Renesas Electronics India Pvt Ltd No 777C 100 Feet Road HALII Stage Indiranagar Bangalore India Tel 91 80 67208700 Fax 91 80 67208777 Renesas Electronics Korea Co Ltd 12F 234 Teheran ro Gangnam Gu Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 2015 Renesas Electronics Corporation All rights reserved Colophon 4 0 AP4 Application Leading Tool Applilet8 Common Operations Users Manual LENESAS Renesas Electronics Corporation R20UT3420EJ0100
53. o das hiko o lj H Se Peripheral Funchions o Clock Generator Glee Voltage Detection Circuit Clock Frequency Accuracy Measureme Low Power Consumption p Interrupt Controller Unit p Buses Data Transfer Controller mw Event Link Controller mw 1 0 Ports pr Mult Functiori Timer Pulse Unit 2 p Port Output Enable 2 ee Compare Match Timer CR CR CR CR CR CR mo CR LN Main clock oscillator setting EI Operation Main clock oscillation source Resonator Frequency Ee MHz Oscillator wait time 2cycles og Us Oscillation stop detection function Disabled 111 PLL circuit setting Nm Operation Frequency 4 Z ae MHz 5ub clock oscillator and ATC ATCSCLE setting EI Operation Realtime Clock Independent Watchdog Timer Serial Communications Inter ace l2C Bus Interface Seral Peripheral nterface CAC Calculator AO Converter DA Converter Data Operation Circuit Output dp Lode Preview MUAUOUUA ach Co userdelme b was overweritten El i Common MOA0S004 sre roeq_coc c was overwritten Er Uu T co_main CG iOADAOO4 src r coj coc usero was overwritten z main iOAOAOO4 srcwr Co coc h was owerwritten ko Se F MAIN Lserlnit MO40S003 The operation of generating file was successful E H Mh T Ca vector table c k 4 k Remark The display positions of the Module panel and Preview panels can be changed by dragging and dro
54. of a merge comment is subject to the merging action Start user code Do not edit comment generated here merge section End user code Do not edit comment generated here Do nothing if file exists If an identically named file already exists does not output the current file Remarks 1 The merge comment can vary depending on where it occurs 2 A merge comment should not be edited or moved If it is edited or moved the merging cannot be performed correctly 3 The presence of any unpaired braces in a merge section can result in deleted source code R20UT3420EJ0100 Rev1 00 LENESAS Page 28 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 8 2 Changing Output Destinations In the Applilet where source code is to be output can be specified in Output folder on the Property panel To change destination folders an output destination folder can be selected on the Browse For Folder screen which is displayed when the button in the destination folder field is clicked Figure 3 27 Specifying an Output Destination Application Leading Tool for RX111 SampleO1 cgp ioj xi File View Peripheral Functions Options Help O G ki fe a I eps for e2studio 7 H wv E Peripheral Functions E Code Preview 24 Property Project Tree Sample 1 St E Peripheral Functions Eo ge Clock Generator E Generate File Mode E aj Voltage Detection Circuit A
55. pping the tab R20UT3420EJ0100 Rev1 00 LENESAS Page 40 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 5 2 1 Example of a Module Panel for Clock Generation Circuits The figure below shows an example of a Module panel for clock generation circuits By changing functions to be set through the tabs you can set an operation by function Executing Return to Reset Value from the Project Tree panel resets all tab settings to their default values Figure 5 3 Example of a Module Panel System fe Generate Code E 31 gy EZ a Mb u CC zg CO ON Jai I oo Ha Gu g Clock setting l Block diagram VCC setting Pte f 27 YEC lt 3 6 0 Co 24W YEC lt 27 MI C 1 80 VEC lt 24 0 Mam clock oscillator setting E Operation Mam clock oscillation source Resonator 111 sl Frequency PE MHz Oscillator wait time 2cycles os us Oscillation stop detection function Disabled PLL circuit setting Ni Operation Frequency SE T 24 MHz High speed clock oscillator HOCO setting a Operation Frequency ae kHz Oscillator wait time 256 cycles ees us Note When oscillator wait time of 138 cycles is selected the HOCO frequency accuracy may not be guaranteed See the device user s manual for details Low speed clock oscillator LOCO setting E Operation Frequency E MHz WOT dedicated low speed clock oscillator O TLOCO setting Ni Opera
56. put M0409000 anc co userdefine h was generated al MAUL sch co COOC was generated MO40S000 anc co cgc user CG was generated MUAUOUUU zc co Coach was generated MO409003 The operation of generating file was successful EJ R20UT3420EJ0100 Rev1 00 Mar 31 2015 LENESAS Page 15 of 48 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 2 Operating Procedure In the Applilet source code is created by performing the following procedure Figure 3 12 Operating Procedure Create a project Open existing project Select target device Select File Select compiler Select recently used File Input project name Specify Peripheral Function Select target peripherals Specify functions on the Specify Code Input output or not Input file name Input API function name Generate Code Set marge output format Set output path Save Project R20UT3420EJ0100 Rev1 00 s t N E SAS Page 16 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 3 3 Starting up This section explains how to start up the Applilet 1 In Windows select the Start button gt Program gt Renesas Electronics Application Leading Tool gt RX111 gt Vx xx xx After these items are selected the Applilet main window starts up Figure 3 13 Main Window Immediately after the Startup SE lolx File View Peripheral Functions Options Help ODESG
57. r RX111 APdeZgcc RX 111_R 5F511154xFM cgp File view Peripheral Functions Neu Chr LI Feripheral Functions Open Ctrl HO Se gx Clock Generator SS Cres Save AS mn w Clock Frequency 4Accurac Close ve Low Power Consumption w Interrupt Kontroller Lit Generate Code Ctrl G pr Buses 4 Generate Report bp Data Transtar Controller 2 Event Link C ktroller Recent Projects Eg MA Ports Dei Multi Function Tilner Pulse Exit we Port Qutput Enable 2 Eg Compare Match Timer Table 4 1 File Menu Close Closes the currently open project Generate Code Outputs the source code Generate Report Outputs settings information to a file Recent Projects Displays recently opened projects Selecting a project from a submenu loads the project Exit Exits from Applilet R20UT3420EJ0100 Rev1 00 LENESAS Page 33 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 4 2 Peripheral Functions Menu The Peripheral Functions menu displays peripheral functions that the target device has only those peripheral functions that are supported by Applilet When a peripheral function is selected the associated settings screen is displayed on the Module panel Figure 4 2 Peripheral Functions Menu AP4 for RX111 AP4e2gcec_R 111_R5F511154xFM cgp File View Peripheral Functions 8 Options Help UsSugi AP4e gcc Rx111 68 Tu Peripheral
58. r softwa Click Install to begin the installation and online files i the SOFTWARE P IF you want to review or change any of your installation settings click Back Click Cancel to If you do not agre exit the wizard Taccept the ter Ido not accept Installshield Installshield Installshield soo cane Caution In the installation destination folder name none of these 11 characters lt gt can be used Also a space a single byte blank character cannot be used at the beginning or end of a folder name The installation process may fail if an illegal character is specified in the folder name R20UT3420EJ0100 Rev1 00 LENESAS Page 9 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 4 To end the installation process click the Finish button on the Wizard Completed screen Figure 2 3 Wizard Completed Screen Cl Application Leading Tool for RX111 1 00 00 InstallShield Wizard InstallShield Wizard Completed The InstallShield Wizard has successfully installed Application Leading Tool For RX111 1 00 00 Click Finish to exit the wizard 7 Cancel R20UT3420EJ0100 Rev1 00 LENESAS Page 10 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 2 3 Uninstallation Procedure This section describes the procedure for uninstalling the Applilet taking the uninstallation of Applilet for
59. rface MO40S003 The operation of generating file was successful El H CARE Calculator B F J A IP Ex LI e 4 MCL REX111 128KB Chip REF511154xFM ECERCECTECCELCTLCECCE al Code Preview EN i Common Z Set main clock control registers Ely Clock Generator SYSTEM MOFCR BYTE DO CGC MAINOSC RESONATOR 20 CGC MAINOSC OVERIOM Egli cg coce SYSTEN MOSCWTCR BYTE OO CGC OSC WAIT CYCLE 2 S A_CGC Create ee E 8 8 F_CGC_Set_ClockMode e Seu main clock operation E Leg_ege_user c SYSTEM MOSCCR BIT MOSTP OU ij i r cg cac h H a Voltage Detection Circuit Wait for main clock oscillator wait counter overflow H a Clock Frequency Accuracy Measureme while 1U SYSTEM OSCOVFSR BIT MOOVF E e Low Power Consumption E Interrupt Controller Unit Set system clock Flt Buses SYSTEM SCKCR LONG OODOODOO CGC PCLED DIV 1 o0000000 CGC PCLER DIV m Data Transfer Controller OOOOOOOO CGC FCLE DIV l EH Event Link Controller ffe E mn 140 Porte d E Set eub clock H H H H H E E H Remarks 1 Source code cannot be edited on the Preview panel 2 In some API functions such as API functions for a serial array unit register value SFRs and other values are calculated during the code generation process before the function is finalized For this reason the source code displayed on the Preview panel may not agree with the source code that is actually output R20UT3420EJ0100 Rev1 00 LEN
60. s By clicking peripheral function buttons you can switch the peripheral functions to be displayed or set up on the Module panel Figure 4 6 Module Toolbar Application Leading Tool for RX111 SampleO1 cgp iol si File View Peripheral Functions Options Help LI Gus oy Cl GNLURX for e etudio 7 ve Project Tree 1 x IE zg ZS Peripheral Functions Code Preview 2 Propert E L Sampled 1 TE Generate code ER Peripheral Functions i sira we Clock Generator WCC setting EE ER Voltage Detection Circuit Ge 27 VV YCC lt 36 VI O 240W WEC 27 w C 18w mn a Clock Frequency Accuracy Measureme a Low Power Consumption Mam clock oscillator setting l sara me Imbarri amb Cantrollar lek Fi na S The module toolbar contains the following buttons Table 4 6 Functions of Module Toolbar A force Generator On the Module panel displays peripheral function setting NJ Voltage Detection Circuit screens that are associated PUP Clock Frequency Accuracy Measurement Circuit with buttons Low Power Consumption Remark The buttons listed Interrupt Controller i in the table are intended solely as ad mples Th Data Transfer Controller akkora si pudo buttons that are _ Event Link Controller Se dina product to another Multi Function Timer Pulse Unit 2 Port Output Enable 2 Compare Match Timer Realtime Clock Independent Watchdog Timer I2C Bus Interface Serial Communications Interface 12 Bit
61. s an object of output for code generation The icon changes from Not Generate Code Excludes the API function from the object of output for code generation The icon changes from Rename API function a Ep Renames the API function name file name that is output File during code generation The name changes to the Edit mode Default Resets to an Applilet3 initial value the API function name file name that is output during code generation 2 Source code display area Verifies the source code a device driver program Double clicking the source file name or the API function name on the Preview Tree switches the source code that is displayed The source code in this area is displayed in character colors listed in Table 5 5 Table 5 5 Source Code Character Colors Color of Summary display Pei Numericvalue S Remarks 1 Source code cannot be edited in this area 2 ln some API functions such as API functions for a serial array unit register value SFRs and other values are calculated during the code generation process before the function is finalized For this reason the source code displayed in this area may not agree with the source code that is actually output Figure 5 9 Example of an AP Function Display void INTP Init void EGPO INTP_EGP_RESET_VALUE EGNO INTP_EGN_RESET_VALUE If this API function INTP Init is output the EGP1 INTP EGP RESET VALUE function is called here
62. s such as project file operation code generation and report output Figure 4 5 Main Toolbar Application Leading Tool for RX111 SampleOl1 cgp File View Peripheral Functions Options Help O ee kil 1 fe 3 I cp for estudio Mi fl F pa Peripheral Functions Taaf Code Preview luigi Ty Sample e Generate code O EE a ZC ep KS Peripheral Functions ae YCC setting e Clock Generator ER Voltage Detection Circuit e 27 MI YEE s 36 MI 3 wo Clock Frequency Accuracy Measureme em Low Power Consumption Map clock oscillator setting vee Interrupt Controller Uri Iw Operation oie Buses D Mam clock oscillation source es Wi Data Transfer Controller ew Event Link Controller Frequency Er lw ML Ports D Multi Function Timer Pulse Unit 2 Oscillator wait tine cy mw Port Output Enable 2 Oscillation stop detection function ise es fl arnon ara kha zabeb Timmar The main toolbar contains the following buttons Table 4 5 Functions of Main Toolbar Closes the currently open project Generate Code Outputs the source code Generate Report Outputs a report file R20UT3420EJ0100 Rev1 00 Mar 31 2015 LENESAS Page 37 of 48 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 4 5 2 Module Toolbar The module toolbar is displayed above the Module panel Clicking the ej Generate code 1 button causes the execution of the code generation proces
63. see 5 1 Project Tree Panel Figure 3 7 Project Tree Panel Project Tree AP4edgce KXT11 REPSTTI hmPi Sl Peripheral Functions we Clock Generator E a Voltage Detection Circuit ote Clock Frequency Accuracy Measurement ie Low Power Consumption a Interrupt Controller Unit 3 vee pm Data Transfer Controller pe Event Link Controller Remark If the width of the Project Tree panel is too small to display all character strings place the mouse cursor on the character string or icon of interest This will display all character strings for an item on the tooltip 3 1 7 Module Panel This panel is used to set up a peripheral function For the operating procedure see 3 6 Setting up a Peripheral Function Figure 3 8 Module Panel P Peripheral Functions E Code Preview Property x leegen LU SECA OGUGJISJS ESTAA 3 Clock setting Register write protection function setting WYCC seting E E MNEN f 27 W e YEE lt 3 6 0 Co 24 W e YEE lt 27 0 1 80 YCC 24 0 Main clock oscillator setting PI Operation Main clock oscillation source Resonator D Frequency H 2 MHz Oscillator wait time 2 cycles sl 0 167 ips Oscillation stop detection function Disabled D Remark The positions of the Module panel and Preview panel can be switched by dragging and dropping the tab R20UT3420EJ0100 Rev1 00 LENESAS Page 14 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations
64. stallation of AP4 for RX111 in Windows 7 as an example The contents of display may vary depending upon the particular operating system and software being used Cautions 1 You need to perform installation by logging in as a user with Administrator privileges 2 For the execution of the Applilet you need to install NET Framework Version 4 as well as the Microsoft Visual C 2010 SP1 run time library If these files have not already been installed on the host machine being used install the files by downloading them from Microsoft Corporation s website Whether these files have been previously installed can be checked by viewing Add or Remove Programs in Windows Figure 2 1 Add or Remove Programs Verifying NET Framework Version 4 0 iol xi amp Currently installed programs show updates Sort by Name Change or Remove ie Microsoft NET Framework 3 0 Service Pack 2 Size 169 00ME Programs i Microsoft NET Framework 3 5 SPl Size 28 14MB A Microsoft NET Framework 4 Client Profile Size 117 00M6 Si New A Microsoft MET Framework 4 Extended Size 38 04MB can Gi Microsoft visual C 2008 Redistributable xa 9 0 30729 17 Size 0 64MB i Microsoft Visual C 2006 Redistributable x6 9 0 30729 6161 Size 10 20MB ee SCT Microsoft Visual C 2010 x86 Redistributable 10 0 40219 Size 11 14MB Components f e R20UT3420EJ0100 Rev1 00 LENESAS Page 8 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet
65. tion Frequency IS kHz System clock setting Clock source Main clock oscillator System clock ICLK sl fie wus Peripheral module clock PELKE sl fie wus Peripheral module clock for ADC PELKD sl fie wus Flash IF clock FELK sl fie wus Dedicated USB clock UCLK fe Mie CLEOUT pin setting Operation F15 I Clock output source Mam clock oscillator sl Frequency wl ki MHz R20UT3420EJ0100 Rev1 00 LENESAS Page 41 of 48 Mar 31 2015 AP4 Application Leading Tool Applilet3 Common Operations User s Manual 5 2 2 Example of a Module Panel for Ports The figure below shows an example of a Module panel for ports By changing ports to be set through the tabs you can set peripheral function operations by port Executing Return to Reset Value from the Project Tree panel resets all tab port settings to their default values Figure 5 4 Example of a Module Panel Ports e Generatecode D a ED a Mos ls EDO OE ai Zeg 2 IT Porto Porti bor Porta Port Port5 Porta PortB Port Porte Pont Hot FR Peripheral Functions i 123 kiu MAL 3 FEI A e Unused ln E C Out ah P Pull up CMOS output P Gutput 7 P oo Unused C in Ge Out E Pull up N channel open drain gt Nm Output 1 HE A oo Unused C In Ge Out F Pull up CMOS output sl E Output 1 EEE AAA e Unused C in EI C Out E P Pull up CMOS output P Gutput 7 DEA Ce Unused ln D
66. tion of generating file was successful 4 MCU RX111 128KB Chip RSF511154xFM The shape of the icon for each peripheral function changes according to the status of the settings Table 5 1 Project Tree Panel Icons oe The corresponding peripheral function is already set OoOo The corresponding peripheral function is not set used Right clicking the name of a peripheral function brings up a context menu Table 5 2 Project Tree Panel Context Menu Return to Reset Value Resets the settings for a selected peripheral function to their Applilet default The range of initial settings may vary by function R20UT3420EJ0100 Rev1 00 LENESAS Page 39 of 48 Mar 31 2015 Clock Frequency Accuracy Measureme AP4 Application Leading Tool Applilet3 Common Operations User s Manual 5 2 Module Panel E SL ki amp Te di GMURX for eZstudio li MCLERKIII1 1Z258KB Chip RSFS11154xFM The Module panel allows you to set peripheral functions For a description on how to operate the Module panel see 3 6 Setting up a Peripheral Function Figure 5 2 Displaying of Module Panel Application Leading Tool for RX111 SampleOl cgp E joj x Fle View Peripheral Functions Options Help FE e Peripheral Functions IE Code Preview 727 Property ADRSCZEkASzZumOU DE Generate code WCC seng Ge 27 W VEC 36 V C 24 VECx27 V C 1BM ael cj IE
67. vironment An environment in which program development is conducted by using language tools and an integrated development environment platform made by Renesas Electronics Corporation GNU environment An environment in which program development is conducted using Gcc IAR environment An environment in which program development is conducted by using language tools and an integrated development environment platform made by IAR Systems RL78 series AP4 AP4 for RL78 family RX series APA series AP4 AP4 for RX L AP4 for RX family 111 RZ series AP4 AP4 for RZ family Related Documents Please use the following documents in conjunction with this manual The related documents listed below may include preliminary versions However preliminary versions are not marked as such Documents Related to Development Tools User s Manuals Document Name Document Number RX Family User s Manual Software RO1US0032J RO1US0032E RL78 Family User s Manual Software RO1USOO15J RO1US0015E Caution The related documents listed above are subject to change without notice Be sure to use the latest version of each document for designing etc R20UT3420EJ0100 Rev1 00 LENESAS Page 3 of 48 Mar 31 2015 CONTENTS CHa GF OV ME TFRTTFFRERE E 6 Mm KO A 6 1 2 Names and Functions Of e E lge TTT 6 De Die de Lu 7 Chapter a Een DEE 8 Re Re TT 8

Download Pdf Manuals

image

Related Search

Related Contents

Dell OpenManage Server Administrator Version 6.5 Messages Reference Guide  SERVICE MANUAL - mitsubishitech.co.uk  CSM Monitor MKII - Manual  Whirlpool LA50000XS User's Manual  Kensington K62560US  Pearson eCollege (LearningStudio) Quick Start Guide  4804/7804 – Convergence Reporting (Spring 2013) Prerequisites  取扱説明書はこちら  Philips HMP7000    

Copyright © All rights reserved.
Failed to retrieve file