Timer Module Programming Model; Module Configuration Register (Mcr) - Motorola MC68340 User Manual

Integrated processor with dma
Hide thumbs Also See for MC68340:
Table of Contents

Advertisement

TIMER 1
$600
$602
$604
$606
$608
$60A
$60C
$60E
$610
$612-$63F
Figure 8-11. Timer Module Programming Model
In the registers discussed in the following paragraphs, the numbers in the upper right-
hand corner indicate the offset of the register from the base address specified by the
module base address register (MBAR) in the SIM40. The first number is the offset for
timer 1; the second number is the offset for timer 2. The numbers on the top line of the
register represent the bit position in the register. The register contains the mnemonic for
the bit. The value of these bits after a hardware reset is shown below the register. The
access privilege is shown in the lower right-hand corner.
A CPU32 RESET instruction will not affect the MCR, but will
reset all other registers in the timer modules as though a
hardware reset occurred.
The term 'timer' is used to reference either timer 1 or timer 2, since the two are functionally
equivalent.

8.4.1 Module Configuration Register (MCR)

The MCR controls the timer module configuration. This register can be either read or
written when the module is enabled and is in the supervisor state. The MCR is not
affected by a CPU32 RESET instruction.
MCR
15
14
13
12
STP
FRZ1
FRZ0
0
RESET:
0
0
0
0
8-18
Freescale Semiconductor, Inc.
TIMER 2
FC
15
$640
S
MODULE CONFIGURATION REGISTER (MCR)
$642
S
$644
S
$646
S/U
$648
S/U
STATUS/PRESCALER REGISTER (SR)
$64A
S/U
$64C
S/U
$64E
S/U
$650
S/U
$652-$67F
S/U
NOTE
11
10
9
8
0
0
0
0
0
0
0
0
MC68340 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
RESERVED
INTERRUPT REGISTER (IR)
CONTROL REGISTER (CR)
COUNTER REGISTER (CNTR)
PRELOAD 1 REGISTER (PREL1)
PRELOAD 2 REGISTER (PREL2)
COMPARE REGISTER (COM)
RESERVED
7
6
5
4
SUPV
0
0
0
1
0
0
0
0
$600, $640
3
2
1
0
IARB3
IARB2
IARB1
IARB0
0
0
0
0
Supervisor Only
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents