Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Presentacion
Presentacion
ALUMNOS:
PRACTICA 1
Material:
1 pic 16F887
1led
Pinzas
1 fuente de voltaje
1 programador
1 laptop
1 MPLAB ö SOURCEBOOST
Introduccion:
Desarrollo
Procedimiento
Programa:
#include<System.h>
#pragma data_config1,0x3FF4
void main()
trisa=0xFF;
trisd=0x00;
ansel=0x00;
asccon=0x67;
while(1)
U1
13 33
OSC1/CLKIN RB0/INT
14 34
OSC2/CLKOUT RB1
1 35
MCLR/Vpp/THV RB2
36
RB3/PGM
2 37
RA0/AN0 RB4
3 38
RA1/AN1 RB5
4 39
RA2/AN2/VREF- RB6/PGC
5 40
RA3/AN3/VREF+ RB7/PGD
6
RA4/T0CKI
7 15
RA5/AN4/SS RC0/T1OSO/T1CKI
16
RC1/T1OSI/CCP2
8 17
RE0/AN5/RD RC2/CCP1
9 18
RE1/AN6/WR RC3/SCK/SCL
10 23
RE2/AN7/CS RC4/SDI/SDA
24
RC5/SDO
25
RC6/TX/CK
26
RC7/RX/DT
R1
19
RD0/PSP0
20 220
RD1/PSP1
21
RD2/PSP2
22
RD3/PSP3
RD4/PSP4
27 D1
28 LED-YELLOW
RD5/PSP5
29
RD6/PSP6
30
RD7/PSP7
PIC16F877
PROGRAM=..\..\..\..\Users\miguel\Documents\SOURCEBOOST\prende un led\prende un led.hex
- Conclusiones