Solved
Hi, I'm new to this SPC582BX. how to make LED blink with different delays? i used pal_lld_setpad and clearpad with delay. but board its continuous glow only. all files are added from component.h file. but still not work
..
..
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.