I am working with PWM complementary on Renesas RA2L1 , please help to share example code for this.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.
Volt.Tech
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hi, Please find the attached working code. Thanks Shivali
Hi, Please find the attached working code.
Thanks
Shivali
See lessHi, Please find the below step of working PWM Complementary code. void hal_entry(void) { /* TODO: add your own code here */ R_GPT_Open(&g_timer0_ctrl, &g_timer0_cfg); R_GPT_DutyCycleSet(&g_timer0_ctrl, 120 , GPT_IO_PIN_GTIOCB); R_GPT_DutyCycleSet(&g_timer0_ctrl, (240-120), GPTRead more
Hi, Please find the below step of working PWM Complementary code.
void hal_entry(void)
{
/* TODO: add your own code here */
R_GPT_Open(&g_timer0_ctrl, &g_timer0_cfg);
R_GPT_DutyCycleSet(&g_timer0_ctrl, 120 , GPT_IO_PIN_GTIOCB);
R_GPT_DutyCycleSet(&g_timer0_ctrl, (240-120), GPT_IO_PIN_GTIOCA);
//R_GPT_PwmOutputDelayInitialize();
R_GPT_Enable(&g_timer0_ctrl);
R_GPT_Start(&g_timer0_ctrl);
while(1)
{
}
Thanks
Shivali
See lessHi, Please find the below step of working PWM Complementary code. void hal_entry(void) { /* TODO: add your own code here */ R_GPT_Open(&g_timer0_ctrl, &g_timer0_cfg); R_GPT_DutyCycleSet(&g_timer0_ctrl, 120 , GPT_IO_PIN_GTIOCB); R_GPT_DutyCycleSet(&g_timer0_ctrl, (240-120), GPTRead more
Hi, Please find the below step of working PWM Complementary code.
void hal_entry(void)
{
/* TODO: add your own code here */
R_GPT_Open(&g_timer0_ctrl, &g_timer0_cfg);
R_GPT_DutyCycleSet(&g_timer0_ctrl, 120 , GPT_IO_PIN_GTIOCB);
R_GPT_DutyCycleSet(&g_timer0_ctrl, (240-120), GPT_IO_PIN_GTIOCA);
//R_GPT_PwmOutputDelayInitialize();
R_GPT_Enable(&g_timer0_ctrl);
R_GPT_Start(&g_timer0_ctrl);
while(1)
{
}
Thanks
Shivali
See lessHi, Please find the below step of working PWM Complementary code. void hal_entry(void) { /* TODO: add your own code here */ R_GPT_Open(&g_timer0_ctrl, &g_timer0_cfg); R_GPT_DutyCycleSet(&g_timer0_ctrl, 120 , GPT_IO_PIN_GTIOCB); R_GPT_DutyCycleSet(&g_timer0_ctrl, (240-120), GPTRead more
Hi, Please find the below step of working PWM Complementary code.
void hal_entry(void)
{
/* TODO: add your own code here */
R_GPT_Open(&g_timer0_ctrl, &g_timer0_cfg);
R_GPT_DutyCycleSet(&g_timer0_ctrl, 120 , GPT_IO_PIN_GTIOCB);
R_GPT_DutyCycleSet(&g_timer0_ctrl, (240-120), GPT_IO_PIN_GTIOCA);
//R_GPT_PwmOutputDelayInitialize();
R_GPT_Enable(&g_timer0_ctrl);
R_GPT_Start(&g_timer0_ctrl);
while(1)
{
}
Thanks
Shivali
See less