<?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>topic Checking Parity in ISR in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Checking-Parity-in-ISR/m-p/193739#M8521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar thread regarding a serial protocol that uses mark/space parity to differentiate between broadcast messages (processed by all ColdFire devices on a network) and specific unit messages targeted to only one ColdFire device on a network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default I'm setting all ColdFire devices on the network to mark parity and the master PC can send mark parity messages that will be interpreted by all.&amp;nbsp; The master PC must address a unit and send a space parity command for a command to be processed by only a targeted/addressed unit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What seems to be happening is that even after "addressing" a specific unit with a mark parity address (sent twice) the space partiy message is being interpreted by other devices.&amp;nbsp; I've tested this by sending the 2x mark address broadcast followed by a space parity message which is interpreted even if I send the incorrect address (yikes!!!).&amp;nbsp; If a unit is in mark parity and receives a space parity message could I simply have a PE bit filter?&amp;nbsp; So event though I have some overhead of calling the ISR vs. multidropmode perhaps I could make it very low overhead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is, units not addressed would be left in mark parity and although they receive the space parity message they ignore it based on a failed PE bit.&amp;nbsp; The unit that was addressed and changed to space parity would process the message as desired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, not ideal as I still have ISR overhead but functional.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Mar 2011 20:29:50 GMT</pubDate>
    <dc:creator>richard_bair</dc:creator>
    <dc:date>2011-03-27T20:29:50Z</dc:date>
    <item>
      <title>Checking Parity in ISR</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Checking-Parity-in-ISR/m-p/193739#M8521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar thread regarding a serial protocol that uses mark/space parity to differentiate between broadcast messages (processed by all ColdFire devices on a network) and specific unit messages targeted to only one ColdFire device on a network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default I'm setting all ColdFire devices on the network to mark parity and the master PC can send mark parity messages that will be interpreted by all.&amp;nbsp; The master PC must address a unit and send a space parity command for a command to be processed by only a targeted/addressed unit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What seems to be happening is that even after "addressing" a specific unit with a mark parity address (sent twice) the space partiy message is being interpreted by other devices.&amp;nbsp; I've tested this by sending the 2x mark address broadcast followed by a space parity message which is interpreted even if I send the incorrect address (yikes!!!).&amp;nbsp; If a unit is in mark parity and receives a space parity message could I simply have a PE bit filter?&amp;nbsp; So event though I have some overhead of calling the ISR vs. multidropmode perhaps I could make it very low overhead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is, units not addressed would be left in mark parity and although they receive the space parity message they ignore it based on a failed PE bit.&amp;nbsp; The unit that was addressed and changed to space parity would process the message as desired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, not ideal as I still have ISR overhead but functional.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2011 20:29:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Checking-Parity-in-ISR/m-p/193739#M8521</guid>
      <dc:creator>richard_bair</dc:creator>
      <dc:date>2011-03-27T20:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Parity in ISR</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Checking-Parity-in-ISR/m-p/193740#M8522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, the parity error method works pretty well.&amp;nbsp; When I send the space parity messages I can "ignore" them using the PE bit.&amp;nbsp; What I don't like is that the ISR is being triggered...overhead for all units on the network when I only want to target one unit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next step I want to try is multi drop mode.&amp;nbsp; I'm going to try and setup the units in multidrop address mode with the receiver disabled.&amp;nbsp; I expect that a mark parity message will trigger the ISR and I can process mark parity messages per my protocol.&amp;nbsp; What's not clear to me is once a unit is addressed and that unit switches to multidrop data mode...I simply enable the receiver and I expect that the message will be processed by that unit only.&amp;nbsp; I will test this tomorrow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, once the message is received by the addressed unit I want it to send a space parity message response and I don't see any transmission detail in the multidrop spec.&amp;nbsp; So I plan to try and keep the unit in multidrop data mode and then send a response before switching back to multidrop address mode and starting the cycle over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More to come...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 08:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Checking-Parity-in-ISR/m-p/193740#M8522</guid>
      <dc:creator>richard_bair</dc:creator>
      <dc:date>2011-03-29T08:31:19Z</dc:date>
    </item>
  </channel>
</rss>

