<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PIC stack overflow</title>
	<atom:link href="http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/</link>
	<description>Thoughts on embedded systems by Nigel Jones</description>
	<lastBuildDate>Sun, 06 May 2012 10:34:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Michiel Bruijn</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-14278</link>
		<dc:creator>Michiel Bruijn</dc:creator>
		<pubDate>Fri, 10 Feb 2012 14:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-14278</guid>
		<description>After spending too much time on debugging a stack overflow problem I like to mention an other scenario causing stack overflow , not mentioned yet in the top of this article.
In my case I reserved, as described in several articles, general purpose registers, for saving W, STATUS and PCLATH when entering interrupt subroutines(ISR).  If you don&#039;t reserve registers with the same (short) address in the other banks for this purpose then you can have stack overflow bugs as I&#039;ve learned the hard way.
Hopefully this will help someone else with this sort of bugs.</description>
		<content:encoded><![CDATA[<p>After spending too much time on debugging a stack overflow problem I like to mention an other scenario causing stack overflow , not mentioned yet in the top of this article.<br />
In my case I reserved, as described in several articles, general purpose registers, for saving W, STATUS and PCLATH when entering interrupt subroutines(ISR).  If you don&#8217;t reserve registers with the same (short) address in the other banks for this purpose then you can have stack overflow bugs as I&#8217;ve learned the hard way.<br />
Hopefully this will help someone else with this sort of bugs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Bronke</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-10041</link>
		<dc:creator>David Bronke</dc:creator>
		<pubDate>Fri, 25 Nov 2011 13:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-10041</guid>
		<description>I&#039;m a hobbyist PIC developer who got his start taking a microcontrollers class in college. The class started us out with PICs, and though I&#039;ve looked at other MCUs (mostly Atmel and ARM-based ones) over the years, I haven&#039;t yet been able to switch.

Entry cost is a significant concern for me. With PIC, you can get a decent programmer (the PicKit2) for $35 direct from Microchip, and there&#039;s several cheaper programmers available, including several do-it-yourself designs that can be assembled for under $10 if you have a serial port. When looking into Atmel, I initially couldn&#039;t find anything under $100 that would get me a working programmer and software, though now I&#039;ve found a good, cheap in-circuit debugger for their 8-bit products that only costs $34, so there do seem to be options there as well. However, I have never found a way to figure out how much an AVR MCU will cost without specifically asking Atmel for a quote (unlike Microchip, Atmel&#039;s site doesn&#039;t list prices), and their samples process is much more involved and restricted than Microchip&#039;s.

Another thing that PIC does very well on is providing high-end devices in DIP packages. I recently looked at Atmel when trying to put together a parts list for a custom keyboard controller I&#039;m building, and was disappointed to find that Atmel doesn&#039;t actually sell any MCUs with USB support in a DIP package; anything they have that supports USB is surface-mount, which makes it impossible to use with a standard prototyping board without first attaching it to some sort of adapter. Microchip, on the other hand, sells almost 150 different models of PICs which include USB support and come in a DIP package. There are some third-party solutions available to adapt AVRs with USB support to a DIP format, such as the Teensy and Teensy++ provided by PJRC, but they&#039;re much more expensive... the Teensy++ (which is the only model I found with enough pins to work for this project) is $24 each; the PIC I ended up choosing instead (the PIC18F4550) only costs $4.47 each.

Atmel has interested me for a long time, but given that this is only a hobby for me, I haven&#039;t seen enough reason to spend the time and money required to switch. If I were to get the opportunity to use microcontrollers in a project at work, I would choose PIC without a second thought, since I&#039;m more familiar with it and already own all of the tools required.</description>
		<content:encoded><![CDATA[<p>I&#8217;m a hobbyist PIC developer who got his start taking a microcontrollers class in college. The class started us out with PICs, and though I&#8217;ve looked at other MCUs (mostly Atmel and ARM-based ones) over the years, I haven&#8217;t yet been able to switch.</p>
<p>Entry cost is a significant concern for me. With PIC, you can get a decent programmer (the PicKit2) for $35 direct from Microchip, and there&#8217;s several cheaper programmers available, including several do-it-yourself designs that can be assembled for under $10 if you have a serial port. When looking into Atmel, I initially couldn&#8217;t find anything under $100 that would get me a working programmer and software, though now I&#8217;ve found a good, cheap in-circuit debugger for their 8-bit products that only costs $34, so there do seem to be options there as well. However, I have never found a way to figure out how much an AVR MCU will cost without specifically asking Atmel for a quote (unlike Microchip, Atmel&#8217;s site doesn&#8217;t list prices), and their samples process is much more involved and restricted than Microchip&#8217;s.</p>
<p>Another thing that PIC does very well on is providing high-end devices in DIP packages. I recently looked at Atmel when trying to put together a parts list for a custom keyboard controller I&#8217;m building, and was disappointed to find that Atmel doesn&#8217;t actually sell any MCUs with USB support in a DIP package; anything they have that supports USB is surface-mount, which makes it impossible to use with a standard prototyping board without first attaching it to some sort of adapter. Microchip, on the other hand, sells almost 150 different models of PICs which include USB support and come in a DIP package. There are some third-party solutions available to adapt AVRs with USB support to a DIP format, such as the Teensy and Teensy++ provided by PJRC, but they&#8217;re much more expensive&#8230; the Teensy++ (which is the only model I found with enough pins to work for this project) is $24 each; the PIC I ended up choosing instead (the PIC18F4550) only costs $4.47 each.</p>
<p>Atmel has interested me for a long time, but given that this is only a hobby for me, I haven&#8217;t seen enough reason to spend the time and money required to switch. If I were to get the opportunity to use microcontrollers in a project at work, I would choose PIC without a second thought, since I&#8217;m more familiar with it and already own all of the tools required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin Sangale</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-8981</link>
		<dc:creator>Nitin Sangale</dc:creator>
		<pubDate>Wed, 09 Nov 2011 11:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-8981</guid>
		<description>Excellent guide for embedded engineers...! Thanks for such valuable knowledge.</description>
		<content:encoded><![CDATA[<p>Excellent guide for embedded engineers&#8230;! Thanks for such valuable knowledge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Jones</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-4443</link>
		<dc:creator>Nigel Jones</dc:creator>
		<pubDate>Thu, 02 Jun 2011 11:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-4443</guid>
		<description>The first time I looked at PIC14 assembler (having programmed 6800&#039;s, Z80s, AVRs etc for years) I thought it was someone&#039;s idea of a joke! Thus I agree that if you can handle PIC14, you can probably do anything. While I agree that Microchip has made a serious commitment to keeping parts available for years (I suspect in part because they buy fully depreciated fabs), I don&#039;t think they are alone in this regard. Notwithstanding that, future parts availability is a very serious design issue; indeed every year I do a reasonable amount of work for clients redesigning products where parts are no longer available. 

Finally thank you for such a thoughtful comment. One of the things I really like about those who comment on this blog is that the comments are well reasoned and devoid of religious fervour. It&#039;s quite refreshing compared to some of the things that get posted on other forums.</description>
		<content:encoded><![CDATA[<p>The first time I looked at PIC14 assembler (having programmed 6800&#8242;s, Z80s, AVRs etc for years) I thought it was someone&#8217;s idea of a joke! Thus I agree that if you can handle PIC14, you can probably do anything. While I agree that Microchip has made a serious commitment to keeping parts available for years (I suspect in part because they buy fully depreciated fabs), I don&#8217;t think they are alone in this regard. Notwithstanding that, future parts availability is a very serious design issue; indeed every year I do a reasonable amount of work for clients redesigning products where parts are no longer available. </p>
<p>Finally thank you for such a thoughtful comment. One of the things I really like about those who comment on this blog is that the comments are well reasoned and devoid of religious fervour. It&#8217;s quite refreshing compared to some of the things that get posted on other forums.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wouter van Ooijen</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-4440</link>
		<dc:creator>Wouter van Ooijen</dc:creator>
		<pubDate>Thu, 02 Jun 2011 08:16:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-4440</guid>
		<description>As a teacher I do a PIC assembler class. One thing I tell my students is that once they have mastered the 14-bit core PICs anything else will be a piece of cake.

More seriously, IMO the main reason PICs are so popular (beside being popular, which is a big factor) is that Microchip has a very good reputation for delivering the chips, and continuing to deliver them. If you make a product now and still want to sell it (without the hassle of re-design, re-testing, re-certification, etc) I think Microchip is the only choice. If OTOH you want a the best bang for the buck right now (and don&#039;t care much what happens in 5 years, or don&#039;t mind sitching to a different chip) Microchip it is definitely the wrong choice.</description>
		<content:encoded><![CDATA[<p>As a teacher I do a PIC assembler class. One thing I tell my students is that once they have mastered the 14-bit core PICs anything else will be a piece of cake.</p>
<p>More seriously, IMO the main reason PICs are so popular (beside being popular, which is a big factor) is that Microchip has a very good reputation for delivering the chips, and continuing to deliver them. If you make a product now and still want to sell it (without the hassle of re-design, re-testing, re-certification, etc) I think Microchip is the only choice. If OTOH you want a the best bang for the buck right now (and don&#8217;t care much what happens in 5 years, or don&#8217;t mind sitching to a different chip) Microchip it is definitely the wrong choice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nigel Jones</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-3522</link>
		<dc:creator>Nigel Jones</dc:creator>
		<pubDate>Fri, 04 Mar 2011 11:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-3522</guid>
		<description>I think that&#039;s a very important point. I do a fair amount of work for clients simply based on parts obsolescence. The fact that Microchip keeps parts around forever certainly helps maintain brand loyalty.</description>
		<content:encoded><![CDATA[<p>I think that&#8217;s a very important point. I do a fair amount of work for clients simply based on parts obsolescence. The fact that Microchip keeps parts around forever certainly helps maintain brand loyalty.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyrile</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-3521</link>
		<dc:creator>cyrile</dc:creator>
		<pubDate>Fri, 04 Mar 2011 08:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-3521</guid>
		<description>i almost forgot, microchip keep many pics active, the ones we used many years ago are still avaible, or a very close equivalent. 
i&#039;ts somehow interesting for us, as we are not in a race for the last product !</description>
		<content:encoded><![CDATA[<p>i almost forgot, microchip keep many pics active, the ones we used many years ago are still avaible, or a very close equivalent.<br />
i&#8217;ts somehow interesting for us, as we are not in a race for the last product !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyrile</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-3520</link>
		<dc:creator>cyrile</dc:creator>
		<pubDate>Fri, 04 Mar 2011 08:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-3520</guid>
		<description>Hi, 

I use PIC because when i was a student, i got an old programmer. then i had many sample of their circuits, free. it was a criteras for me, having them free cause it&#039;s a little bit expensive for a student without money.

I meet your point, i agree. architecture is awfull, the two interrupts vectors are not sufficient for effective programming, sometimes it&#039;s a nigthmare... small stack, really small. 
some bugs in the compiler also.. 

But the computing power is sufficient for me, and when i need more power, i have my own DSP board.

Maybe i&#039;ll change for ARM one day..</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I use PIC because when i was a student, i got an old programmer. then i had many sample of their circuits, free. it was a criteras for me, having them free cause it&#8217;s a little bit expensive for a student without money.</p>
<p>I meet your point, i agree. architecture is awfull, the two interrupts vectors are not sufficient for effective programming, sometimes it&#8217;s a nigthmare&#8230; small stack, really small.<br />
some bugs in the compiler also.. </p>
<p>But the computing power is sufficient for me, and when i need more power, i have my own DSP board.</p>
<p>Maybe i&#8217;ll change for ARM one day..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrique</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-3186</link>
		<dc:creator>Henrique</dc:creator>
		<pubDate>Mon, 24 Jan 2011 17:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-3186</guid>
		<description>It&#039;s simple, every time you want a microcontroller to do some dumb &amp; quick job, you ask your colleagues about witch mcu you should choose.. the answers are:
- &quot;Use a ARM MCU! I&#039;ve seen some pretty cheap around, or maybe you should buy a kit&quot;
- &quot;Use AVR! I&#039;ve never used one but some people say they are very easy to deal with, just don&#039;t know which to buy.&quot;
- &quot;Use 8051! But do it in assembly. 8051 compilers are lame&quot;

An then you hear:
- &quot;Use PIC. I&#039;ve dealt with them.. in fact i have a programmer in my house&quot;
- &quot;Hey! but I have a programmer in my office.. give me just a minute..&quot;
- &quot;Well, I have half your code written with test cases and everything!&quot;
- &quot;You know what? let me just do that with you and by the end of the day will have it ready!&quot;

and so it goes...</description>
		<content:encoded><![CDATA[<p>It&#8217;s simple, every time you want a microcontroller to do some dumb &amp; quick job, you ask your colleagues about witch mcu you should choose.. the answers are:<br />
- &#8220;Use a ARM MCU! I&#8217;ve seen some pretty cheap around, or maybe you should buy a kit&#8221;<br />
- &#8220;Use AVR! I&#8217;ve never used one but some people say they are very easy to deal with, just don&#8217;t know which to buy.&#8221;<br />
- &#8220;Use 8051! But do it in assembly. 8051 compilers are lame&#8221;</p>
<p>An then you hear:<br />
- &#8220;Use PIC. I&#8217;ve dealt with them.. in fact i have a programmer in my house&#8221;<br />
- &#8220;Hey! but I have a programmer in my office.. give me just a minute..&#8221;<br />
- &#8220;Well, I have half your code written with test cases and everything!&#8221;<br />
- &#8220;You know what? let me just do that with you and by the end of the day will have it ready!&#8221;</p>
<p>and so it goes&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Horsedorf</title>
		<link>http://embeddedgurus.com/stack-overflow/2009/04/pic-stack-overflow/comment-page-1/#comment-2954</link>
		<dc:creator>Horsedorf</dc:creator>
		<pubDate>Wed, 15 Dec 2010 18:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.gfcdev.org/test-stack/2009/04/25/pic-stack-overflow/#comment-2954</guid>
		<description>Something that one of the financiers that sat on the board of directors at Netapp said to the senior executive staff of Netapp comes to mind. &quot;When are you engineers going to get that it doesn&#039;t have to be perfect, it just has to be good enough.&quot;  And that, is where the Pic sits.. It&#039;s not perfect, but it *IS* &quot;good enough&quot;.</description>
		<content:encoded><![CDATA[<p>Something that one of the financiers that sat on the board of directors at Netapp said to the senior executive staff of Netapp comes to mind. &#8220;When are you engineers going to get that it doesn&#8217;t have to be perfect, it just has to be good enough.&#8221;  And that, is where the Pic sits.. It&#8217;s not perfect, but it *IS* &#8220;good enough&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

