Basic 16f877
Basic 16f877
Basic 16f877
+7.2V
Voltage Regulator
+5V U9
0.1uF LM317_T
D 5V Output D
3 VIN VOUT 2
1 ADJ
R3 150
R
U1 1k
330 D1
1 40 1uF
MCLR*/Vpp RB7/PGD LED
2 RA0/AN0 RB6/PGC 39
3 RA1/AN1 RB5 38
4 RA2/AN2/Vref- RB4 37
5 RA3/AN3/Vref+ RB3/PGM 36
6 RA4/T0CKI RB2 35
7 RA5/AN4/SS* RB1 34
8 33 +5V
+5V RE0/RS*/AN5 RB0/INT
9 RE1/WR*/AN6 Vdd 32
10 RS2/CS*/AN7 Vss 31 Notes:
C 11 Vdd RD7/PSP7 30 C
12 29 1. RX and TX for serial communication swapped over in the connector
Vss RD6/PDP6
13 OSC1/CLKIN RD5/PSP5 28 (i.e. TX from the PC connects to RX in the PIC)
14 OSC2/CLKOUT RD4/PSP4 27
15 RC0/T1OSO/T1CKI RC7/RX/DT 26 2. For different oscillator crystal frequencies, see PIC16F877 data
Y2 16 25
17
RC1/T1OSI/CCP2 RC6/TX/CK
24
sheet for appropriate capacitor values
RC2/CCP1 RC5/SDO
18 RC3/SCK/SCL RC4/SDI/SDA 23 3. MCLR* is the active-low reset switch. If you don't tie this value
19 22
20
RD0/PSP0 RD3/PSP3
21 high the PIC will not work.
20Mhz RD1/PSP1 RS2/PSP2
C7 C7
4. Voltage regulation is important to ensure proper voltage levels and
PIC16F877
18 pF 18 pF to prevent damage to the circuit. The LM317 provides cheap and
easy voltage regulation. Use the +5V output from the LM317 circuit
as your +5V supply. Another (simpler) option is the LM7805.
B B
U3
13 R1IN R1OUT 12
14 T1OUT T1IN 11
+5 V 1
0.1uF C1+
0.1uF 2
V+
10
3
4
C1-
C2+
T2IN
R2OUT
10
9
Basic PIC16F877 Circuit with
1
6
2
7
3
8
4
9
5
0.1uF 8
Serial Communication
0.1uF R2IN
5
6
C2- T2OUT 7 Voltage Regulation
V- MAX202
A CONNECTOR DB9 A
Title
Basic PIC16F877 Circuit