EM73P461A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
These three functions can be executed by 2 timer/counter independently.
For timerA, the counter data is saved in timer register TAH, TAM, TAL, which user can set counter initial
value and read the counter value by instruction "LDATAH(M,L), STATAH(M,L)" and timer register is
TBH, TBM, TBL and W/R instruction "LDATBH (M,L), STATBH (M,L)".
The basic structure of timer/counter is composed by two same structure counter, these two counters can be
set initial value and send counter value to timer register, P28 and P29 are the command ports for timerA
and timer B, user can choose different operation mode and different internal clock rate by setting these two
ports. When timer/counter overflow, it will generate a TRGA(B) interrupt request to interrupt control unit.
INTERRUPT CONTROL
TRGA request
TRGB request
DATA BUS
12 BIT COUNTER
12 BIT COUNTER
P8.1/
TRGB
EVENT COUNTER CONTROL
TIMER CONTROL
EVENT COUNTER CONTROL
TIMER CONTROL
P8.3/
TRGA
PULSE-WIDTH MEASUREMENT
CONTROL
PULSE-WIDTH MEASUREMENT
CONTROL
internal clock
internal clock
high speed timer/counter
MUX
P28
IPSA
P29
TMSB
IPSB
TMSA
TIMER/COUNTER CONTROL
P8.1/TRGB, P8.3/TRGA are the external timer inputs for timerB and timerA, they are used in event
counter and pulse-width measurement mode.
Timer/counter command port: P28 is the command port for timer/counterA and P29 is for the timer/
counterB.
TIMER/COUNTER MODE SELECTION
Port 28
3
2
1
0
TMSA IPSA
Initial state: 0000
TMSA (B)
Function description
0
0
0
1
Stop
Event counter mode
Timer mode
Port 29
3
2
1
0
1
1
0
1
IPSB
TMSB
Pulse width measurement mode
Initial state: 0000
INTERNAL PULSE-RATE SELECTION
IPSA NORMAL mode SLOW mode
INTERNAL PULSE-RATE SELECTION
IPSB NORMAL mode SLOW mode
0 0
0 1
1 0
1 1
LXIN/23 Hz
LXIN/27 Hz
LXIN/211 Hz
LXIN/215 Hz
Reserved
0 0
0 1
1 0
1 1
Depend on high speed timer/counter
LXIN/27 Hz
LXIN/211 Hz
LXIN/215 Hz
LXIN/25 Hz
LXIN/29 Hz
LXIN/213 Hz
LXIN/25 Hz
LXIN/29 Hz
LXIN/213 Hz
* This specification are subject to be changed without notice.
12.27.2001
19