What are the XTAL 1 and XTAL 2 pins numbers for 8051?
The 8051 is a popular 8-bit microcontroller that requires a clock signal to synchronize its internal operations. This clock signal is typically generated using an external crystal oscillator or a ceramic resonator connected to specific pins on the microcontroller.
These dedicated pins are labeled XTAL 1 and XTAL 2. They are crucial because they serve as the input for the internal oscillator circuit of the 8051. When an external crystal is connected across these pins, along with appropriate capacitors to ground, the internal oscillator starts and generates the necessary clock frequency.
Let's identify the specific pin numbers for XTAL 1 and XTAL 2 on the standard 40-pin DIP package of the 8051 microcontroller. Referring to the pin diagram:
So, the XTAL pins are pins 18 and 19. These are located close to each other on the package.
A typical external crystal oscillator circuit involves connecting a crystal resonator between the XTAL 1 and XTAL 2 pins. Two small capacitors, usually in the range of 20pF to 40pF, are connected from each XTAL pin to ground. These capacitors help in stabilizing the oscillator circuit and ensuring reliable operation at the crystal's resonant frequency.
The frequency of the crystal connected to XTAL 1 and XTAL 2 determines the operating speed of the 8051 microcontroller. All instruction execution times and peripheral timings (like timers, serial communication) are derived from this main clock frequency. Common crystal frequencies for the 8051 include 11.0592 MHz or 12 MHz, chosen for convenient generation of standard baud rates for serial communication.
The XTAL pins are essential for providing the clock source to the 8051. The pair of pins dedicated for this purpose are Pin 18 and Pin 19.
| Pin Name | Pin Number | Function |
|---|---|---|
| XTAL 1 | 19 | Input to internal oscillator inverter |
| XTAL 2 | 18 | Output of internal oscillator inverter |
Therefore, the pins for XTAL 1 and XTAL 2 on the 8051 are Pin 19 and Pin 18 respectively. The pair of pins involved are 18 and 19.
| Pin Name | Pin Number(s) | Description |
|---|---|---|
| VCC | 40 | Power supply voltage (+5V) |
| GND | 20 | Ground reference |
| Port 0 | 32-39 | 8-bit bidirectional I/O port, also acts as multiplexed address/data bus |
| Port 1 | 1-8 | 8-bit bidirectional I/O port |
| Port 2 | 21-28 | 8-bit bidirectional I/O port, also carries high-order address bits |
| Port 3 | 10-17 | 8-bit bidirectional I/O port, also carries various control signals (RxD, TxD, INT0, INT1, T0, T1, WR, RD) |
| RST | 9 | Reset input. High pulse resets the microcontroller. |
| ALE | 30 | Address Latch Enable. Used to demultiplex address and data on Port 0. |
| PSEN<span>¯</span> | 29 | Program Store Enable. Read strobe for external program memory. |
| EA<span>¯</span>/VP | 31 | External Access Enable. Used to select internal or external program memory. VP is for VPP in programming. |
| XTAL 1 | 19 | Input to internal oscillator |
| XTAL 2 | 18 | Output from internal oscillator |
The 8051 microcontroller has an on-chip oscillator circuit, but it requires external components to operate. The XTAL 1 and XTAL 2 pins are the connection points for these external components, which are typically a quartz crystal or a ceramic resonator and two loading capacitors.
The internal circuitry connected to XTAL 1 and XTAL 2 forms an inverter-based oscillator. The crystal provides positive feedback at its resonant frequency, causing the circuit to oscillate. The loading capacitors help to fine-tune the oscillation frequency and ensure proper startup.
Register which is used to store values of arithmetic and logical operations is termed:
How many bytes of bit addressable memory is present in 8051 based microcontrollers?
A single instruction to clear the lower four bits of the accumulator in 8085 assembly language is-
In Microprocessor 8085 Address/Data buffer is a/an _______ buffer.
Microprocessor 8085 operates on a clock cycle with ______ duty cycle.