Sharing pins among peripherals

Some processors allows few pins to be used by multiple peripherals. This may lead to the need of sharing pin(s) by multiple components. Normally, if you select one pin in more than one component, a conflict is reported. However, it is possible to setup a sharing for such pin in the component inspector.

One of the components sharing a pin has to be chosen as a main component. This component will initialize the pin. In the properties of other components that use the pin, the pin has to be marked as shared (see figure below).

Pin sharing can be set in the Component Inspector. The Component Inspector must be in EXPERT view mode. Use the pop-up menu of the property and select the command Pin Sharing Enabled.

Figure 1. Pin property with sharing enabled
Pin Property with Sharing Enabled

Pin sharing is advanced usage of the processor peripherals and should be done only by skilled users. Pin sharing allows advanced usage of the pins even on small processor packages and allows application-specific usage of the pins.