This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2214 ->SPI0 Logic analyzer

Why I don't see clock signal (SCK) in logic analyzer. I use mask 0x00000010(PORT0). Does the program is corect?

#define SPIF (1<<7)
#define SPI0_SEL 0x00000080
#define SPI0_MSTR 0x00000020
#define DATA 0xC1

void main(void)
{ PINSEL0 |= 0x00005500;
IO0DIR = SPI0_SEL;
IO0SET = SPI0_SEL;
S0SPCCR = 0x08;
S0SPCR = SPI0_MSTR;

while(1)
{ S0SPDR = DATA;
while(!(S0SPSR & SPIF)){}
} }

0