- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was asked to display cpu pins drive mode for all the CPU pins.
Found only the " SetDriveMode(uint8 mode)"
Is there a GetDriveMode() function available as well?
if not, how can i do it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can read the PRT_PC register corresponding to the particular port using the CY_GET_REG32(). The GPIO drive mode is stored in the [23:0] of the 32 bit register. Three bits are used for each pin. Please have a look at the Registers TRM for more details.
Thanks,
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can read the PRT_PC register corresponding to the particular port using the CY_GET_REG32(). The GPIO drive mode is stored in the [23:0] of the 32 bit register. Three bits are used for each pin. Please have a look at the Registers TRM for more details.
Thanks,
Ekta