<?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 Re: keypad interfacing example in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/keypad-interfacing-example/m-p/189738#M7345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. First of all where's the url to 96AB2 datasheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Where's your circuit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there external pullup resistors? If not then PORTA weak pull up resistors should be enabled. And by default PUCR PUPAE bit is off. Try enabling pull ups. Then your code may work if you wired your keypad correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2009 13:26:59 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2009-06-12T13:26:59Z</dc:date>
    <item>
      <title>keypad interfacing example</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/keypad-interfacing-example/m-p/189737#M7344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for an example code for interfacing a 96AB2 keypad with a 9S12DP256B MCU.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I am stuck with a nonworking code from an old book.&amp;nbsp; I've connected pins of the keypad to PORT A and the code goes as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DDRA = 0xF8; // set PORTA[0:2] as input and PORTA[3:7] as output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for (;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTA = 0xBF; // assert row 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; keypress = PORTA;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (keypress != 0xBF) // some key has been pressed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; key = scan_key(keypress);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a similar block for every row but I'm not even sure if this is the correct way of doing that and unfortunately I am not getting any results with it.&amp;nbsp;&amp;nbsp;I would really appreciate if someone could give me some hints or pointers to a working code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 04:15:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/keypad-interfacing-example/m-p/189737#M7344</guid>
      <dc:creator>dipole</dc:creator>
      <dc:date>2009-06-12T04:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: keypad interfacing example</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/keypad-interfacing-example/m-p/189738#M7345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. First of all where's the url to 96AB2 datasheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Where's your circuit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there external pullup resistors? If not then PORTA weak pull up resistors should be enabled. And by default PUCR PUPAE bit is off. Try enabling pull ups. Then your code may work if you wired your keypad correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 13:26:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/keypad-interfacing-example/m-p/189738#M7345</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-06-12T13:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: keypad interfacing example</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/keypad-interfacing-example/m-p/189739#M7346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot.&amp;nbsp; PUCR turned out to be the problem.&amp;nbsp; Sadly, the code in the book does not enable PUPAE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, instead of polling I am looking for an interrupt driven keypad operation.&amp;nbsp; Any pointers or hints are appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 16:37:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/keypad-interfacing-example/m-p/189739#M7346</guid>
      <dc:creator>dipole</dc:creator>
      <dc:date>2009-06-12T16:37:19Z</dc:date>
    </item>
  </channel>
</rss>

