Programmable divider for counter as buffer for microprocessor, read on interrupt