<?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: First time programming error in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130105#M2310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi&lt;BR /&gt;what programmer do you use?&lt;BR /&gt;For trying to programm the device have a look at the attacement. Simply change the ROM Adress (it is written (and prooved) with a QY4 device.&lt;BR /&gt;&lt;BR /&gt;Saluti joe rg&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Mar 2006 04:19:06 GMT</pubDate>
    <dc:creator>joerg</dc:creator>
    <dc:date>2006-03-25T04:19:06Z</dc:date>
    <item>
      <title>First time programming error</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130104#M2309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;hi all,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;im doing this for the first time so take it easy on me, but i am programming a HC08QY1CP chip using PE micro software ( as this is what we used in uni ).&amp;nbsp; When i am trying to burn the program to chip i get the error "error at address $FFDE , byte in module is $FE and should be $F8"&amp;nbsp; i think it must have something to do with where i have declared Ram and Rom etc.&amp;nbsp; It is just a&amp;nbsp;very simple progrom just to see it working then i can advance with it.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i do not know what this error means ill include my wee simple program and if anythign jumps out as being wrong could you let me&amp;nbsp;know thanks.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;$include "qtqy_registers.inc"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;RamStart&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt; EQU $0080&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;RomStart&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt; EQU $F800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;VectorStart&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt; EQU $FFDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;org RamStart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;; define variables in RAM - none needed here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;org RomStart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;start: ; execution starts here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;mov #%00110001,CONFIG1 ; disable low-voltage interrupt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;; watchdog timer and STOP instruction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;mov #%00000000,CONFIG2 ; select internal oscillator,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;; disable _IRQ and _RST pins&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;; configure ports&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;; port A inputs by default&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;mov #%01111111,DDRB ; set bits 0-6 of port B to outputs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;mov #%01010101,PORTB ; light alternate LEDs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;infLoop:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;bra infLoop ; infinite loop, does nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;org VectorStart ; reset and interrupt vectors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;dw Start ; keyboard interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;dw Start&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;org $FFF2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;dw Start ; timer overflow interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;dw Start ; timer channel 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;dw Start ; timer channel 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;org $FFFA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;dw Start ; interrupt request (_IRQ pin)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;dw Start ; software interrupt (SWI instruction)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 3; font-family: 'Times New Roman';"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;dw Start ; reset (power-on or _RST pin)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2006 01:55:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130104#M2309</guid>
      <dc:creator>Fraz</dc:creator>
      <dc:date>2006-03-25T01:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming error</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130105#M2310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi&lt;BR /&gt;what programmer do you use?&lt;BR /&gt;For trying to programm the device have a look at the attacement. Simply change the ROM Adress (it is written (and prooved) with a QY4 device.&lt;BR /&gt;&lt;BR /&gt;Saluti joe rg&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2006 04:19:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130105#M2310</guid>
      <dc:creator>joerg</dc:creator>
      <dc:date>2006-03-25T04:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming error</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130106#M2311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;And also check that the clock rate is right for programming.&lt;BR /&gt;&lt;BR /&gt;The error that you received is a program-verify error. I believe that it programmed address $FFDE to an $F8, but read back an $FE when it tried to verify.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2006 05:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130106#M2311</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-03-25T05:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming error</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130107#M2312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;sorry i completly scrwed up and chose the wrong chip...doh ! got it wokring now but whilst im here ill show you my next problem see if you can tell me wot be wrong !&amp;nbsp; The program is supposed to display a different led for each button pressed and the led will stay on until another button is pressed, i cant see any problem with it but then again im a bit of a noob.&amp;nbsp; Any ideas? cant get any leds to light up at all.&lt;/P&gt;&lt;P&gt;cheers Fraser&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Times New Roman"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message Edited by Fraz on &lt;SPAN class="date_text"&gt;03-24-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:55 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Fraz on &lt;SPAN class="date_text"&gt;03-24-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:55 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Fraz on &lt;SPAN class="date_text"&gt;03-24-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:58 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2006 06:34:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130107#M2312</guid>
      <dc:creator>Fraz</dc:creator>
      <dc:date>2006-03-25T06:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: First time programming error</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130108#M2313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, Fraser:&lt;BR /&gt;&lt;BR /&gt;OK, but where's the schematic? ;8)&lt;BR /&gt;&lt;BR /&gt;If the other end of the LEDs are wired to +5v (the historic way), than you need to BCLR in order to make an LED come on.&lt;BR /&gt;&lt;BR /&gt;Also, once an LED is on, nothing ever turns it off. Rather than a BCLR 3,PORTB (if that's what it needs), maybe a MOV #%11110111 (but in symbolic form) would be more appropriate.&lt;BR /&gt;&lt;BR /&gt;Another also, all except the last "bra InfLoop" are unnecessary, and prevent the loop from testing other buttons once it finds one that is down.&lt;BR /&gt;&lt;BR /&gt;Hope that helps&lt;P&gt;Message Edited by rocco on &lt;SPAN class="date_text"&gt;03-24-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;05:01 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Mar 2006 08:57:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/First-time-programming-error/m-p/130108#M2313</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-03-25T08:57:48Z</dc:date>
    </item>
  </channel>
</rss>

