0% found this document useful (0 votes)
23 views

21ee602 Microcontrollers Based System Design

Uploaded by

dhanush.ee21
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

21ee602 Microcontrollers Based System Design

Uploaded by

dhanush.ee21
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

21EE602 MICROCONTROLLERS BASED

SYSTEM DESIGN

UNIT 1 & LP 1 Introduction to PIC microcontrollers


PIC16F87X
28/40-Pin 8-Bit CMOS FLASH Microcontrollers

Devices Included in this Data Sheet: Pin Diagram


• PIC16F873 • PIC16F876 PDIP
• PIC16F874 • PIC16F877
MCLR/VPP 1 40 RB7/PGD
RA0/AN0 2 39 RB6/PGC
Microcontroller Core Features: RA1/AN1 3 38 RB5
RA2/AN2/VREF- 4 37 RB4
• High performance RISC CPU RA3/AN3/VREF+ 5 36 RB3/PGM
• Only 35 single word instructions to learn RA4/T0CKI 6 35 RB2
RA5/AN4/SS 7 34 RB1
• All single cycle instructions except for program

PIC16F877/874
RE0/RD/AN5 8 33 RB0/INT
branches which are two cycle RE1/WR/AN6 9 32 VDD
• Operating speed: DC - 20 MHz clock input RE2/CS/AN7 10 31 VSS
VDD 11 30 RD7/PSP7
DC - 200 ns instruction cycle
VSS 12 29 RD6/PSP6
• Up to 8K x 14 words of FLASH Program Memory, OSC1/CLKIN 13 28 RD5/PSP5
Up to 368 x 8 bytes of Data Memory (RAM) OSC2/CLKOUT 14 27 RD4/PSP4

Up to 256 x 8 bytes of EEPROM Data Memory RC0/T1OSO/T1CKI 15 26 RC7/RX/DT


RC1/T1OSI/CCP2 16 25 RC6/TX/CK
• Pinout compatible to the PIC16C73B/74B/76/77 RC2/CCP1 17 24 RC5/SDO
• Interrupt capability (up to 14 sources) RC3/SCK/SCL 18 23 RC4/SDI/SDA
RD0/PSP0 19 22 RD3/PSP3
• Eight level deep hardware stack RD1/PSP1 20 21 RD2/PSP2
• Direct, indirect and relative addressing modes
• Power-on Reset (POR)
• Power-up Timer (PWRT) and
Oscillator Start-up Timer (OST) Peripheral Features:
• Watchdog Timer (WDT) with its own on-chip RC • Timer0: 8-bit timer/counter with 8-bit prescaler
oscillator for reliable operation • Timer1: 16-bit timer/counter with prescaler,
• Programmable code protection can be incremented during SLEEP via external
• Power saving SLEEP mode crystal/clock
• Selectable oscillator options • Timer2: 8-bit timer/counter with 8-bit period
• Low power, high speed CMOS FLASH/EEPROM register, prescaler and postscaler
technology • Two Capture, Compare, PWM modules
• Fully static design - Capture is 16-bit, max. resolution is 12.5 ns
• In-Circuit Serial Programming (ICSP) via two - Compare is 16-bit, max. resolution is 200 ns
pins - PWM max. resolution is 10-bit
• Single 5V In-Circuit Serial Programming capability • 10-bit multi-channel Analog-to-Digital converter
• In-Circuit Debugging via two pins • Synchronous Serial Port (SSP) with SPI (Master
• Processor read/write access to program memory mode) and I2C (Master/Slave)
• Wide operating voltage range: 2.0V to 5.5V • Universal Synchronous Asynchronous Receiver
• High Sink/Source Current: 25 mA Transmitter (USART/SCI) with 9-bit address
• Commercial, Industrial and Extended temperature detection
ranges • Parallel Slave Port (PSP) 8-bits wide, with
• Low-power consumption: external RD, WR and CS controls (40/44-pin only)
- < 0.6 mA typical @ 3V, 4 MHz • Brown-out detection circuitry for
Brown-out Reset (BOR)
- 20 µA typical @ 3V, 32 kHz
- < 1 µA typical standby current

 2001 Microchip Technology Inc. DS30292C-page 1


PIC16F87X
Pin Diagrams

PDIP, SOIC

MCLR/VPP 1 28 RB7/PGD
RA0/AN0 2 27 RB6/PGC
RA1/AN1 3 26 RB5

PIC16F876/873
RA2/AN2/VREF- 4 25 RB4
RA3/AN3/VREF+ 5 24 RB3/PGM
RA4/T0CKI 6 23 RB2
RA5/AN4/SS 7 22 RB1
VSS 8 21 RB0/INT
OSC1/CLKIN 9 20 VDD
OSC2/CLKOUT 10 19 VSS
RC0/T1OSO/T1CKI 11 18 RC7/RX/DT
RC1/T1OSI/CCP2 12 17 RC6/TX/CK
RC2/CCP1 13 16 RC5/SDO
RC3/SCK/SCL 14 15 RC4/SDI/SDA

RA3/AN3/VREF+
RA2/AN2/VREF-

MCLR/VPP

RB7/PGD
RB6/PGC
RA1/AN1
RA0/AN0
PLCC

RB5
RB4
NC

NC
6
5
4
3
2
1
44
43
42
41
40
RA4/T0CKI 7 39 RB3/PGM
RA5/AN4/SS 8 38 RB2
RE0/RD/AN5 9 37 RB1
RE1/WR/AN6 10 36 RB0/INT
RE2/CS/AN7 11 PIC16F877 35 VDD
VDD 12 34 VSS
VSS 13
PIC16F874 33 RD7/PSP7
OSC1/CLKIN 14 32 RD6/PSP6
OSC2/CLKOUT 15 31 RD5/PSP5
RC0/T1OSO/T1CK1 16 30 RD4/PSP4
NC 17 9 RC7/RX/DT
18
19
20
21
22
23
24
25
26
27
282
RC1/T1OSI/CCP2
RC3/SCK/SCL
RC4/SDI/SDA

RC2/CCP1
RC3/SCK/SCL
RD0/PSP0
RD1/PSP1
RD2/PSP2
RD3/PSP3
RC1/T1OSI/CCP2

RC5/SDO

NC
RC4/SDI/SDA

RC6/TX/CK
RC6/TX/CK

RC2/CCP1
RD3/PSP3
RD2/PSP2
RD1/PSP1
RD0/PSP0
RC5/SDO

NC

QFP
44
43
42
41
40
39
38
37
36
35
34

RC7/RX/DT 1 33 NC
RD4/PSP4 2 32 RC0/T1OSO/T1CKI
RD5/PSP5 3 31 OSC2/CLKOUT
RD6/PSP6 4 30 OSC1/CLKIN
RD7/PSP7 5 PIC16F877 29 VSS
VSS 6 28 VDD
VDD 7
PIC16F874 27 RE2/AN7/CS
RB0/INT 8 26 RE1/AN6/WR
RB1 9 25 RE0/AN5/RD
RB2 10 24 RA5/AN4/SS
RB3/PGM 11 23 RA4/T0CKI
12
13
14
15
16
17
18
19
20
21
22
RA3/AN3/VREF+
RB4
RB5

RA0/AN0
RA1/AN1
NC
NC

RB6/PGC
RB7/PGD
MCLR/VPP

RA2/AN2/VREF-

DS30292C-page 2  2001 Microchip Technology Inc.

You might also like