picmicrocontroller
Class FlashProgramMemory

java.lang.Object
  extended by picmicrocontroller.FlashProgramMemory

public class FlashProgramMemory
extends java.lang.Object

This class represents the flash memory of a PIC16F877. Flash memory consists of 8*1024 registers.


Method Summary
 int read(int address)
          Reads the value from given adress.
 void write(int address, int word)
          Writes the value into the given adress.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

write

public void write(int address,
                  int word)
Writes the value into the given adress.

Parameters:
address -
word - value to be written

read

public int read(int address)
Reads the value from given adress.