I 'm using a PIC microcontroller 18f2520 with CCS compiler,
I want to create a delay of 1 sec using Timer1. I have a crystal of 4Mhz and controller itself divides internally with 4,(Given in datasheet).
Now i use a prescaler of 8, and since it is a 16bit timer, i get a maximum delay of approx. 524ms.
I want to use a timer interrupt every 1 sec , How do i do that??
Regards,
Sid
I want to create a delay of 1 sec using Timer1. I have a crystal of 4Mhz and controller itself divides internally with 4,(Given in datasheet).
Now i use a prescaler of 8, and since it is a 16bit timer, i get a maximum delay of approx. 524ms.
I want to use a timer interrupt every 1 sec , How do i do that??
Regards,
Sid