8051 Microcontroller की I/O Configuration पूरी जानकारी हिंदी में


8051 Microcontroller की I/O Configuration पूरी जानकारी हिंदी में

8051 Microcontroller में 4 I/O Ports होते हैं – Port 0, Port 1, Port 2 और Port 3। इन सभी ports के अलग-अलग roles और alternate functions होते हैं, जिन्हें समझना embedded system design के लिए ज़रूरी है।

🔘 Port 0 (P0.0 - P0.7)

  • 8-bit bi-directional I/O port
  • Multiplexed address/data bus के रूप में उपयोग
  • External pull-up resistor की आवश्यकता

🔘 Port 1 (P1.0 - P1.7)

  • 8-bit I/O port with internal pull-up resistors
  • No alternate functions
  • Fully dedicated to I/O operations

🔘 Port 2 (P2.0 - P2.7)

  • Higher-order address bus (A8-A15) के रूप में उपयोग
  • Also used as I/O when not accessing external memory

🔘 Port 3 (P3.0 - P3.7)

Port 3 के pins के alternate functions बहुत महत्वपूर्ण हैं:

  • P3.0 (RxD): Serial input
  • P3.1 (TxD): Serial output
  • P3.2 (INT0): External interrupt 0
  • P3.3 (INT1): External interrupt 1
  • P3.4 (T0): Timer 0 input
  • P3.5 (T1): Timer 1 input
  • P3.6 (WR): External memory write
  • P3.7 (RD): External memory read

📌 Summary Table

Port Function Alternate Use
Port 0 General I/O Address/Data Bus
Port 1 General I/O No Alternate
Port 2 General I/O Address (A8-A15)
Port 3 General I/O Serial, Timer, Interrupts

❓ FAQs

Q. Port 0 को अलग क्यों माना जाता है?
👉 Port 0 में internal pull-up resistors नहीं होते और यह external memory के लिए address/data multiplexing के लिए उपयोग होता है।

Q. क्या Port 3 केवल I/O के लिए उपयोग किया जा सकता है?
👉 Port 3 के pins के alternate functions predefined होते हैं जैसे Serial, Timer और Interrupts।

🔚 निष्कर्ष

8051 के सभी I/O ports का अपना विशेष role होता है। इनकी सही configuration और understanding embedded programming में smooth functioning के लिए जरूरी है।

Related Post

Comments

Comments