I just tried your code on a SX28 and I do see the problem. I found 2 ways to fix it, which give just one solid pulse: 1. add one more nop after each setb or clrb to the port 2. use setb and clrb on a temporary porta output value (I called it portabuf), and then write that value to the port after each setb or clrb to the temporary value. Usinf this method may give slightly longer pulse widths, so another possibility is to simply have predefined state values (ie. alloff = 0x00, sack1 = 0x08, way1 = 0x02, sack1_way1 = 0x0A)which can then be written to the port, saving the setb/clrb instruction cycle. I hope this helps... Stephen -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Jinx Sent: Monday, February 17, 2003 3:34 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [SX]: Pin won't turn off properly > I see no logical reason for the behaviour you are seeing That makes two of us. This is about as succinctly as I can put it http://home.clear.net.nz/pages/joecolquitt/SX_pins.html Amongst other things I've checked Vcc and Mclr for glitches Note that the first analyser picture shows correct operation. Throw another pin excursion into the mix though.......... There seems to be no apparent consistency. I never know what to expect, which tends to cramp one's style. Some days the damn thing makes me feel like a complete muppet Handshaking between the two micros works fine. As the SX is running 54x faster than the PIC I'm using INTF to store the Ack coming from the SX. The code snippet to do this is in the diagram showing the inter-connection -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics