EM73P362
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Resistor to frequency oscillation mode
In this case, the window gate width interval is from the time base output fall to rise and the value of window
gate width setting is the same as the time base interrupt frequency. The time base can be generated a fixed
frequency interrupt when the time base interrupt (TBI) is enabled. The content of the HTC can be read and
initialized by the TBI interrupt service routine.
HTC input pulse
Time base
n
n+1
00
00
01
FF 00 01
8-bit binary counter
8-bit binary counter
overflow
001
Window gate width
TCB counter
Program
Disable
HTC and
read data.
Enable HTC
and write data.
TBI interrupt service routine
ex. TBI interrupt frequency is XIN/215 Hz (P25=1101B). The pulse rate of RFO is XIN/215 Hz (P17=1111B).
The window gate width of RFO is 214/XIN sec.
PROGRAM EXAMPLE
DSEG
ORG
RFCON: RES
00H
1
:
CSEG
ORG
LBR
ORG
LBR
:
00H
MAIN
0AH
TBI
;initialjump
;timebase interrupt vector address
;timebase interrupt service routine
TBI:
CMP
#00H,RFCON
B
TBI1
STD
#01H,RFCON
LDIA
OUTA
OUTA
STATBL
STATBM
STATBH
B
#00H
P5
P3
;initial TCB & HTC register
TBIEND
* This specification are subject to be changed without notice.
24
11.1.2001