hmmmm....I tried that...but it didn't seem to work...maybe I'm doing something wrong....but I don't think so. I'll just work with the time delays...but thanks! Jonathan Spehro Pefhany wrote: > At 09:10 PM 7/30/01 -0700, you wrote: > >Quick question: I am able to send two SPI bytes with no problem with a > >short delay between the two 8-bit writes to SSPBUF, but when there is no > >delay, it of course doesn't work. Is there no status bit that can be > >read to see if the byte has been sent? I looked throught eh 16f87x > >literature and did not seem to find an explicit answer. or do I just > >have to count how many clock cycles there are and delay for that period > >of time? (which is not difficult, but it would be nice to be able to > >swap out various crystals and not have to deal with this)....thanks... > > I think you just need to check BF, as SPI transmits and receives > simultaneously. > > Best regards, > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Spehro Pefhany --"it's the network..." "The Journey is the reward" > speff@interlog.com Info for manufacturers: http://www.trexon.com > Embedded software/hardware/analog Info for designers: http://www.speff.com > Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads