This file contains hidden or 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
// Manda datos del ADC por el EUSART al presionar un boton | |
// Boton pull down en RB0 | |
// Entrada analogica en RA0 | |
// Carlos Zelada | |
// Eduardo Rivas | |
#include "xc.h" | |
#include "stdlib.h" | |
#include "p18f4550.h" |
This file contains hidden or 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
;Muestra en el puerto serial el valoar anal贸gico le铆do al presionar el boton | |
title "PIC18F4550 Valor anal贸gico por comunicaci贸n serie" | |
list p=18F4550 ;Tipo de procesador | |
#include <p18f4550.inc> ;Incluye archivo de cabecera del PIC | |
CONFIG FOSC = INTOSCIO_EC | |
CONFIG WDT = OFF | |
CONFIG PBADEN = OFF | |
CONFIG MCLRE = ON | |
CONFIG DEBUG = ON | |
CONFIG LVP = OFF |
This file contains hidden or 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
;Maestro SPI que env铆a cadenas | |
;Las direcciones de las cadenas se definen en el bloque VARIABLES | |
;Carlos Zelada | |
;Eduardo Rivas | |
title "PIC18F4550 Envio de cadenas por SPI Modo Maestro" | |
list p=18F4550 | |
#include <p18f4550.inc> | |
CONFIG FOSC = INTOSCIO_EC | |
CONFIG WDT = OFF |
This file contains hidden or 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
// Muestreador de audio: digitaliza y guarda una se帽al anal贸gica en EEPROM | |
// Se muestrean 128 datos de 10 bits, lo que se convierte en 256 datos de 8 | |
// bits al moverlos a EEPROM. Luego se muestra en la LCD los datos capturados. | |
// 脕ngel Moreno | |
// David Escobar | |
// Eduardo Rivas | |
#include "xc.h" | |
#include "stdlib.h" | |
#include "../utils/delays.h" //Incluir cabeceras de retardos |
This file contains hidden or 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
// Frecuencimetro digital | |
// Cuenta las veces que ocurre un flanco ascendente durante un segundo | |
// Y muestra el resultado en la LCD | |
// 脕ngel Moreno | |
// David Escobar | |
// Eduardo Rivas | |
#include "p18f4550.h" | |
#include "xc.h" | |
#include "stdlib.h" |
This file contains hidden or 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) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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" |