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.

digital to PWM converter

Status
Not open for further replies.

bazaria

Newbie level 5
Joined
Aug 29, 2006
Messages
8
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,374
lm13700 equivalent

Hi guys,
How can I convert a digital 8 bit output into a PWM signal?
 

pwm converter

One way is to use a 8 bit counter when the counter starts, a flip-flop must be set to high. The counter start counting. When the counter reach the value of your 8 bit digital then reset the flip-flop. When the counter finish counting, then reset the counter and set the flip flop again.
 

bazaria said:
Hi guys,
How can I convert a digital 8 bit output into a PWM signal?

Well I don't know if there are any integrated cicuits that perform this kind of operation besides a microcontroller like a PIC, in which you can take a digital input through any of it's ports and then use it's internal PWM to generate the signal. Using a microcontroller just to do this would be a waste of hardware (money) but it's the easiest way. If you want to start from scratch you could use a DAC to convert your 8-bits onto a DC voltaje (equivalent to the 8-bit number), then take a sawtooth wave (if you can't find an integrated circuit for this you could use the application notes from the OTA LM13700 and build it yourself), then take that signal and use a comparator to generate a pulse wave (with the pulse with proportional to the 8-bit number you had).

Hope this helps

diemilio
 

    bazaria

    Points: 2
    Helpful Answer Positive Rating
can I convert it using a D/A and a V/F converter?
 

I'm not sure, but I don't think so, cause with the V/F converter you're varing a frequency with an input voltaje but not the pulse with. What you want is constant frequency, diferent duty cycle.

hope this helps,

diemilio
 

    bazaria

    Points: 2
    Helpful Answer Positive Rating
If going completely digital - use parallel loaded digital counters to do the job. Or can use micros such as attiny2313
 

An analog solution:

Use a resistor ladder to convert to analog voltage. Then compare the analog voltage to a triangle or ramp signal from an oscillator circuit. The output of the comparator will be PWM. If you design it right, you will get desired range.
 

    bazaria

    Points: 2
    Helpful Answer Positive Rating
and where can I get a sawtooth wave from, and what shoud be the frequency?
 

bazaria said:
and where can I get a sawtooth wave from, and what shoud be the frequency?

if you can't find an integrated circuit for this you could use the application notes from the OTA LM13700 and build it yourself. There are other several multivibrator configurations in which you can generate that signal.

the frequency of the sawtooth wave should be the same as the one you want on your output signal.
 

Generally, using a microcontroller or DSP
would be faster...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top