Programming for delay generation and effect of CPU clock