<?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>CodeWarrior for MCUのトピックRe: Data exchange using XGATE and SCI module according to AN3144. Help needed related to MC9S12XEP10</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184873#M6412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is quite weird. I made test project with your code fragments pasted in. It works in simulator and certainly should work in MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 01:18:27 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2012-08-03T01:18:27Z</dc:date>
    <item>
      <title>Data exchange using XGATE and SCI module according to AN3144. Help needed related to MC9S12XEP100!</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184870#M6409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure should I post this to 16-bit microcontrollers area, or here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I am trying to use XGATE to handle the I/O with the SCI module as per app note AN3144. The MCU that I'm programming is M9S12XEP100 and ultimately I am trying to exchange data trough RS-232 between my PC and the evaluation board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am not able to get the XGATE/SCI to operate even with the Full Chip Simulation of CodeWarrior. Nor am I able to do it with the real chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens is that the XGATE executes only once the SCI_Thread() interrupt handler, and then just has BRK instructions. Still, I think that there should be at least one '*' character transferred to the terminal window. But the terminal wondow doesn't even appear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get the XGATE to repeat the SCI_Thread() interrupt handler? And how do I open the terminal window?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the main.c and xgate.cxgate source files (I deleted some of the unused interrupt vectors on xgate.cxgate to keep the text under the 20 000 character limit):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;main.c&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#include &amp;lt;hidef.h&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* common defines and macros */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#include "MC9S12XEP100.h"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* derivative-specific definitions */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#pragma LINK_INFO DERIVATIVE "mc9s12xep100"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#include &amp;lt;string.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#include "xgate.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#pragma push&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;/* this variable definition is to demonstrate how to share data between XGATE and S12X */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#pragma DATA_SEG SHARED_DATA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;volatile int shared_counter; /* volatile because both cores are accessing it. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;/* Two stacks in XGATE core3 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#pragma DATA_SEG XGATE_STK_L&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;word XGATE_STACK_L[1];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#pragma DATA_SEG XGATE_STK_H&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;word XGATE_STACK_H[1];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#pragma pop&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#define ROUTE_INTERRUPT(vec_adr, cfdata)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; INT_CFADDR= (vec_adr) &amp;amp; 0xF0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; INT_CFDATA_ARR[((vec_adr) &amp;amp; 0x0F) &amp;gt;&amp;gt; 1]= (cfdata)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#define SCI0_VEC 0xD6 // vector address= 2 * channel id&amp;nbsp;&amp;nbsp; Channel 6B - SCI0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;static void SetupXGATE(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; /* initialize the XGATE vector block and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set the XGVBR register to its start address */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; XGVBR= (unsigned int)(void*__far)(XGATE_VectorTable - XGATE_VECTOR_OFFSET);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; /* switch SCI0 interrupt to XGATE */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; ROUTE_INTERRUPT(SCI0_VEC, 0x81); /* RQST=1 and PRIO=1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; /* when changing your derivative to non-core3 one please remove next five lines */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; XGISPSEL= 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; XGISP31= (unsigned int)(void*__far)(XGATE_STACK_L + 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; XGISPSEL= 2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; XGISP74= (unsigned int)(void*__far)(XGATE_STACK_H + 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; XGISPSEL= 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; /* enable XGATE mode and interrupts */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; XGMCTL= 0xFBC1; /* XGE | XGFRZ | XGIE */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; /* force execution of software trigger 0 handler */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;// XGSWT= 0x0101;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;void SetupIO(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; //We want to have 9 600 baud rate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; //f_BUS = 4 MHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; //SCI Baud Rate = f_BUS /(16*SBR)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; //=&amp;gt;SBR = 26 = 0x1A =&amp;gt; SCI Baud Rate = 9615 (0.156 % error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; SCI0BDH = 0x00;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; SCI0BDL = 0x1A;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; //SCI0CR1 = SCI0CR1_PE_MASK;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; SCI0CR2 = (SCI0CR2_TE_MASK);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; SCI0CR2 = SCI0CR2_TIE_MASK;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;void main(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; /* put your own code here */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;EnableInterrupts;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;SetupXGATE();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;SetupIO();&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; 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;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _FEED_COP(); /* feeds the dog */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; } /* loop forever */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; /* please make sure that you never leave main */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;xgate.cxgate:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#include &amp;lt;hidef.h&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* common defines and macros */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#include "xgate.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#include "MC9S12XEP100.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;// put your handler variables here&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;typedef struct {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; int counter;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;} MyDataType;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;static MyDataType MyData= {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;// interrupt handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;interrupt void SoftwareTrigger0_Handler(MyDataType* __restrict pData) {&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; // put your own code here&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; pData-&amp;gt;counter++;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; if (pData-&amp;gt;counter &amp;gt; 100)&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pData-&amp;gt;counter= 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; shared_counter++;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;//interrupt handler for SCI0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;interrupt void SCI_Thread(void) {&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; SCI0SR1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; SCI0DRL = '*';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;// interrupt handler for all others&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;interrupt void ErrorHandler(int dataptr) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; int chanNum= dataptr;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; asm BRK;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;#pragma CONST_SEG XGATE_VECTORS&amp;nbsp; /* assign the vector table in separate segment for dedicated placement in linker parameter file */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;const XGATE_TableEntry XGATE_VectorTable[] = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Channel # = Vector address / 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; /* channel 0..8 are not used, first used must match macro XGATE_VECTOR_OFFSET in xgate.h */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; {ErrorHandler, 0x09},&amp;nbsp; // Channel 09 - Reserved&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'courier new,courier';"&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; {ErrorHandler, 0x38},&amp;nbsp; // Channel 38 - XGATE Software Trigger 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; {(XGATE_Function)SoftwareTrigger0_Handler, (int)&amp;amp;MyData},&amp;nbsp; // Channel 39 - XGATE Software Trigger 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; {ErrorHandler, 0x3A},&amp;nbsp; // Channel 3A - Periodic Interrupt Timer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'courier new,courier';"&gt;... &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; {ErrorHandler, 0x6A},&amp;nbsp; // Channel 6A - SCI1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; {(XGATE_Function)SCI_Thread, 0x6B},&amp;nbsp; // Channel 6B - SCI0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; {ErrorHandler, 0x6C},&amp;nbsp; // Channel 6C - SPI0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp;....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;&amp;nbsp; {ErrorHandler, 0x79},&amp;nbsp; // Channel 79 - IRQ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new,courier';"&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 18:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184870#M6409</guid>
      <dc:creator>utwig</dc:creator>
      <dc:date>2012-08-01T18:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data exchange using XGATE and SCI module according to AN3144. Help needed related to MC9S12XEP10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184871#M6410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens is that you keep SCI transmitter disabled:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; SCI0CR2 = (SCI0CR2_TE_MASK);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; SCI0CR2 = SCI0CR2_TIE_MASK;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 12:52:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184871#M6410</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-08-02T12:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data exchange using XGATE and SCI module according to AN3144. Help needed related to MC9S12XEP10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184872#M6411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that is true!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, fixing that did not fix the problem... Still the same situation except the trasmitter is on according to the control bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The XGATE goes to BRK instruction after xgate.cgate line: &lt;FONT face="courier new,courier"&gt;SCI0DRL = '*';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 19:51:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184872#M6411</guid>
      <dc:creator>utwig</dc:creator>
      <dc:date>2012-08-02T19:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data exchange using XGATE and SCI module according to AN3144. Help needed related to MC9S12XEP10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184873#M6412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is quite weird. I made test project with your code fragments pasted in. It works in simulator and certainly should work in MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 01:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184873#M6412</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-08-03T01:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data exchange using XGATE and SCI module according to AN3144. Help needed related to MC9S12XEP10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184874#M6413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I got the SCI working with the evaluation board and the serial port with my code. But, still CodeWarrior won't open the terminal window when I try to do a Full Chip simulation, which is quite strange. With your code the terminal window opens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 14:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184874#M6413</guid>
      <dc:creator>utwig</dc:creator>
      <dc:date>2012-08-03T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data exchange using XGATE and SCI module according to AN3144. Help needed related to MC9S12XEP10</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184875#M6414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can opern terminal window using Component-&amp;gt;Open menu in debugger. To make terminal window opening automatically you need to save debugger window layout. To do so use Window-&amp;gt;Layout-&amp;gt;Store manu and overwrite C_Layout.hwl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 15:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Data-exchange-using-XGATE-and-SCI-module-according-to-AN3144/m-p/184875#M6414</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-08-03T15:32:54Z</dc:date>
    </item>
  </channel>
</rss>

