Pca9535 (pca9535)

Design

A block diagram representation of the implementation is given in Figure 177:

pca9535 block diagram.

Figure 177: pca9535 block diagram.

Interface

<!-- 
 PCA9535 Device Worker OCS
-->
<ComponentSpec>
                                                                                      <!--Device Offset-->
  <Property name="input_port0"    type="uchar" volatile="true"/>  		      <!-- 0-->
  <Property name="input_port1"    type="uchar" volatile="true"/>  		      <!-- 1-->
  <Property name="output_port0"   type="uchar" volatile="true" writable="true"/>      <!-- 2-->
  <Property name="output_port1"   type="uchar" volatile="true" writable="true"/>      <!-- 3-->
  <Property name="pol_inv_port0"  type="uchar" volatile="true" writable="true"/>      <!-- 4-->
  <Property name="pol_inv_port1"  type="uchar" volatile="true" writable="true"/>      <!-- 5-->
  <Property name="config_port0"   type="uchar" volatile="true" writable="true"/>      <!-- 6-->
  <Property name="config_port1"   type="uchar" volatile="true" writable="true"/>      <!-- 7-->
</ComponentSpec>

Properties

  • input_port0

    • Type: uchar

    • Access:

      • Parameter: False

      • Writable: False

      • Initial: False

      • Volatile: True

    • Default value: None

  • input_port1

    • Type: uchar

    • Access:

      • Parameter: False

      • Writable: False

      • Initial: False

      • Volatile: True

    • Default value: None

  • output_port0

    • Type: uchar

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: True

    • Default value: None

  • output_port1

    • Type: uchar

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: True

    • Default value: None

  • pol_inv_port0

    • Type: uchar

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: True

    • Default value: None

  • pol_inv_port1

    • Type: uchar

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: True

    • Default value: None

  • config_port0

    • Type: uchar

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: True

    • Default value: None

  • config_port1

    • Type: uchar

    • Access:

      • Parameter: False

      • Writable: True

      • Initial: False

      • Volatile: True

    • Default value: None

Ports

Inputs:

None.

Outputs:

None.

Implementations

Dependencies

The dependencies to other elements in OpenCPI are:

  • assets/hdl/devices/pca9535.hdl/pca9535.vhd

Limitations

Limitations of pca9535 are:

  • None.

Testing

There is no unit test for this device worker. The test and verification of this worker is covered in the Matchstiq I2C device worker. See the component datasheet of this worker for more details.