<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.kerhuel.eu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tom</id>
	<title>Lubin KERHUEL website - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.kerhuel.eu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tom"/>
	<link rel="alternate" type="text/html" href="https://www.kerhuel.eu/wiki/Special:Contributions/Tom"/>
	<updated>2026-04-29T19:55:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.kerhuel.eu/w/index.php?title=DsPIC_Block/SPI_Input_Output&amp;diff=607</id>
		<title>DsPIC Block/SPI Input Output</title>
		<link rel="alternate" type="text/html" href="https://www.kerhuel.eu/w/index.php?title=DsPIC_Block/SPI_Input_Output&amp;diff=607"/>
		<updated>2009-03-11T18:18:14Z</updated>

		<summary type="html">&lt;p&gt;Tom: /* Wait for incomming data (slave mode) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Block_SPI_Input_Output.png|thumb|rght|Block SPI Input/Output]]&lt;br /&gt;
Input-Output Driver for SPI module&lt;br /&gt;
&lt;br /&gt;
The SPI Input-Output block can be configured as an input for SPI data, as an SPI output, or as both Input-Output. The SPI pin can be disabled after reading or sending data allowing the pin tu be used as a digital output (usefull if weird protocole is used)&lt;br /&gt;
&lt;br /&gt;
=Dialog Box Parameters=&lt;br /&gt;
[[Image:Block_SPIInputOutput_DialogBox.png|thumb|right|450px|SPI Input Output Dialog]]&lt;br /&gt;
==n° SPI==&lt;br /&gt;
SPI used&lt;br /&gt;
&lt;br /&gt;
==SPI Input==&lt;br /&gt;
If checked, SPI data will be read This add one output to the Simulink block.&lt;br /&gt;
&lt;br /&gt;
==Wait for previous operation to finish, and Reset before Read==&lt;br /&gt;
Wait for previous operation to finish, and Reset before Read&lt;br /&gt;
&lt;br /&gt;
==SPI Output==&lt;br /&gt;
When checked, SPI data will be written to the SPI pin. This add one input to the Simulink block.&lt;br /&gt;
&lt;br /&gt;
==Special SPI==&lt;br /&gt;
Allow to disable SPI pin function and to use theses pin as digital input/output.&lt;br /&gt;
The choices are :&lt;br /&gt;
*Always Enable&lt;br /&gt;
*Disable After block execution&lt;br /&gt;
*Re-Enable before block execution&lt;br /&gt;
*Re-Enable Execute and disable&lt;br /&gt;
&lt;br /&gt;
==Data Length==&lt;br /&gt;
8 or 16 bits. This option is set in SPI Configuration block&lt;br /&gt;
&lt;br /&gt;
==Wait for incomming data (slave mode)==&lt;br /&gt;
Stop execution of other blocks while no data are received&lt;br /&gt;
&lt;br /&gt;
==Block Ordering Input / Output==&lt;br /&gt;
Create one input and/or output port on simulink. This port is just used to set the order of execution between severals blocks. You want for example inside one time step set a pin to its high value and to its low value just after (create a glitch). You will used two blocks digital output, but they should be activated in a certain order. Connecting the first block to the second one (temporaly speaking) will allow to respect the execution order you desire.&lt;br /&gt;
 &lt;br /&gt;
==Status==&lt;br /&gt;
Provides information like bit rate and status&lt;/div&gt;</summary>
		<author><name>Tom</name></author>
		
	</entry>
</feed>