Options Compiler I2C SPI 1WIRE
Line 1: | Line 1: | ||
− | < | + | <span style="font-family: Arial;"> </span> |
+ | |||
+ | [[File:Options compiler i2c.png|center|options_compiler_i2c]] | ||
+ | |||
+ | <span style="font-family: Arial;"> </span> | ||
+ | |||
+ | <span style="font-family: Arial;"> </span> | ||
+ | |||
+ | <span class="f_Header">Options Compiler I2C, SPI, 1WIRE</span> | ||
+ | <div style="padding: 0px; margin: 0px 0px 0px 4px;"> | ||
+ | {| width="627" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;" | ||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" bgcolor="#ffffb2" style="width: 159px; background-color: rgb(255, 255, 178); border: 1px solid rgb(0, 0, 0);" | | ||
+ | <span style="font-weight: bold;">Item</span> | ||
+ | |||
+ | | valign="top" width="100%" bgcolor="#ffffb2" style="width: 459px; background-color: rgb(255, 255, 178); border: 1px solid rgb(0, 0, 0);" | | ||
+ | <span style="font-weight: bold;">Description</span> | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" style="width: 159px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | SCL port | ||
+ | |||
+ | | valign="top" width="100%" style="width: 459px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Select the port pin that serves as the SCL-line for the I2C related statements. | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" style="width: 159px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | SDA port | ||
+ | |||
+ | | valign="top" width="100%" style="width: 459px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Select the port pin that serves as the SDA-line for the I2C related statements. | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" style="width: 159px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | 1WIRE | ||
+ | |||
+ | | valign="top" width="100%" style="width: 459px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Select the port pin that serves as the 1WIRE-line for the 1Wire related statements. | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" style="width: 159px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Clock | ||
+ | |||
+ | | valign="top" width="100%" style="width: 459px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Select the port pin that serves as the clock-line for the SPI related statements. | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" style="width: 159px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | MOSI | ||
+ | |||
+ | | valign="top" width="100%" style="width: 459px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Select the port pin that serves as the MOSI-line for the SPI related statements. | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" style="width: 159px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | MISO | ||
+ | |||
+ | | valign="top" width="100%" style="width: 459px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Select the port pin that serves as the MISO-line for the SPI related statements. | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" style="width: 159px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | SS | ||
+ | |||
+ | | valign="top" width="100%" style="width: 459px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Select the port pin that serves as the SS-line for the SPI related statements. | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="26%" style="width: 159px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Use hardware SPI | ||
+ | |||
+ | | valign="top" width="100%" style="width: 459px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | Select to use built-in hardware for SPI, otherwise software emulation of SPI will be used. The 2313 does not have internal HW SPI so it can only be used with software SPI mode. | ||
+ | |||
+ | When you do use hardware SPI, the above settings are not used anymore since the SPI pins are dedicated pins and can not be chosen by the user. | ||
+ | |||
+ | |} | ||
+ | </div> | ||
+ | <span style="font-family: Arial;"> </span> | ||
+ | |||
+ | It is advised to use the various [[CONFIG]] commands in your source code. It make more clear in the source code which pins are used. | ||
+ | <br/>{{Languages}} | ||
[[Category:Options Compiler]] | [[Category:Options Compiler]] |
Latest revision as of 00:48, 13 February 2013
Options Compiler I2C, SPI, 1WIRE
Item |
Description |
SCL port |
Select the port pin that serves as the SCL-line for the I2C related statements. |
SDA port |
Select the port pin that serves as the SDA-line for the I2C related statements. |
1WIRE |
Select the port pin that serves as the 1WIRE-line for the 1Wire related statements. |
Clock |
Select the port pin that serves as the clock-line for the SPI related statements. |
MOSI |
Select the port pin that serves as the MOSI-line for the SPI related statements. |
MISO |
Select the port pin that serves as the MISO-line for the SPI related statements. |
SS |
Select the port pin that serves as the SS-line for the SPI related statements. |
Use hardware SPI |
Select to use built-in hardware for SPI, otherwise software emulation of SPI will be used. The 2313 does not have internal HW SPI so it can only be used with software SPI mode. When you do use hardware SPI, the above settings are not used anymore since the SPI pins are dedicated pins and can not be chosen by the user. |
It is advised to use the various CONFIG commands in your source code. It make more clear in the source code which pins are used.
Languages | English • Deutsch |
---|