Datasheet
Timer Module
MOTOROLA MCF5206e USER’S MANUAL 14-7
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1
NOTE
The timers were initialized in the SIM to have interrupt values.
The examples below have the interrupts disabled. The
initialization in the SIM configuration was for reference. The
Timers CANNOT provide interrupt vectors, only autovectors.
Autovectors and ICRs have been set up as follows. The interrupt levels and priorities were
chosen by random for demonstrative purposes. You should define the interrupt level and
priorities for your specific application.
SIMR register
The SIMR is set up as follows:
1)Disable watchdog when FREEZE is asserted (bit 7)
2)Disable bus monitor when FREEZE is asserted (bit 6)
3)5206 will negate the /BD signal
move.b #%11000000,D0 ;set up the SIMR (pg 7-9)
move.b D0,SIMR;
NOTE*
The timer & MBUS peripherals cannot provide interrupt vectors.
Timer & MBUS peripherals are only autovectored. Interrupt
values were chosen randomly for demonstrative purposes. You
should change these for your own application needs.
move.b #%10000100,D0 ;set up Timer 1 Interrupt
move.b D0,ICR9 ;Level 2 interrupt, Priority 0,
;Autovector=ON,
;avect 24+1=25
move.b #%10001001,D0 ;set up Timer 2 Interrupt
move.b D0,ICR10 ;Level 2 interrupt, Priority 1,
;Autovector=ON,avect 24+2=26,
move.b #%10001010,D0 ;set up MBUS Interrupt
move.b D0,ICR11 ;Level 2 interrupt, Priority 2,
;Autovector=On,AVECT 24+3 = 27
move.b #%00011011,D0 ;set up UART1 Interrupt
move.b D0,ICR12 ;Level 6 interrupt, Priority 3,
;Autovector=Off
move.b #%00001001,D0 ;set up UART2 Interrupt
move.b D0,ICR13 ;Level 1 interrupt, Priority 1,
;Autovector=Off
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
