Microchip has example code on their WWW site. You have to go looking into their app notes pages... Tim wrote: > > Hi, > If this is a re-post I am sorry, I didn't receive a copy of it > through the list or any replies, so I thought that it might have been > lost. > > I was wondering if anyone has used a 12C509, 12C672, or any other 8-pi n > PIC as a serial peripheral interface (SPI) in slave mode. I am currently > working on a project which is going to use either a 12C509 or if needed > a 12C672. I want to communicate with it using the SPI protocol from > another PIC which will be a 16C73 (or possibly a Motorola part), which > will be in master mode. > If anyone has any code, that they wouldn't mind sharing with me, > that > is for a 509, 672 or even a 16F84 without using interrupts, that would > be great. Or if there is a web site out there with this info on it, that > would be great also. > > Thanks a lot, > Timothy Deterly Nino. -- ****************************************************** * Antonio (Nino) Benci * * Professional Officer / Electronic Services Manager * * Monash University - Dept of Physics * * Wellington Rd, Clayton. 3168 * * Victoria, Australia. * * TEL - 61 3 9905 3649, FAX - 61 3 9905 3637 * * Mobile - 0414 764 763 (private and ah only) * * EMAIL - nino.benci@sci.monash.edu.au (work) * * - fleatech@excite.com (private) * * WWW - www.physics.monash.edu.au/ * ******************************************************