1 / 17

A DDS Signal generator

A DDS Signal generator. By Les MW0SEC. Objectives and requirements. A stable/accurate signal generator having a frequency range of: 1 c/s – 40 Mc/s Amplitude modulation Calibrated attenuator giving an output of 100 mV rms max, reducing to -100 dB in 1dB steps.

mgriffith
Download Presentation

A DDS Signal generator

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A DDS Signal generator By Les MW0SEC

  2. Objectives and requirements • A stable/accurate signal generator having a frequency range of: • 1 c/s – 40 Mc/s • Amplitude modulation • Calibrated attenuator giving an output of 100 mV rms max, reducing to -100 dB in 1dB steps. • Easy operation – particularly fine tuning.

  3. Resources • AD9850 DDS module with 125 Mc/s clock • PIC controller 16F628. • 822 Voltage controlled amplifier. • A commercial attenuator covering 0-100 dB in 10 dB steps. • TL071 Op. amp configured as stable oscillator for amplitude modulation.

  4. Block diagram Xtal PSU Display CPU DDS Module Keypad summer Set level VCA Attenuator ∑ Encoder (Tune) (Analogue section) Mod. Gen. Programmer interface Output

  5. The AD9850 DDS • This device produces a particular frequency by synthesising a sinewave from a crystal clock. • The frequency is set by loading a binary word having a value where: • fOUT = (Δ Phase × CLKIN)/2^32 • This means binary word = (2^32 / oscillator frequency in c/s).

  6. How to control things • I used a PIC (16F628). This is a small fast microprocessor with two 8-bit busses which can be configured as input/output. • Due to the limitations of the device, I increased the address range with a TTL address decoder. • I used a diode matrix to scan the keyboard and encoder.

  7. The diode matrix Address Strobe 1 +ve Pull-up resistors D0 Data bus D1 D2 Address Strobe 2 The data lines are held high by the pull-up resistors. When the address strobe goes low, if a switch is pressed, the data representing the switch appears on the data bus. The diodes separate the data paths.

  8. Address decoder S0 74LS138 S1 Address 000 to 111 (0-7) A0 Eight possible Decodes. A1 A2 S7 Expand three pins to eight addresses

  9. Hard sums! • The PIC is a simple device intended to control the likes of washing machines. Making it do multiple precision addition and multiplication involves a bit of thought. • Two number bases are required. Decimal, for the human interface and Binary for the internal operations. In addition, the display requires ASCII characters.

  10. Hard work! • For each click of the encoder, the processor has to add/subtract the tuning increment from the 32 bit frequency word, multiply the result by 34.359738(ish) and load the result to the DDS. It then has to convert the number to decimal, format it and feed it to the display. This requires a lot of code…….

  11. Tuning • Tuning is achieved by a rotary encoder. Data (A) Strobe Data (B) Shaft The data output when the shaft is turned gives a sequence of numbers: 0 – 2 – 3 – 1 for one direction and 0 – 1 – 3 – 2 for the other, so any data change Indicates an increment and by analysing the sequence, we can determine if The increment goes up or down. I used an encoder with detents, which gives an output of zero when at rest.

  12. Controlling amplitude • Now we have accurate frequency, we need accurate amplitude. This is achieved by a voltage-controlled wide band amplifier. A meter indicates carrier level and this can be set by adjusting the VCA control voltage. Modulation is achieved by summing an audio voltage with the control signal.

  13. The attenuator. • So far we have achieved an accurate frequency at a known level. We need to be able to attenuate this down to the micro-volt level in convenient steps. I cheated here and used a commercial device which was in the junk box. This gives a range of 0 to -100 dB in 10 dB steps, The “in-between” dB’s can be set on the carrier level meter.

  14. The attenuator (2) • The design of an accurate attenuator is a question of simple arithmetic – all you need is a network like this: • The problem arises in terms of screening to prevent leakage at VHF. This requires some precision machining for housing. RA RA RB

  15. VCA, Modualtor, PSU.

  16. Credits • Firstly to Stewart (ETF) for inspiring me to do the project and for sending through some examples. • Secondly to Curtis Preuss, (WB2V) from whom I ripped off some code in the multiply routine. • Lastly to AMD for making a really useful device!

More Related