bobx
Junior Member level 3

Hello everybody.I want to write a program using PIC18F452&XTAL=20MHZ in C or mikroC to do the followings;
1.Simultaneously turn a timer on[timer0 or...] to count for 1 sec. and
also count the number of High[transition from H to L] state of the
input signal.
2.Turn a timer on[timer0 or...] for 1 sec. and as soon as a input signal injected or entered to a PIC pin the timer[timer0 or...]immediately turned off and calculate the time of passed by that timer.
Would you please help and give me some example codes to write those programs?
Thanks,:?:
1.Simultaneously turn a timer on[timer0 or...] to count for 1 sec. and
also count the number of High[transition from H to L] state of the
input signal.
2.Turn a timer on[timer0 or...] for 1 sec. and as soon as a input signal injected or entered to a PIC pin the timer[timer0 or...]immediately turned off and calculate the time of passed by that timer.
Would you please help and give me some example codes to write those programs?
Thanks,:?: