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.

[SOLVED] Which chips have two PWM outputs?

Status
Not open for further replies.

Kaleborg

Member level 4
Joined
Nov 2, 2008
Messages
75
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Activity points
1,776
16f785

Hello,

I have a question regardnig PWM in 16F785. How many PWM outputs does it have??
1 or 2. It says in deescription that it have 10 bit resolution 1 output channel on pin RC5. But later it says about TWO PHASE PWM output on pins RC1 and RC4. What it means TWO PHASE and which is the real PWM output. I'm thinking about using this chip for driving two motors and 10 bit ADC resolution is perfect for my project.

I would appreciate if somebody clear that thing for me.
Thanks in advance.

https://ww1.microchip.com/downloads/en/DeviceDoc/41249E.pdf

Thats the datasheet for 16F785
 

pwm with pic

Hi,

The chip you mention has one standard PWM output, it also has the separate special function of a two phase pwm output, I'm not heavily into motors but that seems a very specialised function and not something for the normal hobby dc motors - sure other can explain that is better detail than I can.

I assume you are looking to control dc brush motors, servos and steppers ?
In which case you might be better looking at more popular chips with good pwm features like the 18F2520 and 4520 or even the 18F1330 as detailed here
**broken link removed**

Also have a look at this board and its users guide for some ideas
**broken link removed**

Microchip also do several good beginners Application Notes on the use of dc motors.
 

    Kaleborg

    Points: 2
    Helpful Answer Positive Rating
pwm pic

Hello,

Thanks for quick reply.

I think that i go after your advice and try that 18F1330 chip.

Regards,
Kaleborg
 

pic with pwm features

The 18F1330 also has only one PWM channel. Most 18pin PICs have just one, if you need two try a 28pin PIC.
 

    Kaleborg

    Points: 2
    Helpful Answer Positive Rating
pwm a pic

Hi blueroomelectronics.

Are you sure?? It seems from the datasheet that it has 6 PWM outputs. Unless i read it wrong.
 

pwm for pic

Check the number of CCPx modules it has. That will tell you the number of PWM channels.
It has bridge FET driver hardware which is handy.
 

    Kaleborg

    Points: 2
    Helpful Answer Positive Rating
pic 4 ch pwm

Hi,

Don't know exactly what you are trying to do, thats why I gave you a wide range to look at with those links - a lot of good info there.

You seem to be into C, so the larger memory 18F chips seem a good choice, there are many good all round chips that have 2 ccp/pwm - the 18F - 2520, 2525,4520, 4620 are readily available and have much more general and motor control program examples around for them.
 

    Kaleborg

    Points: 2
    Helpful Answer Positive Rating
pwm in pic

Thanks wp100 and blueroomelectronics for your replys.

Yes i have some experience with C. I did few simpler projects with microcontrolers, but this is my first thing involving PWM. It'll be a double axis light tracker.


Since the informations in the 18F1330 datasheet are so ambiguous, at least for me, i'm gonna go with the device with clearer datasheet:) I will use the PIC18F2520.

Capture/Compare/PWM Peripherals - 2 CCP

Thanks again for help


Regards,
Kaleborg
 

pwm pic .pdf

it is also quite easy to do software pwm -> that will greatly expand your number of pwm channels.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top