There's an IC for this purpose that just needs the bargraph LEDs. It has 10 levels and comes in a linear version and a log version (for VU meters). It essentially has 10 integrated comparators fed off a multi-tap voltage divider.· Here's a link:·http://www.national.com/mpf/LM/LM3916.html
Post Edited (Mike Green) : 3/21/2009 1:25:28 AM GMT
I love the Propeller but especially in the low end I will use whichever one has the right mix of peripherals and price. It just so happens that I have used the PIC12F675 in industrial bargraphs a while back so I know (although I do loath the PIC itself). In the last week I have been doing Propeller, PIC, HCS08, 8051 assembler and the PIC was most cruel, have pity for PIC assembly coders. Mostly though it's getting to know the peripherals and how to configure them that's the trick. In my industrial bargraph I needed two isolated 4-20ma inputs channels which I implemented with a PIC12F675 on each as an A/D to asynch serial through an optoisolator into another common PIC12F675 which read each serial stream alternatively and clock out the processed data to a dual 32-segment LED array using el cheapo 74HC164s. Simplicity in itself though if I were to redesign it I would probably choose some other chip these days.
I'm sure Peter knows this, but for others who may not, what makes the PIC particularly loathsome is Microchip's dreadful assembler mnemonics. Nobody in their right mind would use them. That's why Parallax devised their own way back when and wrote their own assembler for it. (They're the same mnemonics, BTW, that are used with the SX.) You can still download the latest version of the Parallax-originated assembler (although it's not Parallax's anymore) here.
Microsoft has sold billions of copies of Windows, McDonalds has sold billions of Big Macs, and Bernie Madoff sold billions in securities. Need I go on?
I have nothing against Microchip products, BTW. (In fact, the health of my retirement portfolio depends on their success. Go Microchip!) They're not even responsible for those mnemonics, which were General Instruments' fault. But I find PIC programs written in Parallax mnemonics much easier to read, as do a healthy fraction of those 6-billion-chip developers.
Comments
Post Edited (Mike Green) : 3/21/2009 1:25:28 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.
*Peter*
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.
(I can't imagine what reaction any mention of an AVR might produce.
-Phil
Basic Stamp2 uses the PIC 16C57
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mike2545
This message sent to you on 100% recycled electrons.
Post Edited (Mike2545) : 3/21/2009 2:48:24 AM GMT
*Peter*
-Phil
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
I have nothing against Microchip products, BTW. (In fact, the health of my retirement portfolio depends on their success. Go Microchip!) They're not even responsible for those mnemonics, which were General Instruments' fault. But I find PIC programs written in Parallax mnemonics much easier to read, as do a healthy fraction of those 6-billion-chip developers.
-Phil
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 3/21/2009 7:36:17 PM GMT