Shanghai Qiji Electronics PIC16F877 Microcontroller Programming Manual

This manual provides programming examples and code for the Microchip PIC16F877 microcontroller, covering SPI, PWM, A/D and sleep mode.


Shanghai Qiji Electronics PIC16F877 Microcontroller Programming Manual - cover page
Brand
MICROCHIP
Category
Other device
Document type
Programming Manual
Language
Chinese
Pages
61
File format
PDF
File size
163 KB
Updated
29 September, 2026
MD5 checksum
261EA447FA7E98CD3E38BE26E9506EB4

About this manual

This document is a microcontroller learning guide provided by Shanghai Qiji Electronics. It covers the PIC16F877 microcontroller and includes programming examples for peripheral modules such as SPI communication, PWM generation, A/D conversion, and sleep mode.

The guide provides C language code examples for applications including LED display, key scanning, interrupt handling, and PORTB change notification, intended as reference for users adapting the programs to their own projects. This manual is written in Chinese.

What's inside

  • PIC16F877 internal and external peripheral modules
  • Simple application examples
  • PORTD output
  • MSSP mode SPI function
  • Program listing
  • PORTB port level change interrupt
  • CCP mode PWM operation
  • Application program 2
  • PIC16F877 sleep mode operation

Frequently asked questions

What microcontroller does this guide cover?

The guide covers the PIC16F877 microcontroller.

What SPI settings are shown in the initialization comment?

The comment shows SSPEN=1, CKP=0, and FOSC/4.

What values are assigned to CCPR1L and CCP1CON in the CCP1 PWM initialization?

CCPR1L is assigned 0X7F and CCP1CON is assigned 0X3C.

What value is assigned to OPTION in the watchdog timer example?

OPTION is assigned 0X0F.

Download PDF (163 KB)

More MICROCHIP Manuals


View all MICROCHIP manuals →