Академический Документы
Профессиональный Документы
Культура Документы
CHIMBORAZO
FACULTAD DE INGENIERA
ESCUELA DE ELECTRNICA Y TELECOMUNICACIONES
CATEDRA MICROPROCESADORES Y LAB.
Hctor Cajilema
hector55@hotmail.es
I. MARCO TEORICO
PIC16F628A
El pic16f628a es un microcontrolador de 8
bit, posee una arquitectura RISC avanzada
as como un juego reducido de 35
instrucciones. Este microcontrolador es el
remplazo del obsoleto pic16f84a, los pines
del pic16f628a son compatibles con el
pic16f84a, as se podran actualizar
proyectos que hemos utilizado con el
pic16f84a.
A. OBJETIVO GENERAL
Diseo E Implementacin de la
palabra SALIDA mediante ocho
leds con un pic 16F628A la para
familiarizacin de Mikroc.
B. OBJETIVOS ESPECIFICOS.
Figure 2_Puertos
Figure 4_Matriz
II. PROCEDIMIENTO
a) CALCULOS
Figure 3_Mikroc
LA MATRIZ DE LEDS
Cada uno de estos led forma lo que en una
pantalla seria lo que llamaramos pixel.
Datos
Calculo Del Tiempo
8*4=32 Led matriz
1s /32= 31 ms
b) PROGRAMACION
MIKROC
Como se puede ver en el cuadro siguiente,
se ha realizado la programacin de la
palabra AMIGO, letra por letra con
intervalos de tiempo de 1 mili segundo.
void main() {
TRISB=0;
PORTB=0;
while(1) {
//S
PORTB=0b10001110;
PORTB=0b11111111;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
DELAY_MS(1);
PORTB=0b10001001;
DELAY_MS(1);
PORTB=0b10001001;
DELAY_MS(1);
PORTB=0b10001001;
DELAY_MS(1);
PORTB=0b01110001;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(2);
//D
PORTB=0b11111111;
DELAY_MS(1);
PORTB=0b10000001;
DELAY_MS(1);
PORTB=0b10000001;
DELAY_MS(1);
PORTB=0b01000010;
DELAY_MS(1);
PORTB=0b00111100;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(2);
PORTB=0b00000000;
DELAY_MS(2);
PORTB=0b00000000;
DELAY_MS(2);
PORTB=0b00000000;
DELAY_MS(2);
//A
PORTB=0b11111110;
DELAY_MS(1);
PORTB=0b00010001;
DELAY_MS(1);
PORTB=0b00010001;
DELAY_MS(1);
PORTB=0b00010001;
DELAY_MS(1);
PORTB=0b11111110;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(2);
//A
PORTB=0b11111110;
DELAY_MS(1);
PORTB=0b00010001;
DELAY_MS(1);
PORTB=0b00010001;
DELAY_MS(1);
PORTB=0b00010001;
DELAY_MS(1);
PORTB=0b11111110;
DELAY_MS(2);
PORTB=0;
DELAY_MS(250);
//MANO
PORTB=0b01111000;
DELAY_MS(5);
PORTB=0b01111000;
DELAY_MS(5);
PORTB=0b11111000;
DELAY_MS(5);
PORTB=0b11111100;
DELAY_MS(5);
PORTB=0b11111111;
DELAY_MS(5);
PORTB=0b11111111;
DELAY_MS(5);
PORTB=0b01111000;
DELAY_MS(15);
PORTB=0b00111000;
DELAY_MS(5);
PORTB=0;
DELAY_MS(200);
}
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(2);
//L
PORTB=0b11111111;
DELAY_MS(1);
PORTB=0b10000000;
DELAY_MS(1);
PORTB=0b10000000;
DELAY_MS(1);
PORTB=0b10000000;
DELAY_MS(1);
PORTB=0b10000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(2);
//I
PORTB=0b00000000;
DELAY_MS(1);
PORTB=0b00000000;
DELAY_MS(1);
}
PROTEUS
ARES, PLACA
ARMADO
II.
CONCLUSIONES
III.
IV.
REFERENCIAS
RECOMMENDACIONES
Se recomienda calcular
correctamente los tiempos de cada
letra para la visualizacin correcta de
la palabra.
www.youtube.com/watch?
v=d_RL5g-bzGI
proyectoaulapic16f628a.blogspot.com/
proyectoselectronicoos.blogs
pot.com/2013/01/matriz-deleds-7x5.html
http://www.puntoflotante.net/
MATRIZ-DE-LEDS-DE7X5-A.htm