> How exactly do I use Timer 2 as the clock source for SPI? I am using a > 17C756A, but guess it will be similar on other micros. I wouldn't be guessing here. You should read the data sheet for each family as you use it. The 17 family is a little older than the 16 and has some differences in the UART and maybe the MSSP too. > Does the clock toggle > every time the timer 'ticks', or only when the timer rolls over and > generates an interupt? The data book does not describe it well. > > I am trying to get an ~2.5MHz clock speed for my SPI link with a 20MHz xtal, > can it be done? I've only used the PIC17 MSSP in IIC mode, so I can only tell you my interpretation of the manual. It seems rather clear, however. You set the SSPM3..SSPM0 bits in SSPCON1 to 0011 to select SPI master mode with clock = timer2 / 2. You want 2.5MHz, which is Fosc/8 in your case. Set up timer 2 to increment from Fosc/4, then set the period register PR2 to 0 so that the timer 2 output is also Fosc/4. The SPI clock will then be Fosc/8. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads