<?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>Kinetis MicrocontrollersのトピックRe: kwikstik SLD question</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145857#M4</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my code and its making good progress cause all i need is to be able to write to the MCG_C1 register, but it wont accept the value meaning it executes instruction but doesnt change the value it stays at 0x4 instead of updating to 0x6. If i can write the MCG_C1 im good, cause i can manually change it after my code goes through and it pops the LCD right on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.section .sdata&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .align 2&lt;BR /&gt;VAL1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x6&lt;BR /&gt;VAL2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x40000000&lt;BR /&gt;VAL3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x88b500c7&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .text&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .align 4&lt;BR /&gt;&lt;BR /&gt;SIM_SCG3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x40048030&lt;BR /&gt;MCG_IRCLKEN:&amp;nbsp;&amp;nbsp; .word 0x40064000&lt;BR /&gt;LCD_GCR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x400be000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .global main&lt;BR /&gt;main:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R1,SIM_SCG3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R2,VAL2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STR R2,[R1]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R1,LCD_GCR&amp;nbsp;&amp;nbsp; //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R2,VAL3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STR R2,[R1]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R1,MCG_IRCLKEN&amp;nbsp; //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R2,VAL1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STR R2,[R1]&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; NOP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .END&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 06:22:55 GMT</pubDate>
    <dc:creator>derill03</dc:creator>
    <dc:date>2012-03-14T06:22:55Z</dc:date>
    <item>
      <title>kwikstik SLD question</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145854#M1</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I can get the segments to light using the debugger and forcing the values into the correct registers. But I can not get my assembly code to write the values to the registers? I know im writing them correctly and to the correct address but I don't get why they wont write into the registers, any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also one line after the write instruction it sends me into an interrupt, and when I step back out of the interrupt it goes to next instruction but the registers are unchanged. I would do this in C but were using this MCU in school and we are forced to use assembly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 03:32:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145854#M1</guid>
      <dc:creator>derill03</dc:creator>
      <dc:date>2012-03-14T03:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: kwikstik SLD question</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145855#M2</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;It sounds as though the SLCD module has not been enabled - there will always be an access error (and subsequent irq) when one tries to read/write a disabled module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SIM_SCGC3 | SIM_SCGC3_SLCD;&lt;/STRONG&gt; must be done first to enable it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is set bit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0100 0000 0000 0000 0000 0000 0000 0000&lt;/STRONG&gt; at the address &lt;STRONG&gt;0x40048030&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;using this MCU in school and we are forced to use assembly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do they also force you to wear polyester suits with exaggerated lapels and flaired trousers which were also the rage in the 1970s :smileywink:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 04:05:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145855#M2</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2012-03-14T04:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: kwikstik SLD question</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145856#M3</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Not quite lol&lt;BR /&gt;&lt;BR /&gt;Ill try making sure its enabled first thanks for reply&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 05:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145856#M3</guid>
      <dc:creator>derill03</dc:creator>
      <dc:date>2012-03-14T05:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: kwikstik SLD question</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145857#M4</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my code and its making good progress cause all i need is to be able to write to the MCG_C1 register, but it wont accept the value meaning it executes instruction but doesnt change the value it stays at 0x4 instead of updating to 0x6. If i can write the MCG_C1 im good, cause i can manually change it after my code goes through and it pops the LCD right on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.section .sdata&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .align 2&lt;BR /&gt;VAL1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x6&lt;BR /&gt;VAL2:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x40000000&lt;BR /&gt;VAL3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x88b500c7&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .text&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; .align 4&lt;BR /&gt;&lt;BR /&gt;SIM_SCG3:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x40048030&lt;BR /&gt;MCG_IRCLKEN:&amp;nbsp;&amp;nbsp; .word 0x40064000&lt;BR /&gt;LCD_GCR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .word 0x400be000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .global main&lt;BR /&gt;main:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R1,SIM_SCG3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R2,VAL2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STR R2,[R1]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R1,LCD_GCR&amp;nbsp;&amp;nbsp; //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R2,VAL3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STR R2,[R1]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R1,MCG_IRCLKEN&amp;nbsp; //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR R2,VAL1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STR R2,[R1]&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; NOP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .END&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 06:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145857#M4</guid>
      <dc:creator>derill03</dc:creator>
      <dc:date>2012-03-14T06:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: kwikstik SLD question</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145858#M5</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;The registers in the MCG block are byte wide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try writing the value 0x06 using a byte write rather than a long word write.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some 8 bit wide peripherals don't like being written as long words and will possibly ignore the attempt.. Also, when they don't mind it, you will be setting the value of the first 4 registers in one go and not just MCG_C1 (that is you will be writing 0x00 to&amp;nbsp;MCG_C1, 0x00 to&amp;nbsp;MCG_C2, 0x00 to&amp;nbsp;MCG_C3 and 0x06 to&amp;nbsp;MCG_C4). No idea what that would do but probably not what is expected....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 04:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/kwikstik-SLD-question/m-p/145858#M5</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2012-03-15T04:32:08Z</dc:date>
    </item>
  </channel>
</rss>

