LPC5536: I measure VCC at true open drain pins.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC5536: I measure VCC at true open drain pins.

423 Views
danielholala
Senior Contributor II

Hello,

the LPC55(S)xx series has two true open drain pins:

https://www.nxp.com/docs/en/application-note/AN13033.pdf

PIO0_13 and PIO0_14 are true open drain pins.

I tested this with my own LPC5536 board:

When I do not configure PIO0_13 (pin #46 on 64 pin package), the pin is floating (i.e., high impedance, "Z" as noted in the datasheet).

When I configure PIO0_13 as GPIO and output, I measure a voltage of 3.3 V (i.e., VCC) when set to HIGH.

I wonder why this is?

The datasheet states: "True open-drain pin. [...] The pin requires an external pull-up to provide output functionality.  [...] Open-drain configuration applies to all functions on this pin."

In other words, there should never be any voltage present on this pin (as long as this pin is not connected to external circuitry).

Any ideas why I measure this voltage?

Thanks.
Daniel

 

0 Kudos
Reply
2 Replies

406 Views
danielholala
Senior Contributor II

Due to the great wisdom of NXP management, the edit time window has been reduced to only a couple of minutes. So I have to add this separate posting:

The pin PIO0_13 only behaves as open drain when I explicitly configure it as such (by way of Pins tool). 

If this behavior is expected, then I don't understand the datasheet's statement that there's no output on that pin independent of the chosen function (or the datasheet's statement is incorrect).

Note the following observation: if PIO0_13 is configured as OD and set to HIGH, I can easily "float" this pin (e.g., by touching it)  to voltages of say 6 V. This is way more than a "normal" GPIO pin would allow. Usually "normal" pins implement protection diodes which would pull the voltage down to 3,3 V + Vforward as described in the reference manual:

danielholala_0-1767880597403.png

 

So maybe this is the difference of the "true open drain" pins compared to "normal" pins?

Any comment is appreciated.

Cheers
Daniel

 

 

 

0 Kudos
Reply

347 Views
luis_maravilla
NXP Employee
NXP Employee

Hello Daniel,

Could you help us share the following information:

 

Are you are testing an SDK example?

Are you are using and NXP board or LPC5536 custom board? If so, could you help us sharing your connections in schematics with the PIO0_13?

Could you help us bring information about what will be the use of this pin?

 

In Reference Manual Chapter 7.2.1 features, comment about that PIO_13 and PIO_14 are a combo for I2C/MFIO (Multi-Function Input Output), this is the difference with a standard pin configuration [MFIO], and in Chapter 7.3, [Figure 8] is a representation on this configuration to compare to a Standard GPIO pin configuration [Figure 7].

 

In addition, for reviewing your custom board design alongside the Hardware Design Guidelines [AN13707] NXP recommend checking the EVK Board Design Files for validation.

 

The link for LPC5536 EVK board files is here LPC5536-EVK Design Files

 

In the Evaluation board the P0_13 and P0_14 are connected to a pull-up resistor, so is expected to measure 3.3v and only to behave as open drain when configured.

 

Best Regards

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2290263%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC5536%3A%20I%20measure%20VCC%20at%20true%20open%20drain%20pins.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290263%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3Ethe%20LPC55(S)xx%20series%20has%20two%20%3CSTRONG%3Etrue%20open%20drain%20pins%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13033.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13033.pdf%3C%2FA%3E%3C%2FP%3E%3CP%3EPIO0_13%20and%20PIO0_14%20are%20true%20open%20drain%20pins.%3C%2FP%3E%3CP%3EI%20tested%20this%20with%20my%20own%20LPC5536%20board%3A%3C%2FP%3E%3CP%3EWhen%20I%20do%20not%20configure%20PIO0_13%20(pin%20%2346%20on%2064%20pin%20package)%2C%20the%20pin%20is%20floating%20(i.e.%2C%20high%20impedance%2C%20%22Z%22%20as%20noted%20in%20the%20datasheet).%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhen%20I%20configure%20PIO0_13%20as%20GPIO%20and%20output%2C%20I%20measure%20a%20voltage%20of%203.3%20V%20(i.e.%2C%20VCC)%20when%20set%20to%20HIGH.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20wonder%20why%20this%20is%3F%3C%2FP%3E%3CP%3EThe%20datasheet%20states%3A%20%22%3CEM%3ETrue%20open-drain%20pin.%20%5B...%5D%3C%2FEM%3E%3CEM%3E%26nbsp%3BThe%20pin%20requires%20an%20external%20pull-up%20to%20provide%20output%20functionality.%26nbsp%3B%20%5B...%5D%26nbsp%3B%3C%2FEM%3E%3CEM%3EOpen-drain%20configuration%20applies%20to%20all%20functions%20on%20this%20pin.%3C%2FEM%3E%22%3C%2FP%3E%3CP%3EIn%20other%20words%2C%20there%20should%20never%20be%20any%20voltage%20present%20on%20this%20pin%20(as%20long%20as%20this%20pin%20is%20not%20connected%20to%20external%20circuitry).%3C%2FP%3E%3CP%3EAny%20ideas%20why%20I%20measure%20this%20voltage%3F%3C%2FP%3E%3CP%3EThanks.%3CBR%20%2F%3EDaniel%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290297%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%3A%20I%20measure%20VCC%20at%20true%20open%20drain%20pins.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290297%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CFONT%20size%3D%222%22%3EDue%20to%20the%20great%20wisdom%20of%20NXP%20management%2C%20the%20edit%20time%20window%20has%20been%20reduced%20to%20only%20a%20couple%20of%20minutes.%20So%20I%20have%20to%20add%20this%20separate%20posting%3A%3C%2FFONT%3E%3C%2FP%3E%3CP%3EThe%20pin%26nbsp%3B%3CSPAN%3EPIO0_13%3C%2FSPAN%3E%26nbsp%3B%3CSTRONG%3Eonly%3C%2FSTRONG%3E%20behaves%20as%20open%20drain%20when%20I%20explicitly%20configure%20it%20as%20such%20(by%20way%20of%20Pins%20tool).%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20this%20behavior%20is%20expected%2C%20then%20I%20don't%20understand%20the%20datasheet's%20statement%20that%20there's%20no%20output%20on%20that%20pin%20independent%20of%20the%20chosen%20function%20(or%20the%20datasheet's%20statement%20is%20incorrect).%3C%2FP%3E%3CP%3ENote%20the%20following%20observation%3A%20if%26nbsp%3B%3CSPAN%3EPIO0_13%20is%20configured%20as%20OD%20and%20set%20to%20HIGH%2C%20I%20can%20easily%20%22float%22%20this%20pin%20(e.g.%2C%20by%20touching%20it)%26nbsp%3B%20to%20voltages%20of%20say%206%20V.%20This%20is%20way%20more%20than%20a%20%22normal%22%20GPIO%20pin%20would%20allow.%20Usually%20%22normal%22%20pins%20implement%20protection%20diodes%20which%20would%20pull%20the%20voltage%20down%20to%203%2C3%20V%20%2B%20Vforward%20as%20described%20in%20the%20reference%20manual%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielholala_0-1767880597403.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielholala_0-1767880597403.png%22%20style%3D%22width%3A%20765px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielholala_0-1767880597403.png%22%20style%3D%22width%3A%20765px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372177i116AEF7532E2999D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22danielholala_0-1767880597403.png%22%20alt%3D%22danielholala_0-1767880597403.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3ESo%20maybe%20this%20is%20the%20difference%20of%20the%20%22true%20open%20drain%22%20pins%20compared%20to%20%22normal%22%20pins%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAny%20comment%20is%20appreciated.%3C%2FP%3E%3CP%3E%3CSPAN%3ECheers%3CBR%20%2F%3EDaniel%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291165%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%3A%20I%20measure%20VCC%20at%20true%20open%20drain%20pins.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291165%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Daniel%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20share%20the%20following%20information%3A%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAre%20you%20are%20testing%20an%20SDK%20example%3F%3C%2FP%3E%0A%3CP%3EAre%20you%20are%20using%20and%20NXP%20board%20or%20LPC5536%20custom%20board%3F%20If%20so%2C%20could%20you%20help%20us%20sharing%20your%20connections%20in%20schematics%20with%20the%20PIO0_13%3F%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20bring%20information%20about%20what%20will%20be%20the%20use%20of%20this%20pin%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIn%20Reference%20Manual%20Chapter%207.2.1%20features%2C%20comment%20about%20that%20PIO_13%20and%20PIO_14%20are%20a%20combo%20for%20I2C%2FMFIO%20(Multi-Function%20Input%20Output)%2C%20this%20is%20the%20difference%20with%20a%20standard%20pin%20configuration%20%5BMFIO%5D%2C%20and%20in%20Chapter%207.3%2C%20%5BFigure%208%5D%20is%20a%20representation%20on%20this%20configuration%20to%20compare%20to%20a%20Standard%20GPIO%20pin%20configuration%20%5BFigure%207%5D.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIn%20addition%2C%20for%20reviewing%20your%20custom%20board%20design%20alongside%20the%20Hardware%20Design%20Guidelines%20%5BAN13707%5D%20NXP%20recommend%20checking%20the%20EVK%20Board%20Design%20Files%20for%20validation.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThe%20link%20for%20LPC5536%20EVK%20board%20files%20is%20here%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DLPCXPRESSO5536_EVK-DESIGN-FILES%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ELPC5536-EVK%20Design%20Files%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIn%20the%20Evaluation%20board%20the%20P0_13%20and%20P0_14%20are%20connected%20to%20a%20pull-up%20resistor%2C%20so%20is%20expected%20to%20measure%203.3v%20and%20only%20to%20behave%20as%20open%20drain%20when%20configured.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%3C%2FLINGO-BODY%3E