Motorola MC68340 manual Section Timer Modules, Clock Selection Logic

Models: MC68340

1 441
Download 441 pages 2.45 Kb
Page 15
Image 15

Freescale Semiconductor, Inc.

11/2/95

SECTION 1: OVERVIEW

UM Rev.1.0

 

Freescale Semiconductor, Inc.

 

TABLE OF CONTENTS (Continued)

Paragraph

 

P a g e

Number

Title

Number

7.4.1.2

Interrupt Level Register (ILR)

7-21

7.4.1.3

Interrupt Vector Register (IVR)

7-21

7.4.1.4

Mode Register 1 (MR1)

7-22

7.4.1.5

Status Register (SR)

7-24

7.4.1.6

Clock-Select Register (CSR)

7-26

7.4.1.7

Command Register (CR)

7-27

7.4.1.8

Receiver Buffer (RB)

7-30

7.4.1.9

Transmitter Buffer (TB)

7-30

7.4.1.10

Input Port Change Register (IPCR)

7-31

7.4.1.11

Auxiliary Control Register (ACR)

7-32

7.4.1.12

Interrupt Status Register (ISR)

7-32

7.4.1.13

Interrupt Enable Register (IER)

7-34

7.4.1.14

Input Port (IP)

7-35

7.4.1.15

Output Port Control Register (OPCR)

7-35

7.4.1.16

Output Port Data Register (OP)

7-37

7.4.1.17

Mode Register 2 (MR2)

7-37

7.4.2

Programming

7-40

7.4.2.1

Serial Module Initialization

7-40

7.4.2.2

I/O Driver Example

7-40

7.4.2.3

Interrupt Handling

7-40

7.5

Serial Module Initialization Sequence

7-46

7.5.1

Serial Module Configuration

7-46

7.5.2

Serial Module Example Configuration Code

7-47

Section 8

Timer Modules

8.1

Module Overview

8-1

8.1.1

Timer and Counter Functions

8-2

8.1.1.1

Prescaler and Counter

8-2

8.1.1.2

Timeout Detection

8-2

8.1.1.3

Comparator

8-2

8.1.1.4

Clock Selection Logic

8-3

8.1.2

Internal Control Logic

8-3

8.1.3

Interrupt Control Logic

8-4

8.2

Timer Modules Signal Definitions

8-4

8.2.1

Timer Input (TIN1, TIN2)

8-5

8.2.2

Timer Gate (TGATE1, TGATE2)

8-6

8.2.3

Timer Output (TOUT1, TOUT2)

8-6

8.3

Operating Modes

8-6

8.3.1

Input Capture/Output Compare

8-6

8.3.2

Square-Wave Generator

8-8

xiv

MC68340 USER'S MANUAL

MOTOROLA

 

For More Information On This Product,

 

 

Go to: www.freescale.com

 

Page 15
Image 15
Motorola MC68340 manual Section Timer Modules, Clock Selection Logic