Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

[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.

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

Thats the datasheet for 16F785
 

wp100

Advanced Member level 5
Joined
May 15, 2009
Messages
3,056
Helped
883
Reputation
1,781
Reaction score
736
Trophy points
113
Location
Prime Meridian
Activity points
0
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
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2125&param=en520017

Also have a look at this board and its users guide for some ideas
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023837

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

    Kaleborg

    points: 2
    Helpful Answer Positive Rating

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
pwm pic

Hello,

Thanks for quick reply.

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

Regards,
Kaleborg
 

blueroomelectronics

Advanced Member level 5
Joined
Sep 17, 2006
Messages
1,686
Helped
179
Reputation
356
Reaction score
77
Trophy points
1,328
Location
Toronto, Canada
Activity points
8,700
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

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
pwm a pic

Hi blueroomelectronics.

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

blueroomelectronics

Advanced Member level 5
Joined
Sep 17, 2006
Messages
1,686
Helped
179
Reputation
356
Reaction score
77
Trophy points
1,328
Location
Toronto, Canada
Activity points
8,700
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

wp100

Advanced Member level 5
Joined
May 15, 2009
Messages
3,056
Helped
883
Reputation
1,781
Reaction score
736
Trophy points
113
Location
Prime Meridian
Activity points
0
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

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
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
 

millwood

Advanced Member level 3
Joined
Jul 2, 2009
Messages
734
Helped
80
Reputation
164
Reaction score
35
Trophy points
1,308
Activity points
5,088
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top