I am using AMMCLIB on S12ZVML micro. I will need to the calculation as below:
(tU16 - tU16) * tFrac16 / tS16
I have tried convert tU16 to tS16, tFrac16 to tS16, do the math and convert the result back to tFrac16. It didn't work. Please advise how to do it or if there is a walk around.