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
//Frecuencimetro | |
//Sobre frecuencimetro en la condicion (if) en lugar de ser sobre el estado del Pin RC2 debe ser sobre la bandera del modulo //CCP1 para verificar si se hizo una captura y guardar el dato del registro de trabajo en una variable | |
//Codigo fuente | |
//Crear una interrupcion para cada tipo de evento probable: por si se llama a la interrupcion por la bandera TMR1IF , por si se //llama la interrupcion por la captura de un evento en CPP1 con CPP1IF | |
#include <stdio.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
//primer avance del codigo | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <p18f4550.h> | |
#include <xc.h> | |
//#include "lcd.h" //incluir los header para la LCD y delays | |
//Directivas para activar los bits de configuración | |
#pragma config FOSC = INTOSCIO_EC //Oscilador Interno, Puerto A RA6 activo, |
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 |
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 "PIC16F877 Envio de byte por SPI Modo Maestro" | |
list p=16F877 ; indica el modelo de PIC | |
#include <p16f877.inc> ; archivo de encabezado | |
__CONFIG _XT_OSC & _PWRTE_ON & _BODEN_OFF & _CP_OFF & _WDT_OFF | |
;VARIABLES | |
conta equ 0x10 | |
dconta equ 0x20 | |
recibe equ 0x30 |
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
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
#include <p18f4550.h> | |
#include <xc.h> | |
#include "stdlib.h" | |
#pragma config FOSC=INTOSC_EC | |
#pragma config WDT=OFF | |
#pragma config PBADEN=OFF | |
#pragma config MCLRE=ON | |
#pragma config DEBUG=ON | |
#pragma 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
http://www.taringa.net/posts/apuntes-y-monografias/4699529/Manual-de-Batch-Programacion.html | |
http://www.taringa.net/posts/ciencia-educacion/17416085/Aprender-HTML.html | |
http://www.tufuncion.com/diferentes-lenguajes-programacion |
OlderNewer