PIC16F877A ADC & LED display & UART
S3
S10
S9
S8
S7
S6
S5
S4
R3
R10
R1
R2
R3
R4
R5
R6
R7
R8
R9
R2
R1
R10
R9
R8
R7
R6
R5
R4
S10
S1
S2
S3
S4
S5
S6
S7
S8
S9
S2
S1
RA0/AN0
2
RA1/AN1
3
RA2/AN2/VREF-/CVREF
4
RA4/T0CKI/C1OUT
6
RA5/AN4/SS/C2OUT
7
RE0/AN5/RD
8
RE1/AN6/WR
9
RE2/AN7/CS
10
OSC1/CLKIN
13
OSC2/CLKOUT
14
RC1/T1OSI/CCP2
16
RC2/CCP1
17
RC3/SCK/SCL
18
RD0/PSP0
19
RD1/PSP1
20
RB7/PGD
40
RB6/PGC
39
RB5
38
RB4
37
RB3/PGM
36
RB2
35
RB1
34
RB0/INT
33
RD7/PSP7
30
RD6/PSP6
29
RD5/PSP5
28
RD4/PSP4
27
RD3/PSP3
22
RD2/PSP2
21
RC7/RX/DT
26
RC6/TX/CK
25
RC5/SDO
24
RC4/SDI/SDA
23
RA3/AN3/VREF+
5
RC0/T1OSO/T1CKI
15
MCLR/Vpp/THV
1
U2
PIC16F877A
41%
RV4
10k
AD
AD
AD
V=2.04995
X1
8.000M
C1
22p
C2
22p
R1
470R
R2
47K
RESET
ADC read and Send
RA0/AN0
2
RA1/AN1
3
RA2/AN2/VREF-/CVREF
4
RA4/T0CKI/C1OUT
6
RA5/AN4/SS/C2OUT
7
RE0/AN5/RD
8
RE1/AN6/WR
9
RE2/AN7/CS
10
OSC1/CLKIN
13
OSC2/CLKOUT
14
RC1/T1OSI/CCP2
16
RC2/CCP1
17
RC3/SCK/SCL
18
RD0/PSP0
19
RD1/PSP1
20
RB7/PGD
40
RB6/PGC
39
RB5
38
RB4
37
RB3/PGM
36
RB2
35
RB1
34
RB0/INT
33
RD7/PSP7
30
RD6/PSP6
29
RD5/PSP5
28
RD4/PSP4
27
RD3/PSP3
22
RD2/PSP2
21
RC7/RX/DT
26
RC6/TX/CK
25
RC5/SDO
24
RC4/SDI/SDA
23
RA3/AN3/VREF+
5
RC0/T1OSO/T1CKI
15
MCLR/Vpp/THV
1
U1
PIC16F877A
X2
4.000M
C3
22p
C4
22p
R3
470R
R4
47K
RESET
Reci and LED display
1
2
3
4
5
6
7
8
20
19
18
17
16
15
14
13
9 12
10 11
U3
ADC read LED display
1
2
3
4
5
6
7
8
20
19
18
17
16
15
14
13
9
10
12
11
U4
LED-BARGRAPH-GRN
R6
330R
R7
330R
R8
330R
R9
330R
R10
330R
R11
330R
R12
330R
R13
330R
R14
330R
R15
330R
R5
330R
R16
330R
R17
330R
R18
330R
R19
330R
R20
330R
R21
330R
R22
330R
R23
330R
R24
330R
RXD
RTS
TXD
CTS
UART
UART
CCP2
CCP1
1 2
U5:A
7404
模拟 激光发射模块 模拟 激光接收模块
1
2
3
U6:A
7408
R25
500R
A
K
C
E
1
2
4
3
U7
PC817
R26
20k
RECEIVE
RECEIVE
7
6
1
312
U8:A
LM339
38%
RV1
1k
R27
10k
CCP1
CCP2
PIC16F877A
激光通讯系统仿真(基于
PPM)
1
、发送模块:读取
ADC
数值,
LED
显示
10
位
ADC
值。并通过
PPM
发送。
2
、接收模块:
PPM
接收到的数据。
LED
显示接收的
ADC
值(
10bits
)