03.08.2013 Views

Data Sheet - Freescale Semiconductor

Data Sheet - Freescale Semiconductor

Data Sheet - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Command<br />

Response<br />

MMA27XXW<br />

Figure 12. Periodic <strong>Data</strong> Collection Mode oscillator training timing diagram<br />

3.4.2 Oscillator training error handling<br />

If oscillator training is enabled by the user, but the conditions are not correct to complete oscillator training, the OSC_TRAIN bit<br />

is set in the DEVSTAT register. The following conditions will result in the OSCTRAIN_ERR bit being set.<br />

• The CLK_CAL_EN bit in the CRM_CFG register is set, the device is in Command and Response Mode and Command and<br />

Response Mode period is not set to 500 μs, 666 μs, 1000 μs, 1333 μs, 2000 μs or 4000 μs.<br />

• The CLK_CAL_EN bit in the CRM_CFG register is set and the measured period (n OSC_4ms ) for either Command and<br />

Response Mode or Periodic <strong>Data</strong> Collection Mode is outside of the Oscillator Training Window (OscTrain WIN ).<br />

— The result of the comparison is filtered with an up and down counter.<br />

— If nOSC_4ms is outside the oscillator training window, the counter is incremented.<br />

— If nOSC_4ms is inside the oscillator training window, the counter is decremented.<br />

— If the counter reaches 64 counts, the OSCTRAIN_ERR bit is set.<br />

— The up and down counter has a maximum value of 127 and a minimum value of 0.<br />

3.5 Acceleration signal path<br />

3.5.1 Transducer<br />

One PDCM Period<br />

4ms = nPDCM_PER_4ms_TYP nOSC_4ms The device transducer is an overdamped mass-spring-damper system defined by the following transfer function:<br />

Hs ( )<br />

where:<br />

ζ = Damping Ratio<br />

ωn = Natural Frequency = 2∗Π∗fn Reference Section 2.7 for transducer parameters.<br />

=<br />

2<br />

ω<br />

n<br />

s 2<br />

------------------------------------------------------<br />

2<br />

+ 2 ⋅ ξ ⋅ ω<br />

n<br />

⋅ s + ω<br />

n<br />

t CmdBlock_PDCM<br />

Oscillator<br />

Adjustment<br />

New Oscillator<br />

Count Starts<br />

Eqn. 1<br />

Sensors<br />

38 <strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

t

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!