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.

cc2541 input with pull-down

Hi

I’m a beginner with electronics and I’m currently trying to work out how to set a pin with internal pull-dow resistor?

As per spec sheet, an input pin is by default set with a pull-up resistor, I need to change P0.0 to be input with pull-dow resistor

P0SEL = 0; 

P0DIR = 0xFE; // Port 0 pins P0.0 as input, all others as output

P0 = 0x01; // All pins on port 0 to low except for P0.0 

Any help would be appreciated