SFRs denotes the physical address of these ports in the internal RAM: P0 is at address 0x80, P1 is at address 0x90, P2 is at address 0xA0 and P3 is at address 0xB0. There are four ports in an 8051 microcontroller and these are named as P0, P1, P2, P3 respectively. In order to control the ports, we need a function known as "Special Function Registers" (SFRs). In addition to performing some specific operations like controlling the access to external storage. All the ports are bidirectional in nature, which means they can perform both input and output operations. The 8051 microcontrollers have 8-bit ports. How to access Ports and Pins in 8051 Microcontroller Submitted by Sudarshan Paul, on June 21, 2018 In this article, we will discuss about how to access and write instructions for various ports and their specific pins through C programming using Keil?
0 Comments
Leave a Reply. |