Fix for bitbang I/O at higher clock speeds