<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Generating SPI Communication without a Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4e2eb80123/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4e2eb80123/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/4e2eb80123/</id><updated>2021-08-26T18:47:54.118000Z</updated><subtitle>Recent posts to Generating SPI Communication without a Driver</subtitle><entry><title>Generating SPI Communication without a Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4e2eb80123/?limit=25#df8b/fa68" rel="alternate"/><published>2021-08-26T18:47:54.118000Z</published><updated>2021-08-26T18:47:54.118000Z</updated><author><name>bwayt</name><uri>https://forge.codesys.com/u/bwayt/</uri></author><id>https://forge.codesys.com8525ee1fd59350a24ac50bee51db0358de90647d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'd like to ask about that last part. Why do we specify speed in the SPI_master options when we have to specify it anyway when we call .transferExt?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generating SPI Communication without a Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4e2eb80123/?limit=25#df8b" rel="alternate"/><published>2021-08-26T06:43:49.072000Z</published><updated>2021-08-26T06:43:49.072000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com4ae901abc7c888fd0510a096654625f9227248c3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
check this example here:&lt;br/&gt;
c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\4.1.0.0\Examples\PiFace_FB.project&lt;br/&gt;
this example should show how you use a SPI device from your project without having a library.&lt;br/&gt;
Do not forget to reduce SPI diMaxSpeed, &lt;br/&gt;
this leads sometimes to problems.&amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generating SPI Communication without a Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4e2eb80123/?limit=25#da76/350b" rel="alternate"/><published>2021-08-25T22:30:25.046000Z</published><updated>2021-08-25T22:30:25.046000Z</updated><author><name>bwayt</name><uri>https://forge.codesys.com/u/bwayt/</uri></author><id>https://forge.codesys.com585d3255085e376f4f074a0a33c9fd476f50c961</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;(SPI is enabled on the RPi)&lt;br/&gt;
I took a look at that link and gave it a try, creating a class that extended SPI.&lt;br/&gt;
It seems that CODESYS wants BeforeWriteOutputs, AfterReadInputs, and Initialize to be overloaded with a call to SUPER. Wouldn't that mean I'd also have to write the .xml file? Is there any way to get around this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generating SPI Communication without a Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4e2eb80123/?limit=250#da76" rel="alternate"/><published>2021-08-24T21:28:29.535000Z</published><updated>2021-08-24T21:28:29.535000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.comcf7687b3a29ca893d48bad53e012716cbf13398a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;myabe this topic provides you some extra help?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forge.codesys.com/forge/talk/Runtime/thread/81d88db728/#8322"&gt;https://forge.codesys.com/forge/talk/Runtime/thread/81d88db728/#8322&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Generating SPI Communication without a Driver</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4e2eb80123/?limit=25#53d5" rel="alternate"/><published>2021-08-24T20:08:07.774000Z</published><updated>2021-08-24T20:08:07.774000Z</updated><author><name>bwayt</name><uri>https://forge.codesys.com/u/bwayt/</uri></author><id>https://forge.codesys.comb897baad62efc24c94a8e90219d76047715b2807</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all,&lt;br/&gt;
I am trying to initiate SPI communication with a LS3667R buffer board (https://lsicsi.com/datasheets/LS7366R.pdf). Following suggestions for my previous post (https://forge.codesys.com/forge/talk/Runtime/thread/80ca780e26/?limit=25#7ed3/bb06), I decided to execute SPI communication directly in my PLC_PRG with a call to a "read" and "write" method; these methods in turn (ideally) start SPI communication using&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;SPI_master.transferExt(pabyTxBuffer, pabyRxBuffer, udiLen, uiDelayus, udiSpeedHz)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Putting a scope on the RPi4's MOSI and SCLK lines shows nothing. Am I way off in my approach?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>