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
 
LinkBack Thread Tools Display Modes
Old 6th February 2007, 07:36 PM   (permalink)
Default PICs and PWM

Any chance of some advice?
I need to design an LED dimming circuit to be used as a speedo backlight. I will need to have two inputs corresponding to "Dimmer" and "Brighter" and use a PWM output to the LEDs.
At university, I did a similar project using a 16F84 and the output derived from a simple count up or down. I am considering using the same for this project, but I am sure that there will be a more suitable PIC for this application. I've checked the Microchip website but the sheer number of types available is a bit daunting!
philo is offline  
Old 6th February 2007, 07:48 PM   (permalink)
Default

PIC16F877A. >>> PWM max. resolution is 10 bit
with 8 KB flash memory 40 pins
Ayne is offline  
Old 6th February 2007, 07:48 PM   (permalink)
Default

Pick one with internal PWM - the 16F628 (the 'modern' replacement for the antique 16F84) has a single PWM channel, and also an internal 4MHz oscillator. There are many others which would do the job, but that one should be familiar to you.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 6th February 2007, 07:49 PM   (permalink)
Default

Quote:
Originally Posted by Ayne
PIC16F877A. >>> PWM max. resolution is 10 bit
with 8 KBflsh memory 40 pins
Perhaps 40 pins is a bit of overkill for dimming an LED?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Old 6th February 2007, 07:52 PM   (permalink)
Default

Thanks for your help, I'll give it a try
philo is offline  
Old 6th February 2007, 08:37 PM   (permalink)
Default

12F683 with one pwm channel, internall 8mhz osc and only 8 pins.
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline  
Old 7th February 2007, 01:47 PM   (permalink)
Default

Quote:
Originally Posted by justDIY
12F683 with one pwm channel, internall 8mhz osc and only 8 pins.
The 12F683 is a great little chip. I use it in a number of compact designs. Not only does it have PWM, it also has 3 timers including a 16-bit one and one with a period register, interrupts, a comparator, A/D converter, and interrupt on change pins.

You can get them for about $1 in quantities of 25 from Mouser.
phalanx is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 07:57 PM.


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

eXTReMe Tracker