RegPoke

Introduction

RegPoke is a stand-a-lone application used to read/write value from/to a hardware register. The user needs to input the register’s SHIP (I2C) address, register address, number of address bits number of data bits and the value to write. The user can type the read/write value or toggle the bits select-boxes. The register can be on an Aptina sensor, SOC or companion chip, or another device in the system, such as an FPGA or other I2C device.

 

Figure 1. The RegPoke GUI

GUI Item Descriptions:

Speed - Speed of I2C - Either 100KHz or 400KHz

SHIP (I2C) Address -  I2C Base Address.  Consult the datasheet for this address. Usually 0xBA or 0xB8 for Aptina sensors. 

Register Address - Address of the register to read/write.  Can be either an 8 or 16bit register address.

Get/Set  - Initiates a "Get" (Read) or "Set" (Write) of the register 

Hex/Dec modes - Toggles between hexadecimal and decimal input/output

Value - Either the value to write or the result of the value read.  This can be 8 or 16bits.  The value can be entered/viewed via the input box or with the individual bit settings.

Log  

  • Every "Get" and "Set" command submitted via RegPoke is logged and displayed in this box.
  • The log box can be scrolled to view the command history.
  • The log can be saved by copying and pasting it into a text editor.
  • Select with the mouse and right click to choose the copy and paste commands.


Usage:


Reading a Register

  • Enter the Register address in the "Register" box and click "Get"
  • The Resulting value is displayed in the "Value" box.
  • The Resulting bits are displayed as checked boxes from 0 to 15.


Writing a Register

  • Enter the Register address in the "Register" box
  • Enter the desired value in the "Value" box and click "Set"
  • Alternatively, select value bits by checking the desired boxes.
  • Click "Get" to verify that the register was written

 

Related pages