How rotronica/pic_16f877a_buffer_mux_ms works
Project type and purpose
• This is an embedded-firmware project written in C for a Microchip PIC16F877A microcontroller.
• Its sole purpose is to multiplex four seven-segment displays so they can show a scrolling/static message (“HOLA LIAM”) by updating one display at a time every 5 ms.
File structure
• README.md – high-level description of how the multiplexing works, timing, masks, etc.
• Source_Code.c – the main C source implementing millis(), visualizar_display(), data buffers, and port operations
• fusibles.h – PIC configuration-bits definitions (oscillator, watchdog, etc.)
There are no “frontend/backend” folders—everything lives in one flat directory because it’s a single MCU application. No build scripts, no OS, no external services.
README for additional insights
• It explains how visualizar_display() is called repeatedly (probably from main() in a loop or a timer interrupt).
• It shows how PORTA (PINES_MUX) and PORTD (PUERTO_VISUALIZADOR) are manipulated with bit masks and shifts.
• It defines constants: MUX_TIME = 5 ms, DISPLAY_MASK = 0x0F, NUM_DISPLAYS = 4, plus the DATOS[] lookup table for segment patterns.
Detail
• Port names (PORTA, PORTD), mask values (0x0F), constants (MUX_TIME = 5 ms, NUM_DISPLAYS = 4).
• Fusible settings (oscillator speed) near the Timer block to show how the timebase is derived.