This message is in MIME format which your mailer apparently does not support. You either require a newer version of your software which supports MIME, or a separate MIME decoding utility. Alternatively, ask the sender of this message to resend it in a different format. --1157608817--1233618956--500291724 Content-Type: text/plain; charset=us-ascii Hi, I've got my MMC hooked up - the hardware seems OK, but for some reason the MMC doesn't seem to be responding to an SPI mode entry request. If I send the card the following packet: 0x40 0x00 0x00 0x00 0x00 0x95 then it should switch to SPI mode and respond with the byte "0x01". My card is responding with a 0x00. What direction is data clocked into an MMC? LSbit to MSbit or MSbit to LSbit? Do all MMCs support SPI mode? I've got an "Integral" branded MMC here, no idea who manufactured the IC. The Renesas (Hitachi Semiconductor) documentation suggests that SPI mode is listed as "Optional" in the MMC specifications. Can someone confirm this? My copy of the SanDisk Multimediacard Product Manual makes no reference to this fact :-/ I've attached my code, just in case anyone wants to have a look. If nothing else, the USART code should be of some use to someone - it seems to work OK, albeit only at 9600 Baud. Thanks. -- Phil. | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB, philpem@dsl.pipex.com | ViewFinder, 10BaseT Ethernet, 2-slice, http://www.philpem.dsl.pipex.com/ | 48xCD, ARCINv6c IDE, SCSI ... A clean, neat, desk is a sign of a very sick mind. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body --1157608817--1233618956--500291724 Content-Type: application/riscos; name="MAIN.ASM"; load=&ffffe44c; exec=&9fbe25f8; access=&403 Content-Disposition: attachment; filename="MAIN.ASM" Content-Transfer-Encoding: base64 OyBNTUMgdGVzdCBwcm9ncmFtDQo7IFAuIFBlbWJlcnRvbg0KOyBDb21tdW5pY2F0ZXMg d2l0aCBhIE11bHRpbWVkaWFjYXJkIGluIFNQSSBtb2RlDQo7IFNlbmRzIGRpYWdub3N0 aWMgaW5mbyBvdmVyIGFuIFJTMjMyIGxpbmsNCg0KCUxJU1QJUD0xNkY2MjgsCVI9REVD DQoNCglJTkNMVURFCSJwMTZmNjI4LmluYyINCg0KCV9fQ09ORklHCV9YVF9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Q19SRUNWCQkJCQk7IFJlY2Vp dmUgYSBieXRlIGZyb20gdGhlIE1NQw0KCU1PVldGCU1NQ19URU1QDQoJSU9STFcJRCcw JwkJCQkJCTsgVXBkYXRlIGZsYWdzDQoJQlRGU0MJU1RBVFVTLAkJCVoJCQk7IDAgaXMg YSB2YWxpZCByZXNwb25zZQ0KCUdPVE8JTU1DX1JFU1BfRE9ORQ0KCVhPUkxXCS4xCQkJ CQkJCTsgQW5kIHNvIGlzIDENCglCVEZTQwlTVEFUVVMsCQkJWg0KCUdPVE8JTU1DX1JF U1BfRE9ORQ0KCUdPVE8JTU1DX1dBSVRfUkVTUE9OU0UJCQk7IEFueXRoaW5nIGVsc2Ug aXNuJ3QsIHNvIHdhaXQuDQpNTUNfUkVTUF9ET05FOg0KCU1PVkYJTU1DX1RFTVAsCQlX CQkJOyBSZXR1cm4gd2l0aCByZXNwb25zZSBpbiBXDQoJUkVUVVJODQoNCjs7Ozs7Ozs7 Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7 Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ow0KOyBDb2RlIGxpYnJhcmllcw0KCUlOQ0xVREUJInVz YXJ0LmluYyIJCQkJCTsgVVNBUlQNCg0KCUVORA0K --1157608817--1233618956--500291724 Content-Type: application/riscos; name="USART.INC"; load=&ffffe44c; exec=&9fbe7990; access=&403 Content-Disposition: attachment; filename="USART.INC" Content-Transfer-Encoding: base64 OyBVU0FSVCBjb250cm9sIHJvdXRpbmVzDQoNCglDQkxPQ0sNCgkJVVNBUlRfSEksIFVT QVJUX0xPDQoJRU5EQw0KDQo7IEluaXRpYWxpc2UgdGhlIFVTQVJUIGZvciA5NjAwLDgs TiwxDQpVU0FSVF9JTklUOg0KCUJBTksxDQoJTU9WTFcJMHgxOQkJCQkJCTsgOTYwMCBC YXVkDQoJTU9WV0YJU1BCUkcNCglNT1ZMVw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