Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,648 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
163 Views

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 ---  

Reply