Sign in to follow this  
Followers 0
htekin

TM4C I2C usage

5 posts in this topic

Dear All,


TI launchpad has more than one I2C hardware interface and in Energia examples it uses the first I2C hardware. How to use others?


 


Also is it possible to use Energia to program DMA controller?


 


Thanks


Best Regards.


Share this post


Link to post
Share on other sites

You can choose to use a different interface (module) by calling Wire.setModule(<module number>).

For example to use I2C on pins 5/6 you would call Wire.setModule(2).

Note that right now, it is only possible to use one I2C interface at the time.

 

As to your second question, you can program the DMA controller by using driverlib calls.

 

Robert

Fmilburn likes this

Share this post


Link to post
Share on other sites

You can choose to use a different interface (module) by calling Wire.setModule(<module number>).

For example to use I2C on pins 5/6 you would call Wire.setModule(2).

Note that right now, it is only possible to use one I2C interface at the time.

 

As to your second question, you can program the DMA controller by using driverlib calls.

 

Robert

Hi,

 

is that also possible with SPI in case there are several SPI interfaces? (One interface at a time means one per sketch or the first interface, then the second, then the first  again in the same sketch?)

 

Thank you very much

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0