Escolar Documentos
Profissional Documentos
Cultura Documentos
*/
#include <stdio.h>
#include <stdlib.h>
#define _XTAL_FREQ 4000000 // Indicamos a que frecuencia de reloj esta funcionando el micro
#pragma config FOSC = INTOSCIO // Oscillator Selection bits (INTOSC oscillator: I/O function on
RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled)
#pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled)
#pragma config MCLRE = OFF // RA5/MCLR/VPP Pin Function Select bit (RA5/MCLR/VPP pin
function is digital input, MCLR internally tied to VDD)
#pragma config LVP = OFF // Low-Voltage Programming Enable bit (RB4/PGM pin has digital
I/O function, HV on MCLR must be used for programming)
#pragma config CPD = OFF // Data EE Memory Code Protection bit (Data memory code
protection off)
#pragma config CP = OFF // Flash Program Memory Code Protection bit (Code protection off)
//Renombramos los pines para que sea mas facil acceder a ellos
#define Encender 1
#define Apagar 0
//Variables generales
https://www.xvideos.com/video24244431/spectacular_vintage_orgy_for_unleashed_and_pervers
e_sex
//Declaracion de prototipos
// FUNCION PRINCIPAL
void main () {
PORTB = 0;
TMR0 = 0;
INTCONbits.TMR0IE = 1;
INTCONbits.GIE = 1;
OPTION_REGbits.PS0 = 1;
OPTION_REGbits.PS1 = 1;
OPTION_REGbits.PS2 = 1;
OPTION_REGbits.PSA = 0;
OPTION_REGbits.T0CS = 0;
// Bucle infinito
while (1){
if (cuenta == 10){
LED ^= 1;
cuenta = 0;