Project General Description
Project General Description
Project General Description
Peripheral Features
33 I/O pins; 5 I/O ports
Timer0: 8-bit timer/counter with 8-bit prescaler
Timer1: 16-bit timer/counter with prescaler
o Can be incremented during Sleep via external crystal/clock
Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler
Two Capture, Compare, PWM modules
o 16-bit Capture input; max resolution 12.5 ns
o 16-bit Compare; max resolution 200 ns
o 10-bit PWM
Synchronous Serial Port with two modes:
o SPI Master
o I2C Master and Slave
USART/SCI with 9-bit address detection
Parallel Slave Port (PSP)
o 8 bits wide with external RD, WR and CS controls
Brown-out detection circuitry for Brown-Out Reset
Analog Features
10-bit, 8-channel A/D Converter
Brown-Out Reset
Analog Comparator module
Pin Diagram: PIC 16F877A
MPLAB IDE
MPLAB IDE is an easy to learn and use integrated development environment
(IDE). The integrated development environment is an application that has multiple
functions for firmware development. The MPLAB IDE integrates a complier, an
assembler, a project manager, an editor, a debugger, a simulator and an assortment of
other tools within one window application. The IDE provides firmware development
engineers the flexibility to develop and debug the firmware for microchips PIC
microcontroller (MCU) families.
Select the target device from the device list. For Example:16F877A
Select the oscillator type as HS, write enable for 0000-0FFFh and enable the fuses
PWRT and disable all other fuses.
Open the hex version of the source file from the directory by selecting Open
command from the File menu.
Choose Program All option from the Command menu. This will
program the chip with the hex file of your project.
Finally download the configuration settings for the device by selecting Program