This firmware translates a PS/2 mouse to a USB mouse. The translator
firmware is entirely Interrupt driven (with the exception of sending the
data via USB to the host.) An Interrupt is generated when the PS/2 start
bit is received, at which time the firmware will begin its receive routine.
In addition to this Interrupt, every 168ms a timer overflow Interrupts the
main program and implements one state of the mouse state machine. This
state machine handles sending bytes to and translating bytes received from
the PS/2 mouse automatically. All of this is done in the background while
the main program runs in the foreground. The only operation that the main
program implements is sending mouse data to the PC via USB.
标签:
firmware
mouse
translates
translator
上传时间:
2015-04-26
上传用户:cuiyashuo