|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.sim.mcu.ATMegaFamily
| Nested Class Summary | |
class |
ATMegaFamily.FlagRegister
|
class |
ATMegaFamily.MaskableInterrupt
The MaskableInterrupt class represents an interrupt that is controlled by
two bits in two registers: a mask bit in a mask register and a flag bit in a flag register,
at the same offset. |
class |
ATMegaFamily.MaskRegister
|
protected class |
ATMegaFamily.Pin
The Pin class implements a model of a pin on the ATMegaFamily for the general purpose IO
ports. |
| Field Summary | |
protected Clock |
clock
|
int |
EEPROM_SIZE
|
int |
FLASH_SIZE
|
int |
HZ
The HZ field stores a public static final integer that represents the clockspeed of the
AtMega128L microcontroller (7.327mhz). |
protected BaseInterpreter |
interpreter
|
int |
IOREG_SIZE
|
int |
NUM_PINS
|
protected Simulator.Printer |
pinPrinter
|
protected ATMegaFamily.Pin[] |
pins
|
protected Simulator |
simulator
|
int |
SRAM_SIZE
|
| Constructor Summary | |
protected |
ATMegaFamily(int hz,
int sram_size,
int ioreg_size,
int flash_size,
int eeprom_size,
int num_pins)
|
| Method Summary | |
double |
cyclesToMillis(long cycles)
The cyclesToMillis() method converts the specified number of cycles to a time quantity in
milliseconds. |
int |
getEEPromSize()
The getEEPromSize() method returns the size in bytes of the EEPROM on this hardware
device. |
int |
getFlashSize()
The getFlashSize() method returns the size in bytes of the flash memory on this hardware
device. |
int |
getHz()
The getHZ() method returns the number of cycles per second at which this hardware device
is designed to run. |
int |
getIORegSize()
The getIORegSize() method returns the number of IO registers that are present on this
hardware device. |
Microcontroller.Pin |
getPin(int num)
The getPin() method looks up the specified pin by its number and returns a reference to
that pin. |
int |
getRamSize()
The getRamSize() method returns the number of bytes of SRAM present on this hardware
device. |
long |
millisToCycles(double ms)
The millisToCycles() method converts the specified number of milliseconds to a cycle
count. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface avrora.sim.mcu.Microcontroller |
getMode, getModeName, getPin, getRadio, getSimulator, setRadio, sleep, wakeup |
| Methods inherited from interface avrora.sim.mcu.MicrocontrollerProperties |
getPinNumber, isSupported |
| Field Detail |
public final int HZ
HZ field stores a public static final integer that represents the clockspeed of the
AtMega128L microcontroller (7.327mhz).
public final int SRAM_SIZE
public final int IOREG_SIZE
public final int FLASH_SIZE
public final int EEPROM_SIZE
public final int NUM_PINS
protected Simulator.Printer pinPrinter
protected final ATMegaFamily.Pin[] pins
protected Clock clock
protected Simulator simulator
protected BaseInterpreter interpreter
| Constructor Detail |
protected ATMegaFamily(int hz,
int sram_size,
int ioreg_size,
int flash_size,
int eeprom_size,
int num_pins)
| Method Detail |
public int getRamSize()
getRamSize() method returns the number of bytes of SRAM present on this hardware
device.
getRamSize in interface MicrocontrollerPropertiespublic int getIORegSize()
getIORegSize() method returns the number of IO registers that are present on this
hardware device.
getIORegSize in interface MicrocontrollerPropertiespublic int getFlashSize()
getFlashSize() method returns the size in bytes of the flash memory on this hardware
device. The flash memory stores the initialized data and the machine code instructions of the program.
getFlashSize in interface MicrocontrollerPropertiespublic int getEEPromSize()
getEEPromSize() method returns the size in bytes of the EEPROM on this hardware
device.
getEEPromSize in interface MicrocontrollerPropertiespublic int getHz()
getHZ() method returns the number of cycles per second at which this hardware device
is designed to run.
getHz in interface MicrocontrollerPropertiespublic long millisToCycles(double ms)
millisToCycles() method converts the specified number of milliseconds to a cycle
count. The conversion factor used is the number of cycles per second of this device. This method serves
as a utility so that clients need not do repeated work in converting milliseconds to cycles and back.
millisToCycles in interface MicrocontrollerPropertiesms - a time quantity in milliseconds as a double
public double cyclesToMillis(long cycles)
cyclesToMillis() method converts the specified number of cycles to a time quantity in
milliseconds. The conversion factor used is the number of cycles per second of this device. This method
serves as a utility so that clients need not do repeated work in converting milliseconds to cycles and
back.
cyclesToMillis in interface MicrocontrollerPropertiescycles - the number of cycles
public Microcontroller.Pin getPin(int num)
getPin() method looks up the specified pin by its number and returns a reference to
that pin. The intended users of this method are external device implementors which connect their
devices to the microcontroller through the pins.
getPin in interface Microcontrollernum - the pin number to look up
Pin object corresponding to the named pin if it exists; null
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||