ooPIC Logo

ooPIC Programmer's Guide

 Chapter 10 - The ooPIC System Object

Back to top of page What is the ooPIC Object.
 The ooPIC Object is an intrinsic object that controls the ooPIC's operating system. Several properties are provided that either control operating system functions or report operating system status.

Since the ooPIC Object is intrinsic, it is always present in every ooPIC application and the application programmer does not need to dimension it.

Back to top of page Controlling the ooPIC Operating System.
 Four properties are provided to control the ooPIC's Operating System:
  • Node
  • Operate
  • Pause
  • Reset

The Node property is a value that is used to specify the ooPIC's network node when two or more ooPIC's are connected via the I2C network.

The Operate property is a value that controls the running mode of the ooPIC Chip.

The Pause property is a value that suspends the program flow.

The Reset property is a value that resets the ooPIC when set. BUG: As of compiler revision 5.0.1, Reset appears to do nothing.

Back to top of page Reading ooPIC Operating System Status.
 Three properties are provided that report system status.
  • Hz1
  • Hz60
  • StartStat

The Hz1 property is a value that cycles every 1hz.

The Hz60 property is a value that cycles every 60hz.

The StartStat property is a value that indicates the cause of the last ooPIC reset.

Setting
What that means
0
Standard power on; the ooPIC just turned on.
1
Reset by the hardware reset line.
2
Reset caused by a power brown-out (low voltage on Vdd).
3
Reset caused by the watchdog timer or the Reset property being set.
Back to top of page Controlling Miscellaneous ooPIC Functions
 Two miscellaneous properties are provided that control miscellaneous hardware functions.
  • ExtVRef
  • PullUp

The ExtVRef property is a value that specifies the source of the voltage reference for the ooPIC's analog to digital module; either the internal Vdd maximum value or by the voltage set on I/O line 4.The voltage limits for this reference line are summarized in the following table.

ooPIC chip
Minimum
Maximum
ooPIC I (PIC16C74)
3.0V
5.0V
ooPIC II (PIC16F77)
2.2V
5.0V
ooPIC III (PIC16F77)
2.2V
5.0V
ooPIC II+,R,C (PIC16F877)
2.5V
5.0V
ooPIC III+,R,C (PIC16F877)
2.5V
5.0V

The PullUp property is a value that specifies the state of the internal pull-up resisters on I/O lines 8 - 15. When this property is set to 1 the internal weak pullups on these I/O lines will be enabled. This means that you don't need pullup resistors on these lines, useful when using a matrix keypad with the oKeypad objects.