Skip to main content
nakulrao
Associate III
January 4, 2013
Question

STM32F4 I2C

  • January 4, 2013
  • 4 replies
  • 972 views
Posted on January 04, 2013 at 07:37

Hi

I am attempting to interface the aptina mt9d111 with the stm3240g-eval board.

To initialize all the cam registers, I have to make use of I2C. As far as I know I2C sends only 8-bit data. But some of the registers are 16-bit wide. How am I supposed to initialize them?

Any help will be really appreciated. 

Thanks in advance.
    This topic has been closed for replies.

    4 replies

    waclawek.jan
    Super User
    January 4, 2013
    Posted on January 04, 2013 at 09:28

    This has nothing to do with STM32, not even with the I2C specification.

    You simply transfer 8-bit bytes through I2C; their interpretation is entirely up to the slave. Thus, refer to the chip's documentation to find out how to write it's registers.

    JW

    nakulrao
    nakulraoAuthor
    Associate III
    January 5, 2013
    Posted on January 05, 2013 at 04:50

    Hi

    As far as I know the initial device address that has to be sent can be 7-bits wide. But in my case, the device address is itself 1519. I cant be sending 15 and then 19 as it will be overwritten. So, I am not really sure what to do.

    ken239955
    Associate II
    January 5, 2013
    Posted on January 05, 2013 at 20:33

    I agree with what JW is trying to tell you. A vast majority of devices use an 8-bit interface. This does not limit the amount of data that can be transferred. Read the operational manual for that device.

    waclawek.jan
    Super User
    January 8, 2013
    Posted on January 08, 2013 at 13:21

    No, it is not. Read the manual carefully.

    JW

    > But in my case, the device address is itself 1519.