----- Original Message ----- From: Bob Axtell To: Sent: Sunday, August 10, 2003 10:17 AM Subject: [PIC] Bob's 1-Pin Morse Debug Rtn > Sometimes only a look inside can solve a problem. My 1-pin debugger has > saved my bacon on many occasions. > > I've enclosed a WORKING program for PIC12C508 which contains a routine > called MORSE. It can be spliced any PIC processor. Just make sure the > 16-place table winds up in a good table area (won't run over an FF to 00 > boundary). It pumps out > the contents of W-reg upon entry into the MORSE routine. Hi Bob, I have some code (somewhere) that shifts binary data out so that it can be seen on a scope. The trick here is to have an interrupt routine continually send it out and to have a quite period that is at least as long as the total time it takes to shift out the whole byte. This way you can sync the scope to the start of the data and the data looks like a steady persistent picture. I actually output two1 bits for the start sync, then a high/low for each 1 bit and a low/low for a 0 bit (the start bits also observe the high/low format). Regards Sergio Masci http://www.xcprod.com/titan/XCSB - structured PIC BASIC compiler -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads