cancel
Showing results for 
Search instead for 
Did you mean: 

No output on peripheral spi device

AlexandrosAA
Associate III

I'm trying to control a LTC-2668 dac device, through the spi interface. The dac opperates on mode 00 and spi commands are 24 bits long. The chip select pin is manually toggled

The thing is that even though the STM produces the correct output signals, i get no output on the dac device.
Here are some pictures of the produced signals( captured on an analyzer ), spi settings and a snipet of my code.

 

HAL_GPIO_WritePin(ChipSelect1_GPIO_Port, ChipSelect1_Pin, GPIO_PIN_RESET);
if(HAL_SPI_Transmit(&hspi1,spiCommand , sizeof(spiCommand), 100)==HAL_OK)
	  	 	  	  	{
	  	 	 								HAL_GPIO_WritePin(ChipSelect1_GPIO_Port, ChipSelect1_Pin, GPIO_PIN_SET);
	  	 	 								HAL_GPIO_WritePin(GPIOB, LD1_Pin|LD3_Pin, GPIO_PIN_SET);
	  	 	 			  	 	 			HAL_Delay(100);
	  	 	 			  	 	 			HAL_GPIO_WritePin(GPIOB, LD1_Pin|LD3_Pin, GPIO_PIN_RESET);
	  	 	 			  	 	 		    HAL_Delay(100);
	  	 	 		}

 

 

 

 

Στιγμιότυπο οθόνης (620).png

419990529_340221305639804_4347972341758977398_n.jpg

420513980_848781580380237_3177474528971993670_n.jpg

   

3 REPLIES 3
Peter BENSCH
ST Employee

Well, if in your opinion the SPI line shows the correct signal, but the DAC (from another manufacturer) does not show any output signal, then probably nobody here in the ST community can help you. The DAC manufacturer's forum would probably be the better place to go?

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
TDK
Guru

Check that the chip is hooked up correctly.

Check that you're monitoring the pins you think you're monitoring.

Check that the commands you're sending do what you think they do.

If you feel a post has answered your question, please click "Accept as Solution".

Schematic?