I have written a simple Arduino sketch, that shall produce a clock signal.
Here is the code:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(8,HIGH);
delayMicroseconds(500);
digitalWrite(8,LOW);
delayMicroseconds(500);
}
Namely the pin 8 of Arduino Uno is periodicaly set to HIGH and LOW.
The output that I receive, for three different frequencies, is:
My question is: Why is falling edge not as sharp as rising edge? As can be noted, for high frequencies the signal wouldn't go to LOW after all.
setup()
function? It looks like you're just enabling/disabling a pullup by default. – Dave Tweed Sep 24 '18 at 15:05