Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 9th May 2008, 06:53 PM   (permalink)
Experienced Member
 
johankj is on a distinguished road
Default Multiple PWMs, how?

I've seen various projects that have programmed a PIC to have multiple independent(maybe?) PWM outputs, even thought the chips only have one in hardware (did I see one with none?).

Does anyone know how this is done?
johankj is offline   Reply With Quote
Old 9th May 2008, 06:55 PM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

How many do you need?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 9th May 2008, 06:59 PM   (permalink)
Experienced Member
 
johankj is on a distinguished road
Default

Erch... I dunno... At least 3 for an RGB idea I have (moodlight-thing), but the more the merrier.

BTW, that was hella-fast!
johankj is offline   Reply With Quote
Old 9th May 2008, 07:02 PM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

For LEDs a simple software PWM is plenty.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 9th May 2008, 07:04 PM   (permalink)
Experienced Member
 
johankj is on a distinguished road
Default

Yarh, but how? Does it have nothing to do with the hardware PWM then? And doesn't it tie up all the processing time?
johankj is offline   Reply With Quote
Old 9th May 2008, 07:06 PM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

It can be all interrupt driven. Lots of code samples on the net I'm sure.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 9th May 2008, 07:09 PM   (permalink)
Experienced Member
 
johankj is on a distinguished road
Default

AAAHH!! I find it, I find it! No worry.

There is a technical document from Microchip themselves. AN1074 - Software PWM Generation for LED Dimming and RGB Color Applications.
johankj is offline   Reply With Quote
Old 9th May 2008, 07:09 PM   (permalink)
Experienced Member
 
johankj is on a distinguished road
Default

Looks like I answered my own question...
johankj is offline   Reply With Quote
Old 9th May 2008, 07:32 PM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

The App notes are really handy.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 9th May 2008, 08:14 PM   (permalink)
3v0
Moderator
 
Blog Entries: 3
3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold
Default

If you want several hardware PWM's look at one of my favorites the 18F1330. It also has a PLL that works with the internal 8MHz clock that bumps it up to 32MHz.
3v0 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Multiple Transmitters To One Reciever cyprio7 General Electronics Chat 12 17th May 2008 03:53 AM
Run multiple motors off a single power source? & Slow them down? Skara General Electronics Chat 16 22nd April 2008 09:49 PM
single voltage source equivalent of multiple voltage sources sstimuluss General Electronics Chat 29 31st January 2007 09:33 PM
Microcontroller interfacing multiple Relays prevravanth Micro Controllers 6 14th December 2006 04:07 PM
PIC and multiple serial devices Oznog Micro Controllers 14 26th May 2005 08:18 AM



All times are GMT. The time now is 06:05 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.