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
// reproductor de wav desde tarjeta SD | |
// wav 11kHz mono | |
#include <SD.h> | |
File dataFile; | |
char fileplay[20] ; //nombre del archivo a reproducir | |
boolean estadop1 = false; | |
boolean preestadop1 = false; | |
boolean estadop2 = false; |
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
#!/bin/bash | |
# INSTALADOR DE ALLIANCE | |
# USO | |
# 1. Descargar el script en una ubicación de fácil acceso (carpeta de usuario) | |
# 2. Dar permiso de ejecución: | |
# $ chmod +x instalar_alliance.sh | |
# 3. Ejecutar | |
# $ ./instalar_alliance.sh | |
# 4. Otorgar la contraseña si es necesario para tareas de superusuario |
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
#define verde 4 | |
#define amarillo 5 | |
#define rojo 6 | |
#define azul 7 | |
#define control 8 | |
//variable para lectura del control de funcionamiento | |
int estado=0; | |
byte var=0; |
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
-- Unidad de sistema de lectura, procesamiento y salida de datos | |
-- de forma simultanea | |
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
use IEEE.numeric_std.ALL; | |
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
http://www.etnassoft.com/biblioteca/lenguaje-ensamblador-para-c/ |
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
// 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 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
title "PIC18F4550 bit paridad" | |
list p=18F4550 ; indica el modelo de PIC | |
#include <p18f4550.inc> ; archivo de encabezado | |
CONFIG FOSC = INTOSCIO_EC | |
CONFIG WDT = OFF | |
CONFIG PBADEN = OFF | |
CONFIG MCLRE = ON | |
CONFIG DEBUG = ON | |
CONFIG LVP = OFF |
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
;*************************************************************************************** | |
; Cálculos | |
;*************************************************************************************** | |
; X: Condición no importa | |
; Baud rate = 8000000/(16 (51 + 1)) | |
; = 9615.3846 = 9615 | |
; Error = (Baud Rate calculado - Baud Rate deseado)/Baud Rate deseado | |
; = (9615 - 9600)/9600 = 0.16% | |
title "PIC18F4550 Comunicación serie" | |
List p=18F4550;Tipo de procesador |
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
;*************************************************************************************** | |
; Cálculos | |
;*************************************************************************************** | |
; X: Condición no importa | |
; Baud rate = 8000000/(16 (51 + 1)) | |
; = 9615.3846 = 9615 | |
; Error = (Baud Rate calculado - Baud Rate deseado)/Baud Rate deseado | |
; = (9615 - 9600)/9600 = 0.16% | |
title "PIC18F4550 Comunicación serie" | |
List p=18F4550;Tipo de procesador |
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
title "PIC18F4550 Envio de byte por SPI Modo Maestro" | |
list p=18F4550 ; indica el modelo de PIC | |
#include <p18f4550.inc> ; archivo de encabezado | |
CONFIG FOSC = INTOSCIO_EC | |
CONFIG WDT = OFF | |
CONFIG PBADEN = OFF | |
CONFIG MCLRE = ON | |
CONFIG DEBUG = ON | |
CONFIG LVP = OFF |
NewerOlder