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
http://www.addlogic.se
Thanks!
Fredrik
"Henrik Viklund" <henrik....@gmail.com> wrote in message
news:1150811897....@b68g2000cwa.googlegroups.com...