NRF24LE1

Hello, I am a student who wants to improve myself in the field of nrf and this is my first question. I am using NRF24LE1. I can run Timer0 and Timer1 separately in main function but I can't run them in interrupt subroutine, can you help?

#include "reg24le1.h" // I/O header file for NRF24LE1
#include <stdlib.h> // standard library
#include <stdio.h> // standard I/O library

int counter;
int counter2;

void ISR_Timer0(void) interrupt 1
{
if(TF1==1){
counter++;
if(counter>=20){
P03=~P03;
counter=0;
}
TF1=0;
TH1=0X4B;
TL1=0XFE;
}

}


void main()
{
P0DIR = 0; 
P03 = 0;
EA = 1; 
TMOD = 17 ; 
TR1=1;


while(1);
}

Parents Reply Children
No Data
Related