Another post on counters: http://langster1980.blogspot.co.uk/2016/05/generating-more-sqaure-wave-pulses.html Hope people find it useful.