GPT Driver dynamic period
Posted: Sun Aug 25, 2024 6:20 pm
Hello,
I'm currently having trouble to set dynamic periods foe the GPT timer. Im trying to capture a protocol similar to UART / LIN which js called Bean MPX in Toyota cars. The implementation would require me to trigger a half bit period once a interupt happens on both edges.
I've had some success with dynamically chaning the ARR and disabling ARPE, but resulted in increased delays between the iterations. The only semi decent way was PWM and manipulating the CCR register, but trying the same on the GPT driver in continous and setting the output/capture mode didnt help.
Advice would be greatly apreciated.
I'm currently having trouble to set dynamic periods foe the GPT timer. Im trying to capture a protocol similar to UART / LIN which js called Bean MPX in Toyota cars. The implementation would require me to trigger a half bit period once a interupt happens on both edges.
I've had some success with dynamically chaning the ARR and disabling ARPE, but resulted in increased delays between the iterations. The only semi decent way was PWM and manipulating the CCR register, but trying the same on the GPT driver in continous and setting the output/capture mode didnt help.
Advice would be greatly apreciated.