Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] cmd24 MMC card parametric error

Status
Not open for further replies.

thata

Newbie level 1
Joined
Mar 12, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
5
hello guys ;

I m trying to use a PIC 16f877a to write on an MMC 128 M , Mikroc + ISIS .

I initialized well my MMC .

But when i try to use the command 24 to write a single block i get a parametric error as a response

Code:
SPI1_WRITE(0xFF);
  SPI1_WRITE(0x58);        // send mmc write block
  SPI1_WRITE(0x00);                                // this is the high order byte address
  SPI1_WRITE(0x00);
  SPI1_WRITE(0x02);
  SPI1_WRITE(0x00);                // always zero as mulitples of 512 bytes (strange standard)
  SPI1_WRITE(0xFF);


 // read the response and print it to the portd to see 
   SPI1_WRITE(0xFF);
 read=SSPBUF;
 portd=read;

Any idea how to fix this ?

thank youuu
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top