update aintc and timer codes