Datasheet
Timer Module
MOTOROLA MCF5206e USER’S MANUAL 14-9
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1
Bit 1 enables the timer ("0")
move.w #$7F04,D0 ;Setup the Timer mode register (TMR2)
move.w D0,TMR2 ;
move.w #$1234,D0 ;Set the Timer reference to $1234
move.w D0,TRR2 ;
move.w #$0000,D0 ;writing to the timer counter with
move.w D0,TCN2 ; any value resets it to zero
0ther registers used
TCR2 ;TIMER2 Capture Register, 16-bit, R
TER2 ;TIMER2 Event Register, 8-bit, R/W
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
