[SOLVED] GPT12E->T2 initializing problem in BLDC_SENSORLESS_FOC_EXAMPLE_TLE987X

Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Dear Sir,
I'm studying BLDC_SENSORLESS_FOC_EXAMPLE_TLE987X of TLE987X_DFP 1.3.2. And I think GPT12E->T2 initializing in gpt12e.c(line 75 GPT12E->T2.reg = GPT12E_T2;) maybe is not precise.
Because GPT12E_T2(value 18311) is defined as elapsed ticks and used for intervel time caculating. And there is another reload value GPT12E_T2_TICK(value 47225) defined.
I think line 75 should be changed to GPT12E->T2.reg = GPT12E_T2_TICK.
Although this problem doesn't influnce the result much, I think it's better to change to avoid misunderstanding.
Thanks.
Your sincerely, Tony
0 Likes
1 Reply
Mc-Key
Employee
Employee
Welcome!
Dear Tony,
great Work!
Thank you, for your feedback.
0 Likes