??? 08/30/06 16:19 Read: times |
#123392 - Timer mode 3 Responding to: ???'s previous message |
Scott Gurst said:
1. According to the "the bible", when tmr/ctr0 is in mode 3, TH0 "takes over" the use of TR1 and TF1 from tmr/ctr1. Does this also mean that TR1 no longer controls operation of tmr/ctr1? Correct. TR1 controls TH0 and TR0 controls TL0. However, timer 1 mode (in TMOD) still controls the original timer 1 (TH1/TL1)--so the original timer 1 can still be in mode 0, 1, or 2. If you set timer 1 in TMOD to mode 3, the original timer 1 (TH1/TL1) stops. 2. When tmr/ctr0 is in mode 3, do GATE1 and INT1 still control operation of tmr/ctr1? The DS5000 User's Guide states that GATE1 is unused (which I assume means INT1 is unused), but it's not quite as clear in the bible. Everything I've ever read suggests that all timer 1 functions get linked to the new timer 1 (TH0). So I'd assume that GATE1 and INT1 would control TH0. But I've never actually investigated that, and it's a good question. The best way would be to just test it. I'm going to do so when I have time, but if you test it please let us know! 3. When tmr/ctr0 is in mode 3, does the C/T bit still control operation of tmr/ctr1? The DS5000 User's Guide states that tmr/ctr1 is forced to operate as a timer when tmr/ctr0 is in mode 3. The bible states that TH0 is locked into a timer function, but doesn't mention whether or not that is the case for tmr/ctr1. Again, my understanding is that all timer 1 functions get linked to TH0 in mode 3; that would be consistent with what you're saying above: If C/T is linked to TH0, then the original timer 1 is not going to be able to operate in any mode other than "timer." Regards, Craig Steiner |
Topic | Author | Date |
Timer/Counter Mode 3 | 01/01/70 00:00 | |
mode 3 | 01/01/70 00:00 | |
Looks like DS5000 | 01/01/70 00:00 | |
Oregano Core | 01/01/70 00:00 | |
I suspect that this 'unorthodox' mode that I have | 01/01/70 00:00 | |
Timer mode 3![]() | 01/01/70 00:00 |