Wiki

This version (25 Jan 2021 05:29) was approved by Robin Getz.The Previously approved version (02 Feb 2012 17:09) is available.Diff

Integration Example for Renesas RX62N Processor

Overview

The Renesas Demonstration Kit (RDK) for RX62N is an evaluation and demonstration tool for Renesas RX62N microcontrollers. The goal is to provide the user with a powerful debug and demonstration platform targeted at common applications. The board also provides a useful platform for evaluating the Renesas suite of development tools for coding and debugging, using the High-performance Embedded Workshop (HEW) IDE as well as programming the device using the on-board SEGGER J-Link JTAG debugger.

The ADF4118 is frequency synthesizer which can be used to implement local oscillators in the up-conversion and down-conversion sections of wireless receivers and transmitters. It consists of a low-noise digital PFD (Phase Frequency Detector), a precision charge pump, a programmable reference divider, programmable A and B counters and a dual-modulus prescaler (P/P+1). The A (5-bit) and B (13-bit) counters, in conjunction with the dual modulus prescaler (P/P+1), implement an N divider (N= BP+A). In addition, the 14-bit reference counter (R Counter), allows selectable REFIN frequencies at the PFD input. A complete PLL (Phase-Locked Loop) can be implemented if the synthesizer is used with an external loop filter and VCO (Voltage Controlled Oscillator).

More Information

Project Description

An EVAL-ADF4118EBZ1 board was interfaced with the Renesas Demonstration Kit (RDK) for RX62N:

  9 Way D-Type connector Pin 3 (CLK) → J8.20
  9 Way D-Type connector Pin 5 (DATA) → J8.19
  9 Way D-Type connector Pin 7 (LE) → J8.26
  9 Way D-Type connector Pin 8 (GND) → J8.2

In this project it was used the generic driver for the ADF4118 part; the functions from the Communication Driver were implemented to run on an ADuC7026 Processor.

It was also created an example of using the functions implemented in the ADF4118 driver.was used the generic driver for the ADF4118 part; the functions from the Communication Driver were implemented to run on an ADuC7026 Processor.

It was also created an example of using the functions implemented in the ADF4118 driver.

Getting Started

The first objective is to ensure that you have all of the items needed and to install the software tools so that you are ready to create and run the evaluation project.

Hardware Items

Below is presented the list of required hardware items:

  • Renesas Demonstration Kit (RDK) for RX62N board.
  • EVAL_ADF4118EBZ1.

Software Tools

Below is presented the list of required software tools:

  • High-performance Embedded Workshop V.4.09.00.
  • Renesas Peripheral Driver Library for RX62N processor.

The High-performance Embedded Workshop and the Renesas Peripheral Driver Library are available on the RX62N RDK DVD or on the Renesas web page.

Downloads

RX62N Software Design

This section presents the steps for developing a software application that will run on the RX62N RDK board for controlling and monitoring the operation of the ADI part.

Run “High-performance Embedded Workshop” integrated development environment.

Choose “Create a new project workspace” option and press “OK”.

From “Project Types” option select “Application”, name the Workspace and the Project “ADIEvalBoard”, select the “RX” CPU family and “Renesas RX Standard” tool chain. Press “OK”.

In the first windows, select “RX600” CPU series, “RX62N” CPU Type and press “Next”.

In the first “Option Setting” window keep default settings and press “Next”.

In the second “Option Setting” window keep default settings and press “Next”.

In the “Setting the Content of Files to be generated” window keep default settings and press “Next”.

In the “Setting the Standard Library” press “Disable all” and then “Next”.

In the “Setting the Stack Area” window keep default settings and press “Next”.

In the “Setting the Vector” window keep default settings and press “Next”.

In the “Setting the Target System for Debugging” window choose “RX600 Segger J-Link” target and press “Next”.

In the “Setting the Debugger Options” window keep default settings and press “Next”.

In the “Changing the Files Name to be created” window keep default settings and press “Finish”.

On the “Project Summary” window appeared press “OK”.

The workspace is created.

Now we have to integrate into our project the RPDL (Renesas Peripheral Driver Library).

Unzip the RPDL files (double-click on the file “RPDL_RX62N.exe”). The default location is “C:\Renesas\RPDL_RX62N”.

Navigate to where the RPDL files were unpacked and double-click on the “Copy_RPDL_RX62N.bat” to start the copy process.

Type “4” to choose the LQFP package and press “Enter”.

Type the full path where the project was created and press “Enter”. The default location is “C:\WorkSpace\ADIEvalBoard\ADIEvalBoard”.

After the files were copied, press any key to close the window.

Now, we have to include the new directory into our project.

Use the key sequence Alt, B, R to open the “RX Standard Toolchain” window.

Select the C/C++ tab, select “Show entries for: Include file directories” and press “Add”.

Select “Relative to: Project directory”, type “RPDL” as sub-directory and press “OK” two times.

Now, we have to include the new source files into our project.

Use the key sequence Alt, P, A to open the “Add files to project ‘ADIEvalBoard’” window.

Double click on the RPDL folder.

From the “Files of type” drop-down list, select “C source file (*.C)”.

Select all of the files and press “Add”.

To avoid conflicts with standard project files, we have to remove the files “intprg.c” and “vecttbl.c” which are included in the project.

Use the key sequence Alt, P, R to open the “Remove Project Files” window.

Select the files, click on Remove and press “OK”.

Now, we have to add the library file path into our project.

Use the key sequence Alt, B, R to open the “RX Standard Toolchain” window.

Select the Link/Library tab, select “Show entries for: Library files” and press “Add”.

Select “Relative to: Project directory”, type “RPDL\RX62N_library” as file path and press “OK”.

Because we removed the “intprg.c” file, we have to remove “PIntPrg” specified in option “start”.

Change “Category” to “Section”.

Press “Edit”, select “PIntPRG”, press “Remove” and “OK” two times.

Now, we have to add our files (extracted from the zip file located in the “Software Tools” section) into the project.

We will copy all the files from the archive into the project folder.

Note: We will replace the original “ADIEvalBoard.c” file.

Now, we have to include the files into our project.

Use the key sequence Alt, P, A to open the “Add files to project ‘ADIEvalBoard’” window.

Navigate into ADI folder.

From the “Files of type” drop-down list, select “Project Files”.

Select all the copied files except “ADIEvalBoard.c” (“ADIEvalBoard.c” is already included) and press “Add”.

Now, the project is ready to be built.

Press “F7”. The message after the Build Process is finished has to be “0 Errors, 0 Warnings”.

To run the program on the board, you have to download the firmware into the microprocessor’s memory.

Change the Debug Session to “JLink”.

Save the “DefaultSession”.

In the “Device” window select “RX62N Group”, “R5F562N8” device and press “Next”.

In the “Communication” window keep default settings and press “Finish”.

In the “Configuration Properties” select 12 MHz input clock and press “OK”.

From the top menu bar, select “Debug”, then “Download Modules”, finally “All Download Modules”.

After the download is complete, click the “Reset Go” icon.

Now, the program is running on the board.

resources/tools-software/uc-drivers/renesas/adf4118_rx62n.txt · Last modified: 25 Jan 2021 05:24 by Robin Getz