Difference between revisions of "Component: IO Expander (MCP23S17) (MCP23S17) (General Input)"
From Flowcode Help
Jump to navigationJump to search| (One intermediate revision by the same user not shown) | |||
| Line 17: | Line 17: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_MCP23S17.fcfx FC_Comp_Source_MCP23S17.fcfx] | 
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_MCP23S17.fcfx FC_Comp_Source_MCP23S17.fcfx] | 
| ==Detailed description== | ==Detailed description== | ||
| Line 77: | Line 77: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 296: | Line 300: | ||
| | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| |} | |} | ||
| − | |||
| − | |||
Latest revision as of 13:11, 7 February 2023
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | General Input | 
Contents
IO Expander (MCP23S17) component
Provides 16 digital input/output pins arranged into two 8-bit ports using a SPI bus connection. Multiple expanders can be connected to the same SPI peripheral by means of individual chip select pins.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MCP23S17.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MCP23S17.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ConfigureInversion
ConfigurePullups
Initialise
|   | Initialise | 
|  - VOID | Return | 
ReadPort
ReadPortPin
ReadRegister
|   | ReadRegister | 
| Reads an 8-bit value from a register on the I/O expander device. | |
|  - BYTE | Address | 
| Register address to write to. Range: 0-15 | |
|  - BYTE | Return | 
WritePort
WritePortPin
WriteRegister
|   | WriteRegister | 
| Writes an 8-bit value to a register on the I/O expander device. | |
|  - BYTE | Address | 
| Register address to write to. Range: 0-15 | |
|  - BYTE | Value | 
| Value to write. Range: 0-255 | |
|  - VOID | Return | 






