Hi@Jeevi
I will try my best to help you solve your problem.
In order to quickly locate the problem, I hope you can provide your hardware information, such as schematic diagram.
I will write a demo program for your reference, but I cannot help you troubleshoot your hardware problem.