Join 60,000+ competitive exam aspirants
What is alternate function of T0 and T1 pin?
Port 0<!-- [if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-language:AR-SA;}
<![endif]-->
Port 1<!-- [if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-language:AR-SA;}
<![endif]-->
Port 2<!-- [if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-language:AR-SA;}
<![endif]-->
Port 3<!-- [if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-language:AR-SA;}
<![endif]-->
Port 3<!-- [if gte mso 9]>
<![endif]--><!-- [if gte mso 9]>
Normal 0
false false false
EN-US X-NONE GU
<![endif]--><!-- [if gte mso 9]>
<![endif]--><!-- [if gte mso 10]>
/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-language:AR-SA;}
<![endif]-->
In the 8051 microcontroller architecture, the pins P3.4 and P3.5 of Port 3 serve the dual purpose of general-purpose I/O and alternate functions for Timers. Specifically, the T0 pin (alternate function of P3.4) serves as the external clock input for Timer 0, and the T1 pin (alternate function of P3.5) serves as the external clock input for Timer 1.
In the 8051 microcontroller architecture, the pins P3.4 and P3.5 of Port 3 serve the dual purpose of general-purpose I/O and alternate functions for Timers. Specifically, the T0 pin (alternate function of P3.4) serves as the external clock input for Timer 0, and the T1 pin (alternate function of P3.5) serves as the external clock input for Timer 1.
C/T=1 — Bit configuration in TMOD to select Counter Mode
fext≤24fosc — Maximum frequency limit for external input pulses
When a timer is configured in 'Counter Mode' by setting the C/T bit in the TMOD register to 1, the timer increments on the negative edge of the signal applied to the corresponding T0 or T1 pin. This allows the 8051 to count external events or measure frequency by sampling external pulses through these designated pins on Port 3.
Port 3 is a multifunction port providing various special features like UART, interrupts, and timers.
Timer 0 uses pin P3.4 (T0) as an external input.
Timer 1 uses pin P3.5 (T1) as an external input.
To use these as external clock inputs, the timer must be in Counter Mode (C/T=1).
Allows measurement of external pulse widths and frequencies.
Enables counting of external events such as sensor pulses or switch presses.
Reduces CPU overhead for event counting.
External input frequency is limited by the oscillator frequency.
Consumes specific pins of Port 3, reducing available general-purpose I/O lines.
Digital tachometers for RPM measurement.
Frequency counting and pulse width measurement circuits.
Event logging in embedded systems.
The 8051 uses P3.0 and P3.1 for Serial Communication (RXD/TXD).
The 8051 uses P3.2 and P3.3 for External Interrupts (overlineINT0, overlineINT1).
The 8051 uses P3.6 and P3.7 for Write/Read signals (overlineWR, overlineRD) during external memory access.
D is correct — The pins T0 and T1 are the alternate functions of the P3.4 and P3.5 pins of Port 3 in the 8051 microcontroller.
Always remember that Port 3 in 8051 is the 'Special Function' port; if you need a peripheral feature like Interrupts, Serial Comms, or Timers, you look for the pins on Port 3.