
PROGRAMMING THE PERIPHERALS OF 8051 565
is chapter is meant to make you adept in the programming aspects of the inbuilt
peripherals of 8051.
e 8051 has only a few internal peripherals. But it has four GPIO ports—most of
these pins are free to be used, if external memory is not connected. Many peripherals like
LCDs, stepper/DC motors, relays, LED displays, etc. can be connected to these pins.
KEY POINTS OF THIS CHAPTER
The 8051 has 40 pins, in which 32 are the pins of the four ports P0 to P3.
Three of these ports have pins with dual functions.
The clock frequency of the chip is decided by the frequency of the crystal connected
outside. ...