2020-10-23 12:20 AM
Solved! Go to Solution.
2020-11-02 03:47 AM
Hello,
In SPC5Studio there are several applications with do LED blinking.
However in order to do LED blinking please see the code below
Pin connected to LED has to be configured as GPIO push-pull
/* Enable the interrupts */
irqIsrEnable();
for ( ; ; ) {
pal_togglepad(<your port>, <your pin>);
osalThreadDelayMicroseconds(<milliseconds>);
}
Regards,
Giuseppe
2020-11-02 03:47 AM
Hello,
In SPC5Studio there are several applications with do LED blinking.
However in order to do LED blinking please see the code below
Pin connected to LED has to be configured as GPIO push-pull
/* Enable the interrupts */
irqIsrEnable();
for ( ; ; ) {
pal_togglepad(<your port>, <your pin>);
osalThreadDelayMicroseconds(<milliseconds>);
}
Regards,
Giuseppe
2020-11-02 08:08 PM
Hi,
It works. Thanks Giuseppe
Regards,
Rocky