Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PXA27x SSP1 and SPI

0 views
Skip to first unread message

Fredrik Jansson

unread,
Jun 20, 2006, 9:27:25 AM6/20/06
to
Hi!

I try to use SPI on SSP1 on a Intel PXA27x Processor Developer's Kit. The
code below is from the test program I use.

When I check the status register, I see the TX FIFO queue increasing with
each write, does anyone know how to get it to start transferring the data?

Best regards,
Fredrik Jansson

PHYSICAL_ADDRESS ph;
ph.QuadPart = SSP_1;
pSSP_1 = (volatile SSP*) MmMapIoSpace(ph, sizeof(SSP), FALSE);
pSSP_1->status = 0;
pSSP_1->data = 0;
pSSP_1->control_0 = 0;
pSSP_1->control_0 = XLLP_SSCR0_EDSS | XLLP_SSCR0_SCR_512K |
XLLP_SSCR0_DSS_32BIT;
pSSP_1->control_1 = XXLP_SSCR1_LBM;
pSSP_1->interupt = 0;

pSSP_1->control_0 |= XLLP_SSCR0_SSE;

for (unsigned int i = 0; i < 10; ++i)
{
pSSP_1->data = 0xff;
unsigned int dummy = pSSP_1->data;
}


Henrik Viklund

unread,
Jun 20, 2006, 9:58:17 AM6/20/06
to
A qualified guess would be that the SPI clock is not enabled. Use for
example XLLP_CLKMGR_T and XLLP_CLKEN_SSP1 to enable it.

Henrik Viklund
http://www.addlogic.se

Fredrik Jansson

unread,
Jun 20, 2006, 10:54:32 AM6/20/06
to
Once again you point at the right spot, very impressive!

Thanks!
Fredrik


"Henrik Viklund" <henrik....@gmail.com> wrote in message
news:1150811897....@b68g2000cwa.googlegroups.com...

0 new messages