T5L_ASIC Development Guide
D
WI
N
T
echnology
Pro
f
essional
,
Credi
t
able
,
Success
f
ul
Example
In 11.0592 MHz crystal (corresponding to the main frequency of CPU 206.4384 MHz), T2 1mS
interruption is set to output 500 MHz square wave at P 1.0.
;T2 interrupt program entry
T21NT: CLR TF2 ;T2 interrupt program
CPL P1.0
RETI
;Initialization of T2-related SFR
MOV CRCH,#HIGH(48333) ;1mS timer
;ET2=1 turn on T2 interrupt