Discussion

  • Class 2 – Input Handling โ€“LED Control with Button

    Hello buddies! ๐Ÿ‘‹ In the previous tutorial, we explored what a port is and learned about bit and byte addressable ports. We even saw how to control output using a basic LED blinking example. In this post, letโ€™s see how input works with the 8051 microcontroller, especially how to use a button to control an LED. ๐Ÿ” Checking the Status of a Pin To check if a particular pin is ON (HIGH) or OFF (LOW), […]

    Continue reading
  • Class 1 – Basic LED Blinking Using NOP

    Hi buddies! ๐Ÿ‘‹ Today, letโ€™s learn how to make an LED blink using the 8051 microcontroller. This is one of the most basic and essential experiments when you’re getting started with embedded systems. ๐Ÿ”Œ What Is LED Blinking? Blinking an LED simply means turning it ON and OFF repeatedly, with a delay in between. To do this, we need to understand two key concepts: Port Configuration Delay Generation โš™๏ธ 1. Port Configuration The 8051 microcontroller […]

    Continue reading
  • Intro – BuddyKit – Software Installation

    Are you ready to start programming your BuddyKit 51 Mini with ease? This guide walks you through everything you need โ€” from setting up the development environment to building and flashing your first project using SDCC and VSCode. ๐Ÿ“ Project Overview Weโ€™re using a well-organized project template designed for SDCC (Small Device C Compiler). It includes: Source folder for your .c and .h files Prebuilt libraries for common modules (LCD, EEPROM, RTC, Keypad, etc.) Scripts […]

    Continue reading
  • UART Library FAQ

    UART Library FAQ 1. UART Not Working After Initialization Q: Nothing is transmitted or received. A: Check CPU_CLK matches your crystal frequency (e.g., 11.0592MHz) Verify physical connections: TX โ†’ RX, RX โ†’ TX, and common GND 2. Garbage Characters Received Q: The received data appears corrupted. A: Ensure baud rate settings match on both devices (e.g., 9600 or 115200) Call UART_Init(115200) on both transmitter and receiver for 115200 baud 3. UART_SendString() Sends Incomplete Data Q: […]

    Continue reading
  • 7 Segment Display FAQ

    1. Display Not Lighting Up Q: No segments are illuminated. A: Verify SEG_Init() was called first Check common anode/cathode configuration matches SEG_MODE Confirm power supply (2-5V depending on LEDs) Test with SEG_BUFF = {_8,_8,_8,_8,_8,_8} to force all segments on 2. Incorrect Digits Displayed Q: Wrong numbers appear or segments are missing. A: Check SEG_LOOKUP[] table matches your display’s segment wiring Verify SEG_PORT pins are correctly mapped For common anode displays, ensure SEG_MODE 1 is set […]

    Continue reading