Documentos de Académico
Documentos de Profesional
Documentos de Cultura
U1 U2 R1
13 33 7 13
14
OSC1/CLKIN RB0/INT
34 1
A QA
12
R3
+5V
1
OSC2/CLKOUT RB1
35 2
B QB
11
R2
220R
MCLR/Vpp/THV RB2
36 6
C QC
10
R4
220R
2
RB3/PGM
37 4
D QD
9
R5
220R
3
RA0/AN0 RB4
38 5
BI/RBO QE
15
R6
220R
4
RA1/AN1 RB5
39 3
RBI QF
14
R7
220R
RA2/AN2/VREF- RB6/PGC LT QG 220R
5 40
RA3/AN3/VREF+ RB7/PGD 220R
6 74LS48
RA4/T0CKI
7
RA5/AN4/SS RC0/T1OSO/T1CKI
15
16
U3:A
RC1/T1OSI/CCP2
R14 R12 8
9
RE0/AN5/RD RC2/CCP1
17
18
1 2
10k 10k RE1/AN6/WR RC3/SCK/SCL
10 23
RE2/AN7/CS RC4/SDI/SDA 74LS04
RC5/SDO
24
25
U3:B
RC6/TX/CK
26 3 4
RC7/RX/DT
19
RD0/PSP0 74LS04
S1 S2 RD1/PSP1
20
21
U3:C
RD2/PSP2
22 5 6
RD3/PSP3
27
RD4/PSP4
28
RD5/PSP5 74LS04
RD6/PSP6
29
30
U3:D
RD7/PSP7
RESET BOTON1 PIC16F877
13 12
74LS04
rp0 equ 5
rp1 equ 6
irp equ 7
z equ 2
c equ 0
txif equ 4
go equ 2
list p=16f877
org 00
goto inicio
display clrf ptoc ;rutina que carga cada dato en su respectivo display
movf dig0,0 ;activando el transistor correspondiente en cada caso
movwf ptob
bsf ptoc,3
movlw d'3'
call retarms
bcf ptoc,3
movf dig1,0
movwf ptob
bsf ptoc,2
movlw d'3'
call retarms
bcf ptoc,2
movf dig2,0
movwf ptob
bsf ptoc,1
movlw d'3'
call retarms
bcf ptoc,1
movf dig3,0
movwf ptob
bsf ptoc,0
movlw d'3'
call retarms
bcf ptoc,0
return
end