MM9Z1J638

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

MM9Z1J638

732 Views
bjs
Contributor III

I'm working with MM9Z1J638 MCU.

In the demo there is a structure defined for calibration data as below.

 

// --------------------------------------------------------------------
/*! \brief Sets up the next channel for conversion
 
- loads device calibration values (from IFR -> B_COMP_xxx registers)
- loads incremental system calibration values (gainsteps and offsetsteps) 
 
@Param SensorChannelchannel
 */
void CsenseSetupChannel(TYPE_CSENSE_CHANNEL Channel)  {
 
B_COMP_IG4   = IFR_COMP_IG4  + CalibValues.isense.gainsteps;
B_COMP_IG16  = IFR_COMP_IG16 + CalibValues.isense.gainsteps;
B_COMP_IG64  = IFR_COMP_IG64 + CalibValues.isense.gainsteps;
//B_COMP_IG256 = IFR_COMP_IG256+ CalibValues.isense.gainsteps;
B_COMP_TIG4  = IFR_COMP_TIG4;
B_COMP_TIG16 = IFR_COMP_TIG16;
B_COMP_TIG64 = IFR_COMP_TIG64;
B_COMP_TIG256= IFR_COMP_TIG256;
 
// select "window (page)" then write value
B_ACQ_GAIN = GAIN256; 
//B_COMP_IO = CalibValues.isense.offsetsteps;
B_ACQ_GAIN = GAIN64;
B_COMP_IO = CalibValues.isense.offsetsteps / 4;// offset for gain 64 = offset for gain 256 / 4
B_ACQ_GAIN = GAIN16;
//B_COMP_IO = CalibValues.isense.offsetsteps / 16;// offset for gain 16 = offset for gain 256 / 16
B_ACQ_GAIN = GAIN4;
//B_COMP_IO = CalibValues.isense.offsetsteps / 64;// offset for gain 4 = offset for gain 256 / 64
}

 

I can't locate the definition of this structure from the demo code. Where can I get this information? 

bjs_0-1768928933307.png

Regards,

Bruce

 

 

0 Kudos
Reply
1 Reply

590 Views
RafaR
NXP Employee
NXP Employee

Hello bjs

Could you share the name of the demo you're using?

I will be waiting for your response

Have a great day and best of luck.

0 Kudos
Reply