<?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: Relocatable assembler source file (spanish) in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-assembler-source-file-spanish/m-p/126327#M1040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;NO entiendo muy bien. Que es el archivo de inicilización? Donde y para que queires al sección de inicliazación?&lt;BR /&gt;&lt;BR /&gt;Nunca lo he hecho en Freescale, pero si tienes varios objetos (cada uno de tus .asm) probablemente cada uno de ellos deba tener un .inc (encabezado) que lo acompañe. La idea de los encabezados es "exportar" una lista de las constantes, variables y subrutinas globales (es decir las que puede ver otro objeto). Por ejemplo:&lt;BR /&gt;&lt;BR /&gt;1. En LCD.asm hay una rutina que inicializa el LCD. Si quero poder inicializar el LCD desde otro objeto (por ejemplo el control del tecldo) debo "exportar" el nombre de la rutina para que otros la vean&lt;BR /&gt;&lt;BR /&gt;LCDInic:&lt;BR /&gt; XDEF LCDInic ; ESTO "EXPORTA" EL LABEL!!!&lt;BR /&gt; lda 0x01&lt;BR /&gt; sta PTB&lt;BR /&gt; ....&lt;BR /&gt;&lt;BR /&gt;2. Ahora creo un LCD.inc que se verá algo así&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; XREF LCDInic ; Esto me dice que LCDInic esta definido parte&lt;BR /&gt;&lt;BR /&gt;3. Y en el objeto que va a utilzar el LCD (por ejemplo main.asm) se debe incluir el encabezado:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; INCLUDE 'LCDInic.inc'&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;; code section&lt;BR /&gt;MyCode: SECTION&lt;BR /&gt;main:&lt;BR /&gt;_Startup:&lt;BR /&gt; LDHX #__SEG_END_SSTACK ; initialize the stack pointer&lt;BR /&gt; TXS&lt;BR /&gt;&lt;BR /&gt; ; Uncomment this function call after using Device Initialization&lt;BR /&gt; ; to use the generated code&lt;BR /&gt; JSR MCU_init&lt;BR /&gt; &lt;BR /&gt; ;¡¡¡¡¡ACA PODEMOS LLMAR A LA RUTINADE INICIO DEL LCD!!!!! &lt;BR /&gt; JSR LCDInic&lt;BR /&gt;&lt;BR /&gt; ;CLI ; enable interrupts&lt;BR /&gt;mainLoop:&lt;BR /&gt; ; Insert your code here&lt;BR /&gt; NOP&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Espero haberte entendido y que esto es lo que queiras ahcer. Puede q tngas q tener cuidado de donde estan los archivos y algunas cosas de sintaxis pero esta es la idea general.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Aug 2006 04:23:41 GMT</pubDate>
    <dc:creator>Santa</dc:creator>
    <dc:date>2006-08-15T04:23:41Z</dc:date>
    <item>
      <title>Relocatable assembler source file (spanish)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-assembler-source-file-spanish/m-p/126326#M1039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Estimados:&lt;BR /&gt;Quiero hacer un source file por cada dispositivo a controlar y que cada uno contenga las constantes, los datos, la inicializacion del dispositivo, y las rutinas propias del mismo, tales como interrupcion, etc. Mi problema es que no puedo generar una seccion de inicializacion. Ocea, tengo los source.asm por cada dispositivo funcionando ok, pero solo tengo un archivo de inicializacion para todos ellos debido a que no puedo generar la seccion de inicializacion.&lt;BR /&gt;Espero que entiendan mi pregunta.&lt;/DIV&gt;&lt;DIV&gt;Muchas gracias.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 05:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-assembler-source-file-spanish/m-p/126326#M1039</guid>
      <dc:creator>Leo_Junin</dc:creator>
      <dc:date>2006-08-11T05:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Relocatable assembler source file (spanish)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-assembler-source-file-spanish/m-p/126327#M1040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;NO entiendo muy bien. Que es el archivo de inicilización? Donde y para que queires al sección de inicliazación?&lt;BR /&gt;&lt;BR /&gt;Nunca lo he hecho en Freescale, pero si tienes varios objetos (cada uno de tus .asm) probablemente cada uno de ellos deba tener un .inc (encabezado) que lo acompañe. La idea de los encabezados es "exportar" una lista de las constantes, variables y subrutinas globales (es decir las que puede ver otro objeto). Por ejemplo:&lt;BR /&gt;&lt;BR /&gt;1. En LCD.asm hay una rutina que inicializa el LCD. Si quero poder inicializar el LCD desde otro objeto (por ejemplo el control del tecldo) debo "exportar" el nombre de la rutina para que otros la vean&lt;BR /&gt;&lt;BR /&gt;LCDInic:&lt;BR /&gt; XDEF LCDInic ; ESTO "EXPORTA" EL LABEL!!!&lt;BR /&gt; lda 0x01&lt;BR /&gt; sta PTB&lt;BR /&gt; ....&lt;BR /&gt;&lt;BR /&gt;2. Ahora creo un LCD.inc que se verá algo así&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; XREF LCDInic ; Esto me dice que LCDInic esta definido parte&lt;BR /&gt;&lt;BR /&gt;3. Y en el objeto que va a utilzar el LCD (por ejemplo main.asm) se debe incluir el encabezado:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; INCLUDE 'LCDInic.inc'&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;; code section&lt;BR /&gt;MyCode: SECTION&lt;BR /&gt;main:&lt;BR /&gt;_Startup:&lt;BR /&gt; LDHX #__SEG_END_SSTACK ; initialize the stack pointer&lt;BR /&gt; TXS&lt;BR /&gt;&lt;BR /&gt; ; Uncomment this function call after using Device Initialization&lt;BR /&gt; ; to use the generated code&lt;BR /&gt; JSR MCU_init&lt;BR /&gt; &lt;BR /&gt; ;¡¡¡¡¡ACA PODEMOS LLMAR A LA RUTINADE INICIO DEL LCD!!!!! &lt;BR /&gt; JSR LCDInic&lt;BR /&gt;&lt;BR /&gt; ;CLI ; enable interrupts&lt;BR /&gt;mainLoop:&lt;BR /&gt; ; Insert your code here&lt;BR /&gt; NOP&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Espero haberte entendido y que esto es lo que queiras ahcer. Puede q tngas q tener cuidado de donde estan los archivos y algunas cosas de sintaxis pero esta es la idea general.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 04:23:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-assembler-source-file-spanish/m-p/126327#M1040</guid>
      <dc:creator>Santa</dc:creator>
      <dc:date>2006-08-15T04:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ext IRQ for C in Code Warrior (spanish)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-assembler-source-file-spanish/m-p/126328#M1041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hola , no eh podido hacer que dentro de una rutina en C , en procesadores HC08 (en el &amp;nbsp;main),&amp;nbsp;cuando esta corriendo el programa &amp;nbsp;valla&amp;nbsp;a atender una interrupcion externa por IRQ,&amp;nbsp;&amp;nbsp;(Osea a menos que previamente &amp;nbsp;la invoque ej: "IRQ1INT();"&amp;nbsp;.).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Me gustaria una ayuda o un ejemplo en donde yo me pudiera basar , gracias.&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 03:07:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Relocatable-assembler-source-file-spanish/m-p/126328#M1041</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-09-01T03:07:15Z</dc:date>
    </item>
  </channel>
</rss>

