Just some small changes to get a counter and interrupt working.
producing signal, but decoder not working right yet