htekin 0 Posted June 20, 2016 Share Posted June 20, 2016 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. Quote Link to post Share on other sites
energia 485 Posted June 21, 2016 Share Posted June 21, 2016 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 1 Quote Link to post Share on other sites
energia 485 Posted June 21, 2016 Share Posted June 21, 2016 p.s. see the TivaC pinmap here http://energia.nu/pin-maps/guide_tm4c123launchpad/ for I2C module numbers. Quote Link to post Share on other sites
phenyl 18 Posted June 22, 2016 Share Posted June 22, 2016 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 Quote Link to post Share on other sites
Rei Vilo 695 Posted June 22, 2016 Share Posted June 22, 2016 Logic for SPI is just the same. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.