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

Synchronour Serial Port Slave mode problem in TI Format

Hi,

I am working on LPC2368 Controller. I have a problem with Synchronous Serial Port SSP0 slave mode with TI Frame Format. My Interrupts are not being triggered even though there is a continous clock and Frame sync.

Master device Clock freq = 128KHz.
Frame Sync = 8KHz
Bit = 16

I have configured the controller as follows
CPU Clock = 64MHz
Peripheral Clock = 64MHz

I have chosen the above because
Master device Serial Clock = PCLK / (CPSDVSR × [SCR+1])
so
128K = PCLK / (CPSDVSR × [SCR+1])
(CPSDVSR × [SCR+1]) = PCLK / 128K

That means PCLK / 128K should not leave remainder. And CPDVSR should be an even number
So i had chosen PCLK = 64MHz
which gives me the value of 500.

So i had chosen SCR = 10
CPSDVSR = 50.

I had configured my registers as follows

PCONP |= (1 << 21);

PINSEL0 |= 0x80000000; PINSEL1 |= 0x0000002A;

SSP0CR0 = 0x091F; // 16 Bit Transfer, TI SSP Transfer

SSP0CPSR = 0x32;

SSP0CR1 = 0x06;

VICIntEnClr |= 1 << 10;

install_irq( SSP0_INT, (void *)SSP0Handler, 0x09 ) VICIntEnable |= 1 << 10; // Set SSPINMS registers to enable interrupts

SSP0IMSC = 0x01; // Enable all error related interrupts

Now my interrupt is not being triggered.
Can anyone tell me where my problem persists.

Thanks in advance.

0