Tried to figure out how your soft work ... But in Proteus nothing happens
did you try it on a real chip ?