Display

  • Class 11 – Digital Clock Using Interrupt

    Hi Buddies! In our last class, we built a digital clock without using interrupts — and yes, it worked well! But you might have noticed a small flicker when you pressed a button. Today, let’s solve that using interrupts. But before that, let’s understand what interrupts are. Blocking Code Method In earlier classes, especially when blinking LEDs, we used a delay inside the main loop. That delay blocks the system — during this time, the […]

  • 7SEGMENT

    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 […]

  • LCD4

    1. LCD Not Initializing Q: My LCD shows nothing or random characters. A: Verify LCD_Init() was called first Check power supply (4.7V-5.5V recommended) Confirm contrast potentiometer is adjusted For I2C LCDs: Ensure correct I2C address 2. Missing Characters/Garbled Text Q: Some characters don’t display or appear corrupted. A: Check all data connections (D4-D7 for 4-bit mode) Add 100ms delay after LCD_Command(LCD_CLEAR) Verify RS and EN signal timing 3. Cursor Position Issues Q: Text appears at […]