vijaya_narayana
Full Member level 3
Dear All
I am trying to count pulses from an external source for which i am using the Timer1 Module and timer 0 for generating the time dealy of 0.02 seconds here is the code for the same
PEIE = 1;
GIE = 1;
T0IE = 1;
T0IF = 0;
T0CS = 0;
T0SE = 0;
PSA = 0;
PS0 = 1;
PS1 = 1;
PS2 = 1;
T1CON = 0X07;
TMR1H = 0x00;
TMR1L = 0x00;
TMR0 = 0x63;
OSCCON = 0x75;
but while looking into SFR with a 10 Khz input signal i am reading only 00 on both the high and low registers pls let me know what is that i have missed
here is the code io port settings
TRISC= 0xff;
PORTC=0x00;
any help will be appreciated
I am trying to count pulses from an external source for which i am using the Timer1 Module and timer 0 for generating the time dealy of 0.02 seconds here is the code for the same
PEIE = 1;
GIE = 1;
T0IE = 1;
T0IF = 0;
T0CS = 0;
T0SE = 0;
PSA = 0;
PS0 = 1;
PS1 = 1;
PS2 = 1;
T1CON = 0X07;
TMR1H = 0x00;
TMR1L = 0x00;
TMR0 = 0x63;
OSCCON = 0x75;
but while looking into SFR with a 10 Khz input signal i am reading only 00 on both the high and low registers pls let me know what is that i have missed
here is the code io port settings
TRISC= 0xff;
PORTC=0x00;
any help will be appreciated