<?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>MPC5xxx中的主题 SPI / RTC Write Problem</title>
    <link>https://community.nxp.com/t5/MPC5xxx/SPI-RTC-Write-Problem/m-p/738660#M10165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am working on #5674F and #RTC #DS1390. Spi.c and spi.h files that I wrote are ready to use. I have initialized&amp;nbsp; associated spi registers/pins and make it work. I can send data and I can see &lt;EM&gt;&lt;STRONG&gt;clock, data and cs&lt;/STRONG&gt; &lt;/EM&gt;signals on the ossiloscope in a correct way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, &lt;EM&gt;&lt;STRONG&gt;I cannot #write data and I cannot configure&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;RTC&lt;/STRONG&gt;&lt;/EM&gt;. According to&amp;nbsp;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;SPAN&gt;DS1390's&lt;/SPAN&gt;&amp;nbsp; data sheet, I &lt;STRONG&gt;&lt;EM&gt;read data with 00h, 01h, 02h, .. 0Fh commands and see the result&lt;/EM&gt;&lt;/STRONG&gt; in register(clock information) but when I write with the commands 82h, 83h, .. etc&amp;nbsp; and try to configure RTC, nothing happens. &lt;STRONG&gt;&lt;EM&gt;It doesn't allow me to write and make any changes&lt;/EM&gt;&lt;/STRONG&gt;. Also I still and always see the same result (the result that comes after read command).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data send:&lt;/STRONG&gt; 0200h (read address - reads minutes) &lt;STRONG&gt;answer:&lt;/STRONG&gt; 0x00000003&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data send:&lt;/STRONG&gt; 8244h&amp;nbsp;&lt;SPAN&gt;(write address - writes minute information)&amp;nbsp;&lt;STRONG&gt;answer:&lt;/STRONG&gt; 0x00000003 &lt;STRONG&gt;expected answer:&lt;/STRONG&gt; 0x00000044&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;after write command also I send read command again&amp;nbsp;0200h and answer didn't changed (0x00000003)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I slove this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2017 13:37:46 GMT</pubDate>
    <dc:creator>salmanc</dc:creator>
    <dc:date>2017-12-21T13:37:46Z</dc:date>
    <item>
      <title>SPI / RTC Write Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-RTC-Write-Problem/m-p/738660#M10165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am working on #5674F and #RTC #DS1390. Spi.c and spi.h files that I wrote are ready to use. I have initialized&amp;nbsp; associated spi registers/pins and make it work. I can send data and I can see &lt;EM&gt;&lt;STRONG&gt;clock, data and cs&lt;/STRONG&gt; &lt;/EM&gt;signals on the ossiloscope in a correct way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, &lt;EM&gt;&lt;STRONG&gt;I cannot #write data and I cannot configure&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;RTC&lt;/STRONG&gt;&lt;/EM&gt;. According to&amp;nbsp;&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;SPAN&gt;DS1390's&lt;/SPAN&gt;&amp;nbsp; data sheet, I &lt;STRONG&gt;&lt;EM&gt;read data with 00h, 01h, 02h, .. 0Fh commands and see the result&lt;/EM&gt;&lt;/STRONG&gt; in register(clock information) but when I write with the commands 82h, 83h, .. etc&amp;nbsp; and try to configure RTC, nothing happens. &lt;STRONG&gt;&lt;EM&gt;It doesn't allow me to write and make any changes&lt;/EM&gt;&lt;/STRONG&gt;. Also I still and always see the same result (the result that comes after read command).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data send:&lt;/STRONG&gt; 0200h (read address - reads minutes) &lt;STRONG&gt;answer:&lt;/STRONG&gt; 0x00000003&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data send:&lt;/STRONG&gt; 8244h&amp;nbsp;&lt;SPAN&gt;(write address - writes minute information)&amp;nbsp;&lt;STRONG&gt;answer:&lt;/STRONG&gt; 0x00000003 &lt;STRONG&gt;expected answer:&lt;/STRONG&gt; 0x00000044&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;after write command also I send read command again&amp;nbsp;0200h and answer didn't changed (0x00000003)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I slove this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:37:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-RTC-Write-Problem/m-p/738660#M10165</guid>
      <dc:creator>salmanc</dc:creator>
      <dc:date>2017-12-21T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPI / RTC Write Problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-RTC-Write-Problem/m-p/738661#M10166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you use SPI mode 1 or 3 (CPHA=1)?&lt;/P&gt;&lt;P&gt;Also do you deassert /CS after write command is sent, before read command is issued?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:35:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-RTC-Write-Problem/m-p/738661#M10166</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2018-01-02T13:35:09Z</dc:date>
    </item>
  </channel>
</rss>

