Content originally posted in LPCWare by danielalsanta on Mon Dec 05 07:40:56 MST 2011
Hello,
Im using the example code from LPCXpresso website for performing a SSP connection. Im using Windows version of the IDE, I have a LPC link board that I cut it and im connecting through JTAG cable to an LPC1343 quick start board.
I initialize correctly CR0 and CR1 to work as a SPI, 8 bits, working as a master, and the clock is configured for port 0.6. TX_RX_ONLY, and USE_CS are 1.
The goal of my program is to drive an External DAC (AD5310). Therefore in order to test it, im setting src_addr[0] = 0X70 and I plan to send this value permanelty via a permanent loop.
The problem is that during the funciton :
SSPSend( (uint8_t *)src_addr, 1 );
when
LPC_SSP->DR = *buf
I always receive in DR a value of 0xFF