Why not to prefer avr over pic

Thread Starter

aamirali

Joined Feb 2, 2012
412
I have seen pic architecture. It says 8 level stack deep & that it. Some lower end MCU have 2 level stack deep.

Only one interrupt vector table for all inerrupts in pic16F/12F or other series.


Then why should someone prefer pic over pic.
 

shteii01

Joined Feb 19, 2010
4,644
Features, price, support.

Usually any two out of three is good enough. Most people in hobby community find all three because of their smaller and/or more limited needs.
 

takao21203

Joined Apr 28, 2012
3,702
I have seen pic architecture. It says 8 level stack deep & that it. Some lower end MCU have 2 level stack deep.

Only one interrupt vector table for all inerrupts in pic16F/12F or other series.


Then why should someone prefer pic over pic.
The lower end MCUs are only interesting for some mass produced circuits. When you do electronics decently you'll spend 100s to 1000s, so if you buy some $2 or $3 controllers, you'll be doing well with them.

I have changed to PIC32 recently, only use some advanced 8bit PICs, and baseline PICs too- the number of stacks is often unimportant as well you often dont really need interrupts.
 

Markd77

Joined Sep 7, 2009
2,806
I'm not sure why you would need a stack more than 8 levels deep, the program is getting pretty convoluted if you get that far. From what I've seen there isn't much difference in the range of chips produced by major manufacturers.
 

takao21203

Joined Apr 28, 2012
3,702
I'm not sure why you would need a stack more than 8 levels deep, the program is getting pretty convoluted if you get that far. From what I've seen there isn't much difference in the range of chips produced by major manufacturers.
Maybe you never wrote more complex programs? Some PICs have a memory stack, so you can also pass parameters on the stack.

8 stacks is not that much actually. and then there's software stack too.
 

NorthGuy

Joined Jun 28, 2014
611
I don't believe in "unjust profit".
Why not? Their prices are fixed by insurance companies, which provide 90% of the clients. They cannot neither decrease them to attract more customers, nor increase them if the quality of service they provide is better than for the others. Insurance companies fix their prices through re-insurers. Thr re-insurers, in turn, are regulated by the government, which is influenced by the lobbyists hired by dentists, which promote unreasonably high prices. How's that just?
 

takao21203

Joined Apr 28, 2012
3,702
You can get away with small stacks quite easily.
Instead of :
CALL A
CALL B
RETURN
You can use:
CALL A
GOTO B
On a baseline PIC this will take about 62 extra cycles each time since reloading the paging bits and the PC is quite complicated.

Indeed you dont need any real hardware stack it is just much faster if you have it.
 

THE_RB

Joined Feb 11, 2008
5,438
People who run out of stack on little 8-bit microcontrollers should learn more about little 8-bit microcontrollers.

Reminds me of the way bad drivers "run out of road". ;)
 
Top