Figure 2—The H8/38024F contains almost everything needed for the timer. I was able to take advantage of the pull-up resistors on ports 1 and 3. There were just enough pins for all the switches without having to multiplex them. The optional serial port circuitry doesn’t use any power unless it’s enabled with the Boot switch.