EQADC Calibration on MPC5777C

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EQADC Calibration on MPC5777C

Jump to solution
847 Views
berat24
Contributor III

Hello everyone,


There are two photos attached below. One of them is from an example whereas another is from a document about EQADC calibration.

In first photo, OCC was calculated by multiplying raw_res75 and GCC which was multiplyed with 16384 on the previous code line. However, in another photo, OCC was calculated without 16384. Which one is correct? Could you inform me?

Sincerely.

1.PNG2.PNG

0 Kudos
1 Solution
831 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Calculation are based on following appnote:

https://www.nxp.com/docs/en/application-note/AN2989.pdf

GCC is an unsigned 15-bit fixed point value with a single-bit integer portion and a 14-bit fractional
portion.

OCC is a signed 14-bit integer value.

 

16384 = 0x4000, this is due to conversion from float to fractional format

View solution in original post

0 Kudos
1 Reply
832 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Calculation are based on following appnote:

https://www.nxp.com/docs/en/application-note/AN2989.pdf

GCC is an unsigned 15-bit fixed point value with a single-bit integer portion and a 14-bit fractional
portion.

OCC is a signed 14-bit integer value.

 

16384 = 0x4000, this is due to conversion from float to fractional format

0 Kudos