<?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>topic Re: SSP1 LPC1857 Transmitt problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP1-LPC1857-Transmitt-problem/m-p/525412#M8048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by manoS on Tue Mar 15 22:17:24 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please respond to guide through?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:15:15 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:15:15Z</dc:date>
    <item>
      <title>SSP1 LPC1857 Transmitt problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP1-LPC1857-Transmitt-problem/m-p/525411#M8047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by manoS on Thu Mar 10 02:01:52 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using SSP1 in SPI mode to communicate with ADC. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1857 is in master mode. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to send 0xFF 15 times to perform software reset on connected slave.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CPOL=0;CPHA=0 (as mentioned in ADC data sheet).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SPI Clock = 2MHz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SSEL is configured as GPIO to switch the chip select so as to continuously send 0xFF to chip set over SPI interface as suggested in &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.lpcware.com/content/forum/ssp-port-problem-spi-mode&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following is code snippet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;

uint8_t uccount =0; //To check no. of bytes sent
uint8_t *;ucfTx_Buf;//This points to array containing 0xFF 15 times


while (uccount != 16)
{

ADC_SSP_Select();//SSEL pulled low delebrately b4 every transmission

if (uccount == 0)
{
SSP_SendData((LPC_SSPn_Type*)ADC_SSP,0xFF);

}
else
{
if (ADC_SSP-&amp;gt;SR &amp;amp; SSP_SR_TNF)
{
SSP_SendData((LPC_SSPn_Type*)ADC_SSP,*ucTx_Buf);
ucfTx_Buf++;
count++;
}


}

if (( ADC_SSP -&amp;gt; RIS) &amp;amp; SSP_RIS_ROR)//It never goes into this condition
{
lpc_printf("ROR=%x\r\n",ADC_SSP-&amp;gt;RIS );
}


if (( USED_SSP_CS55XX -&amp;gt; RIS) &amp;amp; SSP_IMSC_RT)//It never goes into this condition
{
lpc_printf("RT=%x\r\n",USED_SSP_CS55XX-&amp;gt;RIS );
}



while(ADC_SSP-&amp;gt;SR &amp;amp; SSP_SR_RNE
{
lpc_printf("R=0x%x\r\n",SSP_ReceiveData((LPC_SSPn_Type*)ADC_SSP));
}

}


&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For this code, when I see on hyper terminal it shows that all the 15 bytes are successfully sent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when seen on digital oscilloscope it shows only 10 bytes being sent after which SSEL line goes high again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please help me find what be the possible reason for not sending rest of the bytes on actual lines when on hyper terminal it shows that all data has been sent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP1-LPC1857-Transmitt-problem/m-p/525411#M8047</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSP1 LPC1857 Transmitt problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP1-LPC1857-Transmitt-problem/m-p/525412#M8048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by manoS on Tue Mar 15 22:17:24 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please respond to guide through?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:15:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP1-LPC1857-Transmitt-problem/m-p/525412#M8048</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: SSP1 LPC1857 Transmitt problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SSP1-LPC1857-Transmitt-problem/m-p/525413#M8049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:04:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SSP1-LPC1857-Transmitt-problem/m-p/525413#M8049</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:04:38Z</dc:date>
    </item>
  </channel>
</rss>

