<?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: SPI problem on MC9S08DZ128 and iLCD</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165021#M4770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;search in this site , i hope you will get&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.edaboard.com/forum31.html" rel="nofollow" target="_blank"&gt;http://www.edaboard.com/forum31.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 16:45:28 GMT</pubDate>
    <dc:creator>Vijaylaxmi</dc:creator>
    <dc:date>2011-02-15T16:45:28Z</dc:date>
    <item>
      <title>SPI problem on MC9S08DZ128 and iLCD</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165020#M4769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="lia-component-body lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First of all, please excuse me for my english, this is not my mother tongue...&lt;/P&gt;&lt;P&gt;I have a problem with SPI on MC9S08DZ128. I would like to make it communicating with an iLCD. Here are its datasheets :&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.demmel.com%2Fdownload%2Filcd%2Fspi_appnote.pdf" rel="nofollow" target="_blank"&gt;http://www.demmel.com/download/ilcd/spi_appnote.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.demmel.com%2Fdownload%2Filcd%2Filcd-color-commands.pdf" rel="nofollow" target="_blank"&gt;http://www.demmel.com/download/ilcd/ilcd-color-commands.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am able to write to the iLCD and use the commands I want. But I can't read from the iLCD. For example, it should send 0x06 as an ACK for each command....&lt;/P&gt;&lt;P&gt;I have noticed that on the appnote, the MOSI is at low level in idle state, but in my case it is high in idle state... what could be the reason ?&lt;/P&gt;&lt;P&gt;I have tried to send a "get data size to read command" but when there should be something on MISO, there isn't anything. The only answer I get is a byte that seems to be 0x01 every time I send 0xAA (this is the start of each command) but the MCU isn't able to read it.&lt;/P&gt;&lt;P&gt;What should I do please ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 23:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165020#M4769</guid>
      <dc:creator>hasaur</dc:creator>
      <dc:date>2010-11-24T23:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on MC9S08DZ128 and iLCD</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165021#M4770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;search in this site , i hope you will get&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.edaboard.com/forum31.html" rel="nofollow" target="_blank"&gt;http://www.edaboard.com/forum31.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 16:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165021#M4770</guid>
      <dc:creator>Vijaylaxmi</dc:creator>
      <dc:date>2011-02-15T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on MC9S08DZ128 and iLCD</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165022#M4771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check documentation for the status of MOSI should be registor setting for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note that sending the command does not mean you get the response - - -&lt;/P&gt;&lt;P&gt;you just sent the command to request and of course the MISO, does not show the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;make another write to cause the clock pulses to bring the response back - - - note some delay might be required&lt;/P&gt;&lt;P&gt;from the LCD before the next command to allow it's processor to have time to respond to the command&lt;/P&gt;&lt;P&gt;and que response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 09:30:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165022#M4771</guid>
      <dc:creator>Jim_P</dc:creator>
      <dc:date>2011-03-30T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: SPI problem on MC9S08DZ128 and iLCD</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165023#M4772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To interrogate the ACK response returned from the display, you will need to send a dummy (null) byte for each byte&amp;nbsp;to be returned.&amp;nbsp; I suspect that you are not doing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, there will need to be a delay of at least 4 microseconds between the completion of the command send sequence (SPRF flag set) and the send of the dummy byte, to give sufficient time for the display device to interpret the command and load the return register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While the SPI module remains enabled, I would expect that&amp;nbsp;MOSI&amp;nbsp;output would reflect the last bit state previously sent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is usually a good idea to post the relevant code to the forum so that any obvious problems can be pointed out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A final comment - perhaps the 8-bit forum would have been more appropriate for this thread since it concerns the operation of a hardware module, rather than a CW problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 07:19:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/SPI-problem-on-MC9S08DZ128-and-iLCD/m-p/165023#M4772</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-03-31T07:19:13Z</dc:date>
    </item>
  </channel>
</rss>

