03.08.2013 Views

Data Sheet - Freescale Semiconductor

Data Sheet - Freescale Semiconductor

Data Sheet - Freescale Semiconductor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.6 DSI3 physical layer<br />

3.6.1 Command receiver<br />

The command receive block converts voltage transitions on the BUS_I pin to a digital pulse train for decoding by the DSI data<br />

link layer.<br />

The supply voltage can vary throughout the specified range, so the communication high voltage (V HIGH) must be sampled and<br />

averaged with a low-pass filter. The communication low voltage is then determined by comparing the supply voltage to the<br />

sampled and averaged V HIGH voltage. Figure 28 shows a block diagram of the command receiver physical layer.<br />

BUS_I<br />

V SS<br />

V DELTA_THRESH<br />

+ -<br />

VHigh_Sample<br />

Cmd_Block<br />

V HIGH<br />

Command_Detect<br />

Figure 28. Command receiver physical layer<br />

The start of a command is detected when the comparator output (Command_Detect) is low. The comparator output is input to a<br />

counter that is updated at the internal oscillator frequency. Control logic monitors the counter output and generates the following<br />

signals:<br />

1. Cmd_Start<br />

a) Asserted when the counter reaches a value of one.<br />

b) Deasserted at POR, if the counter does not reach Cmd_Valid_Count (tCmd_Valid) within tCmd_BitTime of Cmd_Start<br />

assertion, or at the end of the command blocking time for the operating mode (tCmdBlock_DISC, tCmdBlock_CRM ,<br />

tCmdBlock_PDCM , tCmdBlock_BDM ).<br />

2. Cmd_Valid<br />

a) Asserted if the counter reaches Cmd_Valid_Count within tCMD_BitTime of Cmd_Start assertion (tCmd_Valid). b) Deasserted at POR and when Cmd_Start is deasserted.<br />

3. VHigh_Sample<br />

a) Asserted tDSI_DISC_POR after POR and when Cmd_Start is deasserted.<br />

b) Deasserted when Cmd_Start is asserted.<br />

4. Cmd_Block:<br />

a) Asserted based on the operating mode:<br />

– Discovery Mode: A complete command is received as defined in Section 4.1.3 and Section 2.6.<br />

– Command and Response Mode: A complete command is received as defined in Section 4.2 and Section 2.6.<br />

– Periodic <strong>Data</strong> Collection Mode: A complete command is received as defined in Section 4.3 and Section 2.6.<br />

b) Deasserted at POR and when Cmd_Start is deasserted.<br />

Once a full command is received, based on the operating mode, the command is transferred to the DSI data link layer for<br />

decoding.<br />

f OSC<br />

Cmd_Block<br />

VHigh_Sample<br />

Figure 29 shows a timing diagram of the command receiver when a valid command is received, and Figure 30 shows a timing<br />

diagram of the command receiver when a microcut is received during the command window. Voltage values and timing<br />

parameters are specified in Section 2.3 and Section 2.7.<br />

MMA27XXW<br />

Sensors<br />

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

D<br />

R<br />

Counter<br />

Count<br />

Command_Detect<br />

Control<br />

Logic<br />

Command<br />

Cmd_Start<br />

Cmd_Valid

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

Saved successfully!

Ooh no, something went wrong!