13.07.2015 Views

MCP3550/1/3 - Microchip

MCP3550/1/3 - Microchip

MCP3550/1/3 - Microchip

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.

<strong>MCP3550</strong>/1/35.5 Using The <strong>MCP3550</strong>/1/3 withMicrocontroller (MCU) SPI PortsIt is required that the microcontroller SPI port beconfigured to clock out data on the falling edge of clockand latch data in on the rising edge. Figure 5-6 depictsthe operation shown in SPI mode 1,1, which requiresthat the SCK from the MCU idles in the High state,while Figure 5-7 shows the similar case of SPI Mode0,0, where the clock idles in the Low state. Thewaveforms in the figures are examples of an MCUoperating the SPI port in 8-bit mode, and the<strong>MCP3550</strong>/1/3 devices do not require data in 8-bitgroups.In SPI mode 1,1, data is read using only 24 clocks orthree byte transfers. The data ready bit must be readby testing the SDO/RDY line prior to a falling edge ofthe clock.In SPI mode 0,0, data is read using 25 clocks or fourbyte transfers. Please note that the data ready bit isincluded in the transfer as the first bit in this mode.CSSCKSDO/RDYD O O 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0R H LMCUReceiveBufferOL OH 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0Data stored into MCUreceive register aftertransmission of first byteData stored into MCUreceive register aftertransmission of second byteData stored into MCUreceive register aftertransmission of third byteFIGURE 5-6: SPI Communication – Mode 1,1.CSSCKSDO/RDYDR O O 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0H LMCUReceiveBufferDROH OL 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0Data stored into MCUreceive register aftertransmission of first byteData stored into MCUreceive register aftertransmission of second byteData stored into MCUreceive register aftertransmission of third byteData stored into MCUreceive register aftertransmission of fourth byteFIGURE 5-7: SPI Communication – Mode 0,0.© 2009 <strong>Microchip</strong> Technology Inc. DS21950E-page 25

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

Saved successfully!

Ooh no, something went wrong!