<?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"
	>
<channel>
	<title>Comments on: Reset:  Data sheet - part III</title>
	<atom:link href="http://www.sxmicro.com/2008/07/reset-data-sheet-part-iii/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sxmicro.com/2008/07/reset-data-sheet-part-iii/</link>
	<description>Discovering the SX microcontroller</description>
	<pubDate>Sun, 05 Feb 2012 23:30:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Whit+</title>
		<link>http://www.sxmicro.com/2008/07/reset-data-sheet-part-iii/#comment-29</link>
		<dc:creator>Whit+</dc:creator>
		<pubDate>Fri, 18 Jul 2008 21:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sxmicro.com/?p=25#comment-29</guid>
		<description>Just another note to say thanks for doing this for beginners to the SX. This is a mysterious process to those of us who have not fooled with it much!</description>
		<content:encoded><![CDATA[<p>Just another note to say thanks for doing this for beginners to the SX. This is a mysterious process to those of us who have not fooled with it much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whit+</title>
		<link>http://www.sxmicro.com/2008/07/reset-data-sheet-part-iii/#comment-28</link>
		<dc:creator>Whit+</dc:creator>
		<pubDate>Fri, 18 Jul 2008 20:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.sxmicro.com/?p=25#comment-28</guid>
		<description>It is best not to assume I know something too well. As I looked through the rest of the data sheet, I thought the FFh and OFh might be hexidecimal numbers. I am familiar, but certainly do not use it much and would have to refesh myself it I was using it often. If you told me to convert FF to a binary number, I probably could have done it, but I would have had to think it through for a while. The last time I fooled with it in any detail was in while back. 

But, just to show the gaps in my knowledge, learning that the "h" told me to read FF and 0F as hexidecimal numbers was something I had long forgotten (if I ever knew it).</description>
		<content:encoded><![CDATA[<p>It is best not to assume I know something too well. As I looked through the rest of the data sheet, I thought the FFh and OFh might be hexidecimal numbers. I am familiar, but certainly do not use it much and would have to refesh myself it I was using it often. If you told me to convert FF to a binary number, I probably could have done it, but I would have had to think it through for a while. The last time I fooled with it in any detail was in while back. </p>
<p>But, just to show the gaps in my knowledge, learning that the &#8220;h&#8221; told me to read FF and 0F as hexidecimal numbers was something I had long forgotten (if I ever knew it).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timothy D. Swieter</title>
		<link>http://www.sxmicro.com/2008/07/reset-data-sheet-part-iii/#comment-27</link>
		<dc:creator>Timothy D. Swieter</dc:creator>
		<pubDate>Fri, 18 Jul 2008 14:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.sxmicro.com/?p=25#comment-27</guid>
		<description>You are spot on Whit and perhaps I should have elaborated further.  I don't want my posts to get too long so I stopped myself short.

FFh and 0Fh are the states of the bits in the register.  The "h" is telling us the "FF" or "0F" is in hexidecimal.  Two hexidecimal numbers make means it is eight bits.  I haven't covered hexidecimal in a post, but it is couting with a base 16.  So we count 0,1,2,3....9,A,B,C,D,E,F.  You probably know this Whit from your other programming, maybe others don't.  So the FF can be decoded to binary as "11111111" or 0F is 00001111.

It is imporant that the table on page 30 define each state if it is known or not known.  When you are writing programs in SX/B or SASM or C you need to understand how the registers could get modified.  You wouldn't want to have your program store a value in a register that could get corrupted or assume a value exists in a register at startup after a reset condition occurs unless you are certain you know what that it can persist.

It is very important that your program defines registers and states and assume very little.  A program will be more robust in this regard, but that is a whole other text book!</description>
		<content:encoded><![CDATA[<p>You are spot on Whit and perhaps I should have elaborated further.  I don&#8217;t want my posts to get too long so I stopped myself short.</p>
<p>FFh and 0Fh are the states of the bits in the register.  The &#8220;h&#8221; is telling us the &#8220;FF&#8221; or &#8220;0F&#8221; is in hexidecimal.  Two hexidecimal numbers make means it is eight bits.  I haven&#8217;t covered hexidecimal in a post, but it is couting with a base 16.  So we count 0,1,2,3&#8230;.9,A,B,C,D,E,F.  You probably know this Whit from your other programming, maybe others don&#8217;t.  So the FF can be decoded to binary as &#8220;11111111&#8243; or 0F is 00001111.</p>
<p>It is imporant that the table on page 30 define each state if it is known or not known.  When you are writing programs in SX/B or SASM or C you need to understand how the registers could get modified.  You wouldn&#8217;t want to have your program store a value in a register that could get corrupted or assume a value exists in a register at startup after a reset condition occurs unless you are certain you know what that it can persist.</p>
<p>It is very important that your program defines registers and states and assume very little.  A program will be more robust in this regard, but that is a whole other text book!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whit+</title>
		<link>http://www.sxmicro.com/2008/07/reset-data-sheet-part-iii/#comment-26</link>
		<dc:creator>Whit+</dc:creator>
		<pubDate>Fri, 18 Jul 2008 14:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sxmicro.com/?p=25#comment-26</guid>
		<description>Timothy,

This is very good info. I think I actually got more out of pages 28 and 29 (meaning I understood more of what it was saying).

I have to ask some very basic questions about the chart on page 30. I understand that it is showing us the state of each register (like a little box with info in it) at each of the reset types (5 types in all). Some registers are FFh and some are 0Fh (is this low or high, 0 or 1, on or off - I assume so, but it is a guess). Some are undefined, meaning we might not know what the state is. Others are partially known and partially undefined. The condition of all is determined by the method of reset. Is that basically correct? 

As regards page 30 (though I don't understand many things), it looks like the variation in register states is very slight (although particular for each reset). I couldn't really figure it out, but did notice that at power-on and brown out - more registers are undefined. This makes sense. Other resets (wake-up, watchdog timer, and MCLR either leave particular registers(the ones undefined in Power-on or brown out)in their current state or redefine them to a particular state. And therefore, at the power-on or brown out resets, some registers may have an undetermined state. This would mean (I think) that they would need to be set at a paticular state (in order to know for sure what was in them). 

Am I even close?</description>
		<content:encoded><![CDATA[<p>Timothy,</p>
<p>This is very good info. I think I actually got more out of pages 28 and 29 (meaning I understood more of what it was saying).</p>
<p>I have to ask some very basic questions about the chart on page 30. I understand that it is showing us the state of each register (like a little box with info in it) at each of the reset types (5 types in all). Some registers are FFh and some are 0Fh (is this low or high, 0 or 1, on or off - I assume so, but it is a guess). Some are undefined, meaning we might not know what the state is. Others are partially known and partially undefined. The condition of all is determined by the method of reset. Is that basically correct? </p>
<p>As regards page 30 (though I don&#8217;t understand many things), it looks like the variation in register states is very slight (although particular for each reset). I couldn&#8217;t really figure it out, but did notice that at power-on and brown out - more registers are undefined. This makes sense. Other resets (wake-up, watchdog timer, and MCLR either leave particular registers(the ones undefined in Power-on or brown out)in their current state or redefine them to a particular state. And therefore, at the power-on or brown out resets, some registers may have an undetermined state. This would mean (I think) that they would need to be set at a paticular state (in order to know for sure what was in them). </p>
<p>Am I even close?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

