Could I config GPIO_3(p27,p33) as Input(active high) with CYW20706?

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

cross mob
jeje_2937166
Level 3
Level 3
10 questions asked 25 sign-ins 10 replies posted

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??

0 Likes
1 Solution

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

View solution in original post

0 Likes
5 Replies
jeje_2937166
Level 3
Level 3
10 questions asked 25 sign-ins 10 replies posted

also I  want to config p32 as gpio(input active high)

0 Likes

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

0 Likes
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

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.

0 Likes

Hi AnjanaM

I am using custom board. and I use PUART port P2 and P30.

Voltage on VDD is 3.3V

Thank you

0 Likes

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

0 Likes