Pin Connect Block:
The purpose of the Pin connect block is to configure the microcontroller pins to the desired functions. The pin connect block allows selected pins of the microcontroller to have more than one function. Configuration registers control the multiplexers to allow connection between the pin and the on chip peripherals.Peripherals should be connected to the appropriate pins prior to being activated, and prior to any related interrupt(s) being enabled. Activity of any enabled peripheral function that is not mapped to a related pin should be considered undefined.
(image from: ustudy.in)
Register Description:
The Pin Control Module contains 3 registers-- PINSEL0 :- It selects Pin function register 0 and can read/write operations.
- PINSEL1 :- It selects Pin function register 1 and can read/write operations.
- PINSEL2 :- It selects Pin function register 2 and can read/write operations.
Comments
Post a Comment