Hi, I am trying to make SPI1 working. I can see data on MOSI on the scope, but I don't see any clock signal. I am fighting with this for days. Any help will be appreciated. Here is my initialization code. VPBDIV = 0x0000; SSPCPSR = 0x0002; PINSEL0 |= 0x20000000; PINSEL1 |= 0x0540; SSPCR0 = 0x000007; //8-bit data, SSPCR1 = 0x0002; //enable SSP In the main code I am sending out data while (1) { n= SSPSR; if(( n & 0x0010 )== 0 ) SSPDR = 0xAA; }