picmicrocontroller
Class ADConverter

java.lang.Object
  extended by picmicrocontroller.ADConverter

public class ADConverter
extends java.lang.Object

This class represents the A/D converter submodule of a PIC16F877. It provides the simulation method of the A/D converter.


Field Summary
protected  PIC pic
           
 
Constructor Summary
ADConverter(PIC pic)
          Main constructor of A/D converter.
 
Method Summary
 void simulate()
          This method simulates one cycle of the A/D converter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pic

protected PIC pic
Constructor Detail

ADConverter

public ADConverter(PIC pic)
Main constructor of A/D converter.

Parameters:
pic -
Method Detail

simulate

public void simulate()
This method simulates one cycle of the A/D converter. A/D converter converts the given analog data into the digital format and updates necessarry registers in a certain amount of cycles.