Skip to content

Feature/arduino r4 minima timer - #17336

Merged
acassis merged 3 commits into
apache:masterfrom
leocafonso:feature/arduino-r4-minima-timer
Nov 17, 2025
Merged

Feature/arduino r4 minima timer#17336
acassis merged 3 commits into
apache:masterfrom
leocafonso:feature/arduino-r4-minima-timer

Conversation

@leocafonso

Copy link
Copy Markdown
Contributor

Summary

Added PWM support for RA4M1 and tested on arduino-r4-minima. It was added a new pwm config exposing the GPT2 OUTPUTB on Arduino pin 5 (~5)

Impact

Added GPT PWM mode on RA4M1

Testing

It was tested on arduino-r4-minima. Tested all possible PWM on the Arduino board

==================   ============
Arduino R4 Minima    R7FA4M1ABxCFM
Pin (Label)          SCI Mapping
==================   ============
~3                   GTIOC1B_P104
~5                   GTIOC2B_P102
~6                   GTIOC0B_P106
~9                   GTIOC7B_P303
~10                  GTIOC3B_P112
~11                  GTIOC1A_P109
==================   ============

Test:
pwm frequency: 100Hz
duty: 50%

image

@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Arch: arm Issues related to ARM (32-bit) architecture Board: arm Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. labels Nov 16, 2025
- Added PWM driver support for the RA4M1 microcontroller using the GPT timer.
- This driver supports Saw-wave mode and one of the two output channels (A or B).
- Added necessary configurations in CMakeLists.txt, Kconfig, and Make.defs.
- Created new header file for GPT.

Signed-off-by: leocafonso <leocafonso@gmail.com>
- Added PWM support on Arduino R4 Minima board.
This board has 5 PWM channels available using the GPT timer from the RA4M1 microcontroller.
- Added a pwm config file to enable PWM supporting GTP2 GTIOCB on P102.

Signed-off-by: leocafonso <leocafonso@gmail.com>
- Updated information about the RA4M1 microcontroller capabilities, including the General Purpose Timer (GPT).
- Added information about the PWM driver support for the Arduino R4 Minima board using the GPT timer.

Signed-off-by: leocafonso <leocafonso@gmail.com>
@leocafonso
leocafonso force-pushed the feature/arduino-r4-minima-timer branch from 92d76c6 to bac0844 Compare November 17, 2025 00:28
@acassis
acassis merged commit 9e57337 into apache:master Nov 17, 2025
27 checks passed
@leocafonso
leocafonso deleted the feature/arduino-r4-minima-timer branch November 18, 2025 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Area: Documentation Improvements or additions to documentation Board: arm Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants