When the mouse is moving, the imaging sensor records continuous patterns, and then the front and rear comparison of each image is processed by DSP to determine the direction and displacement of the mouse movement, so as to obtain the coordinate value of the mouse on the screen, which is then transmitted to the Micro Controller Unit through SPI. The mouse processor processes these values and passes them to the computer host.