Mikroelektronika MIKROE-442 Datenbogen
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
413
Peripheral Pin Select Library
The Peripheral Pin Select library enables user to have more than one digital peripheral multiplexed on a single pin.
Users may independently map the input and/or output of any one of many digital peripherals to any one of these I/O
pins.
The peripherals managed by the Peripheral Pin Select library are all digital only peripherals.
A key difference between pin select and non pin select peripherals is that pin select peripherals are not associated with
a default I/O pin. The peripheral must always be assigned to a specific I/O pin before it can be used.
In contrast, non pin select peripherals are always available on a default pin, assuming that the peripheral is active and
not conflicting with another peripheral.
When a pin selectable peripheral is active on a given I/O pin, it takes priority over all other digital I/O and digital
communication peripherals associated with the pin.
Important: Before using any of the digital peripherals or its library routines, user must set the desired pins as input/
output and assign the desired peripheral to these pins.
Library Routines
- Unlock_IOLOCK
- Lock_IOLOCK
- PPS_Mapping
Unlock_IOLOCK
Lock_IOLOCK
Prototype
sub procedure Unlock_IOLOCK()
Description Unlocks I/O pins for Peripheral Pin Mapping.
Parameters None.
Returns
Parameters None.
Returns
Nothing.
Requires
Nothing.
Example
Unlock_IOLOCK()
Notes
None.
Prototype
sub procedure Lock_IOLOCK()
Description Locks I/O pins for Peripheral Pin Mapping.
Parameters None.
Returns
Parameters None.
Returns
Nothing.
Requires
Nothing.
Example
Lock_IOLOCK()