|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.pic.PicEeprom
PicEeprom - The Eeprom-data-memory implemented in Microchip-microcontrollers
Field Summary | |
protected int |
bits
|
protected int |
bytes
|
protected PicReg |
eeadr
|
protected PicReg |
eecon1
|
protected PicReg |
eedata
|
protected long[] |
eeprom
|
protected java.lang.String |
filename
|
protected long |
maxWord
|
protected boolean |
nextWrite
|
Constructor Summary | |
PicEeprom(int size,
int bitsPerWord,
PicReg newEedata,
PicReg newEeadr,
PicReg newEecon1)
Constructor with the opportunity to change the size and the number of bits per word the Eprom is using |
Method Summary | |
java.lang.String |
getFilename()
|
int |
getMemorySize()
getMemorySize reports the size of the eprom in words |
int |
getWordWidth()
getWordWidth reports the width of one word in bits |
boolean |
load(java.lang.Object parent,
java.lang.String resourcename)
load the PicEprom contents from a resource called "resourcename" and belonging to SimObject "parent". |
void |
load(java.lang.String name,
java.lang.String dir)
Open the given filename and load the content into the EEPROM. |
boolean |
loadHEX(java.io.InputStream is)
|
boolean |
loadROM(java.io.InputStream is)
|
void |
por()
Power-on-reset, just call reset |
void |
readEeprom()
Read a word from the eeprom: address is taken from eeadr and value will be written to eedata |
int |
readMemory(int address)
Read a word, from interface PicMemory |
void |
reset()
Reset, report aborted write requests |
boolean |
resize(int i,
int j)
|
void |
save(java.lang.String name,
java.lang.String dir)
|
void |
setFilename(java.lang.String name)
|
void |
setFilename(java.lang.String name,
java.lang.String dir)
|
void |
wakeup()
Is called from every wakeup event in Pic16C84 and performs the write operation. |
void |
writeEeprom()
Write a word to the eeprom: eepromWakeup() will write, this method informs eepromWakeup() to write |
void |
writeMemory(int address,
int word)
Write a word, from interface PicMemory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int bits
protected long maxWord
protected int bytes
protected long[] eeprom
protected java.lang.String filename
protected PicReg eedata
protected PicReg eeadr
protected PicReg eecon1
protected boolean nextWrite
Constructor Detail |
public PicEeprom(int size, int bitsPerWord, PicReg newEedata, PicReg newEeadr, PicReg newEecon1)
Method Detail |
public void por()
public void reset()
public boolean resize(int i, int j)
public int getMemorySize()
getMemorySize
in interface PicMemory
public int getWordWidth()
getWordWidth
in interface PicMemory
public int readMemory(int address)
readMemory
in interface PicMemory
public void writeMemory(int address, int word)
writeMemory
in interface PicMemory
public void setFilename(java.lang.String name)
public void setFilename(java.lang.String name, java.lang.String dir)
public java.lang.String getFilename()
public void load(java.lang.String name, java.lang.String dir)
public boolean load(java.lang.Object parent, java.lang.String resourcename)
public boolean loadROM(java.io.InputStream is)
public boolean loadHEX(java.io.InputStream is)
public void save(java.lang.String name, java.lang.String dir)
public void writeEeprom()
public void readEeprom()
public void wakeup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |