initial sketch of converter timer isr state machine