Specifications

mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers
Fig. 0-18 Special Function Register
Input/Output Ports
In order to make the microcontroller useful, it has to be connected to additional electronics, i.e. peripherals. Each microcontroller has one or
more registers (called a “port”) connected to the microcontroller pins. Why input/output? Because you can change the pin’s function as you
wish. For example, suppose you want your device to turn three signal LEDs and simultaneously monitor the logic state of five sensors or push
buttons. Some of ports need to be configured so that there are three outputs (connected to the LEDs) and five inputs (connected to sensors). It is
simply performed by software, which means that the pin’s function can be changed during operation.
http://www.mikroe.com/en/books/picmcubook/ch0/ (13 of 30)5/3/2009 11:28:39 AM