English
Language : 

MC68340AB16E Datasheet, PDF (15/441 Pages) Motorola, Inc – Integrated Processor with DMA User’s Manual
11/2/95
FreSEeCsTcIOaNle1:SOeVmERicVoIEnWductor, Inc. UM Rev.1.0
TABLE OF CONTENTS (Continued)
Paragraph
Number
Title
Page
Number
7.4.1.2
7.4.1.3
7.4.1.4
7.4.1.5
7.4.1.6
7.4.1.7
7.4.1.8
7.4.1.9
7.4.1.10
7.4.1.11
7.4.1.12
7.4.1.13
7.4.1.14
7.4.1.15
7.4.1.16
7.4.1.17
7.4.2
7.4.2.1
7.4.2.2
7.4.2.3
7.5
7.5.1
7.5.2
Interrupt Level Register (ILR)..................................................................7-21
Interrupt Vector Register (IVR)................................................................7-21
Mode Register 1 (MR1)............................................................................7-22
Status Register (SR).................................................................................7-24
Clock-Select Register (CSR)..................................................................7-26
Command Register (CR) .........................................................................7-27
Receiver Buffer (RB).................................................................................7-30
Transmitter Buffer (TB).............................................................................7-30
Input Port Change Register (IPCR)........................................................7-31
Auxiliary Control Register (ACR)............................................................7-32
Interrupt Status Register (ISR)................................................................7-32
Interrupt Enable Register (IER)...............................................................7-34
Input Port (IP).............................................................................................7-35
Output Port Control Register (OPCR)....................................................7-35
Output Port Data Register (OP) ..............................................................7-37
Mode Register 2 (MR2)............................................................................7-37
Programming .................................................................................................7-40
Serial Module Initialization .....................................................................7-40
I/O Driver Example....................................................................................7-40
Interrupt Handling.....................................................................................7-40
Serial Module Initialization Sequence .........................................................7-46
Serial Module Configuration ......................................................................7-46
Serial Module Example Configuration Code ..........................................7-47
8.1
8.1.1
8.1.1.1
8.1.1.2
8.1.1.3
8.1.1.4
8.1.2
8.1.3
8.2
8.2.1
8.2.2
8.2.3
8.3
8.3.1
8.3.2
Section 8
Timer Modules
Module Overview..............................................................................................8-1
Timer and Counter Functions.....................................................................8-2
Prescaler and Counter.............................................................................8-2
Timeout Detection.....................................................................................8-2
Comparator ................................................................................................8-2
Clock Selection Logic..............................................................................8-3
Internal Control Logic...................................................................................8-3
Interrupt Control Logic .................................................................................8-4
Timer Modules Signal Definitions .................................................................8-4
Timer Input (TIN1, TIN2) ..............................................................................8-5
Timer Gate (TGATE1, TGATE2)................................................................8-6
Timer Output (TOUT1, TOUT2)...................................................................8-6
Operating Modes ..............................................................................................8-6
Input Capture/Output Compare..................................................................8-6
Square-Wave Generator.............................................................................8-8
xiv
MC68340 USER'S MANUAL
MOTOROLA
For More Information On This Product,
Go to: www.freescale.com