![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | Thread Tools | Display Modes |
| | (permalink) |
| Experienced Member | 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? |
| | |
| | (permalink) |
| Experienced Member | How many do you need? |
| | |
| | (permalink) |
| Experienced Member | Erch... I dunno... At least 3 for an RGB idea I have (moodlight-thing), but the more the merrier. BTW, that was hella-fast! |
| | |
| | (permalink) |
| Experienced Member | For LEDs a simple software PWM is plenty. |
| | |
| | (permalink) |
| Experienced Member | Yarh, but how? Does it have nothing to do with the hardware PWM then? And doesn't it tie up all the processing time? |
| | |
| | (permalink) |
| Experienced Member | It can be all interrupt driven. Lots of code samples on the net I'm sure. |
| | |
| | (permalink) |
| Experienced Member | 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. |
| | |
| | (permalink) |
| Experienced Member | Looks like I answered my own question... |
| | |
| | (permalink) |
| Experienced Member | The App notes are really handy. |
| | |
| | (permalink) |
| Moderator | 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.
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, Homepage The 15 Minute Printed Circuit Board! (+drill time) |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |