Arduino UNO inconsistent c pin out behavior


hi!

hope guys can me annoying problem happening.

im trying send single pulse of 500 us, 5v pin 13 (or pin).  i've hooked oscilloscope measure how long pin 13 turned on.  active pin 13, i'm using pushbutton different pin.  everytime push button, 5v 500us. i'm using delaymicroseconds(500) this. problem is, don't consistently. press button , turns on , doesn't.  faster press it, more times turns on in period never consistently.

i know button working since i've added serial.println("press")  right below on command of pin13 everytime  press button can see on serial monitor. have no idea why.  limitation of arduino in microsecond realm? here's picture of oscilloscope reading. pressed button 20+ times in order 5v spikes.

any advise appreciated!

thanks,
tomas

post code.


Arduino Forum > Using Arduino > Microcontrollers > Arduino UNO inconsistent c pin out behavior


arduino

Comments