How to use P15(pin B5) of CYW20706 as GPIO

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
wowu_1723141
Level 2
Level 2
Welcome!

Hi, CY expert,

I would like use P15 of CYW20706 as GPIO, and I try this but the output of this pin remain high, about 3V

wiced_hal_gpio_set_pin_output(WICED_P15, GPIO_PIN_OUTPUT_LOW);

I noticed there is P04 control method in another topic, so how about this pin?

B. Regds

Wolfman

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

You need to call the API wiced_bt_app_hal_init() and  wiced_hal_gpio_configure_pin( WICED_P15, GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_HIGH ) in the initial part of you code.

Please refer to the gpio demo under the snip/hal/gpio file for details.

View solution in original post

3 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

You need to call the API wiced_bt_app_hal_init() and  wiced_hal_gpio_configure_pin( WICED_P15, GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_HIGH ) in the initial part of you code.

Please refer to the gpio demo under the snip/hal/gpio file for details.

wowu_1723141
Level 2
Level 2
Welcome!

Hi zhxh

Thanks for your reply.

I did so already in my code. I used CY's EVK of which version is CYW92070xV3, and I just noticed a zero ohm resistor was mounted between P15 and VDDIO, I think it is the root cause of P15 remaining unchanged output.

B. Regds

Wolfman

0 Likes

Yes, it shoudl be the reason. Please remove the resistor and test again. I tesed with the CYW20706WCDEVAL board and P15 can be controlled.