written 6.7 years ago by | • modified 6.5 years ago |
Subject :- VLSI Design
Topic :- Semiconductor Memories
Difficulty :- High
written 6.7 years ago by | • modified 6.5 years ago |
Subject :- VLSI Design
Topic :- Semiconductor Memories
Difficulty :- High
written 6.6 years ago by | • modified 6.6 years ago |
In order to synchronize the operation of I/O ports with the internal 8-bit organization of the microcontroller, they are, similar to registers, grouped into five ports denoted by A, B, C, D and E. All of them have several features in common:
• For practical reasons, many I/O pins are multifunctional. If a pin performs any of these functions, it may not be used as a general-purpose input/output pin.
• Every port has its ‘satellite’, i.e. the corresponding TRIS register: TRISA, TRISB, TRISC etc. which determines the performance of port bits, but not their contents.
By clearing any bit of the TRIS register (bit=0), the corresponding port pin is configured as an output. Similarly, by setting any bit of the TRIS register (bit=1), the corresponding port pin is configured as an input. This rule is easy to remember 0 = Output, 1 = Input