|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.sim.mcu.AtmelInternalDevice
avrora.sim.mcu.Timer8Bit
Base class of 8-bit timers. Timer0 and Timer2 are subclasses of this.
| Nested Class Summary | |
protected class |
Timer8Bit.BufferedRegister
BufferedRegister implements a register with a write buffer. |
protected class |
Timer8Bit.ControlRegister
|
protected class |
Timer8Bit.TCNTnRegister
Overloads the write behavior of this class of register in order to implement compare match blocking for one timer period. |
protected class |
Timer8Bit.Ticker
The Ticker implements the periodic behavior of the timer. |
| Field Summary | |
static int |
BOTTOM
|
protected Clock |
externalClock
|
static int |
MAX
|
static int |
MODE_CTC
|
static int |
MODE_FASTPWM
|
static int |
MODE_NORMAL
|
static int |
MODE_PWM
|
protected ATMegaFamily.FlagRegister |
TIFR_reg
|
protected Clock |
timerClock
|
protected ATMegaFamily.MaskRegister |
TIMSK_reg
|
| Fields inherited from class avrora.sim.mcu.AtmelInternalDevice |
devicePrinter, interpreter, mainClock, microcontroller, name, simulator |
| Constructor Summary | |
protected |
Timer8Bit(AtmelMicrocontroller m,
int n,
int OCIEn,
int TOIEn,
int OCFn,
int TOVn,
int[] periods)
|
| Method Summary | |
protected void |
compareMatch()
|
protected void |
overflow()
|
| Methods inherited from class avrora.sim.mcu.AtmelInternalDevice |
getClock, getIORegs, installIOReg, read16, write16 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MODE_NORMAL
public static final int MODE_PWM
public static final int MODE_CTC
public static final int MODE_FASTPWM
public static final int MAX
public static final int BOTTOM
protected final Clock externalClock
protected Clock timerClock
protected ATMegaFamily.FlagRegister TIFR_reg
protected ATMegaFamily.MaskRegister TIMSK_reg
| Constructor Detail |
protected Timer8Bit(AtmelMicrocontroller m,
int n,
int OCIEn,
int TOIEn,
int OCFn,
int TOVn,
int[] periods)
| Method Detail |
protected void compareMatch()
protected void overflow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||