sysysy
Member level 3
Hi,
i am going to use the interrupt in PIC16f877a.
But anyone can explain methods to use timer and few register that will be used to me?
i am using 20Mhz crystal, but i dun know the pre-scaler is what for?
from what i know is put a number inside the register, then when the register count to 0xff, then the interrupt flag will be set. is it indicates when the flag be set, then the instruction will go to do the interrupt work???
For example,
if i want my program every 10 seconds go to do the interrupt service routine. that what should i set and how i calculate?
*note: i really do not understand the datasheet. :-( :-( :-(
i am going to use the interrupt in PIC16f877a.
But anyone can explain methods to use timer and few register that will be used to me?
i am using 20Mhz crystal, but i dun know the pre-scaler is what for?
from what i know is put a number inside the register, then when the register count to 0xff, then the interrupt flag will be set. is it indicates when the flag be set, then the instruction will go to do the interrupt work???
For example,
if i want my program every 10 seconds go to do the interrupt service routine. that what should i set and how i calculate?
*note: i really do not understand the datasheet. :-( :-( :-(