Figure 2—The software running on the Atmel ATmega32 microcontroller loops through these stages to continually measure and send information to the computer so the computer can update the tracking of the mouse on the screen.