How to use Hibernate Hib_IO_1 pin as digital Input ?

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

cross mob
User13086
Level 1
Level 1
Hi,

in my XMC4700 application i want to use hibernate pins as digital input and output.

Use "Hib_IO_0" as output works:
- XMC_SCU_HIB_SetPinMode(XMC_SCU_HIB_IO_0, XMC_SCU_HIB_PIN_MODE_OUTPUT_PUSH_PULL_HIBCTRL);
- XMC_SCU_HIB_SetPinOutputLevel(XMC_SCU_HIB_IO_0, XMC_SCU_HIB_IO_OUTPUT_LEVEL_HIGH);


but how can i use "Hib_IO_1" as input ?

Regards,
Hans
0 Likes
3 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Have a look to ERU_HIB_IO example for XMC4300 in XMCLib.

Regards,
Jesus
0 Likes
User13086
Level 1
Level 1
Thank you for the answer,

using the ERU (EventRequestUnit) it is possible to read the input value of HIB_IO_1.
After each CHANGE of the input value the value of HIB_IO_1 is made available using the ERU.

That means that after a restart of the system, the input value of HIB_IO_1 is unknown.
Only when the input value changes the new value of HIB_IO_1 is available via the ERU.

Is there a way to read the level (not based on rising- or falling-edge events) of the input value?

Regards,
Hans
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Unfortunately I do not see a way to achieve that.

Regards,
Jesus
0 Likes