- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it shoudl be the reason. Please remove the resistor and test again. I tesed with the CYW20706WCDEVAL board and P15 can be controlled.