Basic LED Flash not behaving as expected

Hi All,

Just messing around with a Basic program to flash the onboard ARC32 LED’s whilst waiting for my servos to arrive and I came across what I believe to be an anomaly. With reference to the two programs below No.1 works as expected i.e Turn the BATT LED On for 0.5 Secs and then Off for 0.5 Secs and Repeat. No.2 is behaving strangely in that it turns the Status LED On for estimated 0.1 Seconds and then OFF for 0.5 Seconds before repeating.

So my question is why does program No.2 only turn the Status LED on for 0.1 Seconds as opposed to the 0.5 Seconds programmed. My ARC-32 is Rev C

Program No.1 (Flashing BATT LED)

MAIN
HIGH P45
PAUSE 500
LOW P45
PAUSE 500
GOTO MAIN

Program No.2 (Flashing Status LED)

MAIN
HIGH P44
PAUSE 500
LOW P44
PAUSE 500
GOTO MAIN

I have the same issue. It looks like the status LED only blinks on, I can’t seem to get it to stay on for more than a micro second or two…

Glad I’m not going mad :slight_smile:

I think I’ve proved this away from an LED issue by programing the BAT LED to Flash and shorting the BAT LED positive leg onto the STATUS LED positive leg whereby both LED’s flash on for 0.5 seconds and off for 0.5 seconds as desired.

Can either one of you look at the I/O pin side of the Status Led and tell me what the voltage is at when it goes high? This could be a dragged down voltage problem on the I/O pin. It may be enough so you get a brief flash but not enough to keep the led lit. I can’t find any other ARC32s with this problem so I cant check it myself.

It’s a little quick to measure as only HIGH for around 0.1 secs. The most I measured was 0.07 volts.

I can’t seem to get it to stay on for more than a micro second or two…

What version of Studio are you using? What else is your program doing?