<?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: Getting started with 13213 SRB in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Getting-started-with-13213-SRB/m-p/131156#M2661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for your advice Tom. Anyway i managed to solve the error. The led definition is wrong. I have corrected it and now it works just fine...&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2006 22:01:27 GMT</pubDate>
    <dc:creator>thngkl</dc:creator>
    <dc:date>2006-09-26T22:01:27Z</dc:date>
    <item>
      <title>Getting started with 13213 SRB</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Getting-started-with-13213-SRB/m-p/131154#M2659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have created a simple program using the software codes provided below. When i press "debug" in the CodeWarrior IDE, it runs well, but the led2 does not light up when SW2 is pressed on the SRB. Did i miss any important steps in the process of downloading the program to the MCU?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include /* for EnableInterrupts macro */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include /* include peripheral declarations */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "M68DEMO908GB60.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void main(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EnableInterrupts; /* enable interrupts */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* include your code here */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PTADD = 0; //initialize as input (Data Direction Rregister)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PTAPE = 0xf0; //Pullups on upper 4 bits&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/*initialize bits 0-3 of Port F as outputs (connected to led's)*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PTFDD = 0x0f;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED1 = OFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED2 = OFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED3 = OFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED4 = OFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED5 = OFF;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for(;&lt;/SPAN&gt;&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;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__RESET_WATCHDOG(); /* kicks the dog */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED2 = SW2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} /* loop forever */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 00:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Getting-started-with-13213-SRB/m-p/131154#M2659</guid>
      <dc:creator>thngkl</dc:creator>
      <dc:date>2006-09-25T00:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with 13213 SRB</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Getting-started-with-13213-SRB/m-p/131155#M2660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I did a similar project, where a pushbutton on a HC(S)12 board lit up and LED when pushed. So, my processor isn't the same, but some of the ideas for trouble-shooting ought to carry across.&lt;BR /&gt;&lt;BR /&gt;1) Have you tried setting the LEDs to ON just to see if they light up?&lt;BR /&gt;&lt;BR /&gt;2) Have you confirmed that SW2 is configured as an input, and with the debugger, can you you set the bit change in the register when you depress SW2?&lt;BR /&gt;&lt;BR /&gt;It's not clear to me that you've configured SW2 as an input from this code, but as I said, I'm using a different processor on a different board. HTH.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 21:54:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Getting-started-with-13213-SRB/m-p/131155#M2660</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-09-26T21:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with 13213 SRB</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Getting-started-with-13213-SRB/m-p/131156#M2661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks for your advice Tom. Anyway i managed to solve the error. The led definition is wrong. I have corrected it and now it works just fine...&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 22:01:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Getting-started-with-13213-SRB/m-p/131156#M2661</guid>
      <dc:creator>thngkl</dc:creator>
      <dc:date>2006-09-26T22:01:27Z</dc:date>
    </item>
  </channel>
</rss>

