Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC-Based Signal Generator --- help! ^__^

Status
Not open for further replies.

naj.cuizon

Junior Member level 2
Joined
Jul 4, 2005
Messages
23
Helped
9
Reputation
18
Reaction score
2
Trophy points
1,283
Activity points
1,585
pic signal generator

we are a group trying to create a PIC-Based Signal Generator ranging from 1Hz-1MHz that outputs both sine wave and square wave.

we need help in producing a clean sine wave output.

how can we produce a clean sine wave from a PIC?

need your help...

thanks.
 

pic frequency generator

Generating sine wave in this range is not easy task ..
However, you can employ MAX038 function generator (see picture/file below), set S2 to SIN output, replace S1 switch with CD4066 CMOS switches controlled by a PIC (range selection), and, for fine tunning (you can use buttons for frequency increase/decrease), replace VR1 and VR3 by digitally controlled potentiometers controlled by the same PIC ..
For more details on the MAX038 IC goto:
**broken link removed**
(try to ask MAXIM for free samples)

Regards,
IanP
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
frequency generator pic

How clean is "clean"?

I would consider an inexpensive DDS chip such as AD9834, or one of these:
**broken link removed**

You will also need a clock oscillator, a low-pass filter (for the sinewave output), and a comparator (to convert the sinewave to square wave). The AD9834 includes a comparator.
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
signal generator pic

by using the MAX038 function generator, how can we configure it to achieve a frequency resolution of 1Hz?

what circuit will be used in varying the frequency?

thanks! ^__^
 

ad9834 pic

The MAX038 is an analog oscillator with continuously variable frequency (by adjusting a capacitor or resistor), so its frequency resolution is infinite, but that also means it will be awkward to control from a microprocessor. Also, the frequency accuracy depends on component tolerances, and it will drift.

You requested "clean". I would never use the words "clean" and "MAX038" in the same sentence.

I like the DDS.
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
signal generator with pic

what is DDS?
 
  • Like
Reactions: sehole

    sehole

    Points: 2
    Helpful Answer Positive Rating
pic based function generator

Click the link I gave above, download a datasheet such as the AD9834, and read the Circuit Description. You will see!
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
ad9834 pic

IanP,

I had looked at the example you've given. However, I am confused with the Frequency Range of the example which is written as 0.1-40MHz. Does it mean that the Frequency Range is 0.1MHz-40MHz(meaning 100kHz-40Mhz) or 0.1Hz-40Mhz?
 

генератор сигналов на pic

The AD9850 DDS has a 32-bit control word, and the example project has a 100 MHz clock, so the DDS frequency is settable from 0 Hz to 50 MHz (see note below) in steps of about 0.023283 Hz. That's 100 MHz / 2^32.

Note: You don't want to run a DDS at its maximum frequency because you can't build an infinitely sharp low-pass filter.

You can use a clock slower than 100 MHz. It would reduce your max frequency, and give you smaller frequency steps.
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
pic rf signal generator

How can we configure the AD9850 if we use parallel loading using the PIC16F877A?
 

frequency generator with pic

Refer to "Programming the AD9850" on page 9 of the AD9850 data sheet:
**broken link removed**

Is that the answer you need, or do you need help writing a PIC program?
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
pic16f84 function generator

can u help us in biasing the AD9850?

we are having trouble biasing it since in the replies link given it is loaded in a serial form.

we are also having problems in writing the program especially in parallel loading.

Added after 3 minutes:

Also we are having problem looking for a 100MHz reference clock since we have limited available components.

Any suggestion on how to generate the oscillator?
 

pic based signal generator

What do you mean by "biasing"? The AD9850 data sheet talks about biasing the clock voltage, but that doesn't sound like your question.

What problems are you having writing the program? (I don't know PIC programming, but other folks who can help you will need to know more details of your problem.)

You can use any frequency clock from 1 MHz to 125 MHz (110 MHz if running at 3.3 volts). Remember that decreasing the clock frequency will decrease the sinewave output frequency.
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
ad9850 dds

howw DDS chip registers can be controlled by microcontroller..........
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
pic tv signal generator

Does the project have to use a micro?

Why not use the Exar XR2206.
 

ad9834 c code

Micro controller is needed since it is the Heart of our project.

Anyone willing to help us writting the Program?
 

dds frequency generator

Is this a school project?
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
dds frequency generator projet

Yes, a project design in our school.
 

    naj.cuizon

    Points: 2
    Helpful Answer Positive Rating
frequency generator on pic

which would be more advisable, to use a higher or a lower frequency for our reference clock in AD9850??? I am aware that lower frequencies would give me a tighter frequency resolution, but, do the reference frequency affect the DAC? i have this weird feeling that using higher ref freq would give me a finer DAC output. i stand to be corrected.. heheh..

we only have this frequencies to choose from: 80MHz, 64MHz, 50MHz or 24MHz. we are only interested in having a maximum output frequency of 1MHz.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top