<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S12 / MagniV MicrocontrollersのトピックRe: Clearing the bit</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216378#M9042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Changing logic level from 1 to 0 can hardly be expensive. The clear-by-read issues in SCI/SPI are seem to be there for backwards compatibility only. &lt;BR /&gt;&lt;BR /&gt;Another case where the C language has clearly not been considered is the address map. A write to address zero should yield an error interrupt on a micro designed for the C language, to prevent null pointer access.&lt;BR /&gt;&lt;BR /&gt;Also, companies like Freescale spend huge amounts of cash on things like AUTOSAR to reduce software bugs. In my opinion they should start fixing the simple things first.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2009 23:34:57 GMT</pubDate>
    <dc:creator>Lundin</dc:creator>
    <dc:date>2009-01-15T23:34:57Z</dc:date>
    <item>
      <title>Clearing the bit</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216375#M9039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My doubt is that in certain microcontrollers like MPC5554 ,certain bits are cleared by writing a '1' on it .Why is it so? Normally bits are cleared by &amp;nbsp;writing a '0'.&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 15:59:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216375#M9039</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-01-15T15:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the bit</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216376#M9040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Because Freescale refrains from making their mcu peripherals logical and intuitive whenever possible...&lt;BR /&gt;&lt;BR /&gt;Clear by writing 1 or clear by reading are very annoying features of some peripherals, that surely must cause millions of bugs for all Freescale users, especially those who are using C. I bet every single user sooner or later runs into classic Freescale bug 1: "the debugger is eating my SCI/SPI flags" and classic Freescale bug 2: "my timer flags are destroyed because I clear a flag with TIMER_REG |= 0x01 rather than TIMER_REG = 0x01".&lt;BR /&gt;&lt;BR /&gt;But the C language has only been standardized for 18 years, so if we give Freescale more time they might at some point adapt their micros to support this new fancy language.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 18:22:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216376#M9040</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2009-01-15T18:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the bit</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216377#M9041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Lundin,&lt;/DIV&gt;&lt;DIV&gt;this issue isn't easy to fix. Would you like slowing down CPU like it's done in Microchip MCUs to solve this? Maybe slowing down peripherals? More complicated circuit and more expensive chip? One flag per register leading to more address space occupied by registers block (something like in S08 family, but first compare how many flags does S12D family have)? I wouldn't.&lt;/DIV&gt;&lt;DIV&gt;Egg vs chicken. Is C more important than everything else?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 20:24:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216377#M9041</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-01-15T20:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the bit</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216378#M9042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Changing logic level from 1 to 0 can hardly be expensive. The clear-by-read issues in SCI/SPI are seem to be there for backwards compatibility only. &lt;BR /&gt;&lt;BR /&gt;Another case where the C language has clearly not been considered is the address map. A write to address zero should yield an error interrupt on a micro designed for the C language, to prevent null pointer access.&lt;BR /&gt;&lt;BR /&gt;Also, companies like Freescale spend huge amounts of cash on things like AUTOSAR to reduce software bugs. In my opinion they should start fixing the simple things first.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 23:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216378#M9042</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2009-01-15T23:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the bit</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216379#M9043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;You don't like NOTsimple change of logics from 1 to 0, do you? Let's think about timer flags. Currently, to clear bit0 and keep other bits in their current state you write&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;TFLG1 = 1;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;After change of logics 1-&amp;gt;0,&amp;nbsp;above would become&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;TFLG1 = 0xFE;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But neither&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TFLG1 &amp;amp;= ~1; //&amp;nbsp;(BCLR TFLG1,#1)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;nor&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TFLG1_C0F=0; // (also BCLR TFLG1,#1)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;would work&amp;nbsp;properly! Both variants would clear more bits than you expect!&lt;/DIV&gt;&lt;DIV&gt;And backwards compatibility is another issue non issue.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 13:01:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216379#M9043</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-01-16T13:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the bit</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216380#M9044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello All&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I dont know whether everyone understood my doubt,Lets consider this bit in register &lt;B&gt;&lt;FONT face="Arial,Bold" size="4"&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;P align="left"&gt;&lt;B&gt;&lt;FONT face="Arial,Bold" size="4"&gt;EQADC_FISR&lt;I&gt;&lt;FONT face="Arial,BoldItalic" size="4"&gt;n of MPC5554.&lt;/FONT&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&lt;FONT color="#3333CC" size="3"&gt;&lt;STRONG&gt;EOQF&lt;/STRONG&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT face="Arial,Italic"&gt;&lt;FONT color="#3333CC" size="3"&gt;&lt;STRONG&gt;n&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt; &lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;FONT color="#3333CC"&gt;&lt;FONT face="Arial"&gt;End-of-queue flag&lt;/FONT&gt; &lt;I&gt;&lt;FONT face="Arial,Italic"&gt;n&lt;/FONT&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="3"&gt;. Indicates that an entry with an asserted EOQ bit was transferred from&lt;/FONT&gt; &lt;FONT size="3"&gt;CFIFO&lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT face="Arial,Italic"&gt;&lt;FONT size="3"&gt;n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt; &lt;FONT face="Arial" size="3"&gt;to the on-chip ADCs or to the external device.&lt;/FONT&gt; &lt;FONT face="Arial"&gt;&lt;FONT color="#000000" size="3"&gt;. When the eQADC&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&lt;FONT size="3"&gt;completes the transfer of an entry with an asserted EOQ bit from CFIFO&lt;/FONT&gt;&lt;I&gt;&lt;FONT face="Arial,Italic"&gt;&lt;FONT size="3"&gt;n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT size="3"&gt;&lt;FONT face="Arial"&gt;, EOQF&lt;/FONT&gt;&lt;I&gt;&lt;FONT face="Arial,Italic"&gt;n&lt;/FONT&gt;&lt;/I&gt;&lt;/FONT&gt; &lt;FONT face="Arial"&gt;&lt;FONT size="3"&gt;will be&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&lt;FONT size="3"&gt;set.&lt;/FONT&gt; &lt;FONT face="Arial"&gt;&lt;FONT color="#3300CC" size="3"&gt;Writing a 1 clears the EOQF&lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT face="Arial,Italic"&gt;&lt;FONT color="#3300CC" size="3"&gt;n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt; &lt;FONT face="Arial" size="3"&gt;&lt;FONT color="#3300CC"&gt;bit. Writing a 0 has no effect.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Arial" size="1"&gt;&lt;FONT face="Arial"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Arial" size="1"&gt;&lt;FONT size="3"&gt;0 Entry with asserted EOQ bit was not transferred from CFIFO&lt;/FONT&gt;&lt;/FONT&gt;&lt;I&gt;&lt;FONT face="Arial,Italic"&gt;&lt;FONT size="3"&gt;n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;FONT face="Arial"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Arial"&gt;&lt;FONT size="3"&gt;1 Entry with asserted EOQ bit was transferred from CFIFO&lt;/FONT&gt;&lt;I&gt;&lt;FONT face="Arial,Italic"&gt;&lt;FONT size="3"&gt;n.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Arial"&gt;&lt;I&gt;&lt;FONT face="Arial,Italic"&gt;&lt;FONT size="3"&gt;How again writing a "1" clears that bit ?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/I&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 16:32:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216380#M9044</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-01-16T16:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the bit</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216381#M9045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Probably there's something like&amp;nbsp;FISRn trigger, AND gate&amp;nbsp;and&amp;nbsp;"chip select" circuit, all wired so that when EQADC register is selected and&amp;nbsp;WRite is high and data bus bit corresponding to FISRn bit position is '1', then FISRn trigger is reset. Simple.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BTW MPC5554 is not a 16bits MCU.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 17:59:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216381#M9045</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-01-16T17:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the bit</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216382#M9046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello All&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your kind information.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 16:26:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Clearing-the-bit/m-p/216382#M9046</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-01-19T16:26:22Z</dc:date>
    </item>
  </channel>
</rss>

