ReadMediaManual Function

Microchip MDD File System Interface

MDDFS Interface Library Help
ReadMediaManual Function
C
BYTE ReadMediaManual();
Description

The MDD_SDSPI_ReadMedia function will read one byte from the SPI port.

Preconditions

None.

Returns

The byte read.

Side Effects

None.

Remarks

This function replaces ReadSPI, since some implementations of that function will initialize SSPBUF/SPIBUF to 0x00 when reading. The card expects 0xFF. This function is for use on a PIC18 when the clock speed is so high that the maximum SPI clock prescaler cannot reduce the SPI clock below the maximum SD card initialization speed.

Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.