View Full Version : TC1 signal read back
Should I be able to read the status of TC1? I get the same value regardless of the state. TC0 works OK as does all the other signals.
An example output is shown below:
TC0 OFF TC0 ?OFF . -1 OK
TC0 ON TC0 ?OFF . 0 OK
TC1 OFF TC1 ?OFF . 0 OK
TC1 ON TC1 ?OFF . 0 OK **no change**
Thank you,
Gary
RMDumse
03-13-07, 04:23 PM
Reminder, TC2, and TC3, don't have output pins, so they are the system timers. Used to be TD3 on the first IsoMax(TM) systems were system timers. Later, because of the output pins issue, TC2,3 were used. You need to leave them alone. Or loose all background timing functions.
This post edited, because it was misleading. For corrections see below.
RMDumse
03-13-07, 04:30 PM
Ugh, I take it back. It's TC2 and 3 that don't have pins. TC0, 1 do. So you have uncovered a mystery. We'll look further.
RMDumse
03-13-07, 04:50 PM
Ah ha, the mystery is lessened.
Try doing at TC1 OFF? . first (or ON? first). This sets up the input output registers for reading. After it has been read once to set it up, the non-register-mode setting version of the very similar word you used, ?ON, which was made for speed rather than easy set up, it works.
IsoMax V0.82
TC1 OFF? . 0 OK
TC1 OFF TC1 ?OFF . -1 OK
TC1 ON TC1 ?OFF . 0 OK
TC1 OFF TC1 ?OFF . -1 OK
TC1 ON TC1 ?OFF . 0 OK
That solved it.
Thank you very much.
Gary
vBulletin v3.0.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.