Hello,
I have a question about how to program a CC2530 to count how long a button is pressed and if the button is pressed for 5 seconds, it will turn on LED2. Otherwise if it's less than 5 seconds, it will turn on LED1. How would I program this with a new project in IAR 8051? I would appreciate any helpful replies.