Rx66T Gpt Pin Multiplexing Problem

Hi,

I facing a strange issue in Rx66t (R5F566TEADFP) GPT Pwm. I'm using GPT0 (Triangular Mode 2) for generating Complimentry Pwm. Pin - (PD6 & PD7) was configured as PWM pins. When I'm using Debugger to debug and run. I'm Getting the PWM as expected. When I remove debugger and try to run standalone, I haven't get the Pwm. With same Configuration GPT3 (PD0 & PD1) has no issues, I'm getting PWM as expected. I have created a simple code where i'm just starting a PWM before while. Kindly help me with this. I'm strucked at this Point.

void R_Config_GPT0_Start(void)
{
/* Enable GPTW0 interrupts */
IR(PERIA,INTA253) = 0U;
IEN(PERIA,INTA253) = 1U;

/* Disable GPTW0 start write protect */
GPTW0.GTWP.BIT.STRWP = 0U;

/* Start GPTW0 counting */
GPTW0.GTSTR.BIT.CSTRT0 = 1U;

/* Enable GPTW0 start write protect */
GPTW0.GTWP.BIT.STRWP = 1U;
}

void main(void)
{
R_Config_GPT0_Create();
R_Config_GPT3_Create();
R_Config_GPT0_Start();
R_Config_GPT3_Start();
while(1)
{

}
}

Parents Reply Children