General > General Technical Chat

PIC / AVR showdown: which should I use ?

(1/2) > >>

Simon:
Ok now I'm not after starting a fight, but after daves PIC versus AVR blog I got thinking, I have a power management project for vehicles that requires an ADC and PWM output, as it is for a car which has an ever constant variation in operating conditions it needs to operate quikly to adapt, a 12F615 @ 8 MHz just handled this but I wanted to make it a bit more robust, would an AVR uC be better for this sort of thing ? I remeber Dave saying in his blog that AVR's are more efficient although who cares because of the speed of any uC anyhow, well in my case it is the determining factor.

OK so please a civil discussion about this  ;)

armandas:
I'd like to restate what Dave said: it does not matter. You already got a PIC, and since you run it at only 8 MHz, I'd say get a faster clock.

Get an AVR, when you're ready for something new.

Simon:
the faster the pic runs the higher the minimum PWM frequency is, idealy I need a 125 Hz PWM output but can settle for 250, but that means running the pic at 4 MHz, my thought was if the pic takes 4 cycles / instruction and the AVR takes 1 then in a similar situation with the AVR I would have the same PWM frequency but effectively 4 time the code speed,

after looking into it a bit more I think that I may be able to pull it off with a pic which is the best was as I already have the pic's and the programmer and the knowledge needless to say I have already developed the program.

David:
If you want a quick way to produce a faster clock, use the internal PLL (If its supported).

Dave

Simon:
how do I do that ? are you refering to chips like the 18F1220 that has a X4 PLL, will the PWM run off the crystal clock and the pic core off the PLL simulataneously ?, if I increase the clock in other devices like the 12F615 I now use the PWM minimum frequency also increases.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod