Author Topic: White Noise Generator - Is there a chip combining LFSRs and analog output?  (Read 4286 times)

0 Members and 3 Guests are viewing this topic.

Offline abitofhelpTopic starter

  • Newbie
  • Posts: 7
  • Country: us
    • A Bit of Help, Inc.
Hello,

I would like to build a white noise generator using pseudo-random digital components.  I understand how to combine LFSRs with a low-pass filter to generate white noise.  However, I would like to know whether silicon chips exist that provide both LFSR binary generation and DAC analog output.  I've spent a few hours hunting online and have yet to find anything (i.e. Texas Instruments).  I am not an electrical engineer, so I may not be scanning the correct categories.  Could someone please tell me whether a chip exists with these features?  I know I could use a programmable chip, but I want to keep things simple.  This noise generator will be added to a noise-bridge in my manual antenna tuner.

[edit] After posting, I found that the DAC in STM32 products contains a white noise generator.  I am going to search online to determine if this is a common feature for DACs.

Thank you for your time and interest,

Mike
« Last Edit: November 14, 2024, 12:49:55 am by abitofhelp »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11875
  • Country: us
    • Personal site
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #1 on: November 14, 2024, 01:41:55 am »
Use any MCU with a DAC and a software noise generator. What is the actual problem here? Why do you need it to happen in the hardware?
Alex
 
The following users thanked this post: shabaz

Offline shabaz

  • Frequent Contributor
  • **
  • Posts: 566
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #2 on: November 14, 2024, 03:31:55 am »

I don't entirely understand the problem being solved, either. I've never used a noise bridge and had to google it, and I may have gotten it wrong: Is it the case that you're trying to generate noise with a spectrum extending to, say, HF or VHF in an attempt to tune an antenna?

Ordinarily, a semiconductor junction can be used as a wideband noise source. It would be very unusual to do it with a LFSR for RF use.

Incidentally, the more usual 'offline' approach to measure impedance is to use a vector network analyzer VNA); it doesn't rely on any noise source. Nowadays, they can be quite low-cost (sub-$100), e.g. see 'NanoVNA'.

If your aim is to adjust your antenna tuner all connected up, then slightly cruder non-vector methods can be used; simply, measure the reflected signal during a very short burst of transmission (done with a bridge or directional coupler type of device). Ordinarily, this would all be automated (i.e., the antenna tuner components would either be electrically adjustable or switched in rapidly using relays under microcontroller control). This is a very effective and tried-and-tested method.

 

Offline ftg

  • Regular Contributor
  • *
  • Posts: 186
  • Country: fi
    • ftg's RF hax paeg
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #3 on: November 14, 2024, 08:21:34 am »
Why does the noise generator have to be digital, outside of it being a nifty project?

Manual antenna tuner seems to imply frequencies below 50MHz and around those parts one will get plenty of noise from a >16V Zener diode followed by suitable amounts of amplification.
The amplifying stages can be a handful of BJT's or something like 3x modern MMIC's in series.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17411
  • Country: us
  • DavidH
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #4 on: November 14, 2024, 02:10:14 pm »
However, I would like to know whether silicon chips exist that provide both LFSR binary generation and DAC analog output.  I've spent a few hours hunting online and have yet to find anything (i.e. Texas Instruments).  I am not an electrical engineer, so I may not be scanning the correct categories.  Could someone please tell me whether a chip exists with these features?

Various sound chips for old personal computers and game consoles do that, however they have all been out of production for a long time.  These are intended for the audio frequency range so not suitable for RF applications.

Quote
I know I could use a programmable chip, but I want to keep things simple.  This noise generator will be added to a noise-bridge in my manual antenna tuner.

I suspect a zener or avalanche breakdown white noise source and amplifier like ftg suggests would be simpler, and I see many example schematics online.
 

Offline shabaz

  • Frequent Contributor
  • **
  • Posts: 566
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #5 on: November 14, 2024, 09:45:22 pm »
If you're curious about experimenting with LFSR, There's an ancient HP noise generator (might be HP 3722A, but I'm not sure; I've never seen it) that was described in a HP Journal article; it was based on a LFSR. In Art of Electronics (in the 2nd edition; maybe also 3rd) there's a design that looks very close to the HP one, and it's based on CMOS logic ICs from memory.

I decided to build, it, but kind-of made it on a single chip by simply using programmable logic (CPLD) instead of the individual logic ICs. The analog output relies on banks of resistors. Some op-amps are needed too admittedly, so it's not entirely single-chip.

Attached screenshot shows the type of output that is possible with it, I have no other measurements. And I was only shooting for 1 MHz, although really I had no purpose for any of it, it was more just to learn a little about programmable logic at the time.

It was a fun rainy-day project, but relies on lots of precise resistor values. If had to do it again I'd use a microcontroller or a DSP, and a DAC. For RF purposes all of this is most likely not of much use.
 

Offline dazz1

  • Frequent Contributor
  • **
  • Posts: 847
  • Country: nz
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #6 on: November 19, 2024, 09:30:07 pm »
Hi
I am looking at converting a pseudo random number generator bit stream to analog.  The HP 3722A used resistors to weight the bit outputs along the bit stream. The value of each resistor set the gain of each bit.   The weighted outputs were summed at a op-amp to produce an analog signal.  No DAC required.

The weighting could be applied in digital by ANDing each bit and a number representing the gain.  All the gains get summed, then averaged.  If the length of the bit stream is a multiple of 2, then the summed value can be divided with a register shift.    A bit stream 64 bits long would need to be shifted 8 bits to divide by 64 to get the average output (there is no requirement to divide by 64 because dividing random noise by a constant still equals random noise). 

The process of converting a bit stream into an analog noise signal could be done very efficiently in the digital realm.  All adds, shifts and, no multiplications.   This would be a good project for a FPGA.
Dazz

Over Engineering: Why make something simple when you can make it really complicated AND get it to work?
 

Offline shabaz

  • Frequent Contributor
  • **
  • Posts: 566
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #7 on: November 19, 2024, 09:59:44 pm »
I think it's likely that the AoE 2nd Ed design is very closely based on the HP design. Looking at the HP Journal article briefly, it too uses digital filtering, just like the AoE design, using a sinc-shaped function, implemented with delay through the shift register, and resistors sized for the shape.

Anyway, I can confirm the AoE circuit does function. The 'scope screenshot in the earlier comment shows the AoE design, slightly modified (using a CPLD, and uprating the op-amps for better performance, since the AoE design only went up to 100 kHz from memory (I have given away my 2nd Ed copy, and can't find that design in the 3rd Ed, but may have missed it).
 

Offline dazz1

  • Frequent Contributor
  • **
  • Posts: 847
  • Country: nz
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #8 on: November 20, 2024, 02:38:14 am »
Hi
I think after 60 years the HP algorithm is still fundamentally sound.  Advances in technology make it practical to put the signal path inside a device in the digital realm until a DAC converts to analog.  There have been some refinements that make the pseudo random number generator a bit more random, but really just polishing the boundary conditions. 

I think this would be an ideal application for a low end FPGA.  The problems are I already have too many projects in-flight and I don't have any experience with FPGAs.
Dazz

Over Engineering: Why make something simple when you can make it really complicated AND get it to work?
 

Offline dazz1

  • Frequent Contributor
  • **
  • Posts: 847
  • Country: nz
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #9 on: December 12, 2024, 06:37:27 am »
Hi
Looking a bit more closely at the problem, a DSP may be a better choice than a FPGA for something approaching a single chip solution, with supporting devices.  For a one-off project, using a dsp evaluation board may be a better solution than a design and build.
Dazz

Over Engineering: Why make something simple when you can make it really complicated AND get it to work?
 

Offline shabaz

  • Frequent Contributor
  • **
  • Posts: 566
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #10 on: December 12, 2024, 07:40:38 am »
I believe the problem is a noise bridge, so there's a possibility the noise is required for at least HF if not beyond. I don't know of a DSP Eval board for that. But I could be wrong. I had never heard of a noise bridge before. A semiconductor junction would be used for high frequency noise. Ordinarily these days other methods are used to tune antennas too. For instance, in a kind of "online" manner by measuring return loss and adjusting an L an/or C (often done automatically by a microcontroller). Or, offline, using a low-cost VNA would be another option. Both of these options require no noise source.
 

Online Tation

  • Regular Contributor
  • *
  • Posts: 106
  • Country: pt
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #11 on: December 12, 2024, 07:50:11 am »
Hi
Looking a bit more closely at the problem, a DSP may be a better choice than a FPGA for something approaching a single chip solution, with supporting devices.  For a one-off project, using a dsp evaluation board may be a better solution than a design and build.

But there are mechanisms based on FPGA that produce true (not pseudo) random bit streams, in case you are interested on that. Simply search for FPGA based TRNG.
 

Offline dazz1

  • Frequent Contributor
  • **
  • Posts: 847
  • Country: nz
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #12 on: December 12, 2024, 08:17:46 am »
Hi
Looking a bit more closely at the problem, a DSP may be a better choice than a FPGA for something approaching a single chip solution, with supporting devices.  For a one-off project, using a dsp evaluation board may be a better solution than a design and build.

But there are mechanisms based on FPGA that produce true (not pseudo) random bit streams, in case you are interested on that. Simply search for FPGA based TRNG.

Yes agreed, but the OP was pointing towards a minimum chip design.   For my application I don't want a TRNG.  For my applicatioin I need a HP3722A PRNG emulator to connect to my HP3721A Correlator.  I could use a FPGA for that but I think a DSP will probably do the job with fewer chips, and less cost.   If my application was more demanding, FPGA might be a better choice.  There is no single "right" answer here.  It is application specific.
Dazz

Over Engineering: Why make something simple when you can make it really complicated AND get it to work?
 

Offline shabaz

  • Frequent Contributor
  • **
  • Posts: 566
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #13 on: December 12, 2024, 08:32:29 am »
The AoE design is based on the HP design I believe, or it's very close. It uses logic ICs so it's very low cost. But all that is collapsible into a single CPLD. I know you mention you have no experience with FPGA, but actually zero experience is required; you can literally take the logic IC design and draw it out rather than use a HDL, because the design is so small for any typical CPLD. I believe it should be lower cost than a DSP board, plus would allow higher bandwidth most likely (I achieved > 1 MHz BW, without trying too hard, so say 10 MHz may be feasible, just speculating).
 

Offline dazz1

  • Frequent Contributor
  • **
  • Posts: 847
  • Country: nz
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #14 on: December 12, 2024, 08:42:27 am »
I am only window shopping for design options at present.  I need to write down the specs and functional requirements before I start looking for a design solution.  CPLD and FPGA might be good for a pure noise generator, but I already know I will need data in/out interfaces, DAC, and controls.  Those are likely to require more code and design effort that the noise part.  Looking at the whole design problem, a DSP may be a better option for my application.
Dazz

Over Engineering: Why make something simple when you can make it really complicated AND get it to work?
 

Offline radiolistener

  • Super Contributor
  • ***
  • Posts: 4123
  • Country: 00
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #15 on: December 12, 2024, 10:10:05 am »
I would like to know whether silicon chips exist that provide both LFSR binary generation and DAC analog output.

I am looking at converting a pseudo random number generator bit stream to analog.

I just wonder - what is the reason to use DAC for noise generator?

From my point of view, using digital output of LFSR directly is better, than adding DAC in the chain. This approach not only maintains the properties of the noise but also offers slightly higher noise power and more wide bandwidth. In contrast, introducing a DAC in the chain seems to impact the noise flatness with much worse frequency bandwidth without providing any significant advantages. Isn't it?
« Last Edit: December 12, 2024, 10:17:46 am by radiolistener »
 

Offline dazz1

  • Frequent Contributor
  • **
  • Posts: 847
  • Country: nz
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #16 on: December 12, 2024, 10:23:49 am »

I just wonder - what is the reason to use DAC for noise generator?

From my point of view, using digital output of LFSR directly is better, than adding DAC in the chain. This approach not only maintains the properties of the noise but also offers slightly higher noise power. In contrast, introducing a DAC seems to impact the noise flatness without providing any significant advantages. Isn't it?

Read the HP Journal April 1971.
The analog output is generated by summing binary digital outputs.  Each binary is weighted (gain) with a resistor.  It is a non-linear DAC. 
In a DSP you could achieve the same by ANDing the binaries with numbers (gain), then summing to produce a single output value.  Apply this to the DAC.
This approach gives the option of staying digital, or going analogue. 
Dazz

Over Engineering: Why make something simple when you can make it really complicated AND get it to work?
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 15117
  • Country: de
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #17 on: December 12, 2024, 07:17:36 pm »
For some application a pseudo random noise can be better than true noise, as it is more repeatable and predictable.

A white noise generator is a relatively low volume application - so well possible that there is no special chip. An FPGA or similar should a suitable solution for the digital part. For combining multiple bits, I see no need for different weights and precision. The sum of many non correlated random values converges to a gausian / normal distribution, even if the weights are off. So the "DAC" could be as little as a non critical resistor for each of the digital signals.
 
The following users thanked this post: shabaz

Offline shabaz

  • Frequent Contributor
  • **
  • Posts: 566
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #18 on: December 12, 2024, 07:18:47 pm »
Read the HP Journal April 1971.
The analog output is generated by summing binary digital outputs.  Each binary is weighted (gain) with a resistor.  It is a non-linear DAC...

Just to be a bit more precise(not that it matters if you're going a different route; this is more for anyone else interested), the HP design is more a kind of digitally generated filter (performing low-pass filtering through convolution rather than conventional RC or other op-amp based filters) attached to a binary pseudo-random stream, it too offers both digital out (i.e., that binary stream) and analog out. The net result is a digital-to-analog conversion; it's just that the way it occurs is slightly more sophisticated than might be expected when reading the comment about summing binary digital outputs.
« Last Edit: December 12, 2024, 07:20:40 pm by shabaz »
 

Offline dazz1

  • Frequent Contributor
  • **
  • Posts: 847
  • Country: nz
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #19 on: December 12, 2024, 07:42:30 pm »
Read the HP Journal April 1971.
The analog output is generated by summing binary digital outputs.  Each binary is weighted (gain) with a resistor.  It is a non-linear DAC...

Just to be a bit more precise(not that it matters if you're going a different route; this is more for anyone else interested), the HP design is more a kind of digitally generated filter (performing low-pass filtering through convolution rather than conventional RC or other op-amp based filters) attached to a binary pseudo-random stream, it too offers both digital out (i.e., that binary stream) and analog out. The net result is a digital-to-analog conversion; it's just that the way it occurs is slightly more sophisticated than might be expected when reading the comment about summing binary digital outputs.

And the benefit of setting the gain of each bit with a stored digital number rather than fixed value resistors is significant.   The resistor solution requires a bag full of weird value precision resistors plus multiple op-amps circuitry.
In contrast doing the same in software eliminates the resistors and opamps.  Calibration and output accuracy would be much improved.  DAC errors would be compensated out in software.
Dazz

Over Engineering: Why make something simple when you can make it really complicated AND get it to work?
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 15117
  • Country: de
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #20 on: December 12, 2024, 07:54:04 pm »
I don't think one would need special resistors. The logic choice for independent digital signals would be roughtly the same value for all, like from a bag of 5% parts.  An FPGA should be good for multiple LFSRs and thus multiple signals to mix. Different resistor values would be a thing when taking bits from just 1 shift register and do the digital filter math with resistors instead of digital.

The digital filtering may still be a bit more effective in filtering out the higher frequencies, where the time quantization would be an issue. So it could simplify the analog filtering part and maybe precompensate for the some of the analog filter roll off.
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 5535
  • Country: va
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #21 on: December 12, 2024, 09:07:49 pm »
FYI - this is the noise generator I was using as the uni student in our lab - digital one but built on transistors.. Great machine, indeed.
Below the link to a 245 pages long manual with interesting insights, principles, math, measurements and schematics :)
https://pearl-hifi.com/06_Lit_Archive/15_Mfrs_Publications/20_HP_Agilent/HP_3722_Noise_Gen.pdf
« Last Edit: December 12, 2024, 09:10:03 pm by iMo »
Readers discretion is advised..
 

Offline dazz1

  • Frequent Contributor
  • **
  • Posts: 847
  • Country: nz
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #22 on: December 12, 2024, 09:41:49 pm »
Hi
The HP 3722A Noise Generator was built to link with the HP 3721A Correlator I have and the HP 3720A Spectrum Display I don't have.  A 3 piece set.
Ideally I'd like to buy a 3722A but unlikely any ever imported to my country.  The cost of importing one, even if I could find a reasonably priced good unit, would be eye watering.
Dazz

Over Engineering: Why make something simple when you can make it really complicated AND get it to work?
 

Online Tation

  • Regular Contributor
  • *
  • Posts: 106
  • Country: pt
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #23 on: December 12, 2024, 11:01:03 pm »
I don't think one would need special resistors. The logic choice for independent digital signals would be roughtly the same value for all, like from a bag of 5% parts.  An FPGA should be good for multiple LFSRs and thus multiple signals to mix. Different resistor values would be a thing when taking bits from just 1 shift register and do the digital filter math with resistors instead of digital.

The digital filtering may still be a bit more effective in filtering out the higher frequencies, where the time quantization would be an issue. So it could simplify the analog filtering part and maybe precompensate for the some of the analog filter roll off.

The signals are not independent, all are the same signal delayed 1,2,3 and so on cycles. There is/are 1 or more LFSR generating a single random bit sequence, followed by a n bit shift register, the outputs of this shift register are analogically weighted and then added. It's a FIR filter applied to the random bit stream. Thus the resistors are proportional to the coefficients of such FIR filter.

Did that many years ago (almost 40!), approximating a raised-cosine filter when there were no fast enough DSP available. Used an array of 64 multiturn potentiometers. Worked, but today I"ll try to use another approach...
« Last Edit: December 12, 2024, 11:05:07 pm by Tation »
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8991
  • Country: us
  • Retired, now restoring antique test equipment
Re: White Noise Generator - Is there a chip combining LFSRs and analog output?
« Reply #24 on: December 12, 2024, 11:26:45 pm »
The National MM5437 noise generator IC is long gone.
Its original use cases included electronic musical instruments and acoustics testing.
I did see one from a surplus vendor advertised for $35, but it is now out of stock.
https://w140.com/tekwiki/images/2/29/MM5437.pdf
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf