- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aashita,
Thanks I will try to use this mode.
Best regards
Roberto