PDA

View Full Version : Rtc


BeerFizz
04-28-04, 12:47 PM
Does the IsoPod have a Real Time Clock? If so, how do you access it?

Failing the presence of a RTC, is there a counter that may be accessed which might give a reasonable simulation of milliseconds passed?

Thanks
Phil

RMDumse
04-28-04, 12:59 PM
No, the 'Pods do not have built in RTCs.

Yes, there are many timers. In fact, if you are using the IsoMax(TM) language, you can use the system periodic timer as a time base.

Let's say you set for a periodic update every millisecond:

: X MSCNT 1+! ;

EVERY 5000 CYCLES SCHEDULE-RUNS X

That's all it would take to set it up.

If you use C, you could still use any of the 16 multifunction timers for a time base.

BeerFizz
04-28-04, 05:25 PM
You made me think of something...


is it possibe to have two or more machines running at different scheduling cycles, for example:

EVERY 5000 CYCLES SCHEDULE-RUNS X

EVERY 10000 CYCLES SCHEDULE-RUNS Y

EVERY 30000 CYCLES SCHEDULE-RUNS Z

nmitech
04-28-04, 05:44 PM
is it possibe to have two or more machines running at different scheduling cycles
No, all machines must run at the same rate schedule.
Iso means "equal" or "on the same level"

RMDumse
04-28-04, 08:17 PM
No, as LC said, IsoMax(TM) is intended to run the scan loop on a single level. However...

The example you ask about shows three levels, each a multiple of the shortest interval, so there's no reason you can't count down the fastest level and only call the lower levels every so often.

: X MSCNT 1+! ;
: Y ( ... ) ;
: Z ( ... ) ;

: MYCHAIN
X
MSCNT @ 2 MOD 0= IF Y THEN
MSCNT @ 6 MOD 0= IF Z THEN
;

EVERY 5000 CYCLES SCHEDULE-RUNS MYCHAIN