Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

I2C: repeated start condition on MSP430f5529LP

$
0
0

Hello everybody,

I'm trying to read some registers of the TPS65982 EVM with a MSP430f5529LP. I found out thanks to google that the Wire Library doesn't support a repeated start condition. By the way the library is not working properly ( endTransmission() makes the Launchpad freeze) so i followed the instructions given on this topic: https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/529036/1924573 (patch energia 17 with two files: twi.c and twi_sw.c) and it works correctly now. I tried next to make a "home made repeated start condition" with energia 17: i noticed in the file twi_sw a function i2c_sw_start(addresse,rw); so i tried to run it when appropriate but doesn't work...

If someone has any idea of how to make one, or if there is a library supporting the repeated start condition it would be great ;) 

I attach to this post the files I modified to make a repeated start condition (my custom function is called resend_start())

Thanks in advance,

Poliakospl

Attached Files

  • Attached File  twi.c   38.34KB   0 downloads
  • Attached File  twi.h   2.87KB   0 downloads
  • Attached File  twi_sw.c   5.33KB   0 downloads
  • Attached File  twi_sw.h   1.33KB   0 downloads
  • Attached File  Wire.cpp   7.85KB   0 downloads
  • Attached File  Wire.h   3.3KB   0 downloads

Viewing all articles
Browse latest Browse all 2077

Trending Articles