Run and Test
After code compilation and flashing the
device, perform the following steps:
1.
Connect the two pins P02.0 and
P02.1 to each other.
P02.1 is used to generate the
falling and rising edges by
toggling the state from high to
low. P02.0 is the input of the
ERU which generates the
interrupts on falling and rising
edges.
2.
Toggle the P02.1 pin state via
the value of the variable
LEDstate
of the structure
g_ERUconfig
with the
debugger.
3.
Check LED D107 (1) is
changing state when the
variable is modified.
1
8
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.