dioscuri.module.clock
Class Timer

java.lang.Object
  extended by dioscuri.module.clock.Timer

public class Timer
extends java.lang.Object

A single counter of the PIT based on the Intel 82C54 chipset.

This counter works following the convention rules of the PIT: 1. For each counter, the control word must be written before the initial count is written. 2. The initial count must follow the count format specified in the Control Word (LSB, MSB, etc.)


Field Summary
protected  boolean active
           
protected  int currentCount
           
protected  int intervalLength
           
protected  boolean typeContinuous
           
protected  Updateable user
           
 
Constructor Summary
Timer(Updateable user, int intervalLength, boolean type)
           
 
Method Summary
 void reset()
           
protected  void reset(int intervalLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

protected Updateable user

intervalLength

protected int intervalLength

currentCount

protected int currentCount

active

protected boolean active

typeContinuous

protected boolean typeContinuous
Constructor Detail

Timer

public Timer(Updateable user,
             int intervalLength,
             boolean type)
Parameters:
user -
intervalLength -
type -
Method Detail

reset

public void reset()

reset

protected void reset(int intervalLength)
Parameters:
intervalLength -