em78p257 ELAN Microelectronics Corp, em78p257 Datasheet - Page 54

no-image

em78p257

Manufacturer Part Number
em78p257
Description
8-bit Microcontroller
Manufacturer
ELAN Microelectronics Corp
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
em78p257AM
Manufacturer:
SEMTECH
Quantity:
600
This specification is subject to change without prior notice.
Address
Address
Table 21 Related Control Registers of the MOUSE Mode
Table 22 Related Status/Data Register of the MOUSE Mode
2. Function Description
3. Programming the Related Registers
0X08
0X0B
0X0E
0x0A
The following describes the function of each block and signal of Fig.25 depicting how to complete a Mouse
function.
When defining MOUSE mode, refer to the related register of its operation as shown in the Table 21 and Table 22
below.
<Note> *Bit name/initial value
P61/X1
P66/X2
P51/Y1
P50/Y2
P56/Z1
P57/Z2
Comparator
Counter
Z1(TCC5)
Z2(TCC6)
*INTC/IOC80
TCR(1)/RA
TCR(2)/RB
MCR/RE
Name
CONT
Name
MOUSEN
MOUSEN
4.5R
4.5R
R
R
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.
Photo mode: Current comparator input.
Output level is decided by comparing the value of its two (+,-) pins.
Recording the horizontal, vertical, or rolling shifting values.
MOUSEN/0
VCC
VCC
TCC2E/0
INTE/0
Bit 7
Bit 7
0
0
15K
15K
TCCBIE/0 TCCBTS/0 TCCBTE/0
TCC4E/0
+
+
-
-
C5
C6
INT/0
Bit 6
Fig. 25 Mouse Function Diagram
0
0
Bit 6
TCC6E/0
Bit 5
TS/0
Bit 5
0
0
54
TCCC(UP/DOWN Counter)
TCCBE/0
MOUSEN
TE/0
Bit 4
Bit 4
0
0
Bit 3
0
0
0
0
0
Bit 3
TCCCIE/0 TCCCTS/0 TCCCTE/0
TCCAIE/0
PSR2/0
Bit 2
send data to PC
0
0
After MCU process
Bit 2
TCCATS/0
PSR1/0
EM78P257
Bit1
0
0
Bit1
07.27.2004 (V1.4)
OTP ROM
TCCATE/0
PSR0/0
Bit 0
Bit 0
0
0

Related parts for em78p257