Hi,
i have used the external irq driver to read the encoder count callback function code as given below for your reference. kindly help to short the issues
void g_external_irq2_callback(external_irq_callback_args_t *p_args)
{
if(p_args->channel==2)
if(count_test==1)
count22++;
else if(count_test==2)
count22--;
}
how to interface the rotary encoder in S5D5 synergy?.
Hello,
Thanks for reaching out Renesas Engineering Community.
Please let me inform you that we are checking your issue internally and come back to you as soon as possible.
Best Regards,
IK_Renesas
Thank you very much for your responses and I'm waiting for your replay for your references I have attached the external IRQ configuration image below.
Thanks & Regards,
Saravanan G
Dear Saravanan,
I have forwarded your request as already mentioned, however we need more information from you.
Could you please clarify to us:
Which specific rotatory encoder you want to connect? What are your requirements of phase counting/edge level detection, number of channels ?. etc.
IK
Could you please kindly check my previous questions and reply to these?
Thank you.
Dear IK_Renesas,
sorry for the late replay.
I have given link below for rotary encoder and i attached the images for your references
robu.in/.../
This is Orange 1000 PPR 2-Phase Incremental Optical Rotary Encoder with Outer diameter 41mm.
Please check the following post for using the GPT to read quadrature encoders with low software overhead:
https://community.renesas.com/mcu-mpu/embedded-system-platform/f/forum/7125/quadrature-decoder-in-any-synergy-parts/40901#40901
The code I posted was for the S7G2 but will also work for the S5D9.
-Gary
Dear Gary,
Thanks for sharing the post link. I will try it and update you, sir.
Let me also attach here a project that has been created for FSP onEK-RA6M2.
It might be on FSP but it is quite similar with SSP and you could use it as reference.
Hope it helps.
EK_RA6M2_PHASE_COUNTING_V2.zip