RSS Daily tech news
  • A century-old piano mystery has just been solved
    Scientists confirmed that pianists can alter timbre through touch, using advanced sensors to capture micro-movements that shape sound perception. The discovery bridges art and science, promising applications in music education, neuroscience, and beyond.
  • Princeton’s AI reveals what fusion sensors can’t see
    A powerful new AI tool called Diag2Diag is revolutionizing fusion research by filling in missing plasma data with synthetic yet highly detailed information. Developed by Princeton scientists and international collaborators, this system uses sensor input to predict readings other diagnostics can’t capture, especially in the crucial plasma edge region where stability determines performance. By reducing […]
  • Heisenberg said it was impossible. Scientists just proved otherwise
    Researchers have reimagined Heisenberg’s uncertainty principle, engineering a trade-off that allows precise measurement of both position and momentum. Using quantum computing tools like grid states and trapped ions, they demonstrated sensing precision beyond classical limits. Such advances could revolutionize navigation, medicine, and physics, while underscoring the global collaboration driving quantum research.
  • This new camera sees the invisible in 3D without lenses
    Scientists have developed a lens-free mid-infrared camera using a modern twist on pinhole imaging. The system uses nonlinear crystals to convert infrared light into visible, allowing standard sensors to capture sharp, wide-range images without distortion. It can also create precise 3D reconstructions even in extremely low light. Though still experimental, the technology promises affordable, portable […]
  • Biochar’s secret power could change clean water forever
    Scientists found that biochar doesn’t just capture pollutants, it actively destroys them using direct electron transfer. This newly recognized ability accounts for up to 40% of its cleaning power and remains effective through repeated use. The discovery opens the door to cheaper, greener, and more efficient water treatment methods worldwide.
  • Scientists brew “quantum ink” to power next-gen night vision
    Toxic metals are pushing infrared detector makers into a corner, but NYU Tandon researchers have developed a cleaner solution using colloidal quantum dots. These detectors are made like “inks,” allowing scalable, low-cost production while showing impressive infrared sensitivity. Combined with transparent electrodes, the innovation tackles major barriers in imaging systems and could bring infrared technology […]

Pin diagram of the PIC16F877A microcontroller

by Florius
Illustration showing the 40-pin layout of the PIC16F877A microcontroller. Each pin is labeled with its corresponding port (e.g., RA0, RB7), alternate functions (such as ADC inputs, UART, SPI, I2C), and power supply pins (VDD, VSS). Used to guide hardware interfacing in MPLAB X IDE projects.

Pin diagram

The important pins

For accurate and dependable information, referring to the datasheets provided by Microchip Technology is advisable; these documents can be accessed here. Additionally, a brief overview of the pin diagram is recommended, detailing their functionalities and locations. Let’s begin by outlining the pins essential either for MCU operation or Pickit3 programmer-based programming:

  1. Pin 1 houses the MLCR/VPP, serving as a microchip reset mechanism.
  2. Pins 11 and 32, designated as VDD, necessitate a voltage range of 3.3V to 5V for proper functioning.
  3. Pins 12 and 31, denoted as VSS, are connecting to the ground
  4. To establish a connection with the Pickit3 programmer, pins 40 and 39 host PGD and PGC, respectively.
  5. Pins 13 and 14, namely OSC1 and OSC2, deliver a stable clock signal to the microcontroller. When utilizing the Pickit3 programmer, connecting these pins is unnecessary, thanks to the internal oscillator within the programmer facilitating MCU programming.

The exact method to program with your PICKIT3 programming tool, can be found here.

Pin diagram of the PIC16F877A; Programming pins
Pin diagram of the PIC16F877A; Programming pins
Pickit3 programming pins
Pickit3 programming pins

Port structure in the PIC16F877A

The PIC16F877A has 5 ports, namely A to E, where each pin can be configured as an input or output. However, it is important to note that not all ports consist of the same number of bits, due to some pins being taken by VSS or VDD, for example. In detail, port A consists of 6 bits, ports B, C, and D have 8 bits, while port E consists of only 3 bits.

Apart from being used for General Purpose Input Output (GPIO), most pins on this MCU have dedicated roles for specific functions. For instance, some pins on port C function as the TX and RX pins for the UART communication module, enabling the transmission and reception of serial data. Additionally, analog input channels for the ADC module on ports A and E can convert analog signals into digital values, opening up opportunities for further processing. When choosing IO pins, check the requirements of your project adequately to make the best possible decisions.

Labeled diagram of the PIC16F877A microcontroller showing all 40 pins with their port names (RA0–RA5, RB0–RB7, etc.), analog inputs, digital I/O, and special functions like USART, SPI, I2C, ADC, and oscillator pins. Useful for hardware design and firmware development in embedded applications.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.