> Where is it solved? I simulated the code and found this problem (but it In the receive_bit function... He uses the same technique, but implemented the status incrementation in a proper way (I'd use INCF + SKPNZ instead but does not really matter, it's just matter of taste :-) ) Tamas On Wed, May 14, 2008 at 2:47 PM, Michael Rigby-Jones < Michael.Rigby-Jones@bookham.com> wrote: > > On Wed, May 14, 2008 at 2:42 PM, Mark Scoville > > > > wrote: > > > > > Hi Matthew... > > > > > > Are you sure you don't really want a DCFSNZ instead of DECFSZ here > in > > > set_tx_bit... > > > > > > bcf INTCON, T0IF ; Clear the interrupt flag > > > decfsz bit_count, F <---- **** maybe you intended > DCFSNZ??? > > **** > > > incf state, F ; All the bits have been set, > advance to > > > the > > > next state. > > > > > > Looks like maybe first time through you only send 1 bit, increment > the > > > state > > > to 4, and bail out. > > > > > > -- Mark > > > > -----Original Message----- > > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On > Behalf > > Of Tamas Rudnai > > Sent: 14 May 2008 14:05 > > To: Microcontroller discussion list - Public. > > Subject: Re: [PIC] Help debugging a software UART routine. > > > > > Are you sure you don't really want a DCFSNZ instead of DECFSZ here > in > > > > OP uses 12F629 where there is no instruction or such pseudo one, but > he > > solved it elsewhere in his code already, so he will be just fine I > > think :-) > > > > Tamas > > > Tamas, > > Where is it solved? I simulated the code and found this problem (but it > had already been reported when I checked the thread). This bug does > appear to be the main problem, only one data bit is sent before the stop > bit is sent. > > Regards > > Mike > > ======================================================================= > This e-mail is intended for the person it is addressed to only. The > information contained in it may be confidential and/or protected by > law. If you are not the intended recipient of this message, you must > not make any use of this information, or copy or show it to any > person. Please contact us immediately to tell us that you have > received this e-mail, and return the original to us. Any use, > forwarding, printing or copying of this message is strictly prohibited. > No part of this message can be considered a request for goods or > services. > ======================================================================= > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Rudonix DoubleSaver http://www.rudonix.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist