01.01.2015 Views

Microcontroller: 1-wire Interface, SPI Interface - IIIT

Microcontroller: 1-wire Interface, SPI Interface - IIIT

Microcontroller: 1-wire Interface, SPI Interface - IIIT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>SPI</strong>: Modes of Operation<br />

Clock phase one (CPHA = 1): MOSI and MISO are valid on<br />

falling/rising edge of SCK for low/high clock polarity respectively<br />

Clock phase one and low clock polarity<br />

<strong>SPI</strong> Mode 0: CPOL = 0, CPHA = 0; <strong>SPI</strong> Mode 1: CPOL = 0, CPHA = 1;<br />

<strong>SPI</strong> Mode 2: CPOL = 1, CPHA = 0; <strong>SPI</strong> Mode 3: CPOL = 1, CPHA = 1<br />

Most common modes: <strong>SPI</strong> Mode 0 and 3 (data sampled on positive<br />

clock edge)<br />

16

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

Saved successfully!

Ooh no, something went wrong!