Is the MSP430F5510 GPIO output support open drain type?
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.
What exactly are you trying to drive / sink with the GPIO? You can set the GPIO to output low (sink the pin to ground), then set it as an input (with or without a pull-up or pull-down resistor) to float the pin, thus acting like an open drain type circuit.
However, you can't input a voltage much higher than Vdd because there are clamping diodes on the I/O lines inside the chip.
Most GPIO pins when selected to be outputs are push/pull. They either pull up to Vdd or pull down to Vss. When outputting a digital 1, the pin is pulled up to Vdd as if an internal switch were connecting the pin to Vdd within the microcontroller. When outputting a digital 0, the pin is pulled down to Vss (0 V) as if an internal switch were connecting the pin to Vss within the micro.
An open collector output normally implements only the pull-down part of the switch. When set to output a digital 1, the pin just floats. Some MIcrochip PIC devices had a pin that was open drain and it used to catch people out as when they tried to drive the pin high (e.g. to light an LED of which one side was grounded), it never would source current into the LED.
As this is fundamental information for correct use of the pin, the data sheet should make it very clear if it is open collector output. Otherwise it probably won't be. And the advice given by the previous respondent about not exceeding the voltage of Vdd is good - even if a pin is designed as open collector output, it will most likely have the same voltage limits as the rest of the chip and also have protection diodes internally to the chip supply.
If you really need open collector, you could add an external transistor and then drive this with the microcontroller pin.
Thanks, I am designing an application that using the MSP430 to drive a Wi-Fi module. The Wi-Fi module supplier said we need an open-drain type output pin to drive the module directly, so I would like to clarify the type of pin first, as I cannot find it in the datasheet (may be I cannot understand the datasheet well). I will further clarify it with the module supplier why I need an open drain pin.
Thanks for your help :)
Gary Poon said:Is the MSP430F5510 GPIO output support open drain type?
The MSP pins support OC-type, but it isn’t obvious.
Normally, you set the pin to output (PxDIR register), and change the direction it drives by changing the output value (PxOUT register).
But you can implement an OC operation by setting the PxOUT to 0 (low output) and change the direction between output and input. This way, the pin toggles form low output to high-impedance, which is what OC does too.
So for standard push-pull mode, set PxDIR to 1 and control the output with PxOUT. For OC mode, set PxOUT to 0 and control the output with PxDIR.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.