The EM84520 Scrolling Mouse Controller is specially designed to control serial mouse or PS/2 mouse device.
This single chip can interface three key-switches and 4 X-Y photo-couples plus Z-axis directly to RS-232C or 8042 controller.
There are four types Z-axis inputs used to implement scrolling mouse functionality.