Class SystemRegisters

java.lang.Object
  |
  +--SystemRegisters
Direct Known Subclasses:
DebuggableSystemRegisters

public class SystemRegisters
extends java.lang.Object

Instances of this class are system registers of PICs.
You can read the source of this class here.


Field Summary
static int C
          Bit C (Carry) of STATUS file register.
static int DC
          Bit DC (DigitCarry) of STATUS file register.
static int EEADR
          Address of EEADR system register.
static int EECON1
          Address of EECON1 system register.
static int EECON2
          Address of EECON2 system register.
static int EEDATA
          Address of EEDATA system register.
static int FSR
          Address of FSR system register.
static int INTCON
          Address of INTCON system register.
static int IRP
          Bit IRP of STATUS file register.
static int OPTION
          Address of OPTION system register.
static int PCL
          Address of PCL system register.
static int PCLATH
          Address of PCLATH system register.
static int PD
          Bit PD of STATUS file register.
static int PORTA
          Address of PORTA system register.
static int PORTB
          Address of PORTB system register.
static int RP0
          Bit RP0 of STATUS file register.
static int RP1
          Bit RP1 of STATUS file register.
static int STATUS
          Address of STATUS system register.
static int TMR0
          Address of TMR0 system register.
static int TO
          Bit TO of STATUS file register.
static int TRISA
          Address of TRISA system register.
static int TRISB
          Address of TRISB system register.
static int Z
          Bit Z (Zero) of STATUS file register.
 
Constructor Summary
SystemRegisters()
          Creates a new SystemRegisters.
 
Method Summary
 int Read(int address)
          Returns byte at address address in system registers.
 int Read(int address, int Bank)
          Returns byte at address address in bank Bank of system registers.
 void Write(int address, int n)
          Writes byte n at address address in system registers.
 void Write(int address, int n, int Bank)
          Writes byte n at address address in bank Bank of system registers.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PCL

public static final int PCL
Address of PCL system register.

STATUS

public static final int STATUS
Address of STATUS system register.

FSR

public static final int FSR
Address of FSR system register.

PCLATH

public static final int PCLATH
Address of PCLATH system register.

INTCON

public static final int INTCON
Address of INTCON system register.

TMR0

public static final int TMR0
Address of TMR0 system register.

PORTA

public static final int PORTA
Address of PORTA system register.

PORTB

public static final int PORTB
Address of PORTB system register.

EEDATA

public static final int EEDATA
Address of EEDATA system register.

EEADR

public static final int EEADR
Address of EEADR system register.

OPTION

public static final int OPTION
Address of OPTION system register.

TRISA

public static final int TRISA
Address of TRISA system register.

TRISB

public static final int TRISB
Address of TRISB system register.

EECON1

public static final int EECON1
Address of EECON1 system register.

EECON2

public static final int EECON2
Address of EECON2 system register.

IRP

public static final int IRP
Bit IRP of STATUS file register.

RP1

public static final int RP1
Bit RP1 of STATUS file register.

RP0

public static final int RP0
Bit RP0 of STATUS file register.

TO

public static final int TO
Bit TO of STATUS file register.

PD

public static final int PD
Bit PD of STATUS file register.

Z

public static final int Z
Bit Z (Zero) of STATUS file register.

DC

public static final int DC
Bit DC (DigitCarry) of STATUS file register.

C

public static final int C
Bit C (Carry) of STATUS file register.
Constructor Detail

SystemRegisters

public SystemRegisters()
Creates a new SystemRegisters.
Method Detail

Read

public int Read(int address)
Returns byte at address address in system registers.
Parameters:
address - Address to read from.

Write

public void Write(int address,
                  int n)
Writes byte n at address address in system registers.
Parameters:
address - Address to write to.
n - Byte to write.

Read

public int Read(int address,
                int Bank)
Returns byte at address address in bank Bank of system registers.
Parameters:
address - Address to read from.
Bank - Bank to read from.

Write

public void Write(int address,
                  int n,
                  int Bank)
Writes byte n at address address in bank Bank of system registers.
Parameters:
address - Address to write to.
n - Byte to write.
Bank - Bank to write to.