<?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>8-bit MicrocontrollersのトピックRe: A problem with LIN on HC908QL4</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-problem-with-LIN-on-HC908QL4/m-p/126203#M979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Try reseting the interrupt flag immediately after the interrupt. case 0x2CU: SLCS_SLCF = 1U; /* ID received correctly */ if(SLCID==0x61) // my Slave-Message ID { etc.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 May 2010 17:52:12 GMT</pubDate>
    <dc:creator>btbhass</dc:creator>
    <dc:date>2010-05-07T17:52:12Z</dc:date>
    <item>
      <title>A problem with LIN on HC908QL4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-problem-with-LIN-on-HC908QL4/m-p/126202#M978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to establish the LIN communication on HC908QL4. I used the LIN908QL4 Driver software provided by Motorola, that I've downloaded from this Freescale site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There were 2 messages to implement - one from Master to Slave and one from Slave to Master.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the transmission is disabled then I can receive succesfuly the message sent from Master to HC908QL4, but as soon as I enable the transmission (uncomment the appropriate code in SLIC interrupt routine) I cannot transmit any message from Slave to Master and also cannot receive any more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In SLIC interrupt routine there is a case 0x2C - "ID received correctly". Here I use my code to transmit the data to Master:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;case 0x2C:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(SLCID==0x61) // my Slave-Message ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLCD0 = 5; // some test data (4 bytes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLCD1 = 129;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLCD2 = 1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLCD3 = 2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SLCDLC = 0xC3; // Write DLC code to start TX - Checksum Standard, 4 bytes to transmit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After this is done, the SLIC interrupts stop to work. As far as I know the transmission line goes simply to low (dominant) state and that's all. Even the Master messages don't go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Theoretically the next thing that should happen should be the interrupt with case 0x08: TX buffer empty, checksum sent or case 0x0C: TX buffer empty, but it happens never.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this something wrong with hardware or I make simply a software error (i.e. don't enable something?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yac.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 13:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/A-problem-with-LIN-on-HC908QL4/m-p/126202#M978</guid>
      <dc:creator>Yac</dc:creator>
      <dc:date>2006-08-10T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: A problem with LIN on HC908QL4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-problem-with-LIN-on-HC908QL4/m-p/126203#M979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Try reseting the interrupt flag immediately after the interrupt. case 0x2CU: SLCS_SLCF = 1U; /* ID received correctly */ if(SLCID==0x61) // my Slave-Message ID { etc.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 17:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/A-problem-with-LIN-on-HC908QL4/m-p/126203#M979</guid>
      <dc:creator>btbhass</dc:creator>
      <dc:date>2010-05-07T17:52:12Z</dc:date>
    </item>
  </channel>
</rss>

