added clock divider and fix synchronization

clock now runs at 25Mhz to fix synchronization