ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
gpt_pwm_demo Directory Reference
Directory dependency graph for gpt_pwm_demo:

Directories

 
src

Detailed Description

Drives an LED off GPT channel 0 in saw-wave PWM mode, walking the duty cycle from zero to full and back so it visibly breathes.

Each step also samples GTCNT and only counts the iteration a success if the counter actually moved since the previous sample. Configuring a timer without faulting proves nothing: a closed clock gate leaves GTCNT frozen at zero while every driver call still returns ok. The check is that the peripheral is counting, not that it is configured. Needs no external hardware.