piclist 2003\02\17\212513a >
Thread: Pin won't turn off properly
www.piclist.com/techref/ubicom/devices.htm?key=sx
picon face BY : Stephen email (remove spam text)



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 removed}
<001001c2d6f4$af902920$6701a8c0@shollandathome> 7bit

In reply to: <005c01c2d6dd$1e2123c0$23a8a7cb@joe>
See also: www.piclist.com/techref/ubicom/devices.htm?key=sx
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Pin won't turn off properly

month overview.

new search...