This manual provides programming examples and code for the Microchip PIC16F877 microcontroller, covering SPI, PWM, A/D and sleep mode.
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.
The guide covers the PIC16F877 microcontroller.
The comment shows SSPEN=1, CKP=0, and FOSC/4.
CCPR1L is assigned 0X7F and CCP1CON is assigned 0X3C.
OPTION is assigned 0X0F.