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.

How to use PIC to generate PWM ?

Status
Not open for further replies.

arul_81284

Newbie level 5
Joined
Jul 26, 2006
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,331
pwmout speed picaxe 08m

How we can use PIC to generate PWM? what type of PIC and to make it in detail.Please help me.
 

Re: PIC

Well, for PWM you can use an 16F876. But you have to be careful choosing the right speed according to the oscilator conected to the microcontroller. To create a program you can use PIC C ... and to pass the Hex program to the device use a correct programmer, a JDM probably. Detailed instructions can be found into the datasheet available on Microchip site.

Regards.
 

Re: PIC

Try PICAXE (based on PIC microcontrollers):
PWM Output:
The PICAXE-08 and 08M support the PWM command and the PICAXE-08M and the X-range support the PWMOUT command.

The PWM command provides for a burst of a pulse-width modulated signal to be generated which may be used to charge a simple Resitor-Capacitor circuit to generate an analogue voltage output. PWM can be used with any Digital Output pin.

The PWMOUT command allows a pulse-width modulated signal to be continually generated while the PICAXE continues execution, which may be used to generate analogue voltages, as with PWM, but can also be used for speed control of motors and brightness control of visual indicators. PWMOUT can only be used with certain Digital Output pins. The PICAXE-08M and 18X provide only a single PWMOUT output, while the 28X and 40X provide two.

Quoted from:
https://en.wikipedia.org/wiki/PICAXE
Here:

you will find an example on how PWM function is used with PICAXE-18X (PIC16F88) ..

Regards,
IanP
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top