On-chip peripherals

Some components use on-chip peripherals. In the Component Inspector , you can choose from all possible peripherals that can be used for implementation of the function of the current component. Processor Expert provides checking for required peripheral features such as word width and stop bit for serial channel, pull resistor for I/O pin and others.

Processor Expert also protects against the use of one peripheral in two components. If the peripheral is allocated for one component then the settings of this peripheral cannot be changed by any other component. The state of an allocated peripheral should never be changed directly in the user code (using special registers, I/O ports etc.) It is recommended to always use methods generated by Processor Expert. If the functionality of generated methods is not sufficient for your application, you can use PESL (Processor Expert System Library). See Low-level access to peripherals topic for details.

Note that if a peripheral is allocated to any component, all its parts are reserved. For example, if you use the 8-bit I/O port, all the I/O pins of the port are allocated and it is not possible to use them in other components.

In some timer components, you can choose if you want to use only a part of the timer (compare register) or an entire timer. If you select the entire timer, the driver can be optimized to work best with the timer. For example, invoke reset of the timer whenever it is needed by the component function.