oRAM Object

Main Index
Object List
Back to top of page Description:
 

Provides access to the PIC's Random-Access-Memory (RAM) via a pointer that can be accessed with a Virtual Circuit.

The PIC's RAM is used for both variable storage and hardware control.

Potential uses include allowing an application to access to the internal registers of the PIC and allowing virtual circuit access to any property of any ooPIC object.

Caution: This object is intended for advanced users and its use is not recommended to those without a thorough knowledge of the internal workings of the PIC or the ooPIC.

The following table lists the size and availability of the oRAM Object.
 ObjectSizeDescriptionA1A2B1B2C1
oRAM3 ByteProvides access to the PIC's Random-Access-Memory.xxxxx
Back to top of page Operation:
 When the Value property is read, the memory location pointed to by the Locating Property is read.

When the Value property is written, the data is stored at the memory location pointed to by the Location property.

Note that when accessing the PIC's special function registers you should use the PIC Object. 

Additional information can be found in the ooPIC Memory Map.

Back to top of page Properties:
 

The following table lists the properties of the oRAM Object:

Property

Description

Value
An 8-bit value indicating the value of the location in RAM pointed to by the Location property.
Object Class: oValue Value Range: 0 - 255
Data Type: Numeric Default Value: 0
Location
A value that specifies the current read/write location within the system's RAM memory.
Object Class: oVar8 Value Range: 0 - 255
Data Type: Numeric Default Value: 0
Address
Returns a pointer to the address of the oCounter Object instance.
Object Class: oAddress Value Range: 0 - 127
Data Type:Pointer (Read Only) Default Value: Address of Object

Back to top of page Example:
 In the following example uses the oRam Object.
' This program reads the memory location 126
' and outputs its binary value to I/O lines 8-15.

Dim A As New oRAM
Dim B As New oDIO8 

Sub Main()
  B.IOGroup = 1
  B.Direction = cvOutput
  A.Location = 126
  B.State = A.Value
End Sub 
Back to top of page Related Items:
 SCP access also can read memory from the ooPIC.
 The following table lists objects with related functions
 ObjectDescriptionA1A2B1B2C1
PICProvides low-level access to the PIC.xxxxx
Back to top of page Version History and Bug List:
 Firmware Ver A1: Introduced.

Bugs: No known bugs.


 

ooPIC Compiler Ver 6.0 (c) Copyright 1997 - 2007 Savage Innovations, LLC.