Jump to content

sufyank123

Members
  • Content Count

    3
  • Joined

  • Last visited

About sufyank123

  • Rank
    Noob Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. sufyank123

    Best way change I2C freq to 400kHz

    Can you help me out, I'm stuck because of this problem.
  2. sufyank123

    Best way change I2C freq to 400kHz

    Thank you for the response and the initiative. I will be waiting for a response and will also report if I find anything on this in the meantime.
  3. I am using MSP432P401R and wanted to increase the I2C frequency from 100kHz(Standard) to 400kHz(Fast). In the Wire library for arduino, there is a function Wire.setclock(). Has anybody written such a function for energia? Because it is not there in energia. I went through the wire and twi libraries and found the following, In wire library, Wire.endTransmission calls a fucntion in twi library, twi_writeTo() which has the following line of code, UCBzCTL1 |= UCSSEL_2; // SMCLK Is this the line of code that sets the clock speed? Also in the twi.h library, the line of code, #define TWI_FREQ 100000L defines the frequency as 100kHz, but even if I changed it to 400000L, I don't see any change on hardware. Is this the right way? I'd appreciate if anyone can help me with this. Thanks
×