SSPI using Keil/NXP SSP Example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SSPI using Keil/NXP SSP Example

614件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by John@MPL on Mon Jan 20 12:19:54 MST 2014
? Not receiving data on SPI Channel 2

I am using LPC11A14 HVQFN 33 and have the following set up using example code config.

Defines   SSP_NUM  1;   LOOPBACK_MODE 0;  SSP_SLAVE 0; TX_RX_ONLY 1;  USE_CS 0;

SPI Ctrl Reg set to 16 bit transfer.

Using SSP_Send( 1, my_value1, 1);  // This sends my_value1 data to a SPI 16bit  DAC and works OK.

I have changed SSP_Receive() to return a 16 bit value i.e.     return_val = LPC_SSP1->DR;  // As I only need a 16 bit value.

therefore I have:-   my_value2 = SSP_Receive (1, dummy_test_val, 1);

In SSP_Receive(),  existing code,  LPC_SSP1->DR = 0xFFFF gives 16 clocks on SCLK1 and my device clocks the correct data into MISO-1 pin but does not appear in LPC_SSP1_DR register.



ラベル(1)
0 件の賞賛
返信
0 返答(返信)