How to configure GPIO as Input/Output programatically in PSoC 4?

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

cross mob
jamec_2673086
Level 3
Level 3
5 likes given First like received First like given

Hi,

In my project, i want to configure GPIO as Input/Output programmatically.

Is it possible in PSoC 4 because I did not find any API for that?

0 Likes
1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Please see HSIOM register for ports from page#185-

http://www.cypress.com/file/126381/download

There is provision for Pin to be a regular firmware-controlled I/O

View solution in original post

0 Likes
2 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Please see HSIOM register for ports from page#185-

http://www.cypress.com/file/126381/download

There is provision for Pin to be a regular firmware-controlled I/O

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Check this KBA too.

Switching a GPIO Pin Connection between Analog and Digital Sources in PSoC® 4 - KBA90272

Similarly you have to access the registers. You may have to check whether you are using the right registers TRM too according to your device family.

Best Regards,
VSRS

0 Likes