Daniel Imfeld wrote : > > DelayRXHalfBitUART as ((((2*FOSC/(4*baud))+1) / 2)- 12 cycles > > DelayRXBitUART ((((2*FOSC/(8*baud))+1) / 2)- 9 cycles > > DelayTXBitUART ((((2*FOSC/(4*baud))+1) / 2)- 14 cycles > > By the way, you have the function names mixed up. > DelayTXBitUART is the 12 cycle delay, > DelayRXHalfBitUART is 9 cycles, > and DelayRXBitUART is 14 Note that 12,9, and 14 isn't the number of cycles, they are just a factor in the calculation. The number of cycles in the delays are more like 822, 408 and 820. That's a lot of NOP's... Jan-Erik. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body