NXP 68HC916Y3 Reference guide

Category
Networking
Type
Reference guide
Order this document by
MCCIRM/AD
Rev. 1.0
NON-DISCLOSURE AGREEMENT REQUIRED
Modular Microcontroller Family
Multichannel Communication Interface
Reference Manual
MCCI
MCCI
MCCI
MCCI
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Modular Microcontroller Family
MCCI
Multichannel Communication Interface
Reference Manual
Ninth Edition
Motorola reserves the right to make changes without further notice to
any products herein to improve reliability, function or design. Motorola
does not assume any liability arising out of the application or use of any
product or circuit described herein; neither does it convey any license
under its patent rights nor the rights of others. Motorola products are not
designed, intended, or authorized for use as components in systems
intendedforsurgicalimplant intothe body,or otherapplications intended
to support or sustain life, or for any other application in which the failure
of the Motorola product could create a situation where personal injury or
death may occur. Should Buyer purchase or use Motorola products for
any such unintended or unauthorized application, Buyer shall indemnify
and hold Motorola and its officers, employees, subsidiaries, affiliates,
and distributors harmless against all claims, costs, damages, and
expenses, and reasonable attorney fees arising out of, directly or
indirectly, any claim of personal injury or death associated with such
unintended orunauthorized use, evenif suchclaim alleges thatMotorola
was negligent regarding the design or manufacture of the part.
© Motorola, Inc., 1999
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Multichannel Communication Interface — Rev. 1.0 Reference Manual
MOTOROLA List of Sections 5
Reference Manual — Multichannel Communication Interface
List of Sections
Section 1. Functional Overview. . . . . . . . . . . . . . . . . . . .15
Section 2. Signal Descriptions. . . . . . . . . . . . . . . . . . . . .19
Section 3. Configuration and Control . . . . . . . . . . . . . . .23
Section 4. SPI Submodule . . . . . . . . . . . . . . . . . . . . . . . .39
Section 5. SCI Submodule . . . . . . . . . . . . . . . . . . . . . . . .57
Appendix A. Electrical Characteristics . . . . . . . . . . . . . .91
Appendix B. Memory Map and Registers . . . . . . . . . . . .97
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Reference Manual Multichannel Communication Interface — Rev. 1.0
6 List of Sections MOTOROLA
List of Sections
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Multichannel Communication Interface — Rev. 1.0 Reference Manual
MOTOROLA Table of Contents 7
Reference Manual — Multichannel Communication Interface
Table of Contents
Section 1. Functional Overview
1.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
1.2 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
1.3 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
1.4 Memory Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Section 2. Signal Descriptions
2.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
2.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
2.3 SPI Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
2.3.1 Slave Select (
SS). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
2.3.2 SPI Serial Clock (SCK). . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
2.3.3 Master In/Slave Out (MISO). . . . . . . . . . . . . . . . . . . . . . . . .21
2.3.4 Master Out/Slave In (MOSI). . . . . . . . . . . . . . . . . . . . . . . . .21
2.4 SCI Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
2.4.1 Receive Data Pins (RXDA and RXDB) . . . . . . . . . . . . . . . .22
2.4.2 Transmit Data Pins (TXDA and TXDB) . . . . . . . . . . . . . . . .22
Section 3. Configuration and Control
3.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
3.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
3.3 MCCI Global Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
3.4 System Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
3.5 Module Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Reference Manual Multichannel Communication Interface — Rev. 1.0
8 Table of Contents MOTOROLA
Table of Contents
3.5.1 Low-Power Stop Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
3.5.2 Privilege Levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
3.5.3 MCCI Module Configuration Register. . . . . . . . . . . . . . . . . .29
3.5.4 MCCI Test Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
3.6 Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
3.6.1 SCI Interrupt Level Register. . . . . . . . . . . . . . . . . . . . . . . . .31
3.6.2 MCCI Interrupt Vector Register . . . . . . . . . . . . . . . . . . . . . .32
3.6.3 SPI Interrupt Level Register. . . . . . . . . . . . . . . . . . . . . . . . .33
3.7 Pin Control and General-Purpose I/O. . . . . . . . . . . . . . . . . . . .34
3.7.1 MCCI Port Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . .35
3.7.2 MCCI Pin Assignment Register . . . . . . . . . . . . . . . . . . . . . .36
3.7.3 MCCI Data Direction Register . . . . . . . . . . . . . . . . . . . . . . .37
Section 4. SPI Submodule
4.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
4.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
4.3 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
4.4 SPI Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
4.5 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
4.5.1 Master Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
4.5.2 Slave Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
4.6 SPI Clock Phase and Polarity Controls . . . . . . . . . . . . . . . . . .46
4.6.1 CPHA = 0 Transfer Format. . . . . . . . . . . . . . . . . . . . . . . . . .46
4.6.2 CPHA = 1 Transfer Format. . . . . . . . . . . . . . . . . . . . . . . . . .47
4.7 SPI Serial Clock Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . .48
4.8 Wired-OR Open-Drain Outputs. . . . . . . . . . . . . . . . . . . . . . . . .49
4.9 Transfer Size and Direction . . . . . . . . . . . . . . . . . . . . . . . . . . .49
4.10 Write Collision. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
4.11 Mode Fault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Table of Contents
Multichannel Communication Interface — Rev. 1.0 ReferenceManual
MOTOROLA Table of Contents 9
4.12 SPI Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51
4.12.1 SPI Control Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
4.12.2 SPI Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54
4.12.3 SPI Data Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
Section 5. SCI Submodule
5.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57
5.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58
5.3 SCI Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
5.4 Serial Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
5.5 Parity Checking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
5.6 Baud Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
5.7 SCI Transmitter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
5.7.1 Initializing the Transmitter . . . . . . . . . . . . . . . . . . . . . . . . . .65
5.7.2 Status Flags and Interrupts . . . . . . . . . . . . . . . . . . . . . . . . .66
5.7.3 Disabling the SCI Transmitter . . . . . . . . . . . . . . . . . . . . . . .67
5.7.4 Break Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
5.7.5 Queued Idle Characters. . . . . . . . . . . . . . . . . . . . . . . . . . . .68
5.7.6 Wired-OR Open-Drain Outputs . . . . . . . . . . . . . . . . . . . . . .69
5.7.7 SCI Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
5.7.8 Initializing the Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . .71
5.7.9 Receiver Status Flags and Interrupts. . . . . . . . . . . . . . . . . .73
5.7.9.1 RDR Full Flag (RDRF). . . . . . . . . . . . . . . . . . . . . . . . . . .73
5.7.9.2 Noise Flag (NF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
5.7.9.3 Framing Error Flag (FE). . . . . . . . . . . . . . . . . . . . . . . . . .74
5.7.9.4 Overrun Flag (OR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
5.7.9.5 Parity Error Flag (PF). . . . . . . . . . . . . . . . . . . . . . . . . . . .74
5.7.9.6 Idle Line Flag (IDLE) . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
5.7.10 Receiver Wakeup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76
5.7.10.1 Idle-Line Wakeup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .76
5.7.10.2 Address-Mark Wakeup. . . . . . . . . . . . . . . . . . . . . . . . . . .76
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Reference Manual Multichannel Communication Interface — Rev. 1.0
10 Table of Contents MOTOROLA
Table of Contents
5.7.11 Frame Detection and Synchronization. . . . . . . . . . . . . . . . .77
5.7.11.1 Start Bit Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78
5.7.11.2 Logic Level Detection. . . . . . . . . . . . . . . . . . . . . . . . . . . .78
5.7.11.3 Start Bit Recognition Examples . . . . . . . . . . . . . . . . . . . .79
5.8 SCI Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82
5.8.1 SCI Control Register 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84
5.8.2 SCI Control Register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85
5.8.3 SCI Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87
5.8.4 SCI Data Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89
Appendix A. Electrical Characteristics
Appendix B. Memory Map and Registers
B.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97
B.2 MCCI Memory Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98
B.3 MCCI Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99
B.3.1 MCCI Module Configuration Register. . . . . . . . . . . . . . . . . .99
B.3.2 MCCI Test Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100
B.3.3 SCI Interrupt Level Regiser . . . . . . . . . . . . . . . . . . . . . . . .100
B.3.4 MCCI Interrupt Vector Register . . . . . . . . . . . . . . . . . . . . .101
B.3.5 SPI Interrupt Level Register. . . . . . . . . . . . . . . . . . . . . . . .101
B.3.6 MCI Port Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . .102
B.3.7 MCCI Pin Assignment Register . . . . . . . . . . . . . . . . . . . . .102
B.3.8 MCCI Data Direction Register . . . . . . . . . . . . . . . . . . . . . .103
B.3.9 SPI Control Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103
B.3.10 SPI Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105
B.3.11 SPI Data Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
B.3.12 SCI Control Register 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . .107
B.3.13 SCI Control Register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
B.3.14 SCI Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
B.3.15 SCI Data Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111
Index
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Multichannel Communication Interface — Rev. 1.0 Reference Manual
MOTOROLA List of Figures 11
Reference Manual — Multichannel Communication Interface
List of Figures
Figure Title Page
1-1 MCCI Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
3-1 MCCI Module Configuration Register (MMCR) . . . . . . . . . . . .29
3-2 SCI Interrupt Level Register (ILSCI). . . . . . . . . . . . . . . . . . . . .31
3-3 MCCI Interrupt Vector Register (MIVR) . . . . . . . . . . . . . . . . . .32
3-4 SPI Interrupt Level Register (ILSPI) . . . . . . . . . . . . . . . . . . . . .33
3-5 MCCI Port Data Registers (PORTMC and PORTMCP). . . . . .35
3-6 MCCI Pin Assignment Register (MPAR) . . . . . . . . . . . . . . . . .36
3-7 MCCI Data Direction Register (MDDR) . . . . . . . . . . . . . . . . . .37
4-1 SPI Submodule Block Diagram . . . . . . . . . . . . . . . . . . . . . . . .42
4-2 CPHA = 0 SPI Transfer Format . . . . . . . . . . . . . . . . . . . . . . . .46
4-3 CPHA = 1 SPI Transfer Format . . . . . . . . . . . . . . . . . . . . . . . .47
4-4 SPI Control Register (SPCR) . . . . . . . . . . . . . . . . . . . . . . . . . .52
4-5 SPI Status Register (SPSR). . . . . . . . . . . . . . . . . . . . . . . . . . .54
4-6 SPI Data Register (SPDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . .55
5-1 SCI Transmitter Block Diagram . . . . . . . . . . . . . . . . . . . . . . . .64
5-2 SCI Receiver Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . .72
5-3 Start Search Example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79
5-4 Start Search Example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .79
5-5 Start Search Example 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80
5-6 Start Search Example 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80
5-7 Start Search Example 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81
5-8 Start Search Example 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81
5-9 Start Search Example 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82
5-10 SCI Control Register 0 (SCCR0A and SCCR0B). . . . . . . . . . .84
5-11 SCI Control Register 1 (SCCR1A and SCCR1B). . . . . . . . . . .85
5-12 SCI Status Registers (SCSRA and SCSRB) . . . . . . . . . . . . . .87
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Reference Manual Multichannel Communication Interface — Rev. 1.0
12 List of Figures MOTOROLA
List of Figures
Figure Title Page
5-13 SCI Data Registers (SCDRA and SCDRB) . . . . . . . . . . . . . . .89
A-1 SPI Timing — Master, CPHA 0. . . . . . . . . . . . . . . . . . . . . . . . .92
A-2 SPI Timing — Master, CHPA 1. . . . . . . . . . . . . . . . . . . . . . . . .92
A-3 SPI Timing — Slave, CPHA 0. . . . . . . . . . . . . . . . . . . . . . . . . .94
A-4 SPI Timing — Slave, CPHA 1. . . . . . . . . . . . . . . . . . . . . . . . . .94
B-1 MCCI Module Configuration Register (MMCR) . . . . . . . . . . . .99
B-2 SCI Interrupt Level Register (ILSCI). . . . . . . . . . . . . . . . . . . .100
B-3 MCCI Interrupt Vector Register (MIVR) . . . . . . . . . . . . . . . . .101
B-4 SPI Interrupt Level Register (ILSPI) . . . . . . . . . . . . . . . . . . . .101
B-5 MCCI Port Data Registers (PORTMC and PORTMCP). . . . .102
B-6 MCCI Pin Assignment Register (MPAR) . . . . . . . . . . . . . . . .102
B-7 MCCI Data Direction Register (MDDR) . . . . . . . . . . . . . . . . .103
B-8 SPI Control Register (SPCR) . . . . . . . . . . . . . . . . . . . . . . . . .103
B-9 SPI Status Register (SPSR). . . . . . . . . . . . . . . . . . . . . . . . . .105
B-10 SPI Data Register (SPDR) . . . . . . . . . . . . . . . . . . . . . . . . . . .106
B-11 SCI Control Register 0 (SCCR0A and SCCR0B). . . . . . . . . .107
B-12 SCI Control Register 1 (SCCR1A and SCCR1B). . . . . . . . . .108
B-13 SCI Status Registers (SCSRA and SCSRB) . . . . . . . . . . . . .110
B-14 SCI Data Registers (SCDRA and SCDRB) . . . . . . . . . . . . . .111
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Multichannel Communication Interface — Rev. 1.0 Reference Manual
MOTOROLA List of Tables 13
Reference Manual — Multichannel Communication Interface
List of Tables
Table Title Page
1-1 MCCI Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
2-1 SPI Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
2-2 SCI Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
3-1 MCCI Global Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
3-2 MCCI Interrupt Vectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
3-3 Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
4-1 SPI Bit/Field Quick Reference Guide . . . . . . . . . . . . . . . . . . .41
4-2 SPI Pin Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
4-3 Examples of SCK Frequencies. . . . . . . . . . . . . . . . . . . . . . . .49
4-4 SPI Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51
5-1 SCI Bit/Field Quick Reference Guide. . . . . . . . . . . . . . . . . . .59
5-2 SCI Pin Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
5-3 Data Frame Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61
5-4 Examples of SCI Baud Rates. . . . . . . . . . . . . . . . . . . . . . . . .63
5-5 SCI Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83
A-1 Serial Peripheral Interface Timing Characteristics . . . . . . . . .91
A-2 Key to Figure A-1 and Figure A-2
(Abstracted from Table A-1) . . . . . . . . . . . . . . . . . . . . . . .93
A-3 Key to Figure A-3 and Figure A-4
(Abstracted from Table A-1) . . . . . . . . . . . . . . . . . . . . . . .95
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Reference Manual Multichannel Communication Interface — Rev. 1.0
14 List of Tables MOTOROLA
List of Tables
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Multichannel Communication Interface — Rev. 1.0 Reference Manual
MOTOROLA Functional Overview 15
Reference Manual — Multichannel Communication Interface
Section 1. Functional Overview
1.1 Contents
1.2 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
1.3 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
1.4 Memory Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
1.2 General Information
The multichannel communication interface (MCCI), a module in
Motorola's family of modular microcontrollers, contains three serial
interfaces:
One serial peripheral interface (SPI)
Two serial communication interfaces (SCI)
The SPI provides easy peripheral expansion or interprocessor
communication via a full-duplex, synchronous, 3-line bus: data in, data
out, and a serial clock. Serial transfer of eight or 16 bits can begin with
the most significant bit (MSB) or least significant bit (LSB).
The MCCI module can be configured as a master or slave device. Clock
control logic allows a selection of clock polarity and a choice of two
clocking protocols to accommodate most available synchronous serial
peripheral devices. When the SPI is configured as a master, software
selects one of 254 different bit rates for the serial clock.
The SCI is a universal asynchronous receiver transmitter (UART) serial
interfacewith astandardnon-return-to-zero(NRZ) mark/spaceformat.It
operates in either full- or half-duplex mode and contains separate
transmitter- and receiver-enable bits and a double transmit buffer.
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Reference Manual Multichannel Communication Interface — Rev. 1.0
16 Functional Overview MOTOROLA
Functional Overview
A modulus-type baud rate generator provides rates from 64 baud to 524
Kbaud with a 16.78-MHz system clock.
Word length of either eight or nine bits is software selectable.
Optional parity generation and detection provide either even or odd
parity check capability.
Advanced error detection circuitry catches glitches of up to 1/16 of a bit
time in duration. Wakeup functions allow the CPU to run uninterrupted
until meaningful data is received.
1.3 Block Diagram
Figure 1-1 is a block diagram of the MCCI.
Figure 1-1. MCCI Block Diagram
BUS INTERFACE UNIT
SERIAL PERIPHERAL
INTERFACE
(SPI)
SERIAL
COMMUNICATION
INTERFACE
(SCIA)
SERIAL
COMMUNICATION
INTERFACE
(SCIB)
PMC7/TXDA
PMC6/RXDA
PMC4/RXDB
PMC5/TXDB
PMC2/SCK
PMC1/MOSI
PMC0/MISO
PMC3/SS
PORT
MCCI
INTERMODULE BUS (IMB)
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Functional Overview
Memory Map
Multichannel Communication Interface — Rev. 1.0 ReferenceManual
MOTOROLA Functional Overview 17
1.4 Memory Map
The MCCI memory map consists of the global registers and the SPI and
SCI control, status, and data registers, as shown in Table 1-1. The
memory locations shown are offsets from the base address. For the
exact location of MCCI registers in the MCU memory map, refer to the
appropriate MCU user's manual.
Table 1-1. MCCI Memory Map
Access
Address
Offset
15 8 7 0
S $00 MCCI module configuration register (MMCR)
S $02 MCCI test register (MTEST)
S $04 SCI interrupt register (ILSCI) MCCI interrupt vector register (MIVR)
S $06 SPI interrupt register (ILSPI) Reserved
S/U $08 Reserved MCCI pin assignment register (MPAR)
S/U $0A Reserved MCCI data direction register (MDDR)
S/U $0C Reserved MCCI port data register (PORTMC)
S/U $0E Reserved MCCI port pin state register (PORTMCP)
S/U $10–$16 Reserved
S/U $18 SCIA control register 0 (SCCR0A)
S/U $1A SCIA control register 1 (SCCR1A)
S/U $1C SCIA status register (SCSRA)
S/U $1E SCIA data register (SCDRA)
S/U $20–$26 Reserved
S/U $28 SCIB control register 0 (SCCR0B)
S/U $2A SCIB control register 1 (SCCR1B)
S/U $2C SCIB status register (SCSRB)
S/U $2E SCIB data register (SCDRB)
S/U $30–$36 Reserved
S/U $38 SPI control register (SPCR)
S/U $3A Reserved
S/U $3C SPI status register (SPSR)
S/U $3E SPI data register (SPDR)
S = Supervisor access only
S/U = Supervisor access only or user access, depending on SUPV bit in MMCR
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Reference Manual Multichannel Communication Interface — Rev. 1.0
18 Functional Overview MOTOROLA
Functional Overview
The MCCI memory map includes registers that can be accessed only
when the CPU is operating at the supervisor access level and registers
that can be programmedto allowsupervisor accessonly or useraccess.
The MCCI registers that allow supervisor access only (those with an S
inthe Accesscolumn ofTable 1-1)are theMCCI globalregisters. These
registers define parameters needed by the MCCI to integrate with the
MCU.
The remaining MCCI registers (those with S/U in the Access column of
Table 1-1) can be programmed to either access level.
Refer to 3.5.2 Privilege Levels and to the appropriate CPU manual for
more information on access levels.
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Multichannel Communication Interface — Rev. 1.0 Reference Manual
MOTOROLA Signal Descriptions 19
Reference Manual — Multichannel Communication Interface
Section 2. Signal Descriptions
2.1 Contents
2.2 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
2.3 SPI Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
2.3.1 Slave Select (
SS). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
2.3.2 SPI Serial Clock (SCK). . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
2.3.3 Master In/Slave Out (MISO). . . . . . . . . . . . . . . . . . . . . . . . .21
2.3.4 Master Out/Slave In (MOSI). . . . . . . . . . . . . . . . . . . . . . . . .21
2.4 SCI Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
2.4.1 Receive Data Pins (RXDA and RXDB) . . . . . . . . . . . . . . . .22
2.4.2 Transmit Data Pins (TXDA and TXDB) . . . . . . . . . . . . . . . .22
2.2 Introduction
The MCCI has eight external pins. When not being used by the SPI or
SCI submodules, these pins can be used as general-purpose I/O
(input/output) port pins.
The MCCI global registers shown in this section affect the function of
both SPI (serial peripheral interrupt) and SCI (serial communications
interface) pins:
MCCI data direction register, MDDR
MCCI pin assignment register, MPAR
MCCI port data register, MPDR
Referto3.7 Pin Control andGeneral-PurposeI/Oformoreinformation
on these registers.
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Reference Manual Multichannel Communication Interface — Rev. 1.0
20 Signal Descriptions MOTOROLA
Signal Descriptions
2.3 SPI Pins
These fourpins are associatedwith the SPI:MISO, MOSI, SCK,and SS.
The MPAR configures each pin for either SPI function or
general-purpose I/O. The MDDR assigns each pin as either input or
output. The WOMP bit in the SPI control register (SPCR) determines
whether each SPI pin that is configured for output functions as an
open-drain output or a normal CMOS output. The MMDR and WOMP
assignments are valid regardless of whether the pins are configured for
SPI use or general-purpose I/O.
The operation of pins configured for SCI use depends on whether the
SCI is operating as a master or a slave, determined by the MSTR bit in
the SPCR.
Table 2-1 summarizes SPI pins and their functions.
Table 2-1. SPI Pins
Pin Mode SPI Function Port I/O Signal
MISO
Master Serial data input to SPI
PMC0
Slave Serial data output from SPI
MOSI
Master Serial data output from SPI
PMC1
Slave Serial data input to SPI
SCK
Master Clock output from SPI
PMC2
Slave Clock input to SPI
SS
Master Causes mode fault when asserted
PMC3
Slave Initiates serial transfer when asserted
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124

NXP 68HC916Y3 Reference guide

Category
Networking
Type
Reference guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI