Signal generation with FG085

Ok, so now that I have assembled the FG085 board let’s see how the signals look like. Actually I could analyze the generated signal with my Red Pitaya. So let’s hook up the FG085 to Red Pitaya and power up both devices.

FG-RP-01

As the Red Pitaya also has a signal generator why not compare the two? Let’s start with the standard 1 kHz sine wave.

FG-RP-02
Hmm, the FG085 output looks a bit noisy. And there is some DC offset, too.

Then let’s try a triangle wave and let’s set the frequency to 100 kHz.

FG-RP-03

Not very clean either compared to Red Pitaya.

Looking at the FG085 schematics it looks like the signal is generated by an ATMega48 (running at 20 MHz). Eight digital output pins (DA0-DA7) are connected to an R-2R ladder D/A converter.

FG-RP-04

The output from the resistor network is connected to an opamp and there seems to be a test point at the opamp output (TP21). The test point can be located from the board assembly figure.

FG-RP-05

Let’s probe the test point.

FG-RP-06

The J8 header has two adjacent ground pins so that’s an easy place to hook up the negative probe cord. The output voltage seems to exceed Red Pitaya 5V range so let’s switch the probe to 10x.

FG-RP-07

Not so bad taking into account the 8-bit resolution. The frequency is still 100 kHz (T=10μs). The amplitude is 10 Vp-p which may make it harder to see the noise, though. Next in the signal path there is a digitally controlled potentiometer X9C102. Let’s probe the output pin RW (U4 pin #5 i.e the bottom pin on the right hand side).

FG-RP-08

Ok, so the noise becomes visible here. Where does it come from? Maybe we have some kind of a ground noise problem here. It could be that the analog and digital grounds are not properly isolated. The digital logic may draw quite big currents from the power supply when the logic switches state at every clock cycle (20 MHz in this case). If the large current spikes are allowed to travel through the analog ground wires we will have fluctuations (=noise) in the analog signals. The noise amplitude would vary depending on the number of logic elements switching at the same time.

Let’s capture the 1 kHz sine wave again and let’s connect another probe to the FG085 oscillator test point TP22.

FG-RP-10

I would say the noise spikes match quite well with the clock transitions.

We can also get some quantitative figures by acquiring the samples from Red Pitaya and analyzing them in Octave. E.g. we could calculate the signal-to-noise ratio and compare the two generators.

snr

Below is the captured signal from FG085. SNR is 30.43 dB.

FG-RP-11

We can compare this to signal generated by Red Pitaya. The SNR is 52 dB so there is about 20 dB improvement.

FG-RP-12

What if one of the bigger capacitors was badly soldered?  These bypass capacitors are there to reduce the voltage fluctuations in the power supply lines. Unfortunately the LCD display now blocks access to those capacitors and I think it is impossible to remove the display anymore (too many pins soldered). So it looks like there is very little I can do the improve that situation.

Oh well, maybe I’ll stick to my Red Pitaya. 🙂

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *