PSOC6 parallel writing of a port

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

cross mob
RoBo_293926
Level 1
Level 1
5 sign-ins First question asked First reply posted

I want to write a port in parallel as I can do.
I used the CY_GPIO_Port_Init function (gipoport, config); but how do I write the data ?.
with PSOC 5 use: void portxxx_Write (uint8 value);

0 Likes
1 Solution

Hi @RoBo_293926 ,

You can directly write to the PORT OUTPUT DATA Register. And the information about the same can be found in the device register TRM here: https://www.infineon.com/dgdl/Infineon-PSoC_6_MCU_PSoC_62_Register_Technical_Reference_Manual-Additi... . For e.g. in page 712 of this document, you can refer GPIO_PRT0_OUT i.e. port 0 output data register. Likewise, you can check ports of your use.

Also, for writing to any register directly,  please refer the given API here : https://infineon.github.io/core-lib/html/group__group__utils.html#gafc826bc60da53abdb37e1e12c91d148a . CY_SET_REG32 API is a part of the Core Library which provides basic types and utilities that can be used between different devices.

Hope this helps!

Best Regards,

Aashita

View solution in original post

0 Likes
4 Replies
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @RoBo_293926 ,

With the thread description you have mentioned, I assume you are using PSoC 6 and you want to write to the port. You can refer this link here : https://infineon.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__gpio__functions__ini... for all the GPIOs related PDL APIs.

Meanwhile, can you please let us know the MPN of PSoC 6 device, that you are using?

Best Regards,

Aashita

 

0 Likes

Hi Aashita,

j use the CY8C6244AZI-S4D93.

in the link you sent me I don't understand which function to use to write the port in parallel.

Best regards

Roberto

0 Likes

Hi @RoBo_293926 ,

You can directly write to the PORT OUTPUT DATA Register. And the information about the same can be found in the device register TRM here: https://www.infineon.com/dgdl/Infineon-PSoC_6_MCU_PSoC_62_Register_Technical_Reference_Manual-Additi... . For e.g. in page 712 of this document, you can refer GPIO_PRT0_OUT i.e. port 0 output data register. Likewise, you can check ports of your use.

Also, for writing to any register directly,  please refer the given API here : https://infineon.github.io/core-lib/html/group__group__utils.html#gafc826bc60da53abdb37e1e12c91d148a . CY_SET_REG32 API is a part of the Core Library which provides basic types and utilities that can be used between different devices.

Hope this helps!

Best Regards,

Aashita

0 Likes
RoBo_293926
Level 1
Level 1
5 sign-ins First question asked First reply posted

Hi Aashita,

Thanks I will try to use this mode.

Best regards

Roberto

0 Likes