On Fri, Aug 28, 2015 at 11:01 AM, Isaac Marino Bavaresco wrote: > I just found that my BAM() routine took more cycles than the time of the > LSB, so it messed things up. > > I was using 'memcpy', that took alone 390 tcy and a loop that took 182 > cycles. > After some code changes, the routine works OK. > > There was another mistake that made the delay of the previous bit being > used, instead of the current bit. > > Expecting a PIC16F work OK for this application may be wishing too much. Hi Isaac, Thanks for sharing your code! I will need a bit more time to study it, I think we code rather differently. That said, what do you consider "A_DECENT_COMPILER"? Thanks! Josh --=20 A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .