<?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中的主题 Confused by the CPU12 Reference Manual</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Confused-by-the-CPU12-Reference-Manual/m-p/126666#M566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to write a fuzzy controller and I have noticed an ambiguity in the CPU12 Reference Manual. In Section 6(Instruction Glossary) of the RM, page 243, in the "MEM" instruction it writes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"a 4-byte data structure that describes a trapezoidal&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;membership function. The data structure consists of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Point_1 — The x-axis starting point for the leading side (at MX)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Slope_1 — The slope of the leading side (at MX+1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Point_2 — The x-axis position of the rightmost point (at MX+2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Slope_2 — The slope of the trailing side (at MX+3); the right side&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;slopes up and to the left from point_2 "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And in Section 9(fuzzy logic support) of the RM, page 341, it writes (figure 9-4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"ADDR $40 X-POSITION OF point_1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADDR+1 $D0 X-POSITION OF point_2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADDR+2 $08 slope_1 ($FF/(X-POS OF SATURATION – point_1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADDR+3 $04 slope_2 ($FF/(point_2 – X-POS OF SATURATION))"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what is the right format for the membership function's data structure,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;point1,point2,slope1,slope2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;point1,slope1,point2,slope2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you all in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anastasios&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2006 02:02:03 GMT</pubDate>
    <dc:creator>Anastasios</dc:creator>
    <dc:date>2006-02-21T02:02:03Z</dc:date>
    <item>
      <title>Confused by the CPU12 Reference Manual</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Confused-by-the-CPU12-Reference-Manual/m-p/126666#M566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to write a fuzzy controller and I have noticed an ambiguity in the CPU12 Reference Manual. In Section 6(Instruction Glossary) of the RM, page 243, in the "MEM" instruction it writes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"a 4-byte data structure that describes a trapezoidal&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;membership function. The data structure consists of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Point_1 — The x-axis starting point for the leading side (at MX)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Slope_1 — The slope of the leading side (at MX+1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Point_2 — The x-axis position of the rightmost point (at MX+2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Slope_2 — The slope of the trailing side (at MX+3); the right side&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;slopes up and to the left from point_2 "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And in Section 9(fuzzy logic support) of the RM, page 341, it writes (figure 9-4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"ADDR $40 X-POSITION OF point_1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADDR+1 $D0 X-POSITION OF point_2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADDR+2 $08 slope_1 ($FF/(X-POS OF SATURATION – point_1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADDR+3 $04 slope_2 ($FF/(point_2 – X-POS OF SATURATION))"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what is the right format for the membership function's data structure,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;point1,point2,slope1,slope2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;point1,slope1,point2,slope2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you all in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anastasios&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 02:02:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Confused-by-the-CPU12-Reference-Manual/m-p/126666#M566</guid>
      <dc:creator>Anastasios</dc:creator>
      <dc:date>2006-02-21T02:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Confused by the CPU12 Reference Manual</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Confused-by-the-CPU12-Reference-Manual/m-p/126667#M567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;The description in the MEM opcode is incorrect in the V3 CPU manual. The correct format is point1,point2,slope1,slope2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;I've asked for the manuals to be fixed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for pointing this out.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 18:46:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Confused-by-the-CPU12-Reference-Manual/m-p/126667#M567</guid>
      <dc:creator>Steve</dc:creator>
      <dc:date>2006-02-21T18:46:45Z</dc:date>
    </item>
  </channel>
</rss>

