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.

MSP430F2417 RTC using DS2417

Other Parts Discussed in Thread: MSP430F2417

HI ,

I want to interface REAL time chip DS2417 1 wire with MSP430F2417 my confusion is how to know the GPIO of MSP whether it is pushpull or open drain ,I need to configure GPIO 2.1 as open drain can any one please suggest how to make pin 2.1 as GPIO open drain nothing specified in data sheet

 

rupesh

  • The MSP430 does not have open-collector or open drain pins. However, it can simulate the behavior by switching between input and output modes. You can tie the pin to a pull-up resistor (or use the built in pull-up resistor). In the input mode, the pin is high-impedance so the pull-up pulls up the line. You cannot pull up the MSP430 pins above Vcc.

    Please see the following resources to set up internal pull-up resistor on the device:
    a. See code example "msp430x21x1_Pull-up.c" in the following zip file:
    http://www.ti.com/lit/zip/slac011

    b. Pg 8-3 & 8-4 in the 2xx user's guide:
    http://www.ti.com/litv/pdf/slau144e

  • thanks for reply,

    so in case of DS2417 how can I make the pin open drain I think by disabling pullup by using P2REN&=~0x02;

    is it work?

    now I have to interface DS2417 real time chip to MSP430F2417 its a 1 wire chip can you please suggest some code for that?

     

    rupesh

    IIT kanpur

**Attention** This is a public forum