Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * File: Programa de prueba.c
- * Author: Andres
- *
- * Created on 12 de mayo de 2014, 17:21
- */
- #define _XTAL_FREQ 4000000
- #define __PICCPRO__
- #include <pic16f873.h>
- #include <xc.h>
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char** argv) {
- TRISBbits.TRISB0 = 0; // Pin B0 como salida
- while(1){
- PORTBbits.RB0 = 1; // Pongo un 1 en B0
- __delay_ms(2000);
- PORTBbits.RB0 = 0;
- __delay_ms(2000);
- }
- return (EXIT_SUCCESS);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement