Вы находитесь на странице: 1из 25

MANUAL DE PRCTICAS

Sistemas Programables
SCD-1023 PLAN ISIC-2010-224

SISTEMAS COMPUTACIONALES

ndice
INTRODUCCIN---- -------------------------------------------------------------------------------------- 1 PRCTICA 1 Estructura de un Microcontrolador---------------------------------------------------------------- 2 PRCTICA 2 E/S en un Microcontrolador---------------------------------------------------------------------------------------13 PRCTICA 3 Buses de Comunicacin en Microcontroladores---------------------------------------------------- 15 PRCTICA 4 Interfaz mediante microcontrolador ----------------------------------------------------------------------18

LISTA DE MATERIAL, EQUIPO O REACTIVO A UTILIZAR ------------------------------ 21 LISTA DE BIBLIOGRAFA REQUERIDA--------------------------------------------------------- 22 CONTROL DE CAMBIOS DEL MANUAL DE PRCTICAS --------------------------------- 23

Sistemas Programables [SCD-10231012] INTRODUCCIN

SISTEMAS

PROGRAMABLESREPRESENTA

UN

GRAN

RETO

PARA

LOS

ALUMNOS DE LA CARRERA DE SISTEMAS COMPUTACIONALES YA QUE ES UN ACERCAMIENTO AL AMBIENTE PRCTICO EN EL CUAL DEBER TRABAJAR DE AQU EN ADELANTE, POR LO QUE EL OBJETIVO DE EST SERIE DE PRCTICAS, ES LLEVAR UNA SECUENCIA DE APRENDIZAJE A TRAVS DE LA EXPERIEMENTACIN Y EL ANLISIS DE LAS APLICACIONES Y

PROGRAMACIN DE LOS MICROCONTROLADORES.

LA ORGANIZACIN DE ESTE MANUAL CONDUCE AL ALUMNO PASO A PASO PARA QUE VAYA IDENTIFICANDO LOS CONCEPTOS REFERENTES AL CONTROL Y LOS MTODOS PARA LLEVARLO A CABO EN APLICACIONES DESDE LAS MAS SENCILLAS HASTA LAS MAS ROBUSTAS.

Fecha de Actualizacin 26/08/2010

Pgina 1

Sistemas Programables [SCD-10231012]

Prctica

CONTEMPLA EL OBJETIVO 1 EN LA SECCION DE PRACTICAS DEL TEMARIO

ESTRUCTURA DE UN MICROCONTROLADOR
Observaciones: Comprende EL 75% de la practica 1

1.- OBJETIVO

Identificar, analizar y manipular las caracteristicas de un microcontrolador


2.- MARCO TERICO

3.- MATERIAL, EQUIPO O REACTIVO

Ordenador Programa de LABVIEW (Versin actual) Tarjeta de desarrollo arduino (Cualquier version) 1 DIP switch de 8 interruptores u 8 interruptores individuales. Un pulsador 4 LED 4 resistencias de 330 Ohm.

4.- PROCEDIMIENTO

EJECUTAR LABVIEW

Fecha de Actualizacin 26/08/2010

Pgina 2

Sistemas Programables [SCD-10231012]

CREAR UN NUEVO PROYECTO

CONFIGURAR UN NUEVO PROYECTO EN STANDALONE PROYECT Y CLICKEAR EN NEXT

SELECCIONAR EL MICROCONTROLADOR A UTILIZAR CLICKEAR NEXT Fecha de Actualizacin 26/08/2010 Pgina 3

Sistemas Programables [SCD-10231012]

Fecha de Actualizacin 26/08/2010

Pgina 4

Sistemas Programables [SCD-10231012] SELECCIONAR LICENSED DEBUGGER Y CLICKEAR NEXT

Fecha de Actualizacin 26/08/2010

Pgina 5

Sistemas Programables [SCD-10231012] SELECCIONAR MPASM COMO LENGUAJE DE PROGRAMACION Y CLIKEAR NEXT

DAR NOMBRE AL PROYECTO Y ACTIVAR LA CASILLA SET AS MAIN PROJECT Y DAR CLICK EN FINALIZAR

Fecha de Actualizacin 26/08/2010

Pgina 6

Sistemas Programables [SCD-10231012]

EN EL PANEL IZQUIERDO CREAMOS UN ARCHIVO FUENTE DE LENGUAJE ENSAMBLADOR

Fecha de Actualizacin 26/08/2010

Pgina 7

Sistemas Programables [SCD-10231012]

LE DAMOS EL NOMBRE A NUESTRO PROGRAMA EN ESTE CASO, CLASE_01

Fecha de Actualizacin 26/08/2010

Pgina 8

Sistemas Programables [SCD-10231012]

REALIZAMOS EL PROGRAMA VISTO EN CLASE EN EL AREA EN BLANCO DEL LADO IZQUIERDO

Fecha de Actualizacin 26/08/2010

Pgina 9

Sistemas Programables [SCD-10231012]

COMPILAMOS EL PROGRAMA CON EL ICONO DEL MARTILLO EN LA BARRA SUPERIOR DEL PROGRAMA

COMPROBAMOS QUE NO EXISTEN ERRORES EN EL PROGRAMA

MEDIANTE UNA GRABADORA CARGAMOS EL PROGRAMA EN EL PIC, REALIZAMOS EL CIRCUITO DE LA FIGURA 1.1 EN EL PROTOBOARD Y PROBAMOS EL PROGRAMA.

Fecha de Actualizacin 26/08/2010

Pgina 10

Sistemas Programables [SCD-10231012]

FIGURA 1.1 CIRCUITO DE PRUEBA

5.- APARATOS E INSTRUMENTOS - Ordenador 6.ACTIVIDADES, DATOS Y RESULTADOS

CONCLUSIONES
En esta seccin debes emitir una conclusin que resulte de lo que observaste en el desarrollo de la prctica, es muy importante que anotes tus impresiones, tus dudas y comentarios.

7.-BIBLIOGRAFA

1. Morris Mano, M., Ingeniera computacional, diseo de hardware, Ed. Prentice Hall Hispanoamericana. 10. Angulo, Jos M., Microcontroladores PIC. Diseo prctico de aplicaciones. Segunda edicin, Mc. Graw Hill, Mxico, 2005 13. Freescale. 2009. Freescale semiconductor. Disponible desde Internet en: http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=01624684490 DEC 12. Microchip. 2009. Microchip Technology. Disponibledesde Internet en: http://www.microchip.com

Fecha de Actualizacin 26/08/2010

Pgina 11

Sistemas Programables [SCD-10231012]

Prctica

SUBTEMA:2.2

E/S EN UN MICROCONTROLADOR
Observaciones: Comprende EL 75% de la practica 2

1.- OBJETIVO

PROGRAMAR RUTINAS, TEMPORIZADORES Y CONTADORES EN UN PIC


2.- MARCO TEORICO

3.- MATERIAL, EQUIPO O REACTIVO

Ordenador Programa de LABVIEW (Versin actual) Tarjeta de desarrollo arduino (Cualquier version) 1 DIP switch de 8 interruptores u 8 interruptores individuales. Un pulsador 6 LED 6 resistencias de 330 Ohm.

4.- PROCEDIMIENTO

1. Seguir el mismo procedimiento visto en la practica 1. Fecha de Actualizacin 26/08/2010

Pgina 12

Sistemas Programables [SCD-10231012] 2. Probar en el circuito de la figura 1.1


5.- APARATOS E INSTRUMENTOS

CONCLUSIONES
En esta seccin debes emitir una conclusin que resulte de lo que observaste en el desarrollo de la prctica, es muy importante que anotes tus impresiones, tus dudas y comentarios. 7. PRACTICA A RESOLVER

8.- BIBLIOGRAFA

1. Morris Mano, M., Ingeniera computacional, diseo de hardware, Ed. Prentice Hall Hispanoamericana. 10. Angulo, Jos M., Microcontroladores PIC. Diseo prctico de aplicaciones. Segunda edicin, Mc. Graw Hill, Mxico, 2005 13. Freescale. 2009. Freescale semiconductor. Disponible desde Internet en: http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=01624684490 DEC 12. Microchip. 2009. Microchip Technology. Disponibledesde Internet en: http://www.microchip.com

Fecha de Actualizacin 26/08/2010

Pgina 13

Sistemas Programables [SCD-10231012]

Prctica

SUBTEMA:3.5

BUSES DE COMUNICACIN EN MICROCONTROLADORES


Observaciones: Comprende EL 75% de la practica 3
1.- OBJETIVO

Manipular los buses y protocolos de comunicacin soportados por un microcontrolador


2.- MARCO TEORICO

3.- MATERIAL, EQUIPO O REACTIVO

Ordenador Programa de LABVIEW (Versin actual) Tarjeta de desarrollo arduino (Cualquier version) 1 DIP switch de 8 interruptores u 8 interruptores individuales. Un pulsador LCD 16x2 Teclado matricial

4.- PROCEDIMIENTO

1. Seguir el mismo procedimiento visto en la practica 1. 2. Probar en el circuito de la figura 1.2

Fecha de Actualizacin 26/08/2010

Pgina 14

Sistemas Programables [SCD-10231012]

FIGURA 1.2 TECLADO MATRICIAL Y LCD CON COMUNICACIN RS-232

5.- APARATOS E INSTRUMENTOS

I. Computadora
6. ACTIVIDADES, DATOS Y RESULTADOS

CONCLUSIONES

7. PRACTICA A RESOLVER

Fecha de Actualizacin 26/08/2010

Pgina 15

Sistemas Programables [SCD-10231012]


8.- BIBLIOGRAFA

1. Morris Mano, M., Ingeniera computacional, diseo de hardware, Ed. Prentice Hall Hispanoamericana. 10. Angulo, Jos M., Microcontroladores PIC. Diseo prctico de aplicaciones. Segunda edicin, Mc. Graw Hill, Mxico, 2005 13. Freescale. 2009. Freescale semiconductor. Disponible desde Internet en: http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=01624684490 DEC 12. Microchip. 2009. Microchip Technology. Disponibledesde Internet en: http://www.microchip.com

5.Manual de Catia http://aceproject.org/main/espanol/et/ete08.htm

Fecha de Actualizacin 26/08/2010

Pgina 16

Sistemas Programables [SCD-10231012]

Prctica

SUBTEMA:4.1

INTERFAZ MEDIANTE MICROCONTROLADOR


Observaciones: integra todo lo visto en el curso y el porcentaje restante de las practicas anteriores.
1.- OBJETIVO

Crear una interfaz HMI, con un microcontrolador.


2.- MARCO TERICO

3.- MATERIAL, EQUIPO O REACTIVO

Ordenador Programa de LABVIEW (Versin actual) Tarjeta de desarrollo arduino (Cualquier version) 1 DIP switch de 8 interruptores u 8 interruptores individuales. Un pulsador LCD 16x2 Teclado matricial Un servomotor a 5v

4.- PROCEDIMIENTO

1. Seguir el mismo procedimiento visto en la practica 1. 2. Probar en el circuito de la figura 1.2 3. Compilar el siguiente programa con un compilador C #include <SERVO.h> #include <KBD.C> #include <lcd.c> #USE STANDARD_IO(a) unsigned int16 count=3500; unsignedint PWMH=0; #int_TIMER1 Fecha de Actualizacin 26/08/2010 Pgina 17

Sistemas Programables [SCD-10231012]

void TIMER1_isr(void){ count=get_timer0(); count=count*2*120; lcd_gotoxy(1,1); printf(lcd_putc,"%Lurpm",count); set_timer0(0); set_timer1(3036); } void main() {

CHAR K, kant='0'; char PWMH=0,PWML=0; PORT_B_PULLUPS(TRUE); setup_timer_0(RTCC_EXT_L_TO_H|RTCC_DIV_2|RTCC_8_bit); setup_timer_1(T1_INTERNAL|T1_DIV_BY_2); set_timer0(0); set_timer1(3036); enable_interrupts(int_timer1); enable_interrupts(global); kbd_init(); lcd_init(); //65.5 ms overflow //512 us overflow

Fecha de Actualizacin 26/08/2010

Pgina 18

Sistemas Programables [SCD-10231012] while(1) { k=kbd_getc(); printf(lcd_putc,"%crpm",k); if(k=='\0')k=kant; if(k=='*'|| k=='#')k=0;kant=k; k=k-48; PWMH=k*28; PWML=255-PWMH ; for(PWMH;PWML>0;PWMH--)OUTPUT_HIGH(PIN_A0); for(PWMH;PWML>0;PWML--)OUTPUT_LOW(PIN_A0); } }
5.- APARATOS E INSTRUMENTOS

6. ACTIVIDADES, DATOS Y RESULTADOS CONCLUSIONES 7. PRACTICA A RESOLVER

8.- BIBLIOGRAFA

1. Morris Mano, M., Ingeniera computacional, diseo de hardware, Ed. Prentice Hall Hispanoamericana. 10. Angulo, Jos M., Microcontroladores PIC. Diseo prctico de aplicaciones. Segunda edicin, Mc. Graw Hill, Mxico, 2005 13. Freescale. 2009. Freescale semiconductor. Disponible desde Internet en: http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=01624684490 DEC 12. Microchip. 2009. Microchip Technology. Disponibledesde Internet en: http://www.microchip.com

Fecha de Actualizacin 26/08/2010

Pgina 19

Sistemas Programables [SCD-10231012]

LISTA DE MATERIAL, EQUIPO O REACTIVO A UTILIZAR FOLIO NOMBRE DEL MATERIAL, EQUIPO O REACTIVO Computadora compatible
Labview V. 2012, National Instruments

CANT. UNIDAD

LISTA DE BIBLIOGRAFA REQUERIDA FOLIO BIBLIOGRAFIA 1 Waren J. Luzader, Fundamentos de dibujo en ingeniera, Editorial CECSA. 2 3 4 5 6 Jensen C. H. Dibujo y diseo de Ingeniera, Editorial Mc. Graw Hill. French Thomas E. Charles J. Vierick. Dibujo de Ingeniera, Editorial Mc. Graw Hill. Lombardo J. V. Dibujo Tcnico y de Ingeniera, Editorial CECSA. Manual de Catia CANT 3

3 3 3 21

LISTA DE ARCHIVOS Y FORMATOS FOLIO ARCHIVO DESCRIPCION

1 2

Fecha de Actualizacin 26/08/2010

Pgina 20

ESTATICA [EME-1012] CONTROL DE CAMBIOS DEL MANUAL DE PRCTICAS

DATOS GENERALES
FECHA DE ACTUALIZACION
08-jul-2013

ELABOR Y/O ACTUALIZ


Ing. Erikssen Aquino Diaz

DESCRIPCIN DE LA ACTUALIZACIN
Adaptacion al Software CATIA, DASSAULT SYSTEMES

Fecha de Actualizacin 26/08/2010

Pgina 21

ESTATICA [EME-1012] FIRMAS

ELABOR

Ing. Erikssen Aquino Daz Docente de la Academia de Electromecnica

M. C. Araceli Vivaldo Vicua Docente de la Academia de Electromecnica

REVIS

Ing. Alfredo Mrquez Vsquez Presidente de Electromecnica

Ing. Joel Cortez Quiroz Secretario de Electromecnica

Fecha de Actualizacin 26/08/2010

Pgina 22

ESTATICA [EME-1012] Vo.Bo. Autoriz

Ing. Erik Flores Orea Jefe de Divisin de la carrera de Ingeniera en Electromecnica

Ing. Samuel Friarte Espino Subdirector de Estudios Profesionales

Fecha de Actualizacin 26/08/2010

Pgina 23

Вам также может понравиться