EM73P362
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
TIMER ( TIMERA, TIMERB)
EM73P362 only can support timer function for timerA.
For timerA, the timer data is saved in timer register TAH, TAM, TAL, which user can set timer initial
value and read the timer value by instruction "LDATAH(M,L), STATAH(M,L)".
This counter can be set initial value and send counter value to timer register, P28 is the command port for
timerA, user can choose different internal clock rate by setting this port. When timer overflows, it will
generate a TRGA interrupt request to interrupt control unit.
INTERRUPT CONTROL
DATA BUS
12 BIT COUNTER
internal clock
TIMER CONTROL
TMSA
IPSA
P28
TIMER CONTROL
Timer command port: P28 is the command port for timerA.
Port 28
3
2
1
0
TMSA IPSA
Initial state: 0000
TMSA
0 0
Mode Selection
Stop
0 1
1 0
1 1
Reserved
Timer mode
Reserved
IPSA
0 0
Clock rate Selection
5
XIN/2 Hz
7
0 1
XIN/2 Hz
11
1 0
1 1
XIN/2 Hz
15
XIN/2 Hz
* This specification are subject to be changed without notice.
16
11.1.2001