Hi Tony, ----- Original Message ----- From: Tony Nixon To: Sent: Monday, August 06, 2001 10:24 PM Subject: Re: [PIC]: Need SPI code for 16F877 | Olin Lathrop wrote: | | > Therefore, for most cases, the original code was just fine: | > | > bsf portb, clock_bit | > bcf portb, clock_bit | | | Probably so, but even Microchip suggest something like.... | | bsf portb, clock_bit | nop | bcf portb, clock_bit And this is proposed also for the general case of a read followed by a write to the port (i.e with two mov's), letting the logic state to stabilize, although the quantity of nop's is load(and frequency)-dependent. To avoid these nop's they suggest a series resistor at the pin. | -- | Best regards | | Tony | Best Regards, S.- -- 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