Electronic – Teensy microcontroller showing slow fall time (but fast rise time)

microcontrollerteensy

My Teensy++ 2.0 is showing some slow fall times, around 1ms, when I set a pin to low (via DigitalWrite). It looks like there's capacitance on the line, but the rise time is pretty much zero, so that can't be it.

Has anyone had the same sort of issues? Is it possible that my Teensy is broken? I looked at the AT90USB datasheet but I couldn't find rise time and fall time on general purpose IO.

Thanks for your help!

Best Answer

Turns out this happens when the DDR register is set to input instead of output.