EM78P257
OTP ROM
MOUSEN
Z1(TCC5)
VCC
+
C5
4.5R
MOUSEN
-
After MCU process
send data to PC
R
15K
TCCC(UP/DOWN Counter)
MOUSEN
Z2(TCC6)
VCC
+
C6
-
4.5R
R
15K
Fig. 25 Mouse Function Diagram
2. Function Description
The following describes the function of each block and signal of Fig.25 depicting how to complete a Mouse
function.
P61/X1
P66/X2
P51/Y1
P50/Y2
P56/Z1
Use current comparator to measure photo-couples “ ON” ,or “ OFF” .
Four photo-couple singles denoting UP, DOWN, LEFT, and RIGHT states.
During scanning period, as long as the photo-couples state changes, the value of
vertical or horizontal counter will increase or decrease accordingly.
Z-axis inputs.
P57/Z2
Photo mode: Current comparator input.
Comparator
Counter
Output level is decided by comparing the value of its two (+,-) pins.
Recording the horizontal, vertical, or rolling shifting values.
3. Programming the Related Registers
When defining MOUSE mode, refer to the related register of its operation as shown in the Table 21 and Table 22
below.
Table 21 Related Control Registers of the MOUSE Mode
Address
Name
CONT
Bit 7
Bit 6
Bit 5
TS/0
Bit 4
TE/0
Bit 3
Bit 2
Bit1
Bit 0
INTE/0
INT/0
0
0
0
0
0
PSR2/0
0
PSR1/0
0
PSR0/0
0
0X08 *INTC/IOC80 TCC2E/0 TCC4E/0 TCC6E/0 TCCBE/0
0x0A
0X0B
0X0E
TCR(1)/RA
TCR(2)/RB
MCR/RE
0
0
0
0
0
TCCAIE/0 TCCATS/0 TCCATE/0
TCCCIE/0 TCCCTS/0 TCCCTE/0
TCCBIE/0 TCCBTS/0 TCCBTE/0
MOUSEN/0
0
0
0
0
0
0
<Note> *Bit name/initial value
Table 22 Related Status/Data Register of the MOUSE Mode
Address
Name
Bit 7
Bit 6
Bit 5
54
Bit 4
Bit 3
Bit 2
Bit1
Bit 0
This specification is subject to change without prior notice.
07.27.2004 (V1.4)