Author Topic: I2C question  (Read 2147 times)

0 Members and 1 Guest are viewing this topic.

Offline JaneTopic starter

  • Frequent Contributor
  • **
  • Posts: 381
I2C question
« on: September 01, 2015, 07:45:09 pm »
I have a CPU that allows an access to its programmer’s registers via I2C bus. My problem is that I do not have  datasheets( I do not know all register numbers), so I used logic analyzer and found out few registers that are used.
Is it possible to find out all registers( and their default values) via I2C?
Do registers  contain complete  configuration or the configuration can be stored  differently and it is not possible to read via I2C?

 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8517
  • Country: us
    • SiliconValleyGarage
Re: I2C question
« Reply #1 on: September 01, 2015, 09:14:50 pm »
scan all register addresses in WRITE mode and see if an ACQ comes.  if no acq comes : the register does not exist.

then sweep again in read mode.

It woudl help if you woudl post the part number of the component you are trying to talk to...
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: I2C question
« Reply #2 on: September 01, 2015, 09:34:09 pm »
I bet it would be faster to find a data sheet than to hack it. Even you find a data sheet of a device in the same family with similar features - you would probably get more info than hacking.
Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline JaneTopic starter

  • Frequent Contributor
  • **
  • Posts: 381
Re: I2C question
« Reply #3 on: September 02, 2015, 05:07:28 pm »
I tried to check available registers and during the testing I find out that I can NOT write to a register
0xC0
until I first write to register
0x01 value 0xFD .
Is it common that I must write to one register before I can write to another?

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf