This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP430F2274: donot interface i2c with adxl345 in msp430f2274

Part Number: MSP430F2274
Other Parts Discussed in Thread: PCF8574

Tool/software: Code Composer Studio

hi friends,

i tired to write program for adxl345 of i2c interface with msp430f 2274 by using code composer studiov5 version. but right now, i won't get interface the adxl345 with msp430 .

any one can please help me to right way of the output.

so this is my kit results.adxl_i2c msp430.docx

  • Hello Swarna,

    Thanks for posting your question.

    Could you please provide more information on your issue about not getting I2C interface?  Can you see signal on SDA/SCL lines? Do you have the pull-up resistors for the I2C SDA/SCL lines?

    Here is a code example showing how to use MSP430F22x4 as I2C master to communicate with a IO expander PCF8574 for your reference.

    msp430x22x4_uscib0_i2c_02.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /* --COPYRIGHT--,BSD_EX
    * Copyright (c) 2012, Texas Instruments Incorporated
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    *
    * * Neither the name of Texas Instruments Incorporated nor the names of
    * its contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Thanks,

    Yiding

  • Hi Swarna,

    I haven’t heard from you for a week , so I’m assuming you were able to resolve your issue. If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information. If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

    Regards,
    Yiding

**Attention** This is a public forum