Problem Writting to the SSP_DR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem Writting to the SSP_DR

731 Views
lpcware
NXP Employee
NXP Employee
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
0 Kudos
Reply
2 Replies

711 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Wed Dec 07 06:10:05 MST 2011
Hello Danielalsanta,

as I would expect.
The MOSI line is connected to Din of the AD5310 , the MISO line is not connected to the AD5310 hence you will always receive 0xff when reading LPC_SSP->DR.

Rob
0 Kudos
Reply

711 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Wed Dec 07 03:48:13 MST 2011
[COLOR=#000080][I]hello [/I]danielalsanta,[/COLOR]

[COLOR=#000080]I did not check the SSP yet, but the serial-data-functionality of the AD5310 is that simple that via simple bitstreaming (setting bits by hand) the functionality of the DAC can be checked ...[/COLOR]

[COLOR=#000080]I will look at the SSP. [/COLOR]
0 Kudos
Reply