- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
When I config WICED_P27 or WICED_p33 as GPIO_INPUT(Active HIGH), but it always keep about 1.6V
My config is
wiced_hal_gpio_configure_pin( 27 or 33, GPIO_INPUT_ENABLE | GPIO_PULL_DOWN | GPIO_EN_INT_BOTH_EDGE , GPIO_BUTTON_DEFAULT_STATE );
I know that I must setting for to use WICED_P04(BT_CLK_REQ) as GPIO.
#define cr_pad_fcn_ctl_adr4 0x003201b8
#define REG32(x) (*(volatile unsigned*)(x))
unsigned val = REG32(cr_pad_fcn_ctl_adr4) & ~(0x0000F000);
REG32(cr_pad_fcn_ctl_adr4) = val | (7 << 12);
Could WICED_P27 or WICED_P33 pin config as GPIO??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I just tested on 20706 EVAL board.
wiced_hal_gpio_configure_pin( WICED_P27, GPIO_INPUT_ENABLE| GPIO_EN_INT_BOTH_EDGE , WICED_GPIO_BUTTON_DEFAULT_STATE ); gives me 3.3V on P27 .
1.6V is because of GPIO_PULL_DOWN parameter.
By default GPIO_INPUT_ENABLE will make the pin active high. By adding GPIO_PULL_DOWN its going to tristate and giving ~1.6V
Thanks,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
also I want to config p32 as gpio(input active high)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You should be able to configure P27 / P33 / P32 by wiced_hal_gpio_configure_pin API .
Are you using CYW20706 EVAL board or custom board? If EVAL board, P33 pin is configured as PUART Rx . Could you please comment of PUART code and try ? Please try switch off PUART Rx on SW5 of eval board.
Could you please check the voltage on VDD pin as well ?
Thanks,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As mentioned in CYW20706 datasheet- section 1.7 GPIO ports, P26, P27, P28, and P29 are capable of driving up to 16 mA at 3.3V or 8 mA at 1.8V. Therefore you are getting voltage value about 1.6V on the pin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AnjanaM
I am using custom board. and I use PUART port P2 and P30.
Voltage on VDD is 3.3V
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I just tested on 20706 EVAL board.
wiced_hal_gpio_configure_pin( WICED_P27, GPIO_INPUT_ENABLE| GPIO_EN_INT_BOTH_EDGE , WICED_GPIO_BUTTON_DEFAULT_STATE ); gives me 3.3V on P27 .
1.6V is because of GPIO_PULL_DOWN parameter.
By default GPIO_INPUT_ENABLE will make the pin active high. By adding GPIO_PULL_DOWN its going to tristate and giving ~1.6V
Thanks,
Anjana