Skip to main content
Knowledgebase
Home
Renesas Electronics America - Knowledgebase

r_gpt Module Guide Resources

"Last Updated" copy

Question:

Where can I find the references to module guide resources for the GPT HAL module on r_gpt?

Answer:

Information on the module guide itself and the associated resources and known issues are available here.

Introduction

The GPT HAL module is a high-level API for timing applications and is implemented on r_gpt. The GPT HAL module supports the General Purpose Timer (GPT) peripheral on Synergy MCUs. The GPT HAL module configures a timer to a user-specified period. When the period elapses, any of the following events can occur:

  • CPU interrupt, which calls a user callback function if provided
  • Toggle on a port pin
  • Data transfer using DMAC/DTC if configured with Transfer Interface
  • Another peripheral starts if configured with events and peripheral definitions

General PWM Timer (GPT) Features

  • Multiple Channels
    • S7G2: 32-bit x 14 channels
    • S3A7: 32-bit x 10 channels
    • S124: 32-bit x 1 channel and 16-bit x 6 channels
  • PCLKD as core clock
  • Two I/O pins per channel
  • Up/down-counting saw/triangle waves
  • Two output compare and input capture registers
  • Can be configured as a response to 8 Event Link Controllers (ELCs), and as an event in ELC

Module Guide

The GPT HAL module guide is targeted for SSP 1.2.0 and the SK-S7G2 Kit.

The most recent versions of the GPT HAL module guide application note, application project and import guide are available here.

Module Guide Resources

The following application projects for the GPT HAL module are available from the Synergy Gallery. You can find them in the zip file located on the right side of the page here

  • GUIX WeatherPanel / OOB image for the PE-HMI1 with SSP 1.2.0
  • Simple audio framework example for DK-S124 with SSP 1.2.0
  • Simple PMOD LCD Example for DK-S124 with SSP 1.2.0
  • Simple record/playback using ADC framework for SSP 1.2.0
  • Simple tone generator for DK-S124 with SSP 1.2.0

The following application projects are available from the Renesas web site at the referenced url.

  • HMI Brushless DC (BLDC) Motor Controller - Application Project here.
  • Getting Started with the Audio Player Application using SSP - Application Project here.
  • Getting Started with the Weather Panel Application - Application Project here.
  • PE-HMI1 GUIX "Hello World" - Application Project here.
  • The GPT HAL module is used in the Developer Examples available as a template when a project is created in SSP for the DK-S7G2. You can find a Knowledge Base article that describes the Developer Examples and how to create a project using the template here.

Known issues

  • Refer to the SSP release notes for known issues, available here.
GPT HAL module on r_gpt (SSP 1.2.0)
  • Was this article helpful?