??? 01/05/09 22:17 Read: times |
#161312 - ;STARTING BOTH THE TIMERS AT THE SAME TIME Responding to: ???'s previous message |
I am not fully up to speed on your particular usage of the timers T0 and T1 in your program code but I do notice that the following line of code (and your comment):
MOV TCON,#50H ;STARTING BOTH THE TIMERS AT THE SAME TIME ...is inside your inner loop. You should check the SFR definitions very carefully. Maybe you have a strange issue with the T0 accumulator because you are hitting its control bits incorrectly whilst it should be left fully alone once your process of counting down T1 repeatitively via the loop counter in R5. You may also want to consider moving the clearing of the T0 counter registers to the top of the code so that you ensure consistent behavior with this T0 instead of putting it just ahead of the display routine. Michael Karas |
Topic | Author | Date |
Frequency (Event) Counter Problem | 01/01/70 00:00 | |
less than 1% error | 01/01/70 00:00 | |
Error % is incremental. | 01/01/70 00:00 | |
;STARTING BOTH THE TIMERS AT THE SAME TIME | 01/01/70 00:00 | |
Less variations in TL0 but still error | 01/01/70 00:00 | |
I do not know, but | 01/01/70 00:00 | |
CRO Frequency Measurement | 01/01/70 00:00 | |
Better But Still An Issue | 01/01/70 00:00 | |
How stabile is your signal source? | 01/01/70 00:00 | |
Very Good Point... | 01/01/70 00:00 | |
Easier if 89c52 is used | 01/01/70 00:00 | |
How stabile is your signal source? | 01/01/70 00:00 | |
NE555 is popular but not a precision device![]() | 01/01/70 00:00 |