<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to TLC1543 (AD converter) on ARPI600</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3f54a5bccd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3f54a5bccd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/3f54a5bccd/</id><updated>2020-02-27T15:38:06.464000Z</updated><subtitle>Recent posts to TLC1543 (AD converter) on ARPI600</subtitle><entry><title>TLC1543 (AD converter) on ARPI600</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3f54a5bccd/?limit=25#8b19" rel="alternate"/><published>2020-02-27T15:38:06.464000Z</published><updated>2020-02-27T15:38:06.464000Z</updated><author><name>filou</name><uri>https://forge.codesys.com/u/filou/</uri></author><id>https://forge.codesys.com7a066b845e7fd6f1b2f13da3eed151efcab3c929</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ingo,&lt;/p&gt;
&lt;p&gt;thanks for your advice!&lt;br/&gt;
Could you give me a small example how to manage the library CmpCharDevice using the GPIO devices in the linux sysfs (for example write 1 on the output GPIO16) ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TLC1543 (AD converter) on ARPI600</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3f54a5bccd/?limit=25#9b23" rel="alternate"/><published>2020-02-27T15:38:04.466000Z</published><updated>2020-02-27T15:38:04.466000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.com131a755a7419af97df2cdd56fea66d8e4c526b4e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What a shame. I guess the Uart Solution would have been of interest and use for some others, too.&lt;/p&gt;
&lt;p&gt;I guess that the only way out for you is a project specific one. You can use the library CmpCharDevice to configure and write to the GPIOs, using the GPIO devices in the linux sysfs.&lt;br/&gt;
Note, that you might have colitions with the GPIO driver if you use that in parallel. But that is just a bad feeling.&lt;/p&gt;
&lt;p&gt;Note, that this might cause a significant overhead, as you issue a linux system with every write operation.&lt;/p&gt;
&lt;p&gt;Gesendet von meinem LG-H870 mit Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TLC1543 (AD converter) on ARPI600</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3f54a5bccd/?limit=25#d11a" rel="alternate"/><published>2020-02-27T15:38:03.767000Z</published><updated>2020-02-27T15:38:03.767000Z</updated><author><name>filou</name><uri>https://forge.codesys.com/u/filou/</uri></author><id>https://forge.codesys.comd9afb098d250cc3d95647fd33287b2777b678493</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Ingo,&lt;/p&gt;
&lt;p&gt;unfortunately the serial interface (uart) is used for other things... (USB to UART for serial debugging but also as Xbee USB adapter).&lt;br/&gt;
The TLC1543 is connected directly to standard GPIO (16, 20 and 21). &lt;/p&gt;
&lt;p&gt;Do you have another idea to send the data faster with these GPIO?&lt;/p&gt;
&lt;p&gt;kind regards,&lt;br/&gt;
Philippe&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3380" rel="nofollow"&gt;ARPI600 Schematic.pdf &lt;span&gt;&lt;span&gt;[368.78 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TLC1543 (AD converter) on ARPI600</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3f54a5bccd/?limit=25#79d4" rel="alternate"/><published>2020-02-27T15:38:01.783000Z</published><updated>2020-02-27T15:38:01.783000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.com7251d93af185d9ee06ef2ebf60d9860dac603ff5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Phillipe,&lt;/p&gt;
&lt;p&gt;I don't know this board. But the documentation looks like there is a serial interface (uart) which is intended to be used with the Pi. What's the issue with this port?&lt;br/&gt;
Because if you could use it, your driver would be much less timing critical, as the UART takes care about the bit timings.&lt;/p&gt;
&lt;p&gt;Just in case the UART would do the trick:&lt;br/&gt;
I would recommend you to start with a function block that uses the UART by the library SysCom. If that works, I can help you to make a CODESYS driver out of it if you like.&lt;/p&gt;
&lt;p&gt;BR,&lt;br/&gt;
Ingo&lt;/p&gt;
&lt;p&gt;Gesendet von meinem LG-H870 mit Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>TLC1543 (AD converter) on ARPI600</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3f54a5bccd/?limit=25#fd0b" rel="alternate"/><published>2020-02-27T15:38:01.088000Z</published><updated>2020-02-27T15:38:01.088000Z</updated><author><name>filou</name><uri>https://forge.codesys.com/u/filou/</uri></author><id>https://forge.codesys.combb7eb722b976423d5e184038f186199d6432793c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm using the adapter board ARPi600 for Arduino on my RPI3 (&lt;a class="" href="https://www.waveshare.com/arpi600.htm" rel="nofollow"&gt;https://www.waveshare.com/arpi600.htm&lt;/a&gt;). &lt;br/&gt;
On this board, there is an AD converter (TLC1543 with several analog channel).&lt;/p&gt;
&lt;p&gt;I would like to control the TLC1543 (it's like a serial interface but no SPI) by using 3 GPIO (16 for the clock, 20 for the address and 21 for the DataOut).&lt;br/&gt;
The minimum task cycle with Codesys on the RPI3 is 400us.&lt;br/&gt;
I would like to send the command faster (with a highest clock speed), is-there any way?&lt;br/&gt;
Or a suggestion to help me?&lt;/p&gt;
&lt;p&gt;TLC1543: &lt;a class="" href="https://www.ti.com/lit/ds/symlink/tlc1543.pdf" rel="nofollow"&gt;https://www.ti.com/lit/ds/symlink/tlc1543.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;br/&gt;
Philippe&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>