You are on page 1of 1

/*

* File: CODE.c
* Author: HP
*
* Created on June 15, 2019, 11:19 AM
*/

#include <xc.h>
#include "PIC16F887.h"

void main(void)
{

ANSELH=0x00; //disables analog in RB0


TRISB=0X00;
T0CS=1; //COUNTER mode
PS0=0; //Sets value for prescaler
PS1=0;
PS2=0;
T0IF=0;
TMR0=0;
while(1)
{
PORTB=TMR0;
}

You might also like