LPC1768 Output Open Drain With Pull-Up

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

LPC1768 Output Open Drain With Pull-Up

Jump to solution
3,687 Views
contr2889
Contributor III

Hi Everyone,

     I am stuck trying to set a pair of pins in Open Drain mode with internal pull ups, I am using LPC1768 board. How I can do that? also, How I can know the value of this internal pull up  resistor? Thanks for your help.

 

Best Regards

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
3,656 Views
contr2889
Contributor III

Hi @frank_m  , thanks for your help. I was also looking on the manual for a solution and I found something I can use as you can see in the attached image.

contr2889_0-1648660957479.png

I will try it but still I need to know the value of these pull ups resistors.

View solution in original post

0 Kudos
Reply
6 Replies
3,660 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello contr2889,

How about PINMODE register, you can check UM for detail:

Alice_Yang_0-1648623781698.png

 

BR

Alice

 

0 Kudos
Reply
3,655 Views
contr2889
Contributor III

@Alice_Yang thanks for your reply. I am trying this now but still I need to know the value of these pull ups resistors.

Regards

0 Kudos
Reply
3,676 Views
frank_m
Senior Contributor III

Skimming over the sections in the MCU user manual, I see no generic configuration for internal pull-up/pull-down resistors for GPIOs. I have seen this on other MCUs, and other vendors, though.

The only OD pins are those associated with I2C, and here you need external pull-up´resistors.

It has been tried with other MCU's, but I2C does not work with internal pull-ups, which are usually in the 40..50 kOhm range.

0 Kudos
Reply
3,670 Views
contr2889
Contributor III

@frank_m  I thought to have pins with OD and pull-ups would be possible but if is not, then my only option is to use external pull-ups. Thanks for your reply.

0 Kudos
Reply
3,663 Views
frank_m
Senior Contributor III

The LPC17xx is a more "seasoned" model, and AFAIK designed to be pin compatible with LPC23xx devices. 

I have checked the pinout and the GPIO section of the MCU user manual, and found no hint about configurable pull-up/pull-downs. To name some examples, the LPC546xx has this option (in the IOCON register), as most STM32s have.

0 Kudos
Reply
3,657 Views
contr2889
Contributor III

Hi @frank_m  , thanks for your help. I was also looking on the manual for a solution and I found something I can use as you can see in the attached image.

contr2889_0-1648660957479.png

I will try it but still I need to know the value of these pull ups resistors.

0 Kudos
Reply