<?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>Digital Signal ControllersのトピックRe: IIC communication problem with MC56F84763</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/IIC-communication-problem-with-MC56F84763/m-p/731564#M1165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Peter,&lt;/P&gt;&lt;P&gt;i think the reading process has issue.&lt;/P&gt;&lt;P&gt;This is the reading process:&lt;/P&gt;&lt;P&gt;1)set IIC transmit mode and master mode and write slave address with WRITE mode &amp;nbsp;ioctl(IIC_0, IIC_WRITE_DATA, 0x40);&lt;/P&gt;&lt;P&gt;2)write&amp;nbsp;PCF8574 address 0x41 for port reading as data with code IIC_0_write_byte(0x41);&lt;/P&gt;&lt;P&gt;3)send "repeat start command"&lt;/P&gt;&lt;P&gt;4)rewrite the slave IIC address and set read mode for example &amp;nbsp;ioctl(IIC_0, IIC_READ_DATA, 0x40);&lt;/P&gt;&lt;P&gt;5)read data normally&lt;/P&gt;&lt;P&gt;/* read data from PCF8574T */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ioctl(IIC_0, IIC_TX_RX_MODE, IIC_RECEIVE);&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2018 03:07:49 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2018-03-12T03:07:49Z</dc:date>
    <item>
      <title>IIC communication problem with MC56F84763</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/IIC-communication-problem-with-MC56F84763/m-p/731563#M1164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello, I'm working on control board with MC56F84763 (I'm using CW10.7 + Quickstart 2.6 to develop the application).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I faced problem with IIC interface. I'm able to write data to PCF8574 I/O Exander using following code (I'm not using ISR, just calling function in main()):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;/* initialize IIC write transaction with PCF8574 - address 0x40 for write */&lt;BR /&gt;&amp;nbsp; while (ioctl(IIC_0, IIC_GET_BUS_BUSY, NULL))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;/* select transmit mode */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ioctl(IIC_0, IIC_TX_RX_MODE, IIC_TRANSMIT);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ioctl(IIC_0, IIC_MASTER_SLAVE_MODE, IIC_MASTER);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/* write I2C address */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;ioctl(IIC_0, IIC_WRITE_DATA, 0x40);&lt;BR /&gt;&amp;nbsp;archDelay(10000);&lt;BR /&gt;&amp;nbsp; while (ioctl(IIC_0, IIC_GET_RX_ACK, NULL))&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;/* write data */&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp;ioctl(IIC_0, IIC_WRITE_DATA, LED_config);&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; min-height: 0px; orphans: 2; overflow: visible; overflow-x: visible; position: static; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;archDelay(10000);&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="background-attachment: scroll; background-clip: border-box; background-color: transparent; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; min-height: 0px; orphans: 2; overflow: visible; overflow-x: visible; position: static; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; while (ioctl(IIC_0, IIC_GET_RX_ACK, NULL))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ioctl(IIC_0, IIC_MASTER_SLAVE_MODE, IIC_SLAVE);&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;I tried to use similar function for IIC read but it does not work:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; while (ioctl(IIC_0, IIC_GET_BUS_BUSY, NULL))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* select transmit mode */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ioctl(IIC_0, IIC_TX_RX_MODE, IIC_TRANSMIT);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; ioctl(IIC_0, IIC_MASTER_SLAVE_MODE, IIC_MASTER);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* write I2C address - PCF8574 address 0x41 for port reading */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IIC_0_write_byte(0x41);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; /* read data from PCF8574T */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ioctl(IIC_0, IIC_TX_RX_MODE, IIC_RECEIVE);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;archDelay(10000);&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Button_temp_1 = ioctl(IIC_0, IIC_READ_DATA, NULL);&lt;P&gt;&lt;/P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ioctl(IIC_0, IIC_MASTER_SLAVE_MODE, IIC_SLAVE);&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Any idea what's wrong in IIC read function?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Thanks in advance&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Peter&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 20:15:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/IIC-communication-problem-with-MC56F84763/m-p/731563#M1164</guid>
      <dc:creator>petercernan</dc:creator>
      <dc:date>2018-03-05T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: IIC communication problem with MC56F84763</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/IIC-communication-problem-with-MC56F84763/m-p/731564#M1165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Peter,&lt;/P&gt;&lt;P&gt;i think the reading process has issue.&lt;/P&gt;&lt;P&gt;This is the reading process:&lt;/P&gt;&lt;P&gt;1)set IIC transmit mode and master mode and write slave address with WRITE mode &amp;nbsp;ioctl(IIC_0, IIC_WRITE_DATA, 0x40);&lt;/P&gt;&lt;P&gt;2)write&amp;nbsp;PCF8574 address 0x41 for port reading as data with code IIC_0_write_byte(0x41);&lt;/P&gt;&lt;P&gt;3)send "repeat start command"&lt;/P&gt;&lt;P&gt;4)rewrite the slave IIC address and set read mode for example &amp;nbsp;ioctl(IIC_0, IIC_READ_DATA, 0x40);&lt;/P&gt;&lt;P&gt;5)read data normally&lt;/P&gt;&lt;P&gt;/* read data from PCF8574T */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ioctl(IIC_0, IIC_TX_RX_MODE, IIC_RECEIVE);&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 03:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/IIC-communication-problem-with-MC56F84763/m-p/731564#M1165</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2018-03-12T03:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: IIC communication problem with MC56F84763</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/IIC-communication-problem-with-MC56F84763/m-p/731565#M1166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #51626f; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Xiangjun Rong&lt;/SPAN&gt;, thank you very much for your feedback. I was focused to other parts of my application in last days. Let me try your proposal in next two working days. I'll come back. Have a nice day. Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:58:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/IIC-communication-problem-with-MC56F84763/m-p/731565#M1166</guid>
      <dc:creator>petercernan</dc:creator>
      <dc:date>2018-03-13T20:58:00Z</dc:date>
    </item>
  </channel>
</rss>

