Re: PIC + DDS = Frequency Synthesizer?

From: Ville Voipio (vvoipio_at_kosh.hut.fi)
Date: 01/03/04


Date: 03 Jan 2004 12:11:55 +0200

russ@sotainstruments.com (RussT) writes:

> ***Yes, I did come across this! OK, can one program a PIC in a similar
> fasion? Even though the PIC is slower, could it yield acceptable
> results...perhaps 1Hz-20kHz in 1Hz steps? If not then I will bite the
> bullet and use a DDS.

A few points:

- with the variable rate interrupt system, you can make a low-jitter
  square wave without loading the processor very much (see the
  previous thread)

- for the 20 kHz repetition rate, you'll have 200 clock cycles at
  4 MHz clock. With a PIC this means 50 instructions, which should
  be just possible. With an AVR at the same clock, you'd have 200
  cycles which would be certainly enough. Using a higher frequency
  or another processor would help (I know, studying a new processor
  takes some time and effort. It is usually worth it, though.)

- for your application: please note that LEDs are not strictly
  monochromatic. They have a wide bandwidth, and their wavelength
  varies on unit-to-unit basis and also as a function of temperature.
  If you need a narrower bandwidth, see laser diodes or RCLEDs
  might fit the bill

Good luck!

- Ville

-- 
Ville Voipio, Dr.Tech., M.Sc. (EE)


Relevant Pages

  • Re: AMD to integrate PCIe into CPU
    ... >>>overhead in encoding parallel data into serial data, embedding clock ... You have to define better - add serialized and lose on latency. ... >>>bits is pretty darn negligible for double the bandwidth. ... >abstract, theoretical serial vs. parallel communications, not PCIe vs. ...
    (comp.sys.ibm.pc.hardware.chips)
  • Re: Stupid Newby Question: VHDL/CPLD Shift Register Reset Problem
    ... I submitted a WebCase to Xilinx describing my problem and worked with ... clock and data lines looked clean on the scope. ... You really need to be looking with a bandwidth of at ... sorts of overshoots, undershoots and multiple transitions. ...
    (comp.lang.vhdl)
  • Re: 8051 architecture
    ... own language and there is always much more English information available ... The question was why 2 clock cycles per machine cycle on an 8051. ...
    (comp.arch.embedded)
  • Re: RDTSC instruction question on core 2 duo CPU
    ... Some addition information about my environment. ... disk may take the same time on both machines but more clock cycles ... How come my clock cycle measurement, the cycle that get by the RDTSC ... then am I measuring the wrong thing? ...
    (alt.lang.asm)
  • Re: RDTSC instruction question on core 2 duo CPU
    ... Some addition information about my environment. ... disk may take the same time on both machines but more clock cycles ... How come my clock cycle measurement, the cycle that get by the RDTSC ... then am I measuring the wrong thing? ...
    (alt.lang.asm)