This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Dual Stepper Motor Control (Arduino UNO R3) | |
Controls the speed and direction of two stepper motors | |
via two analog inputs. Used to achieve two-dimensional | |
movement controlled by a joystick. End-of-track sensors | |
prevent damage to the structure and motors. | |
Based on "Speed Control" example of the Stepper lib. | |
Please note the Stepper library produces a bipolar sequence. | |
By swapping the two middle cables, a unipolar seq. is obtained. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Contador de numeros primos | |
;Jose Eduardo Rivas Melgar RM100161 | |
;David Antonio Escobar Contreras EC100119 | |
;Ángel Gerardo Moreno Galán MG070209 | |
;El contador de numeros primos permite iterar sobre los numeros primos menores | |
;que 100 usando dos pushbuttons, uno para moverse de forma ascendente y otro | |
;para descendente. El resultado se muestra en dos displays de 7 segmentos | |
;multiplexados. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Contador de personas en una habitación | |
;José Eduardo Rivas Melgar RM100161 | |
;David Antonio Escobar Contreras EC100119 | |
;Angel Gerardo Moreno Galan MG070209 | |
;El contador de personas incrementa un contador cada vez que una persona entra | |
;a la habitación, y lo decrementa cuando una sale. El numero de personas se | |
;muestra en todo momento en dos displays a través del puerto D. Se usan dos | |
;sensores, uno de entrada y otro de salida, para saber cuando una persona ha | |
;pasado por la entrada o salida. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Control de teclado matricial 4x4 | |
;José Eduardo Rivas Melgar RM100161 | |
;David Antonio Escobar Contreras EC100119 | |
;Angel Gerardo Moreno Galan MG070209 | |
;Escanea un teclado matricial de 4x4 y muestra la ultima teclada presionada | |
;en base 16 en un display de 7 segmentos. | |
title "Control de teclado matricial" | |
list p=18f4550 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Cifrado de bloques de memoria | |
José Eduardo Rivas Melgar RM100161 | |
David Antonio Escobar Contreras EC100119 | |
Ángel Gerardo Moreno Galán MG070209 | |
Encripta 256 localidades de memoria con rotación y XOR contra un número primo al azar. | |
*/ | |
#include "stdlib.h" | |
#include "stdio.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Cifrado de bloques de memoria | |
José Eduardo Rivas Melgar RM100161 | |
Carlos Ernesto Linares Zelada ZR090636 | |
Encripta 256 localidades de memoria con rotación y XOR contra un número primo al azar. | |
*/ | |
#include "stdlib.h" | |
#include "stdio.h" | |
#include "p18f4550.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Cronómetro con centi-segundos | |
//Genera una frecuencia de 100 Hz, cada 100 pasos se cuenta 1 segundo | |
//El resultado se muestra en vivo en una LCD | |
//Eduardo Rivas, Carlos Zelada | |
#include <p18f4550.h> //Cabecera de Núcleo | |
#include <xc.h> | |
#include <delays.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reloj digital configurable con dos alarmas | |
// Muestra la hora en minutos, segundos, horas e indicador am/pm en una LCD | |
// Cuenta con tres botones: selector de modo, ajuste de minutos y de segundos | |
// La alarma se activa por un minuto y no se puede desactivar | |
// Ángel Moreno | |
// David Escobar | |
// Eduardo Rivas | |
#include "p18f4550.h" | |
#include "xc.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Archivo de cabecera para configuración y uso de módulo LCD | |
//con el PIC18F4550 en el puerto D y E. | |
#include "p18f4550.h" //Cabecera de Núcleo | |
#include "xc.h" | |
#include "delays.h" | |
#include "stdlib.h" | |
//Prototipos de las funciones | |
void LCD_Retardo_Corto(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __DELAYS_H | |
#define __DELAYS_H | |
#if defined (__18CXX) || defined(_PLIB) | |
/* C18 cycle-count delay routines. */ | |
/* Delay of exactly 1 Tcy */ | |
#define Delay1TCY() _delay(1) |
OlderNewer