<?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>LPC MicrocontrollersのトピックRe: LPC 4322 interface with AD7793 (24 bit resolution)</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586420#M21430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Elamkumaran on Thu Oct 10 23:39:33 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Martin for the detailed response. Based on my understanding here i have provided the sequence. Is my understanding correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make slave select pin low using GPIO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apply clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Transmit dummy first 8 bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check SPIF &amp;amp; Read Status Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read Data Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Transmit dummy second 8 bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check SPIF &amp;amp; Read Status Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read Data Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Transmit dummy third 8 bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check SPIF &amp;amp; Read Status Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read Data Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remove clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont want to make GPIO select signal high since i need to read 24 bit continuously from the AD7793. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:11:09 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:11:09Z</dc:date>
    <item>
      <title>LPC 4322 interface with AD7793 (24 bit resolution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586416#M21426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Elamkumaran on Thu Oct 10 07:16:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=#03f]Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using AD7793 SPI interface to connect with LPC4322 controller. LPC4322 act as a master. AD7793 has 24 bit data register. From LPC4322, we want to receive all the 24 bits. How we can do it? It will be of great help if you can able to tell with some example.[/color]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:11:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586416#M21426</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 4322 interface with AD7793 (24 bit resolution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586417#M21427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Thu Oct 10 07:21:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;why not just use 3 times 8 bit reads? Or 2 times 12 bit reads?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:11:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586417#M21427</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 4322 interface with AD7793 (24 bit resolution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586418#M21428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Elamkumaran on Thu Oct 10 07:31:01 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply. AD7793 transmit 24 bit in one shot. It will not transmit 3 times 8 bit data. So, in my controller i need to read all the 24 bits in one shot. Is there anyway in software i can control? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tahnks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:11:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586418#M21428</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 4322 interface with AD7793 (24 bit resolution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586419#M21429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Thu Oct 10 08:06:19 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Elam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just read 3 times 8 bits. Even when AD7793 (which i don't know) transmits 24 bits in one shot, the LPC will receive 3 times 8 bits in one shot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Master creates the clock signal. There is no "framing" signal, which say that resulting data is really 24 bits or 3 times 8 bits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pay attention: The CS will be changed on start of command and CS goes back to idle at end of command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What data is exchanged between, is not really relevant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have e.g. a SD card which sends me 512 bytes (1 sector full of data). I can read 512 times 8 bit. Or i can read 256 times 16 bits.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are so many SPI devices, some use e.g. multiple fields, one after the another. LPC can't have each combination in hardware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They only support certain transfer sizes and when you need more, you must just use multiple read/writes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pay attention that only when you send one byte, you will receive one byte.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want only read something from slave, you must send the same amount of dummy bytes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Each sent byte will be producing x clock cycles on SPI. When you sent 1 bit, at the same time you receive 1 bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:11:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586419#M21429</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 4322 interface with AD7793 (24 bit resolution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586420#M21430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Elamkumaran on Thu Oct 10 23:39:33 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Martin for the detailed response. Based on my understanding here i have provided the sequence. Is my understanding correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make slave select pin low using GPIO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apply clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Transmit dummy first 8 bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check SPIF &amp;amp; Read Status Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read Data Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Transmit dummy second 8 bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check SPIF &amp;amp; Read Status Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read Data Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Transmit dummy third 8 bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check SPIF &amp;amp; Read Status Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read Data Register&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remove clock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont want to make GPIO select signal high since i need to read 24 bit continuously from the AD7793. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586420#M21430</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 4322 interface with AD7793 (24 bit resolution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586421#M21431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rocketdawg on Fri Oct 11 08:34:33 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Elamkumaran&lt;/STRONG&gt;&lt;BR /&gt;Thanks Martin for the detailed response. Based on my understanding here i have provided the sequence. Is my understanding correct?&lt;BR /&gt;&lt;BR /&gt;Make slave select pin low using GPIO&lt;BR /&gt;Apply clock&lt;BR /&gt;Remove clock&lt;BR /&gt;I dont want to make GPIO select signal high since i need to read 24 bit continuously from the AD7793.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean "clock"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you are disabling the AD7793 internal clock and providing providing an external CLK then set up a timer or PWM to run this clock all the time (disable if going into sleep)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think you mean that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You do not need to do anything with SCLK.&amp;nbsp; placing data into the transmit register will automatically start the SCLK, to clock out&amp;amp;in the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you might want to reconsider leaving CS (chip select) high all the time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setting it low when not in use protects the device from inadvertent writes or noise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This device can only convert at max 470 Hz, if you continuously read, you will just be reading the same data over and over.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;check out the DOUT/RDY pin.&amp;nbsp; You could wire that to both the SPI and another pin such as an extern interrupt pin.&amp;nbsp; Then you only read the device when a conversion is done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:11:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586421#M21431</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC 4322 interface with AD7793 (24 bit resolution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586422#M21432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Elamkumaran on Mon Oct 14 02:19:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You for the help. I did mean the SCLK. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:11:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-4322-interface-with-AD7793-24-bit-resolution/m-p/586422#M21432</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:11:10Z</dc:date>
    </item>
  </channel>
</rss>

