Professional Documents
Culture Documents
h>
__CONFIG(FOSC_HS & WDTE_OFF & PWRTE_OFF & BOREN_ON & LVP_ON &
CPD_OFF & WRT_OFF & CP_OFF);
#define _XTAL_FREQ 4000000
#include "stdint.h"
#define LED RB0
void main()
{
TRISB0 = 0;
RB0 = 0;
// -- [[ Configure Timer1 + Interrupts ]] --
TMR1 = 0;//Clear The Timer1 Register. To start counting from 0
TMR1CS = 0; //Choose the local clock source (timer mode)
//Choose the desired pre-scaler ratio (1:1)
T1CKPS0 = 0;
T1CKPS1 = 0;
while(1)
{
}
}