Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Altera Avalon I2C Master Core w/Nios II

Hi all,

I am trying to run the Altera Avalon Master I2C core from Nios II w/Eclipse.

I am accessing the core registers in memory using "altera_avalon_i2c_regs.h"

In the memory debug view, it seems that all of my calls are responded to in memory, other than IOWR_ALT_AVALON_I2C_TFR_CMD, which is the register that holds the data to be transmitted. It remains zero at all times.

Any ideas, or any recommendations on other I2C cores ?

Thanks,

rabee

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It is a registre for write only, then always that you try to read, the funtion return 0000000

    --- Quote Start ---

    Hi all,

    I am trying to run the Altera Avalon Master I2C core from Nios II w/Eclipse.

    I am accessing the core registers in memory using "altera_avalon_i2c_regs.h"

    In the memory debug view, it seems that all of my calls are responded to in memory, other than IOWR_ALT_AVALON_I2C_TFR_CMD, which is the register that holds the data to be transmitted. It remains zero at all times.

    Any ideas, or any recommendations on other I2C cores ?

    Thanks,

    rabee

    --- Quote End ---