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.

Setting PIN as output header B battery board cc2530

Other Parts Discussed in Thread: CC2530EM

Hello guys,

I have an issue in setting a pin in the I/O Header B as an output. I sum up the steps that I followed:

1. I want to set pin 12 of P5, header B I/O , of the battery board as an output.

2. I checked the schematic to see that pin #12 of P5 --> EM_P1_11

3. I checked the schematic of cc2530EM board to see how the pin are mapped noticing that:  EM_P1_11 --> P0.0

4. I configured the register as P0SEL = 0x00 ; to set the pin as GPIO

5. To set the direction as an input probably I have to use P0DIR=0x00 but I don't know how to set it as an output (P0DIR=0xFB ?)

Thank you in advance for your help

Bye