My latest horror story is worse than that one James... I have been interfacing a PIC to my X10 system at home. I have a number of socket controllers, pendant light controllers, RF keypad, CM12U (uyk version of the CM11). Designed the Pic system, hooked it up to the CM11, wrote some code to "bit-bang" the bizarre protocol that X10 needs to communicate. Nothing :( I send the bitstream and I expect the interface to respond by raising RI (Ring indicator) on the serial port. Nothing. Scope out from the attic. No movement on RI. Check the PIC is sending by hooking up to a bunch of LEDs, 100% code check ok. Still nothing. 2 days later. Think that the UK version of the interface is different to the USA version. - I mean after all the RJ11 connector is wired differently... hmmmm Ok -lets check versions/types/serials. Ok my CM12U 240v is not responding to the X10 TW523 command I am sending to it. main match I found said (almost verbatim) Be careful.. The CM11 (CM12U in Europe) is NOT the same as a tw523. The 523 is dumb and just sends data on the 0 crossing of the mains. Whereas the CM11/12 has a pic processor converting the interface (RS232 @ 4800 baud). DOH Ok change the code (in C so easier to do than ASM). Hmmm still not working at end of evening 3. Aha ! I am still interfacing at TTL levels, we are now RS232. Hmm data going out - AND readable on PC serial port. But no X10 control. Ah, that will be the *very* out of date and incorrect documentation I was working to. Google rocks my world again. I have X10 control now, power off and on requires a reset of the clock, and a non pc controlled status change on any X10 device tells me about it too - I didn't expect that to happen. Finally, I found out that the Checksum doesn't always make it to the PC :( So timeouts and re-transmissions galore - but hey, it works! -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of James Newton, Host Sent: 05 April 2007 22:01 To: 'Microcontroller discussion list - Public.' Subject: RE: [BUY] Help with microSD or SD card interfacing > From: James Newton > Sent: 2007 Mar 30, Fri 09:43 > > I'm quite a few hours into attempting to connect a microSD > (aka TransFLASH) card to an MSP430F1611 and I'll be damned if > I can get any response back from the card. > > I've read the datasheets, I've read the many available web > pages on the subject, I've checked, re-checked, double > checked and had others check the connections, and I'm looking > at the signals I'm putting out on a logic analyzer and they > are dead on exactly what is called for. And there is NO > response from x4 cards. I'm going to do what is good for the soul here and admit what the actual problem turned out to be. The spec calls for 4 bytes of argument to be sent between the command and the CRC. I was sending 3 bytes. I'm not sure how many times I checked the analyzer display against the spec, but it must have been 50 or more times. Didn't see that (obvious) difference every single time. Another guy looked at it and said "hey, doesn't that say 4 bytes? This looks like 3 to me..." Whereupon I said "No fxxking WAY!", changed the code, ran it and completely freaked out when the card responded. I'm not charging the client for about 2 days of otherwise billable time. Some times I think it's a good thing I have a day job. Sigh. If it wasn't for the fact that in the past I've pulled many a project out of the toilet and saved more than a few other peoples bacon from the fire, I would quit doing this sort of work. Another point is that I have got to get a new unit that can export images of the signals so that I can post them for other people to look at. --- James Newton: PICList webmaster/Admin mailto:jamesnewton@piclist.com 1-619-652-0593 phone http://www.piclist.com/member/JMN-EFP-786 PIC/PICList FAQ: http://www.piclist.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist