Renesas Solution Starter Kit for RX23W
4. Smart Configurator Using the e
R20UT4449EG0100 Rev. 1.00
Page 13 of 64
Aug.30.19
4. Smart Configurator Using the e
2
studio
4.1
Introduction
The Smart Configurator plug-in for the RX23W has been used to generate the sample code discussed in this
document. Smart Configurator for e
2
studio is a plug-in tool for generating template ‘C’ source code and
project settings for the RX23W. When using Smart Configurator, it provides the user with a visual way of
configuring the target device, clocks, software components, hardware resources and interrupts for the project;
thereby bypassing the need, in most cases, to refer to sections of the Hardware Manual.
Once the user has configured the project, the ‘Generate Code’ function is used to generate three code
modules for each specific MCU feature selected. These code modules are named ‘Config_xxx.h’,
‘Config_xxx.c’, and ‘Config_xxx_user.c’, where ‘xxx’ is an acronym for the relevant MCU feature, for example
‘S12AD’. Within these code modules, the user is then free to add custom code to meet their specific
requirement. However, these files require custom code to be added between the following comment
delimiters:
/* Start user code for adding. Do not edit comment generated here */
/* End user code. Do not edit comment generated here */
Smart Configurator will locate these comment delimiters, and preserve any custom code inside the delimiters
on subsequent code generation operations. This is useful if, after adding custom code, the user needs to re-
visit Smart Configurator to change any MCU operating parameters.
Note: If code is added outside the above user code area, it will be lost if code generation is executed again
with Smart Configurator.
By following the steps detailed in this Tutorial, the user will generate an e
2
studio project called SC_Tutorial.
The fully completed Tutorial project is contained in the RSSK Web Installer
https://www.renesas.com/rsskrx23w/install/e2
) and may be imported into e
2
studio by following the steps in
the Quick Start Guide. This Tutorial is intended as a learning exercise for users who wish to use the Smart
Configurator to generate their own custom projects for e
2
studio.
The SC_Tutorial project uses interrupts for switch inputs, the ADC module, the Compare Match Timer (CMT),
the Serial Communications Interface (SCI) and uses these modules to perform A/D conversion and display the
results via the virtual COM port in a terminal program and also on the PMOD display connected to the RSSK.
* USB serial communication requires a USB serial driver manufactured by FTDI. Please download from the
following URL. Please contact FTDI for driver installation and questions.
https://www.ftdichip.com/Drivers/D2XX.htm
Following a tour of the key user interface features of Smart Configurator in the tabbed pages (board, clocks,
components and pins), as well as a demonstration of building a project, the reader is guided through each of
the peripheral function configuration pages and familiarised with the structure of the template code, including
the process of adding their own code to the user code areas provided by the Smart Configurator.
Содержание RSSK
Страница 64: ...R20UT4449EG0100 RX23W Group ...