Author Topic: DAC noise problem with SPI  (Read 1170 times)

0 Members and 1 Guest are viewing this topic.

Offline erazedfxTopic starter

  • Newbie
  • Posts: 2
  • Country: jp
DAC noise problem with SPI
« on: August 20, 2019, 03:14:24 pm »
Hi every one, it’s my first time posting here.

Recently I’ve been learning about DAC and ran into some noise problems. I’m using a STM32F303K8 board to drive a LTC1660CN DAC via SPI. The DAC is outputting a ramping waveform.

The problem is, every time SPI_CS pin is pulled down by the controller,  it creates a voltage spike on the DAC output as well. (As you can see in the picture below)

What i’ve tried :
1 Configuring the SPI_CS pin on the controller to Pulled Up/Pulled Down/No PUPD
2 Add capacitors between ground and VCC/Data In/SPI_CLK near the DAC chip

So far I discovered that putting a 10uF capacitor between the DAC output and ground does help to reduce the noise, but I doubt that this is the correct method. Other than that nothing seems to help.

My question is, is this a problem can be solved?

Thank you for your time and help.

 (In this picture, yellow = SPI_CS Pin, blue = DAC out A)

815514-0
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 4041
  • Country: ua
Re: DAC noise problem with SPI
« Reply #1 on: August 20, 2019, 03:32:05 pm »
it looks like power line filtering or power supply issue. Try to use separate power line and separate ground for analog circuits. Add ferrite bead and low pass filter with uF capacitors on analog power line. Also add nF caps as close as possible to the chip for analog power/ground lines. Place analog wires as far as possible from digital wires.
« Last Edit: August 20, 2019, 03:36:53 pm by radiolistener »
 

Offline ggchab

  • Frequent Contributor
  • **
  • Posts: 281
  • Country: be
Re: DAC noise problem with SPI
« Reply #2 on: August 20, 2019, 04:19:18 pm »
You can try to slow down the rise and fall times of the signals on the bus by adding resistors between the processor and the bus lines. The processor may have an option that has the same effect.
 

Offline erazedfxTopic starter

  • Newbie
  • Posts: 2
  • Country: jp
Re: DAC noise problem with SPI
« Reply #3 on: August 20, 2019, 07:06:04 pm »
Thank you guys, I found the cause (and the solution) of the problem.

I tried to replace the mcu with arduino and suddenly everything works fine. After some checking it turned out that it's the SPI settings on stm32 that I messed up. After I set 'Clock Polarity' to 'Low' then everything works great!

Hope this can help someone on the Internet who runs into the same problem. :-+
 
The following users thanked this post: radiolistener


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf