Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Cost effective would be AVR rather than PIC...... In INDIA,we would get the basic AVR(40 pin) to about 60Rs while PIC of 40 pin cost 160Rs...... Compared to PIC ,AVR has an additional advantage of lower cost cost & more speed of execution.
Regards,
Jerin. ;-)
Hi 123jack,
It all depends I guess on the usage. Over here the entire market belongs to AVR with very few PIC users, so that's why AVRs are MUCH cheaper than PICs. However that may not be a situation somewhere where PIC is used more.
A comparison:
ATMEGA48 here costs $0.7 whereas the closest PICs are 12F675 $0.75 and 16F676 $1.5 - ATMEGA48 is much much superior
ATMEGA16 costs around $2, ATMEGA32 $3 whereas the equivalent PIC16F877A costs $3 and PIC16F887 costs $5 - ATMEGA16/32 are very good at those prices
Hope this helps.
Tahmid.
and AT90USB8 costs 3.7USD
is more peripheral RICH than AT90USB8.
Could you show a comparison between a similar PIC and AVR and the price you'd pay for each?
As far as I know any normal ATMEGA has a 2-cycle hardware multiplier. There's MUL, MULS, MULSU, FMULS, FMULSU (fraction multiplication as well). Only the ATTiny series doesn't have multiplier, I don't know about the classic AVR, they are very old.you would be surprised to know that normal AVRs do not have Multiplication instruction.
in 8051 Assembly we can simple use the instruction : MUL A,B
Yes there is ADD instruction in AVR.There is no ADD instruction in AVRs, in 8051 we can Compliment a port bit or a bit variable by using CPL instruction but in AVR we don't have this instruction.
Can you elaborate on this, as the AVR has SBI and CBI, IN and OUT, (set bit) and (clear bit) instructions.in 8051 we can easily access the individual port bits but in AVRs we don't have this freedom
Hi,
------
I think that should compare well with the 18F24J50, it has max 16MIPS operation, 16k flash, 1.25k sram, 512bytes eeprom, 5 timers - 2 8-bit, 2 16-bit, 1 10-bit high speed operating upto 96MHz, 14 PWM channels - 4 8-bit and 10 upto 16-bit, 12 channel 10-bit ADC, SPI, USART, TWI(I2C), interrupt and wake up on pin change (every single IO line), pull-ups on every IO line, onchip temperature sensor, full speed USB 2.0 etc -- all that at $3.4 (mouser)
I don't want to get in an argument. I just wanted to say that price varied with usage, that's all.
PIC has nearly 40 instructions which are mostly 4 cycles instructions
for eg: if we use 12 Mhz Xtal in all the 3 micros then the speed of execution will be as follows:
8051 = 12Mhz /12 = 1 Mhz i,e = 1 million instructions per second
PIC = 12Mhz/4 = 3 Mhz i,e = 3 million instructions per second
AVR = 12Mhz/1 = 12 MHz i,e = 12 Million instructions per second
Hi,
What I said was for the ATMEGA16U4, not the 18F. "it has max 16MIPS operation, 16k flash, 1.25k sram, 512bytes eeprom, 5 timers - 2 8-bit, 2 16-bit, 1 10-bit high speed operating upto 96MHz, 14 PWM channels - 4 8-bit and 10 upto 16-bit, 12 channel 10-bit ADC, SPI, USART, TWI(I2C), interrupt and wake up on pin change (every single IO line), pull-ups on every IO line, onchip temperature sensor, full speed USB 2.0 etc -- all that at $3.4 (mouser)" this goes for ATMEGA16U4.
Hi,
I just wanted to say that price varied with usage, that's all.
And there's no point going into which is better, both AVR and PIC are very good and that's why they are in the market. I just brought out a comparison for 123jack. Each has its own advantages and disadvantages. We live with that and choose whichever we feel is best suitable for us in our application.
Hope this helps.
Tahmid.