Allegro A3981 stepper motor driver: datasheet, KiCad symbols/footprint, 3D model (TSSOP-28). Two per G2 board, SPI-controlled, AUTO microstep. NXP MK60DN512VLQ10 (Kinetis K60): datasheet and 1300-page reference manual. Cortex-M4 96MHz MCU running the G2 firmware. Reyax RYS352A GPS module: datasheet and PAIR command guide. GPS receiver on the G2 board (used for auto-location/satellite lookup). All extracted as markdown + page images + vector SVGs for LLM context. Binary assets (PDFs, PNGs, SVGs, STEP, WRL) stored via git-lfs.
61250 lines
1.4 MiB
61250 lines
1.4 MiB
# Document Metadata
|
||
**Format:** PDF 1.4
|
||
**Title:** Kinetis K60: 100MHz Cortex-M4 256/512KB Flash (144 pin)
|
||
**Author:** Freescale Semiconductor Inc.
|
||
**Subject:** Kinetis K60 Reference Manual: 100MHz high-performance ARM Cortex-M4 microcontroller(MCU), Ethernet, mixed-signal, up to 512KB Flash/128KB SRAM (144pin)
|
||
**Keywords:** K60P144M100SF2V2RM, MK60DN512VMD10,MK60DN256VMD10,MK60DX256VMD10,MK60DN256VLQ10,MK60DX256VLQ10,MK60DN512VLQ10, reference manual, Kinetis, microcontroller, MCU, Cortex-M, ARM, specification, architecture, features, registers, high-performance, Cortex-M4, Kinetis K, K-series, K7x, Ethernet, K60, mixed-signal integration
|
||
**Creator:** AH Formatter V5.2 MR1 (5,2,2010,1221) for Linux64
|
||
**Producer:** Antenna House PDF Output Library 2.6.0 (Linux64); modified using iText® 5.5.4 ©2000-2014 iText Group NV (AGPL-version)
|
||
**Creation Date:** D:20120602111254-05'00'
|
||
**Mod Date:** D:20150220201302-06'00'
|
||
**Trapped:** False
|
||
|
||
---
|
||
|
||
## Page 1
|
||
|
||
K60 Sub-Family Reference Manual
|
||
Supports: MK60DN256VLQ10, MK60DX256VLQ10,
|
||
MK60DN512VLQ10, MK60DN256VMD10, MK60DX256VMD10,
|
||
MK60DN512VMD10
|
||
Document Number: K60P144M100SF2V2RM
|
||
Rev. 2 Jun 2012
|
||
Preliminary
|
||
General Business Information
|
||
|
||

|
||
|
||

|
||
|
||

|
||
|
||
## Page 2
|
||
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
2
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 3
|
||
|
||
Contents
|
||
Section number
|
||
Title
|
||
Page
|
||
Chapter 1
|
||
About This Document
|
||
1.1
|
||
Overview.......................................................................................................................................................................59
|
||
1.1.1
|
||
Purpose.........................................................................................................................................................59
|
||
1.1.2
|
||
Audience......................................................................................................................................................59
|
||
1.2
|
||
Conventions..................................................................................................................................................................59
|
||
1.2.1
|
||
Numbering systems......................................................................................................................................59
|
||
1.2.2
|
||
Typographic notation...................................................................................................................................60
|
||
1.2.3
|
||
Special terms................................................................................................................................................60
|
||
Chapter 2
|
||
Introduction
|
||
2.1
|
||
Overview.......................................................................................................................................................................61
|
||
2.2
|
||
Module Functional Categories......................................................................................................................................61
|
||
2.2.1
|
||
ARM Cortex-M4 Core Modules..................................................................................................................62
|
||
2.2.2
|
||
System Modules...........................................................................................................................................63
|
||
2.2.3
|
||
Memories and Memory Interfaces...............................................................................................................64
|
||
2.2.4
|
||
Clocks...........................................................................................................................................................65
|
||
2.2.5
|
||
Security and Integrity modules....................................................................................................................65
|
||
2.2.6
|
||
Analog modules...........................................................................................................................................66
|
||
2.2.7
|
||
Timer modules.............................................................................................................................................66
|
||
2.2.8
|
||
Communication interfaces...........................................................................................................................67
|
||
2.2.9
|
||
Human-machine interfaces..........................................................................................................................68
|
||
2.3
|
||
Orderable part numbers.................................................................................................................................................68
|
||
Chapter 3
|
||
Chip Configuration
|
||
3.1
|
||
Introduction...................................................................................................................................................................71
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
3
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 4
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
3.2
|
||
Core modules................................................................................................................................................................71
|
||
3.2.1
|
||
ARM Cortex-M4 Core Configuration..........................................................................................................71
|
||
3.2.2
|
||
Nested Vectored Interrupt Controller (NVIC) Configuration......................................................................73
|
||
3.2.3
|
||
Asynchronous Wake-up Interrupt Controller (AWIC) Configuration.........................................................79
|
||
3.2.4
|
||
JTAG Controller Configuration...................................................................................................................81
|
||
3.3
|
||
System modules............................................................................................................................................................81
|
||
3.3.1
|
||
SIM Configuration.......................................................................................................................................81
|
||
3.3.2
|
||
System Mode Controller (SMC) Configuration...........................................................................................82
|
||
3.3.3
|
||
PMC Configuration......................................................................................................................................83
|
||
3.3.4
|
||
Low-Leakage Wake-up Unit (LLWU) Configuration.................................................................................84
|
||
3.3.5
|
||
MCM Configuration....................................................................................................................................86
|
||
3.3.6
|
||
Crossbar Switch Configuration....................................................................................................................87
|
||
3.3.7
|
||
Memory Protection Unit (MPU) Configuration...........................................................................................89
|
||
3.3.8
|
||
Peripheral Bridge Configuration..................................................................................................................92
|
||
3.3.9
|
||
DMA request multiplexer configuration......................................................................................................93
|
||
3.3.10
|
||
DMA Controller Configuration...................................................................................................................96
|
||
3.3.11
|
||
External Watchdog Monitor (EWM) Configuration....................................................................................97
|
||
3.3.12
|
||
Watchdog Configuration..............................................................................................................................99
|
||
3.4
|
||
Clock modules..............................................................................................................................................................100
|
||
3.4.1
|
||
MCG Configuration.....................................................................................................................................100
|
||
3.4.2
|
||
OSC Configuration......................................................................................................................................101
|
||
3.4.3
|
||
RTC OSC configuration...............................................................................................................................102
|
||
3.5
|
||
Memories and memory interfaces.................................................................................................................................102
|
||
3.5.1
|
||
Flash Memory Configuration.......................................................................................................................102
|
||
3.5.2
|
||
Flash Memory Controller Configuration.....................................................................................................106
|
||
3.5.3
|
||
SRAM Configuration...................................................................................................................................107
|
||
3.5.4
|
||
SRAM Controller Configuration.................................................................................................................111
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
4
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 5
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
3.5.5
|
||
System Register File Configuration.............................................................................................................111
|
||
3.5.6
|
||
VBAT Register File Configuration..............................................................................................................112
|
||
3.5.7
|
||
EzPort Configuration...................................................................................................................................113
|
||
3.5.8
|
||
FlexBus Configuration.................................................................................................................................114
|
||
3.6
|
||
Security.........................................................................................................................................................................117
|
||
3.6.1
|
||
CRC Configuration......................................................................................................................................117
|
||
3.6.2
|
||
MMCAU Configuration...............................................................................................................................118
|
||
3.6.3
|
||
RNG Configuration......................................................................................................................................119
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
5
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 6
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
3.7
|
||
Analog...........................................................................................................................................................................119
|
||
3.7.1
|
||
16-bit SAR ADC with PGA Configuration.................................................................................................119
|
||
3.7.2
|
||
CMP Configuration......................................................................................................................................127
|
||
3.7.3
|
||
12-bit DAC Configuration...........................................................................................................................129
|
||
3.7.4
|
||
VREF Configuration....................................................................................................................................130
|
||
3.8
|
||
Timers...........................................................................................................................................................................131
|
||
3.8.1
|
||
PDB Configuration......................................................................................................................................131
|
||
3.8.2
|
||
FlexTimer Configuration.............................................................................................................................134
|
||
3.8.3
|
||
PIT Configuration........................................................................................................................................138
|
||
3.8.4
|
||
Low-power timer configuration...................................................................................................................139
|
||
3.8.5
|
||
CMT Configuration......................................................................................................................................141
|
||
3.8.6
|
||
RTC configuration.......................................................................................................................................142
|
||
3.9
|
||
Communication interfaces............................................................................................................................................143
|
||
3.9.1
|
||
Ethernet Configuration.................................................................................................................................143
|
||
3.9.2
|
||
Universal Serial Bus (USB) FS Subsystem.................................................................................................146
|
||
3.9.3
|
||
CAN Configuration......................................................................................................................................151
|
||
3.9.4
|
||
SPI configuration.........................................................................................................................................153
|
||
3.9.5
|
||
I2C Configuration........................................................................................................................................156
|
||
3.9.6
|
||
UART Configuration...................................................................................................................................157
|
||
3.9.7
|
||
SDHC Configuration....................................................................................................................................160
|
||
3.9.8
|
||
I2S configuration..........................................................................................................................................162
|
||
3.10
|
||
Human-machine interfaces...........................................................................................................................................164
|
||
3.10.1
|
||
GPIO configuration......................................................................................................................................164
|
||
3.10.2
|
||
TSI Configuration........................................................................................................................................165
|
||
Chapter 4
|
||
Memory Map
|
||
4.1
|
||
Introduction...................................................................................................................................................................169
|
||
4.2
|
||
System memory map.....................................................................................................................................................169
|
||
4.2.1
|
||
Aliased bit-band regions..............................................................................................................................170
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
6
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 7
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
4.3
|
||
Flash Memory Map.......................................................................................................................................................171
|
||
4.3.1
|
||
Alternate Non-Volatile IRC User Trim Description....................................................................................172
|
||
4.4
|
||
SRAM memory map.....................................................................................................................................................173
|
||
4.5
|
||
Peripheral bridge (AIPS-Lite0 and AIPS-Lite1) memory maps...................................................................................173
|
||
4.5.1
|
||
Peripheral Bridge 0 (AIPS-Lite 0) Memory Map........................................................................................173
|
||
4.5.2
|
||
Peripheral Bridge 1 (AIPS-Lite 1) Memory Map........................................................................................177
|
||
4.6
|
||
Private Peripheral Bus (PPB) memory map..................................................................................................................181
|
||
Chapter 5
|
||
Clock Distribution
|
||
5.1
|
||
Introduction...................................................................................................................................................................183
|
||
5.2
|
||
Programming model......................................................................................................................................................183
|
||
5.3
|
||
High-Level device clocking diagram............................................................................................................................183
|
||
5.4
|
||
Clock definitions...........................................................................................................................................................184
|
||
5.4.1
|
||
Device clock summary.................................................................................................................................185
|
||
5.5
|
||
Internal clocking requirements.....................................................................................................................................187
|
||
5.5.1
|
||
Clock divider values after reset....................................................................................................................188
|
||
5.5.2
|
||
VLPR mode clocking...................................................................................................................................188
|
||
5.6
|
||
Clock Gating.................................................................................................................................................................189
|
||
5.7
|
||
Module clocks...............................................................................................................................................................189
|
||
5.7.1
|
||
PMC 1-kHz LPO clock................................................................................................................................191
|
||
5.7.2
|
||
WDOG clocking..........................................................................................................................................191
|
||
5.7.3
|
||
Debug trace clock.........................................................................................................................................191
|
||
5.7.4
|
||
PORT digital filter clocking.........................................................................................................................192
|
||
5.7.5
|
||
LPTMR clocking..........................................................................................................................................192
|
||
5.7.6
|
||
Ethernet Clocking........................................................................................................................................193
|
||
5.7.7
|
||
USB FS OTG Controller clocking...............................................................................................................194
|
||
5.7.8
|
||
FlexCAN clocking.......................................................................................................................................195
|
||
5.7.9
|
||
UART clocking............................................................................................................................................195
|
||
5.7.10
|
||
SDHC clocking............................................................................................................................................195
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
7
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 8
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
5.7.11
|
||
I2S/SAI clocking..........................................................................................................................................196
|
||
5.7.12
|
||
TSI clocking.................................................................................................................................................196
|
||
Chapter 6
|
||
Reset and Boot
|
||
6.1
|
||
Introduction...................................................................................................................................................................199
|
||
6.2
|
||
Reset..............................................................................................................................................................................200
|
||
6.2.1
|
||
Power-on reset (POR)..................................................................................................................................200
|
||
6.2.2
|
||
System reset sources....................................................................................................................................200
|
||
6.2.3
|
||
MCU Resets.................................................................................................................................................204
|
||
6.2.4
|
||
Reset Pin .....................................................................................................................................................206
|
||
6.2.5
|
||
Debug resets.................................................................................................................................................206
|
||
6.3
|
||
Boot...............................................................................................................................................................................207
|
||
6.3.1
|
||
Boot sources.................................................................................................................................................207
|
||
6.3.2
|
||
Boot options.................................................................................................................................................208
|
||
6.3.3
|
||
FOPT boot options.......................................................................................................................................208
|
||
6.3.4
|
||
Boot sequence..............................................................................................................................................209
|
||
Chapter 7
|
||
Power Management
|
||
7.1
|
||
Introduction...................................................................................................................................................................211
|
||
7.2
|
||
Power modes.................................................................................................................................................................211
|
||
7.3
|
||
Entering and exiting power modes...............................................................................................................................213
|
||
7.4
|
||
Power mode transitions.................................................................................................................................................214
|
||
7.5
|
||
Power modes shutdown sequencing.............................................................................................................................215
|
||
7.6
|
||
Module Operation in Low Power Modes......................................................................................................................215
|
||
7.7
|
||
Clock Gating.................................................................................................................................................................218
|
||
Chapter 8
|
||
Security
|
||
8.1
|
||
Introduction...................................................................................................................................................................219
|
||
8.2
|
||
Flash Security...............................................................................................................................................................219
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
8
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 9
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
8.3
|
||
Security Interactions with other Modules.....................................................................................................................220
|
||
8.3.1
|
||
Security interactions with FlexBus..............................................................................................................220
|
||
8.3.2
|
||
Security Interactions with EzPort................................................................................................................220
|
||
8.3.3
|
||
Security Interactions with Debug.................................................................................................................220
|
||
Chapter 9
|
||
Debug
|
||
9.1
|
||
Introduction...................................................................................................................................................................223
|
||
9.1.1
|
||
References....................................................................................................................................................225
|
||
9.2
|
||
The Debug Port.............................................................................................................................................................225
|
||
9.2.1
|
||
JTAG-to-SWD change sequence.................................................................................................................226
|
||
9.2.2
|
||
JTAG-to-cJTAG change sequence...............................................................................................................226
|
||
9.3
|
||
Debug Port Pin Descriptions.........................................................................................................................................227
|
||
9.4
|
||
System TAP connection................................................................................................................................................227
|
||
9.4.1
|
||
IR Codes.......................................................................................................................................................227
|
||
9.5
|
||
JTAG status and control registers.................................................................................................................................228
|
||
9.5.1
|
||
MDM-AP Control Register..........................................................................................................................229
|
||
9.5.2
|
||
MDM-AP Status Register............................................................................................................................231
|
||
9.6
|
||
Debug Resets................................................................................................................................................................232
|
||
9.7
|
||
AHB-AP........................................................................................................................................................................233
|
||
9.8
|
||
ITM...............................................................................................................................................................................234
|
||
9.9
|
||
Core Trace Connectivity...............................................................................................................................................234
|
||
9.10
|
||
Embedded Trace Macrocell v3.5 (ETM)......................................................................................................................235
|
||
9.11
|
||
Coresight Embedded Trace Buffer (ETB)....................................................................................................................236
|
||
9.11.1
|
||
Performance Profiling with the ETB...........................................................................................................236
|
||
9.11.2
|
||
ETB Counter Control...................................................................................................................................237
|
||
9.12
|
||
TPIU..............................................................................................................................................................................237
|
||
9.13
|
||
DWT.............................................................................................................................................................................237
|
||
9.14
|
||
Debug in Low Power Modes........................................................................................................................................238
|
||
9.14.1
|
||
Debug Module State in Low Power Modes.................................................................................................239
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
9
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 10
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
9.15
|
||
Debug & Security.........................................................................................................................................................239
|
||
Chapter 10
|
||
Signal Multiplexing and Signal Descriptions
|
||
10.1
|
||
Introduction...................................................................................................................................................................241
|
||
10.2
|
||
Signal Multiplexing Integration....................................................................................................................................241
|
||
10.2.1
|
||
Port control and interrupt module features..................................................................................................242
|
||
10.2.2
|
||
PCRn reset values for port A.......................................................................................................................242
|
||
10.2.3
|
||
Clock gating.................................................................................................................................................242
|
||
10.2.4
|
||
Signal multiplexing constraints....................................................................................................................242
|
||
10.3
|
||
Pinout............................................................................................................................................................................243
|
||
10.3.1
|
||
K60 Signal Multiplexing and Pin Assignments...........................................................................................243
|
||
10.3.2
|
||
K60 Pinouts..................................................................................................................................................249
|
||
10.4
|
||
Module Signal Description Tables................................................................................................................................251
|
||
10.4.1
|
||
Core Modules...............................................................................................................................................251
|
||
10.4.2
|
||
System Modules...........................................................................................................................................252
|
||
10.4.3
|
||
Clock Modules.............................................................................................................................................253
|
||
10.4.4
|
||
Memories and Memory Interfaces...............................................................................................................253
|
||
10.4.5
|
||
Analog..........................................................................................................................................................256
|
||
10.4.6
|
||
Timer Modules.............................................................................................................................................258
|
||
10.4.7
|
||
Communication Interfaces...........................................................................................................................261
|
||
10.4.8
|
||
Human-Machine Interfaces (HMI)..............................................................................................................267
|
||
Chapter 11
|
||
Port control and interrupts (PORT)
|
||
11.1
|
||
Introduction...................................................................................................................................................................269
|
||
11.2
|
||
Overview.......................................................................................................................................................................269
|
||
11.2.1
|
||
Features........................................................................................................................................................269
|
||
11.2.2
|
||
Modes of operation......................................................................................................................................270
|
||
11.3
|
||
External signal description............................................................................................................................................271
|
||
11.4
|
||
Detailed signal description............................................................................................................................................271
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
10
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 11
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
11.5
|
||
Memory map and register definition.............................................................................................................................271
|
||
11.5.1
|
||
Pin Control Register n (PORTx\_PCRn).......................................................................................................277
|
||
11.5.2
|
||
Global Pin Control Low Register (PORTx\_GPCLR)..................................................................................280
|
||
11.5.3
|
||
Global Pin Control High Register (PORTx\_GPCHR).................................................................................280
|
||
11.5.4
|
||
Interrupt Status Flag Register (PORTx\_ISFR)............................................................................................281
|
||
11.6
|
||
Functional description...................................................................................................................................................281
|
||
11.6.1
|
||
Pin control....................................................................................................................................................281
|
||
11.6.2
|
||
Global pin control........................................................................................................................................282
|
||
11.6.3
|
||
External interrupts........................................................................................................................................282
|
||
Chapter 12
|
||
System Integration Module (SIM)
|
||
12.1
|
||
Introduction...................................................................................................................................................................285
|
||
12.1.1
|
||
Features........................................................................................................................................................285
|
||
12.2
|
||
Memory map and register definition.............................................................................................................................286
|
||
12.2.1
|
||
System Options Register 1 (SIM\_SOPT1)..................................................................................................287
|
||
12.2.2
|
||
SOPT1 Configuration Register (SIM\_SOPT1CFG)....................................................................................289
|
||
12.2.3
|
||
System Options Register 2 (SIM\_SOPT2)..................................................................................................290
|
||
12.2.4
|
||
System Options Register 4 (SIM\_SOPT4)..................................................................................................293
|
||
12.2.5
|
||
System Options Register 5 (SIM\_SOPT5)..................................................................................................295
|
||
12.2.6
|
||
System Options Register 7 (SIM\_SOPT7)..................................................................................................297
|
||
12.2.7
|
||
System Device Identification Register (SIM\_SDID)...................................................................................299
|
||
12.2.8
|
||
System Clock Gating Control Register 1 (SIM\_SCGC1)............................................................................300
|
||
12.2.9
|
||
System Clock Gating Control Register 2 (SIM\_SCGC2)............................................................................301
|
||
12.2.10
|
||
System Clock Gating Control Register 3 (SIM\_SCGC3)............................................................................302
|
||
12.2.11
|
||
System Clock Gating Control Register 4 (SIM\_SCGC4)............................................................................304
|
||
12.2.12
|
||
System Clock Gating Control Register 5 (SIM\_SCGC5)............................................................................306
|
||
12.2.13
|
||
System Clock Gating Control Register 6 (SIM\_SCGC6)............................................................................308
|
||
12.2.14
|
||
System Clock Gating Control Register 7 (SIM\_SCGC7)............................................................................310
|
||
12.2.15
|
||
System Clock Divider Register 1 (SIM\_CLKDIV1)...................................................................................311
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
11
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 12
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
12.2.16
|
||
System Clock Divider Register 2 (SIM\_CLKDIV2)...................................................................................314
|
||
12.2.17
|
||
Flash Configuration Register 1 (SIM\_FCFG1)...........................................................................................314
|
||
12.2.18
|
||
Flash Configuration Register 2 (SIM\_FCFG2)...........................................................................................317
|
||
12.2.19
|
||
Unique Identification Register High (SIM\_UIDH).....................................................................................318
|
||
12.2.20
|
||
Unique Identification Register Mid-High (SIM\_UIDMH)..........................................................................319
|
||
12.2.21
|
||
Unique Identification Register Mid Low (SIM\_UIDML)...........................................................................319
|
||
12.2.22
|
||
Unique Identification Register Low (SIM\_UIDL)......................................................................................320
|
||
12.3
|
||
Functional description...................................................................................................................................................320
|
||
Chapter 13
|
||
Reset Control Module (RCM)
|
||
13.1
|
||
Introduction...................................................................................................................................................................321
|
||
13.2
|
||
Reset memory map and register descriptions...............................................................................................................321
|
||
13.2.1
|
||
System Reset Status Register 0 (RCM\_SRS0)............................................................................................321
|
||
13.2.2
|
||
System Reset Status Register 1 (RCM\_SRS1)............................................................................................323
|
||
13.2.3
|
||
Reset Pin Filter Control register (RCM\_RPFC)..........................................................................................324
|
||
13.2.4
|
||
Reset Pin Filter Width register (RCM\_RPFW)...........................................................................................325
|
||
13.2.5
|
||
Mode Register (RCM\_MR).........................................................................................................................327
|
||
Chapter 14
|
||
System Mode Controller
|
||
14.1
|
||
Introduction...................................................................................................................................................................329
|
||
14.2
|
||
Modes of operation.......................................................................................................................................................329
|
||
14.3
|
||
Memory map and register descriptions.........................................................................................................................331
|
||
14.3.1
|
||
Power Mode Protection register (SMC\_PMPROT).....................................................................................332
|
||
14.3.2
|
||
Power Mode Control register (SMC\_PMCTRL).........................................................................................333
|
||
14.3.3
|
||
VLLS Control register (SMC\_VLLSCTRL)...............................................................................................334
|
||
14.3.4
|
||
Power Mode Status register (SMC\_PMSTAT)...........................................................................................335
|
||
14.4
|
||
Functional description...................................................................................................................................................336
|
||
14.4.1
|
||
Power mode transitions................................................................................................................................336
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
12
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 13
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
14.4.2
|
||
Power mode entry/exit sequencing..............................................................................................................339
|
||
14.4.3
|
||
Run modes....................................................................................................................................................341
|
||
14.4.4
|
||
Wait modes..................................................................................................................................................343
|
||
14.4.5
|
||
Stop modes...................................................................................................................................................344
|
||
14.4.6
|
||
Debug in low power modes.........................................................................................................................347
|
||
Chapter 15
|
||
Power Management Controller
|
||
15.1
|
||
Introduction...................................................................................................................................................................349
|
||
15.2
|
||
Features.........................................................................................................................................................................349
|
||
15.3
|
||
Low-voltage detect (LVD) system................................................................................................................................349
|
||
15.3.1
|
||
LVD reset operation.....................................................................................................................................350
|
||
15.3.2
|
||
LVD interrupt operation...............................................................................................................................350
|
||
15.3.3
|
||
Low-voltage warning (LVW) interrupt operation.......................................................................................350
|
||
15.4
|
||
I/O retention..................................................................................................................................................................351
|
||
15.5
|
||
Memory map and register descriptions.........................................................................................................................351
|
||
15.5.1
|
||
Low Voltage Detect Status And Control 1 register (PMC\_LVDSC1)........................................................352
|
||
15.5.2
|
||
Low Voltage Detect Status And Control 2 register (PMC\_LVDSC2)........................................................353
|
||
15.5.3
|
||
Regulator Status And Control register (PMC\_REGSC)..............................................................................354
|
||
Chapter 16
|
||
Low-Leakage Wakeup Unit (LLWU)
|
||
16.1
|
||
Introduction...................................................................................................................................................................357
|
||
16.1.1
|
||
Features........................................................................................................................................................357
|
||
16.1.2
|
||
Modes of operation......................................................................................................................................358
|
||
16.1.3
|
||
Block diagram..............................................................................................................................................359
|
||
16.2
|
||
LLWU signal descriptions............................................................................................................................................360
|
||
16.3
|
||
Memory map/register definition...................................................................................................................................361
|
||
16.3.1
|
||
LLWU Pin Enable 1 register (LLWU\_PE1)................................................................................................362
|
||
16.3.2
|
||
LLWU Pin Enable 2 register (LLWU\_PE2)................................................................................................363
|
||
16.3.3
|
||
LLWU Pin Enable 3 register (LLWU\_PE3)................................................................................................364
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
13
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 14
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
16.3.4
|
||
LLWU Pin Enable 4 register (LLWU\_PE4)................................................................................................365
|
||
16.3.5
|
||
LLWU Module Enable register (LLWU\_ME)............................................................................................366
|
||
16.3.6
|
||
LLWU Flag 1 register (LLWU\_F1).............................................................................................................368
|
||
16.3.7
|
||
LLWU Flag 2 register (LLWU\_F2).............................................................................................................369
|
||
16.3.8
|
||
LLWU Flag 3 register (LLWU\_F3).............................................................................................................371
|
||
16.3.9
|
||
LLWU Pin Filter 1 register (LLWU\_FILT1)..............................................................................................373
|
||
16.3.10
|
||
LLWU Pin Filter 2 register (LLWU\_FILT2)..............................................................................................374
|
||
16.3.11
|
||
LLWU Reset Enable register (LLWU\_RST)...............................................................................................375
|
||
16.4
|
||
Functional description...................................................................................................................................................376
|
||
16.4.1
|
||
LLS mode.....................................................................................................................................................376
|
||
16.4.2
|
||
VLLS modes................................................................................................................................................376
|
||
16.4.3
|
||
Initialization.................................................................................................................................................377
|
||
Chapter 17
|
||
Miscellaneous Control Module (MCM)
|
||
17.1
|
||
Introduction...................................................................................................................................................................379
|
||
17.1.1
|
||
Features........................................................................................................................................................379
|
||
17.2
|
||
Memory map/register descriptions...............................................................................................................................379
|
||
17.2.1
|
||
Crossbar Switch (AXBS) Slave Configuration (MCM\_PLASC)................................................................380
|
||
17.2.2
|
||
Crossbar Switch (AXBS) Master Configuration (MCM\_PLAMC)............................................................381
|
||
17.2.3
|
||
Control Register (MCM\_CR)......................................................................................................................381
|
||
17.2.4
|
||
Interrupt Status Register (MCM\_ISR).........................................................................................................383
|
||
17.2.5
|
||
ETB Counter Control register (MCM\_ETBCC)..........................................................................................384
|
||
17.2.6
|
||
ETB Reload register (MCM\_ETBRL).........................................................................................................385
|
||
17.2.7
|
||
ETB Counter Value register (MCM\_ETBCNT)..........................................................................................385
|
||
17.2.8
|
||
Process ID register (MCM\_PID).................................................................................................................386
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
14
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 15
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
17.3
|
||
Functional description...................................................................................................................................................386
|
||
17.3.1
|
||
Interrupts......................................................................................................................................................386
|
||
Chapter 18
|
||
Crossbar Switch (AXBS)
|
||
18.1
|
||
Introduction...................................................................................................................................................................389
|
||
18.1.1
|
||
Features........................................................................................................................................................389
|
||
18.2
|
||
Memory Map / Register Definition...............................................................................................................................390
|
||
18.2.1
|
||
Priority Registers Slave (AXBS\_PRSn)......................................................................................................391
|
||
18.2.2
|
||
Control Register (AXBS\_CRSn).................................................................................................................394
|
||
18.2.3
|
||
Master General Purpose Control Register (AXBS\_MGPCRn)...................................................................396
|
||
18.3
|
||
Functional Description..................................................................................................................................................396
|
||
18.3.1
|
||
General operation.........................................................................................................................................396
|
||
18.3.2
|
||
Register coherency.......................................................................................................................................398
|
||
18.3.3
|
||
Arbitration....................................................................................................................................................398
|
||
18.4
|
||
Initialization/application information...........................................................................................................................401
|
||
Chapter 19
|
||
Memory Protection Unit (MPU)
|
||
19.1
|
||
Introduction...................................................................................................................................................................403
|
||
19.2
|
||
Overview.......................................................................................................................................................................403
|
||
19.2.1
|
||
Block diagram..............................................................................................................................................403
|
||
19.2.2
|
||
Features........................................................................................................................................................404
|
||
19.3
|
||
Memory map/register definition...................................................................................................................................405
|
||
19.3.1
|
||
Control/Error Status Register (MPU\_CESR)..............................................................................................409
|
||
19.3.2
|
||
Error Address Register, slave port n (MPU\_EARn)....................................................................................410
|
||
19.3.3
|
||
Error Detail Register, slave port n (MPU\_EDRn).......................................................................................411
|
||
19.3.4
|
||
Region Descriptor n, Word 0 (MPU\_RGDn\_WORD0)..............................................................................412
|
||
19.3.5
|
||
Region Descriptor n, Word 1 (MPU\_RGDn\_WORD1)..............................................................................412
|
||
19.3.6
|
||
Region Descriptor n, Word 2 (MPU\_RGDn\_WORD2)..............................................................................413
|
||
19.3.7
|
||
Region Descriptor n, Word 3 (MPU\_RGDn\_WORD3)..............................................................................416
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
15
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 16
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
19.3.8
|
||
Region Descriptor Alternate Access Control n (MPU\_RGDAACn)...........................................................417
|
||
19.4
|
||
Functional description...................................................................................................................................................419
|
||
19.4.1
|
||
Access evaluation macro..............................................................................................................................419
|
||
19.4.2
|
||
Putting it all together and error terminations...............................................................................................420
|
||
19.4.3
|
||
Power management......................................................................................................................................421
|
||
19.5
|
||
Initialization information..............................................................................................................................................421
|
||
19.6
|
||
Application information................................................................................................................................................421
|
||
Chapter 20
|
||
Peripheral Bridge (AIPS-Lite)
|
||
20.1
|
||
Introduction...................................................................................................................................................................425
|
||
20.1.1
|
||
Features........................................................................................................................................................425
|
||
20.1.2
|
||
General operation.........................................................................................................................................426
|
||
20.2
|
||
Memory map/register definition...................................................................................................................................426
|
||
20.2.1
|
||
Master Privilege Register A (AIPSx\_MPRA).............................................................................................428
|
||
20.2.2
|
||
Peripheral Access Control Register (AIPSx\_PACRn).................................................................................431
|
||
20.2.3
|
||
Peripheral Access Control Register (AIPSx\_PACRn).................................................................................436
|
||
20.3
|
||
Functional description...................................................................................................................................................441
|
||
20.3.1
|
||
Access support.............................................................................................................................................441
|
||
Chapter 21
|
||
Direct Memory Access Multiplexer (DMAMUX)
|
||
21.1
|
||
Introduction...................................................................................................................................................................443
|
||
21.1.1
|
||
Overview......................................................................................................................................................443
|
||
21.1.2
|
||
Features........................................................................................................................................................444
|
||
21.1.3
|
||
Modes of operation......................................................................................................................................444
|
||
21.2
|
||
External signal description............................................................................................................................................445
|
||
21.3
|
||
Memory map/register definition...................................................................................................................................445
|
||
21.3.1
|
||
Channel Configuration register (DMAMUX\_CHCFGn)............................................................................446
|
||
21.4
|
||
Functional description...................................................................................................................................................447
|
||
21.4.1
|
||
DMA channels with periodic triggering capability......................................................................................447
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
16
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 17
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
21.4.2
|
||
DMA channels with no triggering capability...............................................................................................449
|
||
21.4.3
|
||
"Always enabled" DMA sources.................................................................................................................449
|
||
21.5
|
||
Initialization/application information...........................................................................................................................450
|
||
21.5.1
|
||
Reset.............................................................................................................................................................451
|
||
21.5.2
|
||
Enabling and configuring sources................................................................................................................451
|
||
Chapter 22
|
||
Direct Memory Access Controller (eDMA)
|
||
22.1
|
||
Introduction...................................................................................................................................................................455
|
||
22.1.1
|
||
Block diagram..............................................................................................................................................455
|
||
22.1.2
|
||
Block parts...................................................................................................................................................456
|
||
22.1.3
|
||
Features........................................................................................................................................................457
|
||
22.2
|
||
Modes of operation.......................................................................................................................................................459
|
||
22.3
|
||
Memory map/register definition...................................................................................................................................459
|
||
22.3.1
|
||
Control Register (DMA\_CR).......................................................................................................................470
|
||
22.3.2
|
||
Error Status Register (DMA\_ES)................................................................................................................472
|
||
22.3.3
|
||
Enable Request Register (DMA\_ ERQ ).....................................................................................................474
|
||
22.3.4
|
||
Enable Error Interrupt Register (DMA\_ EEI ).............................................................................................476
|
||
22.3.5
|
||
Clear Enable Error Interrupt Register (DMA\_CEEI)..................................................................................479
|
||
22.3.6
|
||
Set Enable Error Interrupt Register (DMA\_SEEI)......................................................................................480
|
||
22.3.7
|
||
Clear Enable Request Register (DMA\_CERQ)...........................................................................................481
|
||
22.3.8
|
||
Set Enable Request Register (DMA\_SERQ)...............................................................................................482
|
||
22.3.9
|
||
Clear DONE Status Bit Register (DMA\_CDNE)........................................................................................483
|
||
22.3.10
|
||
Set START Bit Register (DMA\_SSRT)......................................................................................................484
|
||
22.3.11
|
||
Clear Error Register (DMA\_CERR)............................................................................................................485
|
||
22.3.12
|
||
Clear Interrupt Request Register (DMA\_CINT).........................................................................................486
|
||
22.3.13
|
||
Interrupt Request Register (DMA\_ INT )....................................................................................................487
|
||
22.3.14
|
||
Error Register (DMA\_ ERR )......................................................................................................................489
|
||
22.3.15
|
||
Hardware Request Status Register (DMA\_ HRS )......................................................................................492
|
||
22.3.16
|
||
Channel n Priority Register (DMA\_DCHPRIn)..........................................................................................494
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
17
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 18
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
22.3.17
|
||
TCD Source Address (DMA\_TCDn\_SADDR)...........................................................................................495
|
||
22.3.18
|
||
TCD Signed Source Address Offset (DMA\_TCDn\_SOFF)........................................................................495
|
||
22.3.19
|
||
TCD Transfer Attributes (DMA\_TCDn\_ATTR).........................................................................................496
|
||
22.3.20
|
||
TCD Minor Byte Count (Minor Loop Disabled) (DMA\_TCDn\_NBYTES\_MLNO).................................497
|
||
22.3.21
|
||
TCD Signed Minor Loop Offset (Minor Loop Enabled and Offset Disabled)
|
||
(DMA\_TCDn\_NBYTES\_MLOFFNO).......................................................................................................497
|
||
22.3.22
|
||
TCD Signed Minor Loop Offset (Minor Loop and Offset Enabled)
|
||
(DMA\_TCDn\_NBYTES\_MLOFFYES).....................................................................................................498
|
||
22.3.23
|
||
TCD Last Source Address Adjustment (DMA\_TCDn\_SLAST).................................................................500
|
||
22.3.24
|
||
TCD Destination Address (DMA\_TCDn\_DADDR)...................................................................................500
|
||
22.3.25
|
||
TCD Signed Destination Address Offset (DMA\_TCDn\_DOFF)................................................................501
|
||
22.3.26
|
||
TCD Current Minor Loop Link, Major Loop Count (Channel Linking Enabled)
|
||
(DMA\_TCDn\_CITER\_ELINKYES)...........................................................................................................501
|
||
22.3.27
|
||
TCD Current Minor Loop Link, Major Loop Count (Channel Linking Disabled)
|
||
(DMA\_TCDn\_CITER\_ELINKNO)............................................................................................................502
|
||
22.3.28
|
||
TCD Last Destination Address Adjustment/Scatter Gather Address (DMA\_TCDn\_DLASTSGA)..........503
|
||
22.3.29
|
||
TCD Control and Status (DMA\_TCDn\_CSR)............................................................................................504
|
||
22.3.30
|
||
TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Enabled)
|
||
(DMA\_TCDn\_BITER\_ELINKYES)...........................................................................................................506
|
||
22.3.31
|
||
TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Disabled)
|
||
(DMA\_TCDn\_BITER\_ELINKNO)............................................................................................................507
|
||
22.4
|
||
Functional description...................................................................................................................................................508
|
||
22.4.1
|
||
eDMA basic data flow.................................................................................................................................508
|
||
22.4.2
|
||
Error reporting and handling........................................................................................................................511
|
||
22.4.3
|
||
Channel preemption.....................................................................................................................................513
|
||
22.4.4
|
||
Performance.................................................................................................................................................513
|
||
22.5
|
||
Initialization/application information...........................................................................................................................518
|
||
22.5.1
|
||
eDMA initialization.....................................................................................................................................518
|
||
22.5.2
|
||
Programming errors.....................................................................................................................................520
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
18
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 19
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
22.5.3
|
||
Arbitration mode considerations..................................................................................................................520
|
||
22.5.4
|
||
Performing DMA transfers (examples)........................................................................................................521
|
||
22.5.5
|
||
Monitoring transfer descriptor status...........................................................................................................525
|
||
22.5.6
|
||
Channel Linking...........................................................................................................................................526
|
||
22.5.7
|
||
Dynamic programming................................................................................................................................528
|
||
Chapter 23
|
||
External Watchdog Monitor (EWM)
|
||
23.1
|
||
Introduction...................................................................................................................................................................533
|
||
23.1.1
|
||
Features........................................................................................................................................................533
|
||
23.1.2
|
||
Modes of Operation.....................................................................................................................................534
|
||
23.1.3
|
||
Block Diagram.............................................................................................................................................535
|
||
23.2
|
||
EWM Signal Descriptions............................................................................................................................................536
|
||
23.3
|
||
Memory Map/Register Definition.................................................................................................................................536
|
||
23.3.1
|
||
Control Register (EWM\_CTRL).................................................................................................................536
|
||
23.3.2
|
||
Service Register (EWM\_SERV)..................................................................................................................537
|
||
23.3.3
|
||
Compare Low Register (EWM\_CMPL)......................................................................................................537
|
||
23.3.4
|
||
Compare High Register (EWM\_CMPH).....................................................................................................538
|
||
23.3.5
|
||
Clock Prescaler Register (EWM\_CLKPRESCALER)................................................................................539
|
||
23.4
|
||
Functional Description..................................................................................................................................................539
|
||
23.4.1
|
||
The EWM\_out Signal..................................................................................................................................539
|
||
23.4.2
|
||
The EWM\_in Signal....................................................................................................................................540
|
||
23.4.3
|
||
EWM Counter..............................................................................................................................................541
|
||
23.4.4
|
||
EWM Compare Registers............................................................................................................................541
|
||
23.4.5
|
||
EWM Refresh Mechanism...........................................................................................................................541
|
||
23.4.6
|
||
EWM Interrupt.............................................................................................................................................542
|
||
23.4.7
|
||
Counter clock prescaler................................................................................................................................542
|
||
Chapter 24
|
||
Watchdog Timer (WDOG)
|
||
24.1
|
||
Introduction...................................................................................................................................................................543
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
19
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 20
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
24.2
|
||
Features.........................................................................................................................................................................543
|
||
24.3
|
||
Functional overview......................................................................................................................................................545
|
||
24.3.1
|
||
Unlocking and updating the watchdog.........................................................................................................546
|
||
24.3.2
|
||
Watchdog configuration time (WCT)..........................................................................................................547
|
||
24.3.3
|
||
Refreshing the watchdog..............................................................................................................................548
|
||
24.3.4
|
||
Windowed mode of operation......................................................................................................................548
|
||
24.3.5
|
||
Watchdog disabled mode of operation.........................................................................................................548
|
||
24.3.6
|
||
Low-power modes of operation...................................................................................................................549
|
||
24.3.7
|
||
Debug modes of operation...........................................................................................................................549
|
||
24.4
|
||
Testing the watchdog....................................................................................................................................................550
|
||
24.4.1
|
||
Quick test.....................................................................................................................................................550
|
||
24.4.2
|
||
Byte test........................................................................................................................................................551
|
||
24.5
|
||
Backup reset generator..................................................................................................................................................552
|
||
24.6
|
||
Generated resets and interrupts.....................................................................................................................................552
|
||
24.7
|
||
Memory map and register definition.............................................................................................................................553
|
||
24.7.1
|
||
Watchdog Status and Control Register High (WDOG\_STCTRLH)...........................................................554
|
||
24.7.2
|
||
Watchdog Status and Control Register Low (WDOG\_STCTRLL)............................................................555
|
||
24.7.3
|
||
Watchdog Time-out Value Register High (WDOG\_TOVALH).................................................................556
|
||
24.7.4
|
||
Watchdog Time-out Value Register Low (WDOG\_TOVALL)..................................................................556
|
||
24.7.5
|
||
Watchdog Window Register High (WDOG\_WINH)..................................................................................557
|
||
24.7.6
|
||
Watchdog Window Register Low (WDOG\_WINL)...................................................................................557
|
||
24.7.7
|
||
Watchdog Refresh register (WDOG\_REFRESH).......................................................................................558
|
||
24.7.8
|
||
Watchdog Unlock register (WDOG\_UNLOCK).........................................................................................558
|
||
24.7.9
|
||
Watchdog Timer Output Register High (WDOG\_TMROUTH).................................................................558
|
||
24.7.10
|
||
Watchdog Timer Output Register Low (WDOG\_TMROUTL)..................................................................559
|
||
24.7.11
|
||
Watchdog Reset Count register (WDOG\_RSTCNT)..................................................................................559
|
||
24.7.12
|
||
Watchdog Prescaler register (WDOG\_PRESC)..........................................................................................560
|
||
24.8
|
||
Watchdog operation with 8-bit access..........................................................................................................................560
|
||
24.8.1
|
||
General guideline.........................................................................................................................................560
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
20
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 21
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
24.8.2
|
||
Refresh and unlock operations with 8-bit access.........................................................................................560
|
||
24.9
|
||
Restrictions on watchdog operation..............................................................................................................................561
|
||
Chapter 25
|
||
Multipurpose Clock Generator (MCG)
|
||
25.1
|
||
Introduction...................................................................................................................................................................565
|
||
25.1.1
|
||
Features........................................................................................................................................................565
|
||
25.1.2
|
||
Modes of Operation.....................................................................................................................................568
|
||
25.2
|
||
External Signal Description..........................................................................................................................................569
|
||
25.3
|
||
Memory Map/Register Definition.................................................................................................................................569
|
||
25.3.1
|
||
MCG Control 1 Register (MCG\_C1)...........................................................................................................570
|
||
25.3.2
|
||
MCG Control 2 Register (MCG\_C2)...........................................................................................................571
|
||
25.3.3
|
||
MCG Control 3 Register (MCG\_C3)...........................................................................................................572
|
||
25.3.4
|
||
MCG Control 4 Register (MCG\_C4)...........................................................................................................573
|
||
25.3.5
|
||
MCG Control 5 Register (MCG\_C5)...........................................................................................................574
|
||
25.3.6
|
||
MCG Control 6 Register (MCG\_C6)...........................................................................................................575
|
||
25.3.7
|
||
MCG Status Register (MCG\_S)..................................................................................................................577
|
||
25.3.8
|
||
MCG Status and Control Register (MCG\_SC)............................................................................................578
|
||
25.3.9
|
||
MCG Auto Trim Compare Value High Register (MCG\_ATCVH)............................................................580
|
||
25.3.10
|
||
MCG Auto Trim Compare Value Low Register (MCG\_ATCVL)..............................................................580
|
||
25.3.11
|
||
MCG Control 7 Register (MCG\_C7)...........................................................................................................580
|
||
25.3.12
|
||
MCG Control 8 Register (MCG\_C8)...........................................................................................................581
|
||
25.3.13
|
||
MCG Control 9 Register (MCG\_C9)...........................................................................................................582
|
||
25.3.14
|
||
MCG Control 10 Register (MCG\_C10).......................................................................................................582
|
||
25.4
|
||
Functional Description..................................................................................................................................................583
|
||
25.4.1
|
||
MCG mode state diagram............................................................................................................................583
|
||
25.4.2
|
||
Low Power Bit Usage..................................................................................................................................587
|
||
25.4.3
|
||
MCG Internal Reference Clocks..................................................................................................................587
|
||
25.4.4
|
||
External Reference Clock............................................................................................................................588
|
||
25.4.5
|
||
MCG Fixed frequency clock .......................................................................................................................588
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
21
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 22
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
25.4.6
|
||
MCG PLL clock ..........................................................................................................................................589
|
||
25.4.7
|
||
MCG Auto TRIM (ATM)............................................................................................................................589
|
||
25.5
|
||
Initialization / Application information........................................................................................................................590
|
||
25.5.1
|
||
MCG module initialization sequence...........................................................................................................590
|
||
25.5.2
|
||
Using a 32.768 kHz reference......................................................................................................................593
|
||
25.5.3
|
||
MCG mode switching..................................................................................................................................593
|
||
Chapter 26
|
||
Oscillator (OSC)
|
||
26.1
|
||
Introduction...................................................................................................................................................................603
|
||
26.2
|
||
Features and Modes......................................................................................................................................................603
|
||
26.3
|
||
Block Diagram..............................................................................................................................................................604
|
||
26.4
|
||
OSC Signal Descriptions..............................................................................................................................................604
|
||
26.5
|
||
External Crystal / Resonator Connections....................................................................................................................605
|
||
26.6
|
||
External Clock Connections.........................................................................................................................................606
|
||
26.7
|
||
Memory Map/Register Definitions...............................................................................................................................607
|
||
26.7.1
|
||
OSC Memory Map/Register Definition.......................................................................................................607
|
||
26.8
|
||
Functional Description..................................................................................................................................................608
|
||
26.8.1
|
||
OSC Module States......................................................................................................................................608
|
||
26.8.2
|
||
OSC Module Modes.....................................................................................................................................610
|
||
26.8.3
|
||
Counter.........................................................................................................................................................612
|
||
26.8.4
|
||
Reference Clock Pin Requirements.............................................................................................................612
|
||
26.9
|
||
Reset..............................................................................................................................................................................612
|
||
26.10 Low Power Modes Operation.......................................................................................................................................613
|
||
26.11 Interrupts.......................................................................................................................................................................613
|
||
Chapter 27
|
||
RTC Oscillator
|
||
27.1
|
||
Introduction...................................................................................................................................................................615
|
||
27.1.1
|
||
Features and Modes.....................................................................................................................................615
|
||
27.1.2
|
||
Block Diagram.............................................................................................................................................615
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
22
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 23
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
27.2
|
||
RTC Signal Descriptions..............................................................................................................................................616
|
||
27.2.1
|
||
EXTAL32 — Oscillator Input.....................................................................................................................616
|
||
27.2.2
|
||
XTAL32 — Oscillator Output.....................................................................................................................616
|
||
27.3
|
||
External Crystal Connections.......................................................................................................................................617
|
||
27.4
|
||
Memory Map/Register Descriptions.............................................................................................................................617
|
||
27.5
|
||
Functional Description..................................................................................................................................................617
|
||
27.6
|
||
Reset Overview.............................................................................................................................................................618
|
||
27.7
|
||
Interrupts.......................................................................................................................................................................618
|
||
Chapter 28
|
||
Flash Memory Controller (FMC)
|
||
28.1
|
||
Introduction...................................................................................................................................................................619
|
||
28.1.1
|
||
Overview......................................................................................................................................................619
|
||
28.1.2
|
||
Features........................................................................................................................................................620
|
||
28.2
|
||
Modes of operation.......................................................................................................................................................620
|
||
28.3
|
||
External signal description............................................................................................................................................621
|
||
28.4
|
||
Memory map and register descriptions.........................................................................................................................621
|
||
28.4.1
|
||
Flash Access Protection Register (FMC\_PFAPR).......................................................................................627
|
||
28.4.2
|
||
Flash Bank 0 Control Register (FMC\_PFB0CR)........................................................................................630
|
||
28.4.3
|
||
Flash Bank 1 Control Register (FMC\_PFB1CR)........................................................................................633
|
||
28.4.4
|
||
Cache Tag Storage (FMC\_TAGVDW0Sn).................................................................................................635
|
||
28.4.5
|
||
Cache Tag Storage (FMC\_TAGVDW1Sn).................................................................................................636
|
||
28.4.6
|
||
Cache Tag Storage (FMC\_TAGVDW2Sn).................................................................................................637
|
||
28.4.7
|
||
Cache Tag Storage (FMC\_TAGVDW3Sn).................................................................................................638
|
||
28.4.8
|
||
Cache Data Storage (upper word) (FMC\_DATAW0SnU)..........................................................................638
|
||
28.4.9
|
||
Cache Data Storage (lower word) (FMC\_DATAW0SnL)..........................................................................639
|
||
28.4.10
|
||
Cache Data Storage (upper word) (FMC\_DATAW1SnU)..........................................................................639
|
||
28.4.11
|
||
Cache Data Storage (lower word) (FMC\_DATAW1SnL)..........................................................................640
|
||
28.4.12
|
||
Cache Data Storage (upper word) (FMC\_DATAW2SnU)..........................................................................640
|
||
28.4.13
|
||
Cache Data Storage (lower word) (FMC\_DATAW2SnL)..........................................................................641
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
23
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 24
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
28.4.14
|
||
Cache Data Storage (upper word) (FMC\_DATAW3SnU)..........................................................................641
|
||
28.4.15
|
||
Cache Data Storage (lower word) (FMC\_DATAW3SnL)..........................................................................642
|
||
28.5
|
||
Functional description...................................................................................................................................................642
|
||
28.5.1
|
||
Default configuration...................................................................................................................................642
|
||
28.5.2
|
||
Configuration options..................................................................................................................................643
|
||
28.5.3
|
||
Wait states....................................................................................................................................................643
|
||
28.5.4
|
||
Speculative reads..........................................................................................................................................644
|
||
28.6
|
||
Initialization and application information.....................................................................................................................645
|
||
Chapter 29
|
||
Flash Memory Module (FTFL)
|
||
29.1
|
||
Introduction...................................................................................................................................................................647
|
||
29.1.1
|
||
Features........................................................................................................................................................648
|
||
29.1.2
|
||
Block Diagram.............................................................................................................................................650
|
||
29.1.3
|
||
Glossary.......................................................................................................................................................651
|
||
29.2
|
||
External Signal Description..........................................................................................................................................653
|
||
29.3
|
||
Memory Map and Registers..........................................................................................................................................653
|
||
29.3.1
|
||
Flash Configuration Field Description.........................................................................................................654
|
||
29.3.2
|
||
Program Flash IFR Map...............................................................................................................................654
|
||
29.3.3
|
||
Data Flash IFR Map.....................................................................................................................................655
|
||
29.3.4
|
||
Register Descriptions...................................................................................................................................657
|
||
29.4
|
||
Functional Description..................................................................................................................................................670
|
||
29.4.1
|
||
Program Flash Memory Swap......................................................................................................................670
|
||
29.4.2
|
||
Flash Protection............................................................................................................................................670
|
||
29.4.3
|
||
FlexNVM Description..................................................................................................................................672
|
||
29.4.4
|
||
Interrupts......................................................................................................................................................677
|
||
29.4.5
|
||
Flash Operation in Low-Power Modes........................................................................................................678
|
||
29.4.6
|
||
Functional Modes of Operation...................................................................................................................678
|
||
29.4.7
|
||
Flash Reads and Ignored Writes..................................................................................................................678
|
||
29.4.8
|
||
Read While Write (RWW)...........................................................................................................................679
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
24
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 25
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
29.4.9
|
||
Flash Program and Erase..............................................................................................................................679
|
||
29.4.10
|
||
Flash Command Operations.........................................................................................................................679
|
||
29.4.11
|
||
Margin Read Commands.............................................................................................................................688
|
||
29.4.12
|
||
Flash Command Description........................................................................................................................689
|
||
29.4.13
|
||
Security........................................................................................................................................................717
|
||
29.4.14
|
||
Reset Sequence............................................................................................................................................719
|
||
Chapter 30
|
||
External Bus Interface (FlexBus)
|
||
30.1
|
||
Introduction...................................................................................................................................................................721
|
||
30.1.1
|
||
Definition.....................................................................................................................................................721
|
||
30.1.2
|
||
Features........................................................................................................................................................722
|
||
30.2
|
||
Signal descriptions........................................................................................................................................................722
|
||
30.3
|
||
Memory Map/Register Definition.................................................................................................................................725
|
||
30.3.1
|
||
Chip Select Address Register (FB\_CSARn)................................................................................................727
|
||
30.3.2
|
||
Chip Select Mask Register (FB\_CSMRn)...................................................................................................727
|
||
30.3.3
|
||
Chip Select Control Register (FB\_CSCRn).................................................................................................728
|
||
30.3.4
|
||
Chip Select port Multiplexing Control Register (FB\_CSPMCR)................................................................731
|
||
30.4
|
||
Functional description...................................................................................................................................................732
|
||
30.4.1
|
||
Modes of operation......................................................................................................................................733
|
||
30.4.2
|
||
Address comparison.....................................................................................................................................733
|
||
30.4.3
|
||
Address driven on address bus.....................................................................................................................733
|
||
30.4.4
|
||
Connecting address/data lines......................................................................................................................733
|
||
30.4.5
|
||
Bit ordering..................................................................................................................................................734
|
||
30.4.6
|
||
Data transfer signals.....................................................................................................................................734
|
||
30.4.7
|
||
Signal transitions..........................................................................................................................................734
|
||
30.4.8
|
||
Data-byte alignment and physical connections............................................................................................734
|
||
30.4.9
|
||
Address/data bus multiplexing.....................................................................................................................735
|
||
30.4.10
|
||
Data transfer states.......................................................................................................................................736
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
25
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 26
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
30.4.11
|
||
FlexBus Timing Examples...........................................................................................................................737
|
||
30.4.12
|
||
Burst cycles..................................................................................................................................................756
|
||
30.4.13
|
||
Extended Transfer Start/Address Latch Enable...........................................................................................764
|
||
30.4.14
|
||
Bus errors.....................................................................................................................................................765
|
||
30.5
|
||
Initialization/Application Information..........................................................................................................................766
|
||
30.5.1
|
||
Initializing a chip-select...............................................................................................................................766
|
||
30.5.2
|
||
Reconfiguring a chip-select.........................................................................................................................766
|
||
Chapter 31
|
||
EzPort
|
||
31.1
|
||
Overview.......................................................................................................................................................................767
|
||
31.1.1
|
||
Introduction..................................................................................................................................................767
|
||
31.1.2
|
||
Features........................................................................................................................................................768
|
||
31.1.3
|
||
Modes of operation......................................................................................................................................768
|
||
31.2
|
||
External signal description............................................................................................................................................769
|
||
31.2.1
|
||
EzPort Clock (EZP\_CK)..............................................................................................................................769
|
||
31.2.2
|
||
EzPort Chip Select (EZP\_CS)......................................................................................................................769
|
||
31.2.3
|
||
EzPort Serial Data In (EZP\_D)....................................................................................................................770
|
||
31.2.4
|
||
EzPort Serial Data Out (EZP\_Q).................................................................................................................770
|
||
31.3
|
||
Command definition.....................................................................................................................................................770
|
||
31.3.1
|
||
Command descriptions.................................................................................................................................771
|
||
31.4
|
||
Flash memory map for EzPort access...........................................................................................................................777
|
||
Chapter 32
|
||
Cyclic Redundancy Check (CRC)
|
||
32.1
|
||
Introduction...................................................................................................................................................................779
|
||
32.1.1
|
||
Features........................................................................................................................................................779
|
||
32.1.2
|
||
Block diagram..............................................................................................................................................780
|
||
32.1.3
|
||
Modes of operation......................................................................................................................................780
|
||
32.2
|
||
Memory map and register descriptions.........................................................................................................................780
|
||
32.2.1
|
||
CRC Data register (CRC\_CRC)..................................................................................................................781
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
26
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 27
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
32.2.2
|
||
CRC Polynomial register (CRC\_GPOLY)..................................................................................................782
|
||
32.2.3
|
||
CRC Control register (CRC\_CTRL)............................................................................................................783
|
||
32.3
|
||
Functional description...................................................................................................................................................784
|
||
32.3.1
|
||
CRC initialization/reinitialization................................................................................................................784
|
||
32.3.2
|
||
CRC calculations..........................................................................................................................................784
|
||
32.3.3
|
||
Transpose feature.........................................................................................................................................785
|
||
32.3.4
|
||
CRC result complement...............................................................................................................................787
|
||
Chapter 33
|
||
Memory-Mapped Cryptographic Acceleration Unit (MMCAU)
|
||
33.1
|
||
Introduction...................................................................................................................................................................789
|
||
33.2
|
||
MMCAU Block Diagram.............................................................................................................................................789
|
||
33.3
|
||
Overview.......................................................................................................................................................................791
|
||
33.4
|
||
Features.........................................................................................................................................................................792
|
||
33.5
|
||
Memory map/register definition...................................................................................................................................792
|
||
33.5.1
|
||
Status Register (CAU\_CASR).....................................................................................................................794
|
||
33.5.2
|
||
Accumulator (CAU\_CAA)..........................................................................................................................795
|
||
33.5.3
|
||
General Purpose Register (CAU\_CAn).......................................................................................................795
|
||
33.6
|
||
Functional description...................................................................................................................................................796
|
||
33.6.1
|
||
MMCAU programming model....................................................................................................................796
|
||
33.6.2
|
||
MMCAU integrity checks............................................................................................................................798
|
||
33.6.3
|
||
CAU commands...........................................................................................................................................800
|
||
33.7
|
||
Application/initialization information..........................................................................................................................807
|
||
33.7.1
|
||
Code example...............................................................................................................................................807
|
||
33.7.2
|
||
Assembler equate values..............................................................................................................................807
|
||
Chapter 34
|
||
Random Number Generator Accelerator (RNGA)
|
||
34.1
|
||
Introduction...................................................................................................................................................................809
|
||
34.1.1
|
||
Overview......................................................................................................................................................809
|
||
34.2
|
||
Modes of operation.......................................................................................................................................................810
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
27
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 28
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
34.3
|
||
Memory map and register definition.............................................................................................................................810
|
||
34.3.1
|
||
RNGA Control Register (RNG\_CR)...........................................................................................................811
|
||
34.3.2
|
||
RNGA Status Register (RNG\_SR)..............................................................................................................813
|
||
34.3.3
|
||
RNGA Entropy Register (RNG\_ER)...........................................................................................................815
|
||
34.3.4
|
||
RNGA Output Register (RNG\_OR)............................................................................................................816
|
||
34.4
|
||
Functional description...................................................................................................................................................816
|
||
34.4.1
|
||
RNGA Output Register................................................................................................................................817
|
||
34.4.2
|
||
RNGA Core/Control Logic Block...............................................................................................................817
|
||
34.5
|
||
Initialization/application information...........................................................................................................................818
|
||
Chapter 35
|
||
Analog-to-Digital Converter (ADC)
|
||
35.1
|
||
Introduction...................................................................................................................................................................819
|
||
35.1.1
|
||
Features........................................................................................................................................................819
|
||
35.1.2
|
||
Block diagram..............................................................................................................................................820
|
||
35.2
|
||
ADC Signal Descriptions..............................................................................................................................................821
|
||
35.2.1
|
||
Analog Power (VDDA)...............................................................................................................................822
|
||
35.2.2
|
||
Analog Ground (VSSA)...............................................................................................................................822
|
||
35.2.3
|
||
Voltage Reference Select.............................................................................................................................822
|
||
35.2.4
|
||
Analog Channel Inputs (ADx).....................................................................................................................823
|
||
35.2.5
|
||
Differential Analog Channel Inputs (DADx)...............................................................................................823
|
||
35.3
|
||
Register definition.........................................................................................................................................................823
|
||
35.3.1
|
||
ADC Status and Control Registers 1 (ADCx\_SC1n)...................................................................................826
|
||
35.3.2
|
||
ADC Configuration Register 1 (ADCx\_CFG1)...........................................................................................829
|
||
35.3.3
|
||
ADC Configuration Register 2 (ADCx\_CFG2)...........................................................................................831
|
||
35.3.4
|
||
ADC Data Result Register (ADCx\_Rn).......................................................................................................832
|
||
35.3.5
|
||
Compare Value Registers (ADCx\_CVn).....................................................................................................833
|
||
35.3.6
|
||
Status and Control Register 2 (ADCx\_SC2)................................................................................................834
|
||
35.3.7
|
||
Status and Control Register 3 (ADCx\_SC3)................................................................................................836
|
||
35.3.8
|
||
ADC Offset Correction Register (ADCx\_OFS)...........................................................................................838
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
28
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 29
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
35.3.9
|
||
ADC Plus-Side Gain Register (ADCx\_PG).................................................................................................838
|
||
35.3.10
|
||
ADC Minus-Side Gain Register (ADCx\_MG)............................................................................................839
|
||
35.3.11
|
||
ADC Plus-Side General Calibration Value Register (ADCx\_CLPD).........................................................839
|
||
35.3.12
|
||
ADC Plus-Side General Calibration Value Register (ADCx\_CLPS)..........................................................840
|
||
35.3.13
|
||
ADC Plus-Side General Calibration Value Register (ADCx\_CLP4)..........................................................840
|
||
35.3.14
|
||
ADC Plus-Side General Calibration Value Register (ADCx\_CLP3)..........................................................841
|
||
35.3.15
|
||
ADC Plus-Side General Calibration Value Register (ADCx\_CLP2)..........................................................841
|
||
35.3.16
|
||
ADC Plus-Side General Calibration Value Register (ADCx\_CLP1)..........................................................842
|
||
35.3.17
|
||
ADC Plus-Side General Calibration Value Register (ADCx\_CLP0)..........................................................842
|
||
35.3.18
|
||
ADC PGA Register (ADCx\_PGA)..............................................................................................................843
|
||
35.3.19
|
||
ADC Minus-Side General Calibration Value Register (ADCx\_CLMD).....................................................844
|
||
35.3.20
|
||
ADC Minus-Side General Calibration Value Register (ADCx\_CLMS).....................................................845
|
||
35.3.21
|
||
ADC Minus-Side General Calibration Value Register (ADCx\_CLM4).....................................................845
|
||
35.3.22
|
||
ADC Minus-Side General Calibration Value Register (ADCx\_CLM3).....................................................846
|
||
35.3.23
|
||
ADC Minus-Side General Calibration Value Register (ADCx\_CLM2).....................................................846
|
||
35.3.24
|
||
ADC Minus-Side General Calibration Value Register (ADCx\_CLM1).....................................................847
|
||
35.3.25
|
||
ADC Minus-Side General Calibration Value Register (ADCx\_CLM0).....................................................847
|
||
35.4
|
||
Functional description...................................................................................................................................................847
|
||
35.4.1
|
||
PGA functional description..........................................................................................................................848
|
||
35.4.2
|
||
Clock select and divide control....................................................................................................................849
|
||
35.4.3
|
||
Voltage reference selection..........................................................................................................................849
|
||
35.4.4
|
||
Hardware trigger and channel selects..........................................................................................................850
|
||
35.4.5
|
||
Conversion control.......................................................................................................................................851
|
||
35.4.6
|
||
Automatic compare function........................................................................................................................858
|
||
35.4.7
|
||
Calibration function.....................................................................................................................................859
|
||
35.4.8
|
||
User-defined offset function........................................................................................................................861
|
||
35.4.9
|
||
Temperature sensor......................................................................................................................................862
|
||
35.4.10
|
||
MCU wait mode operation...........................................................................................................................863
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
29
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 30
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
35.4.11
|
||
MCU Normal Stop mode operation.............................................................................................................863
|
||
35.4.12
|
||
MCU Low-Power Stop mode operation......................................................................................................864
|
||
35.5
|
||
Initialization information..............................................................................................................................................865
|
||
35.5.1
|
||
ADC module initialization example............................................................................................................865
|
||
35.6
|
||
Application information................................................................................................................................................867
|
||
35.6.1
|
||
External pins and routing.............................................................................................................................867
|
||
35.6.2
|
||
Sources of error............................................................................................................................................869
|
||
Chapter 36
|
||
Comparator (CMP)
|
||
36.1
|
||
Introduction...................................................................................................................................................................875
|
||
36.2
|
||
CMP features................................................................................................................................................................875
|
||
36.3
|
||
6-bit DAC key features.................................................................................................................................................876
|
||
36.4
|
||
ANMUX key features...................................................................................................................................................877
|
||
36.5
|
||
CMP, DAC and ANMUX diagram...............................................................................................................................877
|
||
36.6
|
||
CMP block diagram......................................................................................................................................................878
|
||
36.7
|
||
Memory map/register definitions..................................................................................................................................880
|
||
36.7.1
|
||
CMP Control Register 0 (CMPx\_CR0).......................................................................................................880
|
||
36.7.2
|
||
CMP Control Register 1 (CMPx\_CR1).......................................................................................................881
|
||
36.7.3
|
||
CMP Filter Period Register (CMPx\_FPR)...................................................................................................883
|
||
36.7.4
|
||
CMP Status and Control Register (CMPx\_SCR).........................................................................................883
|
||
36.7.5
|
||
DAC Control Register (CMPx\_DACCR)....................................................................................................884
|
||
36.7.6
|
||
MUX Control Register (CMPx\_MUXCR)..................................................................................................885
|
||
36.8
|
||
CMP functional description..........................................................................................................................................886
|
||
36.8.1
|
||
CMP functional modes.................................................................................................................................886
|
||
36.8.2
|
||
Power modes................................................................................................................................................895
|
||
36.8.3
|
||
Startup and operation...................................................................................................................................896
|
||
36.8.4
|
||
Low-pass filter.............................................................................................................................................897
|
||
36.9
|
||
CMP interrupts..............................................................................................................................................................899
|
||
36.10 CMP DMA support.......................................................................................................................................................899
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
30
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 31
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
36.11 Digital-to-analog converter block diagram...................................................................................................................900
|
||
36.12 DAC functional description..........................................................................................................................................900
|
||
36.12.1
|
||
Voltage reference source select....................................................................................................................900
|
||
36.13 DAC resets....................................................................................................................................................................901
|
||
36.14 DAC clocks...................................................................................................................................................................901
|
||
36.15 DAC interrupts..............................................................................................................................................................901
|
||
Chapter 37
|
||
12-bit Digital-to-Analog Converter (DAC)
|
||
37.1
|
||
Introduction...................................................................................................................................................................903
|
||
37.2
|
||
Features.........................................................................................................................................................................903
|
||
37.3
|
||
Block diagram...............................................................................................................................................................904
|
||
37.4
|
||
Memory map/register definition...................................................................................................................................905
|
||
37.4.1
|
||
DAC Data Low Register (DACx\_DATnL).................................................................................................906
|
||
37.4.2
|
||
DAC Data High Register (DACx\_DATnH)................................................................................................906
|
||
37.4.3
|
||
DAC Status Register (DACx\_SR)...............................................................................................................907
|
||
37.4.4
|
||
DAC Control Register (DACx\_C0).............................................................................................................908
|
||
37.4.5
|
||
DAC Control Register 1 (DACx\_C1)..........................................................................................................909
|
||
37.4.6
|
||
DAC Control Register 2 (DACx\_C2)..........................................................................................................910
|
||
37.5
|
||
Functional description...................................................................................................................................................910
|
||
37.5.1
|
||
DAC data buffer operation...........................................................................................................................910
|
||
37.5.2
|
||
DMA operation............................................................................................................................................911
|
||
37.5.3
|
||
Resets...........................................................................................................................................................911
|
||
37.5.4
|
||
Low-Power mode operation.........................................................................................................................912
|
||
Chapter 38
|
||
Voltage Reference (VREFV1)
|
||
38.1
|
||
Introduction...................................................................................................................................................................913
|
||
38.1.1
|
||
Overview......................................................................................................................................................914
|
||
38.1.2
|
||
Features........................................................................................................................................................914
|
||
38.1.3
|
||
Modes of Operation.....................................................................................................................................915
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
31
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 32
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
38.1.4
|
||
VREF Signal Descriptions...........................................................................................................................915
|
||
38.2
|
||
Memory Map and Register Definition..........................................................................................................................916
|
||
38.2.1
|
||
VREF Trim Register (VREF\_TRM)............................................................................................................916
|
||
38.2.2
|
||
VREF Status and Control Register (VREF\_SC)..........................................................................................917
|
||
38.3
|
||
Functional Description..................................................................................................................................................918
|
||
38.3.1
|
||
Voltage Reference Disabled, SC[VREFEN] = 0.........................................................................................918
|
||
38.3.2
|
||
Voltage Reference Enabled, SC[VREFEN] = 1..........................................................................................919
|
||
38.4
|
||
Initialization/Application Information..........................................................................................................................920
|
||
Chapter 39
|
||
Programmable Delay Block (PDB)
|
||
39.1
|
||
Introduction...................................................................................................................................................................921
|
||
39.1.1
|
||
Features........................................................................................................................................................921
|
||
39.1.2
|
||
Implementation............................................................................................................................................922
|
||
39.1.3
|
||
Back-to-back acknowledgment connections................................................................................................923
|
||
39.1.4
|
||
DAC External Trigger Input Connections...................................................................................................923
|
||
39.1.5
|
||
Block diagram..............................................................................................................................................923
|
||
39.1.6
|
||
Modes of operation......................................................................................................................................925
|
||
39.2
|
||
PDB signal descriptions................................................................................................................................................925
|
||
39.3
|
||
Memory map and register definition.............................................................................................................................925
|
||
39.3.1
|
||
Status and Control Register (PDBx\_SC).....................................................................................................927
|
||
39.3.2
|
||
Modulus Register (PDBx\_MOD).................................................................................................................929
|
||
39.3.3
|
||
Counter Register (PDBx\_CNT)...................................................................................................................930
|
||
39.3.4
|
||
Interrupt Delay Register (PDBx\_IDLY)......................................................................................................930
|
||
39.3.5
|
||
Channel n Control Register 1 (PDBx\_CHnC1)...........................................................................................931
|
||
39.3.6
|
||
Channel n Status Register (PDBx\_CHnS)...................................................................................................932
|
||
39.3.7
|
||
Channel n Delay 0 Register (PDBx\_CHnDLY0)........................................................................................932
|
||
39.3.8
|
||
Channel n Delay 1 Register (PDBx\_CHnDLY1)........................................................................................933
|
||
39.3.9
|
||
DAC Interval Trigger n Control Register (PDBx\_DACINTCn).................................................................933
|
||
39.3.10
|
||
DAC Interval n Register (PDBx\_DACINTn)..............................................................................................934
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
32
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 33
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
39.3.11
|
||
Pulse-Out n Enable Register (PDBx\_POEN)...............................................................................................934
|
||
39.3.12
|
||
Pulse-Out n Delay Register (PDBx\_POnDLY)...........................................................................................935
|
||
39.4
|
||
Functional description...................................................................................................................................................935
|
||
39.4.1
|
||
PDB pre-trigger and trigger outputs.............................................................................................................935
|
||
39.4.2
|
||
PDB trigger input source selection..............................................................................................................937
|
||
39.4.3
|
||
DAC interval trigger outputs........................................................................................................................937
|
||
39.4.4
|
||
Pulse-Out's...................................................................................................................................................938
|
||
39.4.5
|
||
Updating the delay registers.........................................................................................................................938
|
||
39.4.6
|
||
Interrupts......................................................................................................................................................940
|
||
39.4.7
|
||
DMA............................................................................................................................................................940
|
||
39.5
|
||
Application information................................................................................................................................................940
|
||
39.5.1
|
||
Impact of using the prescaler and multiplication factor on timing resolution.............................................940
|
||
Chapter 40
|
||
FlexTimer Module (FTM)
|
||
40.1
|
||
Introduction...................................................................................................................................................................943
|
||
40.1.1
|
||
FlexTimer philosophy..................................................................................................................................943
|
||
40.1.2
|
||
Features........................................................................................................................................................944
|
||
40.1.3
|
||
Modes of operation......................................................................................................................................945
|
||
40.1.4
|
||
Block diagram..............................................................................................................................................946
|
||
40.2
|
||
FTM signal descriptions...............................................................................................................................................948
|
||
40.3
|
||
Memory map and register definition.............................................................................................................................948
|
||
40.3.1
|
||
Memory map................................................................................................................................................948
|
||
40.3.2
|
||
Register descriptions....................................................................................................................................949
|
||
40.3.3
|
||
Status And Control (FTMx\_SC)..................................................................................................................955
|
||
40.3.4
|
||
Counter (FTMx\_CNT).................................................................................................................................956
|
||
40.3.5
|
||
Modulo (FTMx\_MOD)................................................................................................................................957
|
||
40.3.6
|
||
Channel (n) Status And Control (FTMx\_CnSC)..........................................................................................958
|
||
40.3.7
|
||
Channel (n) Value (FTMx\_CnV).................................................................................................................960
|
||
40.3.8
|
||
Counter Initial Value (FTMx\_CNTIN)........................................................................................................961
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
33
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 34
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
40.3.9
|
||
Capture And Compare Status (FTMx\_STATUS)........................................................................................961
|
||
40.3.10
|
||
Features Mode Selection (FTMx\_MODE)..................................................................................................963
|
||
40.3.11
|
||
Synchronization (FTMx\_SYNC).................................................................................................................965
|
||
40.3.12
|
||
Initial State For Channels Output (FTMx\_OUTINIT).................................................................................968
|
||
40.3.13
|
||
Output Mask (FTMx\_OUTMASK).............................................................................................................969
|
||
40.3.14
|
||
Function For Linked Channels (FTMx\_COMBINE)...................................................................................971
|
||
40.3.15
|
||
Deadtime Insertion Control (FTMx\_DEADTIME).....................................................................................976
|
||
40.3.16
|
||
FTM External Trigger (FTMx\_EXTTRIG).................................................................................................977
|
||
40.3.17
|
||
Channels Polarity (FTMx\_POL)..................................................................................................................978
|
||
40.3.18
|
||
Fault Mode Status (FTMx\_FMS).................................................................................................................981
|
||
40.3.19
|
||
Input Capture Filter Control (FTMx\_FILTER)...........................................................................................983
|
||
40.3.20
|
||
Fault Control (FTMx\_FLTCTRL)...............................................................................................................984
|
||
40.3.21
|
||
Quadrature Decoder Control And Status (FTMx\_QDCTRL)......................................................................986
|
||
40.3.22
|
||
Configuration (FTMx\_CONF).....................................................................................................................988
|
||
40.3.23
|
||
FTM Fault Input Polarity (FTMx\_FLTPOL)...............................................................................................989
|
||
40.3.24
|
||
Synchronization Configuration (FTMx\_SYNCONF)..................................................................................991
|
||
40.3.25
|
||
FTM Inverting Control (FTMx\_INVCTRL)................................................................................................993
|
||
40.3.26
|
||
FTM Software Output Control (FTMx\_SWOCTRL)..................................................................................994
|
||
40.3.27
|
||
FTM PWM Load (FTMx\_PWMLOAD).....................................................................................................996
|
||
40.4
|
||
Functional description...................................................................................................................................................997
|
||
40.4.1
|
||
Clock source.................................................................................................................................................998
|
||
40.4.2
|
||
Prescaler.......................................................................................................................................................999
|
||
40.4.3
|
||
Counter.........................................................................................................................................................999
|
||
40.4.4
|
||
Input Capture mode......................................................................................................................................1004
|
||
40.4.5
|
||
Output Compare mode.................................................................................................................................1007
|
||
40.4.6
|
||
Edge-Aligned PWM (EPWM) mode...........................................................................................................1008
|
||
40.4.7
|
||
Center-Aligned PWM (CPWM) mode........................................................................................................1010
|
||
40.4.8
|
||
Combine mode.............................................................................................................................................1012
|
||
40.4.9
|
||
Complementary mode..................................................................................................................................1020
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
34
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 35
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
40.4.10
|
||
Registers updated from write buffers...........................................................................................................1021
|
||
40.4.11
|
||
PWM synchronization..................................................................................................................................1023
|
||
40.4.12
|
||
Inverting.......................................................................................................................................................1039
|
||
40.4.13
|
||
Software output control................................................................................................................................1040
|
||
40.4.14
|
||
Deadtime insertion.......................................................................................................................................1042
|
||
40.4.15
|
||
Output mask.................................................................................................................................................1045
|
||
40.4.16
|
||
Fault control.................................................................................................................................................1046
|
||
40.4.17
|
||
Polarity control.............................................................................................................................................1049
|
||
40.4.18
|
||
Initialization.................................................................................................................................................1050
|
||
40.4.19
|
||
Features priority...........................................................................................................................................1050
|
||
40.4.20
|
||
Channel trigger output.................................................................................................................................1051
|
||
40.4.21
|
||
Initialization trigger......................................................................................................................................1052
|
||
40.4.22
|
||
Capture Test mode.......................................................................................................................................1054
|
||
40.4.23
|
||
DMA............................................................................................................................................................1055
|
||
40.4.24
|
||
Dual Edge Capture mode.............................................................................................................................1056
|
||
40.4.25
|
||
Quadrature Decoder mode...........................................................................................................................1063
|
||
40.4.26
|
||
BDM mode...................................................................................................................................................1068
|
||
40.4.27
|
||
Intermediate load..........................................................................................................................................1069
|
||
40.4.28
|
||
Global time base (GTB)...............................................................................................................................1071
|
||
40.5
|
||
Reset overview..............................................................................................................................................................1072
|
||
40.6
|
||
FTM Interrupts..............................................................................................................................................................1074
|
||
40.6.1
|
||
Timer Overflow Interrupt.............................................................................................................................1074
|
||
40.6.2
|
||
Channel (n) Interrupt....................................................................................................................................1074
|
||
40.6.3
|
||
Fault Interrupt..............................................................................................................................................1074
|
||
Chapter 41
|
||
Periodic Interrupt Timer (PIT)
|
||
41.1
|
||
Introduction...................................................................................................................................................................1075
|
||
41.1.1
|
||
Block diagram..............................................................................................................................................1075
|
||
41.1.2
|
||
Features........................................................................................................................................................1076
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
35
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 36
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
41.2
|
||
Signal description..........................................................................................................................................................1076
|
||
41.3
|
||
Memory map/register description.................................................................................................................................1077
|
||
41.3.1
|
||
PIT Module Control Register (PIT\_MCR)..................................................................................................1078
|
||
41.3.2
|
||
Timer Load Value Register (PIT\_LDVALn)...............................................................................................1078
|
||
41.3.3
|
||
Current Timer Value Register (PIT\_CVALn).............................................................................................1079
|
||
41.3.4
|
||
Timer Control Register (PIT\_TCTRLn)......................................................................................................1079
|
||
41.3.5
|
||
Timer Flag Register (PIT\_TFLGn)..............................................................................................................1080
|
||
41.4
|
||
Functional description...................................................................................................................................................1081
|
||
41.4.1
|
||
General operation.........................................................................................................................................1081
|
||
41.4.2
|
||
Interrupts......................................................................................................................................................1082
|
||
41.4.3
|
||
Chained timers.............................................................................................................................................1083
|
||
41.5
|
||
Initialization and application information.....................................................................................................................1083
|
||
41.6
|
||
Example configuration for chained timers....................................................................................................................1084
|
||
Chapter 42
|
||
Low-Power Timer (LPTMR)
|
||
42.1
|
||
Introduction...................................................................................................................................................................1087
|
||
42.1.1
|
||
Features........................................................................................................................................................1087
|
||
42.1.2
|
||
Modes of operation......................................................................................................................................1087
|
||
42.2
|
||
LPTMR signal descriptions..........................................................................................................................................1088
|
||
42.2.1
|
||
Detailed signal descriptions.........................................................................................................................1088
|
||
42.3
|
||
Memory map and register definition.............................................................................................................................1089
|
||
42.3.1
|
||
Low Power Timer Control Status Register (LPTMRx\_CSR)......................................................................1089
|
||
42.3.2
|
||
Low Power Timer Prescale Register (LPTMRx\_PSR)................................................................................1091
|
||
42.3.3
|
||
Low Power Timer Compare Register (LPTMRx\_CMR).............................................................................1092
|
||
42.3.4
|
||
Low Power Timer Counter Register (LPTMRx\_CNR)...............................................................................1093
|
||
42.4
|
||
Functional description...................................................................................................................................................1093
|
||
42.4.1
|
||
LPTMR power and reset..............................................................................................................................1093
|
||
42.4.2
|
||
LPTMR clocking..........................................................................................................................................1093
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
36
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 37
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
42.4.3
|
||
LPTMR prescaler/glitch filter......................................................................................................................1094
|
||
42.4.4
|
||
LPTMR compare..........................................................................................................................................1095
|
||
42.4.5
|
||
LPTMR counter...........................................................................................................................................1095
|
||
42.4.6
|
||
LPTMR hardware trigger.............................................................................................................................1096
|
||
42.4.7
|
||
LPTMR interrupt..........................................................................................................................................1096
|
||
Chapter 43
|
||
Carrier Modulator Transmitter (CMT)
|
||
43.1
|
||
Introduction...................................................................................................................................................................1099
|
||
43.2
|
||
Features.........................................................................................................................................................................1099
|
||
43.3
|
||
Block diagram...............................................................................................................................................................1100
|
||
43.4
|
||
Modes of operation.......................................................................................................................................................1101
|
||
43.4.1
|
||
Wait mode operation....................................................................................................................................1102
|
||
43.4.2
|
||
Stop mode operation....................................................................................................................................1103
|
||
43.5
|
||
CMT external signal descriptions.................................................................................................................................1103
|
||
43.5.1
|
||
CMT\_IRO — Infrared Output.....................................................................................................................1103
|
||
43.6
|
||
Memory map/register definition...................................................................................................................................1104
|
||
43.6.1
|
||
CMT Carrier Generator High Data Register 1 (CMT\_CGH1)....................................................................1105
|
||
43.6.2
|
||
CMT Carrier Generator Low Data Register 1 (CMT\_CGL1).....................................................................1106
|
||
43.6.3
|
||
CMT Carrier Generator High Data Register 2 (CMT\_CGH2)....................................................................1106
|
||
43.6.4
|
||
CMT Carrier Generator Low Data Register 2 (CMT\_CGL2).....................................................................1107
|
||
43.6.5
|
||
CMT Output Control Register (CMT\_OC).................................................................................................1107
|
||
43.6.6
|
||
CMT Modulator Status and Control Register (CMT\_MSC).......................................................................1108
|
||
43.6.7
|
||
CMT Modulator Data Register Mark High (CMT\_CMD1)........................................................................1110
|
||
43.6.8
|
||
CMT Modulator Data Register Mark Low (CMT\_CMD2).........................................................................1111
|
||
43.6.9
|
||
CMT Modulator Data Register Space High (CMT\_CMD3).......................................................................1111
|
||
43.6.10
|
||
CMT Modulator Data Register Space Low (CMT\_CMD4)........................................................................1112
|
||
43.6.11
|
||
CMT Primary Prescaler Register (CMT\_PPS)............................................................................................1112
|
||
43.6.12
|
||
CMT Direct Memory Access Register (CMT\_DMA).................................................................................1113
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
37
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 38
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
43.7
|
||
Functional description...................................................................................................................................................1114
|
||
43.7.1
|
||
Clock divider................................................................................................................................................1114
|
||
43.7.2
|
||
Carrier generator..........................................................................................................................................1114
|
||
43.7.3
|
||
Modulator.....................................................................................................................................................1117
|
||
43.7.4
|
||
Extended space operation.............................................................................................................................1121
|
||
43.8
|
||
CMT interrupts and DMA............................................................................................................................................1123
|
||
Chapter 44
|
||
Real Time Clock (RTC)
|
||
44.1
|
||
Introduction...................................................................................................................................................................1125
|
||
44.1.1
|
||
Features........................................................................................................................................................1125
|
||
44.1.2
|
||
Modes of operation......................................................................................................................................1125
|
||
44.1.3
|
||
RTC Signal Descriptions.............................................................................................................................1126
|
||
44.2
|
||
Register definition.........................................................................................................................................................1127
|
||
44.2.1
|
||
RTC Time Seconds Register (RTC\_TSR)...................................................................................................1128
|
||
44.2.2
|
||
RTC Time Prescaler Register (RTC\_TPR)..................................................................................................1128
|
||
44.2.3
|
||
RTC Time Alarm Register (RTC\_TAR).....................................................................................................1129
|
||
44.2.4
|
||
RTC Time Compensation Register (RTC\_TCR).........................................................................................1129
|
||
44.2.5
|
||
RTC Control Register (RTC\_CR)................................................................................................................1130
|
||
44.2.6
|
||
RTC Status Register (RTC\_SR)..................................................................................................................1132
|
||
44.2.7
|
||
RTC Lock Register (RTC\_LR)....................................................................................................................1133
|
||
44.2.8
|
||
RTC Interrupt Enable Register (RTC\_IER).................................................................................................1134
|
||
44.2.9
|
||
RTC Write Access Register (RTC\_WAR)..................................................................................................1135
|
||
44.2.10
|
||
RTC Read Access Register (RTC\_RAR)....................................................................................................1137
|
||
44.3
|
||
Functional description...................................................................................................................................................1138
|
||
44.3.1
|
||
Power, clocking, and reset...........................................................................................................................1138
|
||
44.3.2
|
||
Time counter................................................................................................................................................1139
|
||
44.3.3
|
||
Compensation...............................................................................................................................................1140
|
||
44.3.4
|
||
Time alarm...................................................................................................................................................1140
|
||
44.3.5
|
||
Update mode................................................................................................................................................1141
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
38
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 39
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
44.3.6
|
||
Register lock................................................................................................................................................1141
|
||
44.3.7
|
||
Access control..............................................................................................................................................1141
|
||
44.3.8
|
||
Interrupt........................................................................................................................................................1141
|
||
Chapter 45
|
||
10/100-Mbps Ethernet MAC (ENET)
|
||
45.1
|
||
Introduction...................................................................................................................................................................1143
|
||
45.1.1
|
||
Overview......................................................................................................................................................1143
|
||
45.1.2
|
||
Features........................................................................................................................................................1144
|
||
45.1.3
|
||
Block diagram..............................................................................................................................................1146
|
||
45.2
|
||
External signal description............................................................................................................................................1147
|
||
45.3
|
||
Memory map/register definition...................................................................................................................................1149
|
||
45.3.1
|
||
Interrupt Event Register (ENET\_EIR).........................................................................................................1152
|
||
45.3.2
|
||
Interrupt Mask Register (ENET\_EIMR)......................................................................................................1154
|
||
45.3.3
|
||
Receive Descriptor Active Register (ENET\_RDAR)..................................................................................1157
|
||
45.3.4
|
||
Transmit Descriptor Active Register (ENET\_TDAR).................................................................................1158
|
||
45.3.5
|
||
Ethernet Control Register (ENET\_ECR).....................................................................................................1159
|
||
45.3.6
|
||
MII Management Frame Register (ENET\_MMFR)....................................................................................1161
|
||
45.3.7
|
||
MII Speed Control Register (ENET\_MSCR)..............................................................................................1162
|
||
45.3.8
|
||
MIB Control Register (ENET\_MIBC)........................................................................................................1164
|
||
45.3.9
|
||
Receive Control Register (ENET\_RCR).....................................................................................................1165
|
||
45.3.10
|
||
Transmit Control Register (ENET\_TCR)....................................................................................................1168
|
||
45.3.11
|
||
Physical Address Lower Register (ENET\_PALR)......................................................................................1170
|
||
45.3.12
|
||
Physical Address Upper Register (ENET\_PAUR)......................................................................................1170
|
||
45.3.13
|
||
Opcode/Pause Duration Register (ENET\_OPD).........................................................................................1171
|
||
45.3.14
|
||
Descriptor Individual Upper Address Register (ENET\_IAUR)..................................................................1171
|
||
45.3.15
|
||
Descriptor Individual Lower Address Register (ENET\_IALR)..................................................................1172
|
||
45.3.16
|
||
Descriptor Group Upper Address Register (ENET\_GAUR).......................................................................1172
|
||
45.3.17
|
||
Descriptor Group Lower Address Register (ENET\_GALR).......................................................................1173
|
||
45.3.18
|
||
Transmit FIFO Watermark Register (ENET\_TFWR).................................................................................1173
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
39
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 40
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
45.3.19
|
||
Receive Descriptor Ring Start Register (ENET\_RDSR).............................................................................1174
|
||
45.3.20
|
||
Transmit Buffer Descriptor Ring Start Register (ENET\_TDSR)................................................................1175
|
||
45.3.21
|
||
Maximum Receive Buffer Size Register (ENET\_MRBR)..........................................................................1175
|
||
45.3.22
|
||
Receive FIFO Section Full Threshold (ENET\_RSFL)................................................................................1176
|
||
45.3.23
|
||
Receive FIFO Section Empty Threshold (ENET\_RSEM)..........................................................................1176
|
||
45.3.24
|
||
Receive FIFO Almost Empty Threshold (ENET\_RAEM)..........................................................................1177
|
||
45.3.25
|
||
Receive FIFO Almost Full Threshold (ENET\_RAFL)................................................................................1177
|
||
45.3.26
|
||
Transmit FIFO Section Empty Threshold (ENET\_TSEM).........................................................................1178
|
||
45.3.27
|
||
Transmit FIFO Almost Empty Threshold (ENET\_TAEM).........................................................................1178
|
||
45.3.28
|
||
Transmit FIFO Almost Full Threshold (ENET\_TAFL)..............................................................................1178
|
||
45.3.29
|
||
Transmit Inter-Packet Gap (ENET\_TIPG)..................................................................................................1179
|
||
45.3.30
|
||
Frame Truncation Length (ENET\_FTRL)...................................................................................................1179
|
||
45.3.31
|
||
Transmit Accelerator Function Configuration (ENET\_TACC)..................................................................1180
|
||
45.3.32
|
||
Receive Accelerator Function Configuration (ENET\_RACC)....................................................................1181
|
||
45.3.33
|
||
Timer Control Register (ENET\_ATCR)......................................................................................................1182
|
||
45.3.34
|
||
Timer Value Register (ENET\_ATVR)........................................................................................................1184
|
||
45.3.35
|
||
Timer Offset Register (ENET\_ATOFF)......................................................................................................1184
|
||
45.3.36
|
||
Timer Period Register (ENET\_ATPER)......................................................................................................1185
|
||
45.3.37
|
||
Timer Correction Register (ENET\_ATCOR)..............................................................................................1185
|
||
45.3.38
|
||
Time-Stamping Clock Period Register (ENET\_ATINC)............................................................................1186
|
||
45.3.39
|
||
Timestamp of Last Transmitted Frame (ENET\_ATSTMP)........................................................................1186
|
||
45.3.40
|
||
Timer Global Status Register (ENET\_TGSR).............................................................................................1187
|
||
45.3.41
|
||
Timer Control Status Register (ENET\_TCSRn)..........................................................................................1188
|
||
45.3.42
|
||
Timer Compare Capture Register (ENET\_TCCRn)....................................................................................1189
|
||
45.3.43
|
||
Statistic event counters.................................................................................................................................1189
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
40
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 41
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
45.4
|
||
Functional description...................................................................................................................................................1192
|
||
45.4.1
|
||
Ethernet MAC frame formats......................................................................................................................1192
|
||
45.4.2
|
||
IP and higher layers frame format................................................................................................................1195
|
||
45.4.3
|
||
IEEE 1588 message formats........................................................................................................................1199
|
||
45.4.4
|
||
MAC receive................................................................................................................................................1203
|
||
45.4.5
|
||
MAC transmit..............................................................................................................................................1208
|
||
45.4.6
|
||
Full-duplex flow control operation..............................................................................................................1212
|
||
45.4.7
|
||
Magic packet detection................................................................................................................................1214
|
||
45.4.8
|
||
IP accelerator functions................................................................................................................................1215
|
||
45.4.9
|
||
Resets and stop controls...............................................................................................................................1220
|
||
45.4.10
|
||
IEEE 1588 functions....................................................................................................................................1223
|
||
45.4.11
|
||
FIFO thresholds............................................................................................................................................1226
|
||
45.4.12
|
||
Loopback options.........................................................................................................................................1229
|
||
45.4.13
|
||
Legacy buffer descriptors.............................................................................................................................1230
|
||
45.4.14
|
||
Enhanced buffer descriptors.........................................................................................................................1231
|
||
45.4.15
|
||
Client FIFO application interface................................................................................................................1237
|
||
45.4.16
|
||
FIFO protection............................................................................................................................................1240
|
||
45.4.17
|
||
PHY management interface.........................................................................................................................1243
|
||
45.4.18
|
||
Ethernet interfaces........................................................................................................................................1244
|
||
Chapter 46
|
||
Universal Serial Bus OTG Controller (USBOTG)
|
||
46.1
|
||
Introduction...................................................................................................................................................................1249
|
||
46.1.1
|
||
USB..............................................................................................................................................................1249
|
||
46.1.2
|
||
USB On-The-Go..........................................................................................................................................1250
|
||
46.1.3
|
||
USB-FS Features..........................................................................................................................................1251
|
||
46.2
|
||
Functional description...................................................................................................................................................1252
|
||
46.2.1
|
||
Data Structures.............................................................................................................................................1252
|
||
46.3
|
||
Programmers interface..................................................................................................................................................1252
|
||
46.3.1
|
||
Buffer Descriptor Table...............................................................................................................................1252
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
41
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 42
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
46.3.2
|
||
RX vs. TX as a USB target device or USB host..........................................................................................1253
|
||
46.3.3
|
||
Addressing BDT entries...............................................................................................................................1254
|
||
46.3.4
|
||
Buffer Descriptors (BDs).............................................................................................................................1254
|
||
46.3.5
|
||
USB transaction...........................................................................................................................................1257
|
||
46.4
|
||
Memory map/Register definitions................................................................................................................................1259
|
||
46.4.1
|
||
Peripheral ID register (USBx\_PERID)........................................................................................................1261
|
||
46.4.2
|
||
Peripheral ID Complement register (USBx\_IDCOMP)...............................................................................1262
|
||
46.4.3
|
||
Peripheral Revision register (USBx\_REV)..................................................................................................1262
|
||
46.4.4
|
||
Peripheral Additional Info register (USBx\_ADDINFO).............................................................................1263
|
||
46.4.5
|
||
OTG Interrupt Status register (USBx\_OTGISTAT)....................................................................................1263
|
||
46.4.6
|
||
OTG Interrupt Control Register (USBx\_OTGICR).....................................................................................1264
|
||
46.4.7
|
||
OTG Status register (USBx\_OTGSTAT)....................................................................................................1265
|
||
46.4.8
|
||
OTG Control register (USBx\_OTGCTL)....................................................................................................1266
|
||
46.4.9
|
||
Interrupt Status register (USBx\_ISTAT).....................................................................................................1267
|
||
46.4.10
|
||
Interrupt Enable register (USBx\_INTEN)...................................................................................................1268
|
||
46.4.11
|
||
Error Interrupt Status register (USBx\_ERRSTAT).....................................................................................1269
|
||
46.4.12
|
||
Error Interrupt Enable register (USBx\_ERREN).........................................................................................1270
|
||
46.4.13
|
||
Status register (USBx\_STAT)......................................................................................................................1271
|
||
46.4.14
|
||
Control register (USBx\_CTL)......................................................................................................................1272
|
||
46.4.15
|
||
Address register (USBx\_ADDR).................................................................................................................1273
|
||
46.4.16
|
||
BDT Page Register 1 (USBx\_BDTPAGE1)................................................................................................1274
|
||
46.4.17
|
||
Frame Number Register Low (USBx\_FRMNUML)...................................................................................1274
|
||
46.4.18
|
||
Frame Number Register High (USBx\_FRMNUMH)..................................................................................1275
|
||
46.4.19
|
||
Token register (USBx\_TOKEN)..................................................................................................................1275
|
||
46.4.20
|
||
SOF Threshold Register (USBx\_SOFTHLD)..............................................................................................1276
|
||
46.4.21
|
||
BDT Page Register 2 (USBx\_BDTPAGE2)................................................................................................1277
|
||
46.4.22
|
||
BDT Page Register 3 (USBx\_BDTPAGE3)................................................................................................1277
|
||
46.4.23
|
||
Endpoint Control register (USBx\_ENDPTn)...............................................................................................1277
|
||
46.4.24
|
||
USB Control register (USBx\_USBCTRL)..................................................................................................1278
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
42
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 43
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
46.4.25
|
||
USB OTG Observe register (USBx\_OBSERVE)........................................................................................1279
|
||
46.4.26
|
||
USB OTG Control register (USBx\_CONTROL)........................................................................................1280
|
||
46.4.27
|
||
USB Transceiver Control Register 0 (USBx\_USBTRC0)...........................................................................1280
|
||
46.4.28
|
||
Frame Adjust Register (USBx\_USBFRMADJUST)...................................................................................1281
|
||
46.5
|
||
OTG and Host mode operation.....................................................................................................................................1282
|
||
46.6
|
||
Host Mode Operation Examples...................................................................................................................................1282
|
||
46.7
|
||
On-The-Go operation....................................................................................................................................................1285
|
||
46.7.1
|
||
OTG dual role A device operation...............................................................................................................1286
|
||
46.7.2
|
||
OTG dual role B device operation...............................................................................................................1287
|
||
Chapter 47
|
||
USB Device Charger Detection Module (USBDCD)
|
||
47.1
|
||
Preface...........................................................................................................................................................................1289
|
||
47.1.1
|
||
References....................................................................................................................................................1289
|
||
47.1.2
|
||
Acronyms and abbreviations........................................................................................................................1289
|
||
47.1.3
|
||
Glossary.......................................................................................................................................................1290
|
||
47.2
|
||
Introduction...................................................................................................................................................................1290
|
||
47.2.1
|
||
Block diagram..............................................................................................................................................1290
|
||
47.2.2
|
||
Features........................................................................................................................................................1291
|
||
47.2.3
|
||
Modes of operation......................................................................................................................................1291
|
||
47.3
|
||
Module signal descriptions...........................................................................................................................................1292
|
||
47.4
|
||
Memory map/Register definition..................................................................................................................................1293
|
||
47.4.1
|
||
Control register (USBDCD\_CONTROL)....................................................................................................1294
|
||
47.4.2
|
||
Clock register (USBDCD\_CLOCK)............................................................................................................1295
|
||
47.4.3
|
||
Status register (USBDCD\_STATUS)..........................................................................................................1297
|
||
47.4.4
|
||
TIMER0 register (USBDCD\_TIMER0)......................................................................................................1298
|
||
47.4.5
|
||
TIMER1 register (USBDCD\_TIMER1)......................................................................................................1299
|
||
47.4.6
|
||
TIMER2 register (USBDCD\_TIMER2)......................................................................................................1300
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
43
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 44
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
47.5
|
||
Functional description...................................................................................................................................................1301
|
||
47.5.1
|
||
The charger detection sequence...................................................................................................................1302
|
||
47.5.2
|
||
Interrupts and events....................................................................................................................................1311
|
||
47.5.3
|
||
Resets...........................................................................................................................................................1313
|
||
47.6
|
||
Initialization information..............................................................................................................................................1314
|
||
47.7
|
||
Application information................................................................................................................................................1314
|
||
47.7.1
|
||
External pullups...........................................................................................................................................1314
|
||
47.7.2
|
||
Dead or weak battery...................................................................................................................................1314
|
||
47.7.3
|
||
Handling unplug events...............................................................................................................................1315
|
||
Chapter 48
|
||
USB Voltage Regulator
|
||
48.1
|
||
Introduction...................................................................................................................................................................1317
|
||
48.1.1
|
||
Overview......................................................................................................................................................1318
|
||
48.1.2
|
||
Features........................................................................................................................................................1319
|
||
48.1.3
|
||
Modes of Operation.....................................................................................................................................1319
|
||
48.2
|
||
USB Voltage Regulator Module Signal Descriptions..................................................................................................1320
|
||
Chapter 49
|
||
CAN (FlexCAN)
|
||
49.1
|
||
Introduction...................................................................................................................................................................1321
|
||
49.1.1
|
||
Overview......................................................................................................................................................1322
|
||
49.1.2
|
||
FlexCAN module features...........................................................................................................................1323
|
||
49.1.3
|
||
Modes of operation......................................................................................................................................1324
|
||
49.2
|
||
FlexCAN signal descriptions........................................................................................................................................1326
|
||
49.2.1
|
||
CAN Rx .......................................................................................................................................................1326
|
||
49.2.2
|
||
CAN Tx .......................................................................................................................................................1326
|
||
49.3
|
||
Memory map/register definition...................................................................................................................................1326
|
||
49.3.1
|
||
FlexCAN memory mapping.........................................................................................................................1326
|
||
49.3.2
|
||
Module Configuration Register (CANx\_MCR)...........................................................................................1331
|
||
49.3.3
|
||
Control 1 register (CANx\_CTRL1).............................................................................................................1336
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
44
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 45
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
49.3.4
|
||
Free Running Timer (CANx\_TIMER).........................................................................................................1339
|
||
49.3.5
|
||
Rx Mailboxes Global Mask Register (CANx\_RXMGMASK)....................................................................1340
|
||
49.3.6
|
||
Rx 14 Mask register (CANx\_RX14MASK)................................................................................................1341
|
||
49.3.7
|
||
Rx 15 Mask register (CANx\_RX15MASK)................................................................................................1342
|
||
49.3.8
|
||
Error Counter (CANx\_ECR)........................................................................................................................1342
|
||
49.3.9
|
||
Error and Status 1 register (CANx\_ESR1)..................................................................................................1344
|
||
49.3.10
|
||
Interrupt Masks 1 register (CANx\_IMASK1).............................................................................................1348
|
||
49.3.11
|
||
Interrupt Flags 1 register (CANx\_IFLAG1)................................................................................................1349
|
||
49.3.12
|
||
Control 2 register (CANx\_CTRL2).............................................................................................................1351
|
||
49.3.13
|
||
Error and Status 2 register (CANx\_ESR2)..................................................................................................1354
|
||
49.3.14
|
||
CRC Register (CANx\_CRCR).....................................................................................................................1355
|
||
49.3.15
|
||
Rx FIFO Global Mask register (CANx\_RXFGMASK)..............................................................................1356
|
||
49.3.16
|
||
Rx FIFO Information Register (CANx\_RXFIR).........................................................................................1357
|
||
49.3.17
|
||
Rx Individual Mask Registers (CANx\_RXIMRn).......................................................................................1358
|
||
49.3.50
|
||
Message buffer structure..............................................................................................................................1359
|
||
49.3.51
|
||
Rx FIFO structure........................................................................................................................................1364
|
||
49.4
|
||
Functional description...................................................................................................................................................1366
|
||
49.4.1
|
||
Transmit process..........................................................................................................................................1367
|
||
49.4.2
|
||
Arbitration process.......................................................................................................................................1368
|
||
49.4.3
|
||
Receive process............................................................................................................................................1371
|
||
49.4.4
|
||
Matching process.........................................................................................................................................1373
|
||
49.4.5
|
||
Move process...............................................................................................................................................1378
|
||
49.4.6
|
||
Data coherence.............................................................................................................................................1380
|
||
49.4.7
|
||
Rx FIFO.......................................................................................................................................................1383
|
||
49.4.8
|
||
CAN protocol related features.....................................................................................................................1385
|
||
49.4.9
|
||
Clock domains and restrictions....................................................................................................................1391
|
||
49.4.10
|
||
Modes of operation details...........................................................................................................................1392
|
||
49.4.11
|
||
Interrupts......................................................................................................................................................1395
|
||
49.4.12
|
||
Bus interface................................................................................................................................................1396
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
45
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 46
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
49.5
|
||
Initialization/application information...........................................................................................................................1397
|
||
49.5.1
|
||
FlexCAN initialization sequence.................................................................................................................1397
|
||
Chapter 50
|
||
Serial Peripheral Interface (SPI)
|
||
50.1
|
||
Introduction...................................................................................................................................................................1401
|
||
50.1.1
|
||
Block Diagram.............................................................................................................................................1401
|
||
50.1.2
|
||
Features........................................................................................................................................................1402
|
||
50.1.3
|
||
SPI Configuration........................................................................................................................................1403
|
||
50.1.4
|
||
Modes of Operation.....................................................................................................................................1404
|
||
50.2
|
||
Module signal descriptions...........................................................................................................................................1406
|
||
50.2.1
|
||
PCS0/SS — Peripheral Chip Select/Slave Select........................................................................................1406
|
||
50.2.2
|
||
PCS1 – PCS3 — Peripheral Chip Selects 1 – 3...........................................................................................1406
|
||
50.2.3
|
||
PCS4 — Peripheral Chip Select 4................................................................................................................1406
|
||
50.2.4
|
||
SIN — Serial Input......................................................................................................................................1407
|
||
50.2.5
|
||
SOUT — Serial Output................................................................................................................................1407
|
||
50.2.6
|
||
SCK — Serial Clock....................................................................................................................................1407
|
||
50.3
|
||
Memory Map/Register Definition.................................................................................................................................1407
|
||
50.3.1
|
||
Module Configuration Register (SPIx\_MCR).............................................................................................1410
|
||
50.3.2
|
||
Transfer Count Register (SPIx\_TCR)..........................................................................................................1413
|
||
50.3.3
|
||
DSPI Clock and Transfer Attributes Register (In Master Mode) (SPIx\_CTARn)......................................1413
|
||
50.3.4
|
||
Clock and Transfer Attributes Register (In Slave Mode) (SPIx\_CTARn\_SLAVE)...................................1418
|
||
50.3.5
|
||
DSPI Status Register (SPIx\_SR)..................................................................................................................1420
|
||
50.3.6
|
||
DMA/Interrupt Request Select and Enable Register (SPIx\_RSER)............................................................1423
|
||
50.3.7
|
||
PUSH TX FIFO Register In Master Mode (SPIx\_PUSHR)........................................................................1425
|
||
50.3.8
|
||
PUSH TX FIFO Register In Slave Mode (SPIx\_PUSHR\_SLAVE)............................................................1427
|
||
50.3.9
|
||
POP RX FIFO Register (SPIx\_POPR).........................................................................................................1427
|
||
50.3.10
|
||
DSPI Transmit FIFO Registers (SPIx\_TXFRn)...........................................................................................1428
|
||
50.3.11
|
||
DSPI Receive FIFO Registers (SPIx\_RXFRn)............................................................................................1428
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
46
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 47
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
50.4
|
||
Functional description...................................................................................................................................................1429
|
||
50.4.1
|
||
Start and Stop of module transfers...............................................................................................................1430
|
||
50.4.2
|
||
Serial Peripheral Interface (SPI) configuration............................................................................................1430
|
||
50.4.3
|
||
Module baud rate and clock delay generation.............................................................................................1434
|
||
50.4.4
|
||
Transfer formats...........................................................................................................................................1436
|
||
50.4.5
|
||
Continuous Serial Communications Clock..................................................................................................1441
|
||
50.4.6
|
||
Slave Mode Operation Constraints..............................................................................................................1443
|
||
50.4.7
|
||
Interrupts/DMA requests..............................................................................................................................1443
|
||
50.4.8
|
||
Power saving features..................................................................................................................................1446
|
||
50.5
|
||
Initialization/application information...........................................................................................................................1447
|
||
50.5.1
|
||
How to manage queues................................................................................................................................1447
|
||
50.5.2
|
||
Switching Master and Slave mode...............................................................................................................1448
|
||
50.5.3
|
||
Initializing Module in Master/Slave Modes.................................................................................................1448
|
||
50.5.4
|
||
Baud rate settings.........................................................................................................................................1448
|
||
50.5.5
|
||
Delay settings...............................................................................................................................................1449
|
||
50.5.6
|
||
Calculation of FIFO pointer addresses.........................................................................................................1450
|
||
Chapter 51
|
||
Inter-Integrated Circuit (I2C)
|
||
51.1
|
||
Introduction...................................................................................................................................................................1453
|
||
51.1.1
|
||
Features........................................................................................................................................................1453
|
||
51.1.2
|
||
Modes of operation......................................................................................................................................1454
|
||
51.1.3
|
||
Block diagram..............................................................................................................................................1454
|
||
51.2
|
||
I2C signal descriptions..................................................................................................................................................1455
|
||
51.3
|
||
Memory map and register descriptions.........................................................................................................................1455
|
||
51.3.1
|
||
I2C Address Register 1 (I2Cx\_A1)..............................................................................................................1456
|
||
51.3.2
|
||
I2C Frequency Divider register (I2Cx\_F)....................................................................................................1457
|
||
51.3.3
|
||
I2C Control Register 1 (I2Cx\_C1)...............................................................................................................1458
|
||
51.3.4
|
||
I2C Status register (I2Cx\_S)........................................................................................................................1460
|
||
51.3.5
|
||
I2C Data I/O register (I2Cx\_D)...................................................................................................................1461
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
47
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 48
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
51.3.6
|
||
I2C Control Register 2 (I2Cx\_C2)...............................................................................................................1462
|
||
51.3.7
|
||
I2C Programmable Input Glitch Filter register (I2Cx\_FLT).......................................................................1463
|
||
51.3.8
|
||
I2C Range Address register (I2Cx\_RA)......................................................................................................1464
|
||
51.3.9
|
||
I2C SMBus Control and Status register (I2Cx\_SMB).................................................................................1464
|
||
51.3.10
|
||
I2C Address Register 2 (I2Cx\_A2)..............................................................................................................1466
|
||
51.3.11
|
||
I2C SCL Low Timeout Register High (I2Cx\_SLTH)..................................................................................1466
|
||
51.3.12
|
||
I2C SCL Low Timeout Register Low (I2Cx\_SLTL)...................................................................................1467
|
||
51.4
|
||
Functional description...................................................................................................................................................1467
|
||
51.4.1
|
||
I2C protocol.................................................................................................................................................1467
|
||
51.4.2
|
||
10-bit address...............................................................................................................................................1472
|
||
51.4.3
|
||
Address matching.........................................................................................................................................1474
|
||
51.4.4
|
||
System management bus specification........................................................................................................1474
|
||
51.4.5
|
||
Resets...........................................................................................................................................................1477
|
||
51.4.6
|
||
Interrupts......................................................................................................................................................1477
|
||
51.4.7
|
||
Programmable input glitch filter..................................................................................................................1479
|
||
51.4.8
|
||
Address matching wakeup...........................................................................................................................1480
|
||
51.4.9
|
||
DMA support...............................................................................................................................................1480
|
||
51.5
|
||
Initialization/application information...........................................................................................................................1481
|
||
Chapter 52
|
||
Universal Asynchronous Receiver/Transmitter (UART)
|
||
52.1
|
||
Introduction...................................................................................................................................................................1485
|
||
52.1.1
|
||
Features........................................................................................................................................................1485
|
||
52.1.2
|
||
Modes of operation......................................................................................................................................1487
|
||
52.2
|
||
UART signal descriptions.............................................................................................................................................1488
|
||
52.2.1
|
||
Detailed signal descriptions.........................................................................................................................1489
|
||
52.3
|
||
Memory map and registers............................................................................................................................................1490
|
||
52.3.1
|
||
UART Baud Rate Registers: High (UARTx\_BDH)....................................................................................1504
|
||
52.3.2
|
||
UART Baud Rate Registers: Low (UARTx\_BDL).....................................................................................1505
|
||
52.3.3
|
||
UART Control Register 1 (UARTx\_C1).....................................................................................................1506
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
48
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 49
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
52.3.4
|
||
UART Control Register 2 (UARTx\_C2).....................................................................................................1507
|
||
52.3.5
|
||
UART Status Register 1 (UARTx\_S1)........................................................................................................1509
|
||
52.3.6
|
||
UART Status Register 2 (UARTx\_S2)........................................................................................................1512
|
||
52.3.7
|
||
UART Control Register 3 (UARTx\_C3).....................................................................................................1514
|
||
52.3.8
|
||
UART Data Register (UARTx\_D)...............................................................................................................1515
|
||
52.3.9
|
||
UART Match Address Registers 1 (UARTx\_MA1)....................................................................................1517
|
||
52.3.10
|
||
UART Match Address Registers 2 (UARTx\_MA2)....................................................................................1517
|
||
52.3.11
|
||
UART Control Register 4 (UARTx\_C4).....................................................................................................1517
|
||
52.3.12
|
||
UART Control Register 5 (UARTx\_C5).....................................................................................................1518
|
||
52.3.13
|
||
UART Extended Data Register (UARTx\_ED)............................................................................................1519
|
||
52.3.14
|
||
UART Modem Register (UARTx\_MODEM).............................................................................................1520
|
||
52.3.15
|
||
UART Infrared Register (UARTx\_IR)........................................................................................................1521
|
||
52.3.16
|
||
UART FIFO Parameters (UARTx\_PFIFO).................................................................................................1522
|
||
52.3.17
|
||
UART FIFO Control Register (UARTx\_CFIFO)........................................................................................1524
|
||
52.3.18
|
||
UART FIFO Status Register (UARTx\_SFIFO)...........................................................................................1525
|
||
52.3.19
|
||
UART FIFO Transmit Watermark (UARTx\_TWFIFO).............................................................................1526
|
||
52.3.20
|
||
UART FIFO Transmit Count (UARTx\_TCFIFO).......................................................................................1527
|
||
52.3.21
|
||
UART FIFO Receive Watermark (UARTx\_RWFIFO)...............................................................................1527
|
||
52.3.22
|
||
UART FIFO Receive Count (UARTx\_RCFIFO)........................................................................................1528
|
||
52.3.23
|
||
UART 7816 Control Register (UARTx\_C7816).........................................................................................1528
|
||
52.3.24
|
||
UART 7816 Interrupt Enable Register (UARTx\_IE7816)..........................................................................1530
|
||
52.3.25
|
||
UART 7816 Interrupt Status Register (UARTx\_IS7816)............................................................................1531
|
||
52.3.26
|
||
UART 7816 Wait Parameter Register (UARTx\_WP7816T0).....................................................................1532
|
||
52.3.27
|
||
UART 7816 Wait Parameter Register (UARTx\_WP7816T1).....................................................................1533
|
||
52.3.28
|
||
UART 7816 Wait N Register (UARTx\_WN7816)......................................................................................1533
|
||
52.3.29
|
||
UART 7816 Wait FD Register (UARTx\_WF7816)....................................................................................1534
|
||
52.3.30
|
||
UART 7816 Error Threshold Register (UARTx\_ET7816)..........................................................................1534
|
||
52.3.31
|
||
UART 7816 Transmit Length Register (UARTx\_TL7816)........................................................................1535
|
||
52.3.32
|
||
UART CEA709.1-B Control Register 6 (UARTx\_C6)...............................................................................1536
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
49
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 50
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
52.3.33
|
||
UART CEA709.1-B Packet Cycle Time Counter High (UARTx\_PCTH)..................................................1536
|
||
52.3.34
|
||
UART CEA709.1-B Packet Cycle Time Counter Low (UARTx\_PCTL)...................................................1537
|
||
52.3.35
|
||
UART CEA709.1-B Interrupt Enable Register 0 (UARTx\_IE0)................................................................1537
|
||
52.3.36
|
||
UART CEA709.1-B Secondary Delay Timer High (UARTx\_SDTH)........................................................1538
|
||
52.3.37
|
||
UART CEA709.1-B Secondary Delay Timer Low (UARTx\_SDTL).........................................................1538
|
||
52.3.38
|
||
UART CEA709.1-B Preamble (UARTx\_PRE)...........................................................................................1539
|
||
52.3.39
|
||
UART CEA709.1-B Transmit Packet Length (UARTx\_TPL)....................................................................1539
|
||
52.3.40
|
||
UART CEA709.1-B Interrupt Enable Register (UARTx\_IE).....................................................................1540
|
||
52.3.41
|
||
UART CEA709.1-B WBASE (UARTx\_WB).............................................................................................1541
|
||
52.3.42
|
||
UART CEA709.1-B Status Register (UARTx\_S3).....................................................................................1541
|
||
52.3.43
|
||
UART CEA709.1-B Status Register (UARTx\_S4).....................................................................................1543
|
||
52.3.44
|
||
UART CEA709.1-B Received Packet Length (UARTx\_RPL)...................................................................1544
|
||
52.3.45
|
||
UART CEA709.1-B Received Preamble Length (UARTx\_RPREL)..........................................................1544
|
||
52.3.46
|
||
UART CEA709.1-B Collision Pulse Width (UARTx\_CPW).....................................................................1544
|
||
52.3.47
|
||
UART CEA709.1-B Receive Indeterminate Time High (UARTx\_RIDTH)...............................................1545
|
||
52.3.48
|
||
UART CEA709.1-B Receive Indeterminate Time Low (UARTx\_RIDTL)................................................1545
|
||
52.3.49
|
||
UART CEA709.1-B Transmit Indeterminate Time High (UARTx\_TIDTH).............................................1546
|
||
52.3.50
|
||
UART CEA709.1-B Transmit Indeterminate Time Low (UARTx\_TIDTL)..............................................1546
|
||
52.3.51
|
||
UART CEA709.1-B Receive Beta1 Timer High (UARTx\_RB1TH)..........................................................1546
|
||
52.3.52
|
||
UART CEA709.1-B Receive Beta1 Timer Low (UARTx\_RB1TL)...........................................................1547
|
||
52.3.53
|
||
UART CEA709.1-B Transmit Beta1 Timer High (UARTx\_TB1TH)........................................................1547
|
||
52.3.54
|
||
UART CEA709.1-B Transmit Beta1 Timer Low (UARTx\_TB1TL)..........................................................1548
|
||
52.3.55
|
||
UART CEA709.1-B Programmable register (UARTx\_PROG\_REG)........................................................1548
|
||
52.3.56
|
||
UART CEA709.1-B State register (UARTx\_STATE\_REG)......................................................................1549
|
||
52.4
|
||
Functional description...................................................................................................................................................1549
|
||
52.4.1
|
||
CEA709.1-B.................................................................................................................................................1549
|
||
52.4.2
|
||
Transmitter...................................................................................................................................................1560
|
||
52.4.3
|
||
Receiver.......................................................................................................................................................1566
|
||
52.4.4
|
||
Baud rate generation....................................................................................................................................1575
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
50
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 51
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
52.4.5
|
||
Data format (non ISO-7816)........................................................................................................................1577
|
||
52.4.6
|
||
Single-wire operation...................................................................................................................................1580
|
||
52.4.7
|
||
Loop operation.............................................................................................................................................1581
|
||
52.4.8
|
||
ISO-7816/smartcard support........................................................................................................................1581
|
||
52.4.9
|
||
Infrared interface..........................................................................................................................................1586
|
||
52.5
|
||
Reset..............................................................................................................................................................................1587
|
||
52.6
|
||
System level interrupt sources......................................................................................................................................1587
|
||
52.6.1
|
||
RXEDGIF description..................................................................................................................................1588
|
||
52.7
|
||
DMA operation.............................................................................................................................................................1589
|
||
52.8
|
||
Application information................................................................................................................................................1589
|
||
52.8.1
|
||
Transmit/receive data buffer operation........................................................................................................1589
|
||
52.8.2
|
||
ISO-7816 initialization sequence.................................................................................................................1590
|
||
52.8.3
|
||
Initialization sequence (non ISO-7816).......................................................................................................1592
|
||
52.8.4
|
||
Overrun (OR) flag implications...................................................................................................................1593
|
||
52.8.5
|
||
Overrun NACK considerations....................................................................................................................1594
|
||
52.8.6
|
||
Match address registers................................................................................................................................1595
|
||
52.8.7
|
||
Modem feature.............................................................................................................................................1595
|
||
52.8.8
|
||
IrDA minimum pulse width.........................................................................................................................1596
|
||
52.8.9
|
||
Clearing 7816 wait timer (WT, BWT, CWT) interrupts..............................................................................1596
|
||
52.8.10
|
||
Legacy and reverse compatibility considerations........................................................................................1597
|
||
Chapter 53
|
||
Secured digital host controller (SDHC)
|
||
53.1
|
||
Introduction...................................................................................................................................................................1599
|
||
53.2
|
||
Overview.......................................................................................................................................................................1599
|
||
53.2.1
|
||
Supported types of cards..............................................................................................................................1599
|
||
53.2.2
|
||
SDHC block diagram...................................................................................................................................1600
|
||
53.2.3
|
||
Features........................................................................................................................................................1601
|
||
53.2.4
|
||
Modes and operations..................................................................................................................................1602
|
||
53.3
|
||
SDHC signal descriptions.............................................................................................................................................1603
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
51
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 52
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
53.4
|
||
Memory map and register definition.............................................................................................................................1604
|
||
53.4.1
|
||
DMA System Address register (SDHC\_DSADDR)....................................................................................1605
|
||
53.4.2
|
||
Block Attributes register (SDHC\_BLKATTR)...........................................................................................1606
|
||
53.4.3
|
||
Command Argument register (SDHC\_CMDARG).....................................................................................1607
|
||
53.4.4
|
||
Transfer Type register (SDHC\_XFERTYP)................................................................................................1608
|
||
53.4.5
|
||
Command Response 0 (SDHC\_CMDRSP0)...............................................................................................1612
|
||
53.4.6
|
||
Command Response 1 (SDHC\_CMDRSP1)...............................................................................................1612
|
||
53.4.7
|
||
Command Response 2 (SDHC\_CMDRSP2)...............................................................................................1613
|
||
53.4.8
|
||
Command Response 3 (SDHC\_CMDRSP3)...............................................................................................1613
|
||
53.4.9
|
||
Buffer Data Port register (SDHC\_DATPORT)...........................................................................................1614
|
||
53.4.10
|
||
Present State register (SDHC\_PRSSTAT)..................................................................................................1615
|
||
53.4.11
|
||
Protocol Control register (SDHC\_PROCTL)..............................................................................................1620
|
||
53.4.12
|
||
System Control register (SDHC\_SYSCTL)................................................................................................1624
|
||
53.4.13
|
||
Interrupt Status register (SDHC\_IRQSTAT)...............................................................................................1627
|
||
53.4.14
|
||
Interrupt Status Enable register (SDHC\_IRQSTATEN).............................................................................1632
|
||
53.4.15
|
||
Interrupt Signal Enable register (SDHC\_IRQSIGEN)................................................................................1635
|
||
53.4.16
|
||
Auto CMD12 Error Status Register (SDHC\_AC12ERR)...........................................................................1637
|
||
53.4.17
|
||
Host Controller Capabilities (SDHC\_HTCAPBLT)....................................................................................1641
|
||
53.4.18
|
||
Watermark Level Register (SDHC\_WML).................................................................................................1643
|
||
53.4.19
|
||
Force Event register (SDHC\_FEVT)...........................................................................................................1644
|
||
53.4.20
|
||
ADMA Error Status register (SDHC\_ADMAES).......................................................................................1646
|
||
53.4.21
|
||
ADMA System Addressregister (SDHC\_ADSADDR)...............................................................................1648
|
||
53.4.22
|
||
Vendor Specific register (SDHC\_VENDOR)..............................................................................................1649
|
||
53.4.23
|
||
MMC Boot register (SDHC\_MMCBOOT).................................................................................................1650
|
||
53.4.24
|
||
Host Controller Version (SDHC\_HOSTVER)............................................................................................1651
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
52
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 53
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
53.5
|
||
Functional description...................................................................................................................................................1652
|
||
53.5.1
|
||
Data buffer...................................................................................................................................................1652
|
||
53.5.2
|
||
DMA crossbar switch interface....................................................................................................................1658
|
||
53.5.3
|
||
SD protocol unit...........................................................................................................................................1664
|
||
53.5.4
|
||
Clock and reset manager..............................................................................................................................1666
|
||
53.5.5
|
||
Clock generator............................................................................................................................................1667
|
||
53.5.6
|
||
SDIO card interrupt......................................................................................................................................1667
|
||
53.5.7
|
||
Card insertion and removal detection..........................................................................................................1669
|
||
53.5.8
|
||
Power management and wakeup events.......................................................................................................1670
|
||
53.5.9
|
||
MMC fast boot.............................................................................................................................................1671
|
||
53.6
|
||
Initialization/application of SDHC...............................................................................................................................1673
|
||
53.6.1
|
||
Command send and response receive basic operation.................................................................................1673
|
||
53.6.2
|
||
Card Identification mode.............................................................................................................................1674
|
||
53.6.3
|
||
Card access...................................................................................................................................................1679
|
||
53.6.4
|
||
Switch function............................................................................................................................................1690
|
||
53.6.5
|
||
ADMA operation.........................................................................................................................................1692
|
||
53.6.6
|
||
Fast boot operation.......................................................................................................................................1693
|
||
53.6.7
|
||
Commands for MMC/SD/SDIO/CE-ATA...................................................................................................1697
|
||
53.7
|
||
Software restrictions.....................................................................................................................................................1703
|
||
53.7.1
|
||
Initialization active.......................................................................................................................................1703
|
||
53.7.2
|
||
Software polling procedure..........................................................................................................................1703
|
||
53.7.3
|
||
Suspend operation........................................................................................................................................1704
|
||
53.7.4
|
||
Data length setting.......................................................................................................................................1704
|
||
53.7.5
|
||
(A)DMA address setting..............................................................................................................................1704
|
||
53.7.6
|
||
Data port access...........................................................................................................................................1704
|
||
53.7.7
|
||
Change clock frequency...............................................................................................................................1704
|
||
53.7.8
|
||
Multi-block read...........................................................................................................................................1705
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
53
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 54
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
Chapter 54
|
||
Integrated Interchip Sound (I2S) / Synchronous Audio Interface (SAI)
|
||
54.1
|
||
Introduction...................................................................................................................................................................1707
|
||
54.1.1
|
||
Features........................................................................................................................................................1707
|
||
54.1.2
|
||
Block diagram..............................................................................................................................................1707
|
||
54.1.3
|
||
Modes of operation......................................................................................................................................1708
|
||
54.2
|
||
External signals.............................................................................................................................................................1709
|
||
54.3
|
||
Memory map and register definition.............................................................................................................................1709
|
||
54.3.1
|
||
SAI Transmit Control Register (I2Sx\_TCSR).............................................................................................1711
|
||
54.3.2
|
||
SAI Transmit Configuration 1 Register (I2Sx\_TCR1)................................................................................1714
|
||
54.3.3
|
||
SAI Transmit Configuration 2 Register (I2Sx\_TCR2)................................................................................1714
|
||
54.3.4
|
||
SAI Transmit Configuration 3 Register (I2Sx\_TCR3)................................................................................1716
|
||
54.3.5
|
||
SAI Transmit Configuration 4 Register (I2Sx\_TCR4)................................................................................1717
|
||
54.3.6
|
||
SAI Transmit Configuration 5 Register (I2Sx\_TCR5)................................................................................1718
|
||
54.3.7
|
||
SAI Transmit Data Register (I2Sx\_TDRn)..................................................................................................1719
|
||
54.3.8
|
||
SAI Transmit FIFO Register (I2Sx\_TFRn).................................................................................................1719
|
||
54.3.9
|
||
SAI Transmit Mask Register (I2Sx\_TMR)..................................................................................................1720
|
||
54.3.10
|
||
SAI Receive Control Register (I2Sx\_RCSR)...............................................................................................1721
|
||
54.3.11
|
||
SAI Receive Configuration 1 Register (I2Sx\_RCR1)..................................................................................1724
|
||
54.3.12
|
||
SAI Receive Configuration 2 Register (I2Sx\_RCR2)..................................................................................1724
|
||
54.3.13
|
||
SAI Receive Configuration 3 Register (I2Sx\_RCR3)..................................................................................1726
|
||
54.3.14
|
||
SAI Receive Configuration 4 Register (I2Sx\_RCR4)..................................................................................1727
|
||
54.3.15
|
||
SAI Receive Configuration 5 Register (I2Sx\_RCR5)..................................................................................1728
|
||
54.3.16
|
||
SAI Receive Data Register (I2Sx\_RDRn)...................................................................................................1729
|
||
54.3.17
|
||
SAI Receive FIFO Register (I2Sx\_RFRn)...................................................................................................1729
|
||
54.3.18
|
||
SAI Receive Mask Register (I2Sx\_RMR)...................................................................................................1730
|
||
54.3.19
|
||
SAI MCLK Control Register (I2Sx\_MCR).................................................................................................1730
|
||
54.3.20
|
||
SAI MCLK Divide Register (I2Sx\_MDR)..................................................................................................1731
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
54
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 55
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
54.4
|
||
Functional description...................................................................................................................................................1732
|
||
54.4.1
|
||
SAI clocking................................................................................................................................................1732
|
||
54.4.2
|
||
SAI resets.....................................................................................................................................................1733
|
||
54.4.3
|
||
Synchronous modes.....................................................................................................................................1734
|
||
54.4.4
|
||
Frame sync configuration.............................................................................................................................1735
|
||
54.5
|
||
Data FIFO.....................................................................................................................................................................1735
|
||
54.5.1
|
||
Data alignment.............................................................................................................................................1735
|
||
54.5.2
|
||
FIFO pointers...............................................................................................................................................1736
|
||
54.5.3
|
||
Word mask register......................................................................................................................................1737
|
||
54.5.4
|
||
Interrupts and DMA requests.......................................................................................................................1737
|
||
Chapter 55
|
||
General-Purpose Input/Output (GPIO)
|
||
55.1
|
||
Introduction...................................................................................................................................................................1741
|
||
55.1.1
|
||
Features........................................................................................................................................................1741
|
||
55.1.2
|
||
Modes of operation......................................................................................................................................1742
|
||
55.1.3
|
||
GPIO signal descriptions.............................................................................................................................1742
|
||
55.2
|
||
Memory map and register definition.............................................................................................................................1743
|
||
55.2.1
|
||
Port Data Output Register (GPIOx\_PDOR).................................................................................................1745
|
||
55.2.2
|
||
Port Set Output Register (GPIOx\_PSOR)....................................................................................................1746
|
||
55.2.3
|
||
Port Clear Output Register (GPIOx\_PCOR)................................................................................................1746
|
||
55.2.4
|
||
Port Toggle Output Register (GPIOx\_PTOR).............................................................................................1747
|
||
55.2.5
|
||
Port Data Input Register (GPIOx\_PDIR).....................................................................................................1747
|
||
55.2.6
|
||
Port Data Direction Register (GPIOx\_PDDR).............................................................................................1748
|
||
55.3
|
||
Functional description...................................................................................................................................................1748
|
||
55.3.1
|
||
General-purpose input..................................................................................................................................1748
|
||
55.3.2
|
||
General-purpose output................................................................................................................................1748
|
||
Chapter 56
|
||
Touch sense input (TSI)
|
||
56.1
|
||
Introduction...................................................................................................................................................................1751
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
55
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 56
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
56.2
|
||
Features.........................................................................................................................................................................1751
|
||
56.3
|
||
Overview.......................................................................................................................................................................1752
|
||
56.3.1
|
||
Electrode capacitance measurement unit.....................................................................................................1753
|
||
56.3.2
|
||
Electrode scan unit.......................................................................................................................................1754
|
||
56.3.3
|
||
Touch detection unit.....................................................................................................................................1754
|
||
56.4
|
||
Modes of operation.......................................................................................................................................................1755
|
||
56.4.1
|
||
TSI disabled mode.......................................................................................................................................1756
|
||
56.4.2
|
||
TSI active mode...........................................................................................................................................1756
|
||
56.4.3
|
||
TSI low-power mode...................................................................................................................................1756
|
||
56.4.4
|
||
Block diagram..............................................................................................................................................1756
|
||
56.5
|
||
TSI signal descriptions..................................................................................................................................................1757
|
||
56.5.1
|
||
TSI\_IN[15:0]................................................................................................................................................1757
|
||
56.6
|
||
Memory map and register definition.............................................................................................................................1758
|
||
56.6.1
|
||
General Control and Status register (TSIx\_GENCS)...................................................................................1759
|
||
56.6.2
|
||
SCAN Control register (TSIx\_SCANC)......................................................................................................1762
|
||
56.6.3
|
||
Pin Enable register (TSIx\_PEN)..................................................................................................................1764
|
||
56.6.4
|
||
Wake-Up Channel Counter Register (TSIx\_WUCNTR).............................................................................1766
|
||
56.6.5
|
||
Counter Register (TSIx\_CNTRn)................................................................................................................1767
|
||
56.6.6
|
||
Low-Power Channel Threshold register (TSIx\_THRESHOLD).................................................................1767
|
||
56.7
|
||
Functional description...................................................................................................................................................1767
|
||
56.7.1
|
||
Capacitance measurement............................................................................................................................1768
|
||
56.7.2
|
||
TSI measurement result...............................................................................................................................1771
|
||
56.7.3
|
||
Electrode scan unit.......................................................................................................................................1772
|
||
56.7.4
|
||
Touch detection unit.....................................................................................................................................1775
|
||
56.8
|
||
Application information................................................................................................................................................1776
|
||
56.8.1
|
||
TSI module sensitivity.................................................................................................................................1776
|
||
56.9
|
||
TSI module initialization..............................................................................................................................................1776
|
||
56.9.1
|
||
Initialization sequence..................................................................................................................................1777
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
56
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 57
|
||
|
||
Section number
|
||
Title
|
||
Page
|
||
Chapter 57
|
||
JTAG Controller (JTAGC)
|
||
57.1
|
||
Introduction...................................................................................................................................................................1779
|
||
57.1.1
|
||
Block diagram..............................................................................................................................................1779
|
||
57.1.2
|
||
Features........................................................................................................................................................1780
|
||
57.1.3
|
||
Modes of operation......................................................................................................................................1780
|
||
57.2
|
||
External signal description............................................................................................................................................1782
|
||
57.2.1
|
||
TCK—Test clock input................................................................................................................................1782
|
||
57.2.2
|
||
TDI—Test data input...................................................................................................................................1782
|
||
57.2.3
|
||
TDO—Test data output................................................................................................................................1782
|
||
57.2.4
|
||
TMS—Test mode select...............................................................................................................................1782
|
||
57.3
|
||
Register description......................................................................................................................................................1783
|
||
57.3.1
|
||
Instruction register.......................................................................................................................................1783
|
||
57.3.2
|
||
Bypass register.............................................................................................................................................1783
|
||
57.3.3
|
||
Device identification register.......................................................................................................................1783
|
||
57.3.4
|
||
Boundary scan register.................................................................................................................................1784
|
||
57.4
|
||
Functional description...................................................................................................................................................1785
|
||
57.4.1
|
||
JTAGC reset configuration..........................................................................................................................1785
|
||
57.4.2
|
||
IEEE 1149.1-2001 (JTAG) Test Access Port..............................................................................................1785
|
||
57.4.3
|
||
TAP controller state machine.......................................................................................................................1785
|
||
57.4.4
|
||
JTAGC block instructions............................................................................................................................1787
|
||
57.4.5
|
||
Boundary scan..............................................................................................................................................1790
|
||
57.5
|
||
Initialization/Application information..........................................................................................................................1790
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
57
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 58
|
||
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
58
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 59
|
||
|
||
Chapter 1
|
||
About This Document
|
||
1.1
|
||
Overview
|
||
1.1.1
|
||
Purpose
|
||
This document describes the features, architecture, and programming model of the
|
||
Freescale K60 microcontroller.
|
||
1.1.2
|
||
Audience
|
||
This document is primarily for system architects and software application developers
|
||
who are using or considering using the K60 microcontroller in a system.
|
||
1.2
|
||
Conventions
|
||
1.2.1
|
||
Numbering systems
|
||
The following suffixes identify different numbering systems:
|
||
This suffix
|
||
Identifies a
|
||
b
|
||
Binary number. For example, the binary equivalent of the
|
||
number 5 is written 101b. In some cases, binary numbers are
|
||
shown with the prefix 0b.
|
||
d
|
||
Decimal number. Decimal numbers are followed by this suffix
|
||
only when the possibility of confusion exists. In general,
|
||
decimal numbers are shown without a suffix.
|
||
h
|
||
Hexadecimal number. For example, the hexadecimal
|
||
equivalent of the number 60 is written 3Ch. In some cases,
|
||
hexadecimal numbers are shown with the prefix 0x.
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
59
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 60
|
||
|
||
1.2.2
|
||
Typographic notation
|
||
The following typographic notation is used throughout this document:
|
||
Example
|
||
Description
|
||
placeholder, x
|
||
Items in italics are placeholders for information that you provide. Italicized text is also used for
|
||
the titles of publications and for emphasis. Plain lowercase letters are also used as
|
||
placeholders for single letters and numbers.
|
||
code
|
||
Fixed-width type indicates text that must be typed exactly as shown. It is used for instruction
|
||
mnemonics, directives, symbols, subcommands, parameters, and operators. Fixed-width type
|
||
is also used for example code. Instruction mnemonics and directives in text and tables are
|
||
shown in all caps; for example, BSR.
|
||
SR[SCM]
|
||
A mnemonic in brackets represents a named field in a register. This example refers to the
|
||
Scaling Mode (SCM) field in the Status Register (SR).
|
||
REVNO[6:4], XAD[7:0]
|
||
Numbers in brackets and separated by a colon represent either:
|
||
• A subset of a register's named field
|
||
For example, REVNO[6:4] refers to bits 6–4 that are part of the COREREV field that
|
||
occupies bits 6–0 of the REVNO register.
|
||
• A continuous range of individual signals of a bus
|
||
For example, XAD[7:0] refers to signals 7–0 of the XAD bus.
|
||
1.2.3
|
||
Special terms
|
||
The following terms have special meanings:
|
||
Term
|
||
Meaning
|
||
asserted
|
||
Refers to the state of a signal as follows:
|
||
• An active-high signal is asserted when high (1).
|
||
• An active-low signal is asserted when low (0).
|
||
deasserted
|
||
Refers to the state of a signal as follows:
|
||
• An active-high signal is deasserted when low (0).
|
||
• An active-low signal is deasserted when high (1).
|
||
In some cases, deasserted signals are described as negated.
|
||
reserved
|
||
Refers to a memory space, register, or field that is either
|
||
reserved for future use or for which, when written to, the
|
||
module or chip behavior is unpredictable.
|
||
Conventions
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
60
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 61
|
||
|
||
Chapter 2
|
||
Introduction
|
||
2.1
|
||
Overview
|
||
This chapter provides high-level descriptions of the modules available on the devices
|
||
covered by this document.
|
||
2.2
|
||
Module Functional Categories
|
||
The modules on this device are grouped into functional categories. The following
|
||
sections describe the modules assigned to each category in more detail.
|
||
Table 2-1. Module functional categories
|
||
Module category
|
||
Description
|
||
ARM Cortex-M4 core
|
||
• 32-bit MCU core from ARM’s Cortex-M class adding DSP instructions, 1.25
|
||
DMIPS/MHz, based on ARMv7 architecture
|
||
System
|
||
• System integration module
|
||
• Power management and mode controllers
|
||
• Multiple power modes available based on run, wait, stop, and power-
|
||
down modes
|
||
• Low-leakage wakeup unit
|
||
• Miscellaneous control module
|
||
• Crossbar switch
|
||
• Memory protection unit
|
||
• Peripheral bridge
|
||
• Direct memory access (DMA) controller with multiplexer to increase available
|
||
DMA requests
|
||
• External watchdog monitor
|
||
• Watchdog
|
||
Table continues on the next page...
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
61
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 62
|
||
|
||
Table 2-1. Module functional categories (continued)
|
||
Module category
|
||
Description
|
||
Memories
|
||
• Internal memories include:
|
||
• Program flash memory
|
||
• On devices with FlexMemory: FlexMemory
|
||
• FlexNVM
|
||
• FlexRAM
|
||
• On devices with program flash only: Programming acceleration RAM
|
||
• SRAM
|
||
• External memory or peripheral bus interface: FlexBus
|
||
• Serial programming interface: EzPort
|
||
Clocks
|
||
• Multiple clock generation options available from internally- and externally-
|
||
generated clocks
|
||
• System oscillator to provide clock source for the MCU
|
||
• RTC oscillator to provide clock source for the RTC
|
||
Security
|
||
• Cyclic Redundancy Check module for error detection
|
||
• Hardware encryption, along with a random number generator
|
||
Analog
|
||
• High speed analog-to-digital converter with integrated programmable gain
|
||
amplifier
|
||
• Comparator
|
||
• Digital-to-analog converter
|
||
• Internal voltage reference
|
||
Timers
|
||
• Programmable delay block
|
||
• FlexTimers
|
||
• Periodic interrupt timer
|
||
• Low power timer
|
||
• Carrier modulator transmitter
|
||
• Independent real time clock
|
||
Communications
|
||
• Ethernet MAC with IEEE 1588 capability
|
||
• USB OTG controller with built-in FS/LS transceiver
|
||
• USB device charger detect
|
||
• USB voltage regulator
|
||
• CAN
|
||
• Serial peripheral interface
|
||
• Inter-integrated circuit (I2C)
|
||
• UART
|
||
• Secured Digital host controller
|
||
• Integrated interchip sound (I2S)
|
||
Human-Machine Interfaces (HMI)
|
||
• General purpose input/output controller
|
||
• Capacitive touch sense input interface enabled in hardware
|
||
2.2.1
|
||
ARM Cortex-M4 Core Modules
|
||
The following core modules are available on this device.
|
||
Module Functional Categories
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
62
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 63
|
||
|
||
Table 2-2. Core modules
|
||
Module
|
||
Description
|
||
ARM Cortex-M4
|
||
The ARM Cortex-M4 is the newest member of the Cortex M Series of processors
|
||
targeting microcontroller cores focused on very cost sensitive, deterministic,
|
||
interrupt driven environments. The Cortex M4 processor is based on the ARMv7
|
||
Architecture and Thumb®-2 ISA and is upward compatible with the Cortex M3,
|
||
Cortex M1, and Cortex M0 architectures. Cortex M4 improvements include an
|
||
ARMv7 Thumb-2 DSP (ported from the ARMv7-A/R profile architectures) providing
|
||
32-bit instructions with SIMD (single instruction multiple data) DSP style multiply-
|
||
accumulates and saturating arithmetic.
|
||
NVIC
|
||
The ARMv7-M exception model and nested-vectored interrupt controller (NVIC)
|
||
implement a relocatable vector table supporting many external interrupts, a single
|
||
non-maskable interrupt (NMI), and priority levels.
|
||
The NVIC replaces shadow registers with equivalent system and simplified
|
||
programmability. The NVIC contains the address of the function to execute for a
|
||
particular handler. The address is fetched via the instruction port allowing parallel
|
||
register stacking and look-up. The first sixteen entries are allocated to ARM
|
||
internal sources with the others mapping to MCU-defined interrupts.
|
||
AWIC
|
||
The primary function of the Asynchronous Wake-up Interrupt Controller (AWIC) is
|
||
to detect asynchronous wake-up events in stop modes and signal to clock control
|
||
logic to resume system clocking. After clock restart, the NVIC observes the
|
||
pending interrupt and performs the normal interrupt or event processing.
|
||
Debug interfaces
|
||
Most of this device's debug is based on the ARM CoreSight™ architecture. Four
|
||
debug interfaces are supported:
|
||
• IEEE 1149.1 JTAG
|
||
• IEEE 1149.7 JTAG (cJTAG)
|
||
• Serial Wire Debug (SWD)
|
||
• ARM Real-Time Trace Interface
|
||
2.2.2
|
||
System Modules
|
||
The following system modules are available on this device.
|
||
Table 2-3. System modules
|
||
Module
|
||
Description
|
||
System integration module (SIM)
|
||
The SIM includes integration logic and several module configuration settings.
|
||
System mode controller
|
||
The SMC provides control and protection on entry and exit to each power mode,
|
||
control for the Power management controller (PMC), and reset entry and exit for
|
||
the complete MCU.
|
||
Power management controller (PMC)
|
||
The PMC provides the user with multiple power options. Ten different modes are
|
||
supported that allow the user to optimize power consumption for the level of
|
||
functionality needed. Includes power-on-reset (POR) and integrated low voltage
|
||
detect (LVD) with reset (brownout) capability and selectable LVD trip points.
|
||
Low-leakage wakeup unit (LLWU)
|
||
The LLWU module allows the device to wake from low leakage power modes (LLS
|
||
and VLLS) through various internal peripheral and external pin sources.
|
||
Miscellaneous control module (MCM)
|
||
The MCM includes integration logic and embedded trace buffer details.
|
||
Table continues on the next page...
|
||
Chapter 2 Introduction
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
63
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 64
|
||
|
||
Table 2-3. System modules (continued)
|
||
Module
|
||
Description
|
||
Crossbar switch (XBS)
|
||
The XBS connects bus masters and bus slaves, allowing all bus masters to access
|
||
different bus slaves simultaneously and providing arbitration among the bus
|
||
masters when they access the same slave.
|
||
Memory protection unit (MPU)
|
||
The MPU provides memory protection and task isolation. It concurrently monitors
|
||
all bus master transactions for the slave connections.
|
||
Peripheral bridges
|
||
The peripheral bridge converts the crossbar switch interface to an interface to
|
||
access a majority of peripherals on the device.
|
||
DMA multiplexer (DMAMUX)
|
||
The DMA multiplexer selects from many DMA requests down to a smaller number
|
||
for the DMA controller.
|
||
Direct memory access (DMA) controller
|
||
The DMA controller provides programmable channels with transfer control
|
||
descriptors for data movement via dual-address transfers for 8-, 16-, 32- and 128-
|
||
bit data values.
|
||
External watchdog monitor (EWM)
|
||
The EWM is a redundant mechanism to the software watchdog module that
|
||
monitors both internal and external system operation for fail conditions.
|
||
Software watchdog (WDOG)
|
||
The WDOG monitors internal system operation and forces a reset in case of
|
||
failure. It can run from an independent 1 KHz low power oscillator with a
|
||
programmable refresh window to detect deviations in program flow or system
|
||
frequency.
|
||
2.2.3
|
||
Memories and Memory Interfaces
|
||
The following memories and memory interfaces are available on this device.
|
||
Table 2-4. Memories and memory interfaces
|
||
Module
|
||
Description
|
||
Flash memory
|
||
• Program flash memory — non-volatile flash memory that can execute
|
||
program code
|
||
• FlexMemory — encompasses the following memory types:
|
||
• For devices with FlexNVM: FlexNVM — Non-volatile flash memory that
|
||
can execute program code, store data, or backup EEPROM data
|
||
• For devices with FlexNVM: FlexRAM — RAM memory that can be
|
||
used as traditional RAM or as high-endurance EEPROM storage, and
|
||
also accelerates flash programming
|
||
• For devices with only program flash memory: Programming
|
||
acceleration RAM — RAM memory that accelerates flash programming
|
||
Flash memory controller
|
||
Manages the interface between the device and the on-chip flash memory.
|
||
SRAM
|
||
Internal system RAM. Partial SRAM kept powered in VLLS2 low leakage mode.
|
||
SRAM controller
|
||
Manages simultaneous accesses to system RAM by multiple master peripherals
|
||
and core.
|
||
System register file
|
||
32-byte register file that is accessible during all power modes and is powered by
|
||
VDD.
|
||
VBAT register file
|
||
32-byte register file that is accessible during all power modes and is powered by
|
||
VBAT.
|
||
Table continues on the next page...
|
||
Module Functional Categories
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
64
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 65
|
||
|
||
Table 2-4. Memories and memory interfaces (continued)
|
||
Module
|
||
Description
|
||
Serial programming interface (EzPort)
|
||
Same serial interface as, and subset of, the command set used by industry-
|
||
standard SPI flash memories. Provides the ability to read, erase, and program
|
||
flash memory and reset command to boot the system after flash programming.
|
||
FlexBus
|
||
External bus interface with multiple independent, user-programmable chip-select
|
||
signals that can interface with external SRAM, PROM, EPROM, EEPROM, flash,
|
||
and other peripherals via 8-, 16- and 32-bit port sizes. Configurations include
|
||
multiplexed or non-multiplexed address and data buses using 8-bit, 16-bit, 32-bit,
|
||
and 16-byte line-sized transfers.
|
||
2.2.4
|
||
Clocks
|
||
The following clock modules are available on this device.
|
||
Table 2-5. Clock modules
|
||
Module
|
||
Description
|
||
Multi-clock generator (MCG)
|
||
The MCG provides several clock sources for the MCU that include:
|
||
• Phase-locked loop (PLL) — Voltage-controlled oscillator (VCO)
|
||
• Frequency-locked loop (FLL) — Digitally-controlled oscillator (DCO)
|
||
• Internal reference clocks — Can be used as a clock source for other on-chip
|
||
peripherals
|
||
System oscillator
|
||
The system oscillator, in conjunction with an external crystal or resonator,
|
||
generates a reference clock for the MCU.
|
||
Real-time clock oscillator
|
||
The RTC oscillator has an independent power supply and supports a 32 kHz
|
||
crystal oscillator to feed the RTC clock. Optionally, the RTC oscillator can replace
|
||
the system oscillator as the main oscillator source.
|
||
2.2.5
|
||
Security and Integrity modules
|
||
The following security and integrity modules are available on this device:
|
||
Table 2-6. Security and integrity modules
|
||
Module
|
||
Description
|
||
Cryptographic acceleration unit (CAU)
|
||
Supports DES, 3DES, AES, MD5, SHA-1, and SHA-256 algorithms via simple C
|
||
calls to optimized security functions provided by Freescale.
|
||
Random number generator (RNG)
|
||
Supports the key generation algorithm defined in the Digital Signature Standard.
|
||
Cyclic Redundancy Check (CRC)
|
||
Hardware CRC generator circuit using 16/32-bit shift register. Error detection for all
|
||
single, double, odd, and most multi-bit errors, programmable initial seed value, and
|
||
optional feature to transpose input data and CRC result via transpose register.
|
||
Chapter 2 Introduction
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
65
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 66
|
||
|
||
2.2.6
|
||
Analog modules
|
||
The following analog modules are available on this device:
|
||
Table 2-7. Analog modules
|
||
Module
|
||
Description
|
||
16-bit analog-to-digital converters (ADC)
|
||
and programmable-gain amplifiers
|
||
(PGA)
|
||
16-bit successive-approximation ADC designed with integrated programmable gain
|
||
amplifiers (PGA)
|
||
Analog comparators
|
||
Compares two analog input voltages across the full range of the supply voltage.
|
||
6-bit digital-to-analog converters (DAC)
|
||
64-tap resistor ladder network which provides a selectable voltage reference for
|
||
applications where voltage reference is needed.
|
||
12-bit digital-to-analog converters (DAC) Low-power general-purpose DAC, whose output can be placed on an external pin
|
||
or set as one of the inputs to the analog comparator or ADC.
|
||
Voltage reference (VREF)
|
||
Supplies an accurate voltage output that is trimmable in 0.5 mV steps. The VREF
|
||
can be used in medical applications, such as glucose meters, to provide a
|
||
reference voltage to biosensors or as a reference to analog peripherals, such as
|
||
the ADC, DAC, or CMP.
|
||
2.2.7
|
||
Timer modules
|
||
The following timer modules are available on this device:
|
||
Table 2-8. Timer modules
|
||
Module
|
||
Description
|
||
Programmable delay block (PDB)
|
||
• 16-bit resolution
|
||
• 3-bit prescaler
|
||
• Positive transition of trigger event signal initiates the counter
|
||
• Supports two triggered delay output signals, each with an independently-
|
||
controlled delay from the trigger event
|
||
• Outputs can be OR'd together to schedule two conversions from one input
|
||
trigger event and can schedule precise edge placement for a pulsed output.
|
||
This feature is used to generate the control signal for the CMP windowing
|
||
feature and output to a package pin if needed for applications, such as
|
||
critical conductive mode power factor correction.
|
||
• Continuous-pulse output or single-shot mode supported, each output is
|
||
independently enabled, with possible trigger events
|
||
• Supports bypass mode
|
||
• Supports DMA
|
||
Table continues on the next page...
|
||
Module Functional Categories
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
66
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 67
|
||
|
||
Table 2-8. Timer modules (continued)
|
||
Module
|
||
Description
|
||
Flexible timer modules (FTM)
|
||
• Selectable FTM source clock, programmable prescaler
|
||
• 16-bit counter supporting free-running or initial/final value, and counting is up
|
||
or up-down
|
||
• Input capture, output compare, and edge-aligned and center-aligned PWM
|
||
modes
|
||
• Operation of FTM channels as pairs with equal outputs, pairs with
|
||
complimentary outputs, or independent channels with independent outputs
|
||
• Deadtime insertion is available for each complementary pair
|
||
• Generation of hardware triggers
|
||
• Software control of PWM outputs
|
||
• Up to 4 fault inputs for global fault control
|
||
• Configurable channel polarity
|
||
• Programmable interrupt on input capture, reference compare, overflowed
|
||
counter, or detected fault condition
|
||
• Quadrature decoder with input filters, relative position counting, and interrupt
|
||
on position count or capture of position count on external event
|
||
• DMA support for FTM events
|
||
Periodic interrupt timers (PIT)
|
||
• Four general purpose interrupt timers
|
||
• Interrupt timers for triggering ADC conversions
|
||
• 32-bit counter resolution
|
||
• DMA support
|
||
Low-power timer (LPTimer)
|
||
• Selectable clock for prescaler/glitch filter of 1 kHz (internal LPO), 32.768 kHz
|
||
(external crystal), or internal reference clock
|
||
• Configurable Glitch Filter or Prescaler with 16-bit counter
|
||
• 16-bit time or pulse counter with compare
|
||
• Interrupt generated on Timer Compare
|
||
• Hardware trigger generated on Timer Compare
|
||
Carrier modulator timer (CMT)
|
||
• Four CMT modes of operation:
|
||
• Time with independent control of high and low times
|
||
• Baseband
|
||
• Frequency shift key (FSK)
|
||
• Direct software control of CMT\_IRO pin
|
||
• Extended space operation in time, baseband, and FSK modes
|
||
• Selectable input clock divider
|
||
• Interrupt on end of cycle with the ability to disable CMT\_IRO pin and use as
|
||
timer interrupt
|
||
• DMA support
|
||
Real-time clock (RTC)
|
||
• Independent power supply, POR, and 32 kHz Crystal Oscillator
|
||
• 32-bit seconds counter with 32-bit Alarm
|
||
• 16-bit Prescaler with compensation that can correct errors between 0.12 ppm
|
||
and 3906 ppm
|
||
IEEE 1588 timers
|
||
• The 10/100 Ethernet module contains timers to provide IEEE 1588 time
|
||
stamping
|
||
2.2.8
|
||
Communication interfaces
|
||
The following communication interfaces are available on this device:
|
||
Chapter 2 Introduction
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
67
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 68
|
||
|
||
Table 2-9. Communication modules
|
||
Module
|
||
Description
|
||
Ethernet MAC with IEEE 1588 capability
|
||
(ENET)
|
||
10/100 MB/s Ethernet MAC (MII and RMII) with hardware support for IEEE 1588
|
||
USB OTG (low-/full-speed)
|
||
USB 2.0 compliant module with support for host, device, and On-The-Go modes.
|
||
Includes an on-chip transceiver for full and low speeds.
|
||
USB Device Charger Detect (USBDCD)
|
||
The USBDCD monitors the USB data lines to detect a smart charger meeting the
|
||
USB Battery Charging Specification Rev1.1. This information allows the MCU to
|
||
better manage the battery charging IC in a portable device.
|
||
USB voltage regulator
|
||
Up to 5 V regulator input typically provided by USB VBUS power with 3.3 V
|
||
regulated output that powers on-chip USB subsystem, capable of sourcing 120 mA
|
||
to external board components.
|
||
Controller Area Network (CAN)
|
||
Supports the full implementation of the CAN Specification Version 2.0, Part B
|
||
Serial peripheral interface (SPI)
|
||
Synchronous serial bus for communication to an external device
|
||
Inter-integrated circuit (I2C)
|
||
Allows communication between a number of devices. Also supports the System
|
||
Management Bus (SMBus) Specification, version 2.
|
||
Universal asynchronous receiver/
|
||
transmitters (UART)
|
||
Asynchronous serial bus communication interface with programmable 8- or 9-bit
|
||
data format and support of CEA709.1-B (LON), ISO 7816 smart card interface
|
||
Secure Digital host controller (SDHC)
|
||
Interface between the host system and the SD, SDIO, MMC, or CE-ATA cards.
|
||
The SDHC acts as a bridge, passing host bus transactions to the cards by sending
|
||
commands and performing data accesses to/from the cards. It handles the SD,
|
||
SDIO, MMC, and CE-ATA protocols at the transmission level.
|
||
I2S
|
||
The I2S is a full-duplex, serial port that allows the chip to communicate with a
|
||
variety of serial devices, such as standard codecs, digital signal processors
|
||
(DSPs), microprocessors, peripherals, and audio codecs that implement the inter-
|
||
IC sound bus (I2S) and the Intel® AC97 standards
|
||
2.2.9
|
||
Human-machine interfaces
|
||
The following human-machine interfaces (HMI) are available on this device:
|
||
Table 2-10. HMI modules
|
||
Module
|
||
Description
|
||
General purpose input/output (GPIO)
|
||
All general purpose input or output (GPIO) pins are capable of interrupt and DMA
|
||
request generation. All GPIO pins have 5 V tolerance.
|
||
Capacitive touch sense input (TSI)
|
||
Contains up to 16 channel inputs for capacitive touch sensing applications.
|
||
Operation is available in low-power modes via interrupts.
|
||
2.3
|
||
Orderable part numbers
|
||
The following table summarizes the part numbers of the devices covered by this
|
||
document.
|
||
Orderable part numbers
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
68
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 69
|
||
|
||
Table 2-11. Orderable part numbers summary
|
||
Freescale part number
|
||
CPU
|
||
frequenc
|
||
y
|
||
Pin
|
||
count
|
||
Package
|
||
Total
|
||
flash
|
||
memory
|
||
Program
|
||
flash
|
||
EEPROM
|
||
SRAM
|
||
GPIO
|
||
MK60DN256VLQ10
|
||
100 MHz
|
||
144
|
||
LQFP
|
||
256 KB
|
||
256 KB
|
||
—
|
||
64 KB
|
||
100
|
||
MK60DX256VLQ10
|
||
100 MHz
|
||
144
|
||
LQFP
|
||
512 KB
|
||
256 KB
|
||
4 KB
|
||
64 KB
|
||
100
|
||
MK60DN512VLQ10
|
||
100 MHz
|
||
144
|
||
LQFP
|
||
512 KB
|
||
512 KB
|
||
—
|
||
128 KB
|
||
100
|
||
MK60DN256VMD10
|
||
100 MHz
|
||
144
|
||
MAPBGA
|
||
256 KB
|
||
256 KB
|
||
—
|
||
64 KB
|
||
100
|
||
MK60DX256VMD10
|
||
100 MHz
|
||
144
|
||
MAPBGA
|
||
512 KB
|
||
256 KB
|
||
4 KB
|
||
64 KB
|
||
100
|
||
MK60DN512VMD10
|
||
100 MHz
|
||
144
|
||
MAPBGA
|
||
512 KB
|
||
512 KB
|
||
—
|
||
128 KB
|
||
100
|
||
Chapter 2 Introduction
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
69
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 70
|
||
|
||
Orderable part numbers
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
70
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 71
|
||
|
||
Chapter 3
|
||
Chip Configuration
|
||
3.1
|
||
Introduction
|
||
This chapter provides details on the individual modules of the microcontroller. It
|
||
includes:
|
||
• module block diagrams showing immediate connections within the device,
|
||
• specific module-to-module interactions not necessarily discussed in the individual
|
||
module chapters, and
|
||
• links for more information.
|
||
3.2
|
||
Core modules
|
||
3.2.1
|
||
ARM Cortex-M4 Core Configuration
|
||
This section summarizes how the module has been configured in the chip. Full
|
||
documentation for this module is provided by ARM and can be found at http://
|
||
www.arm.com.
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
71
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 72
|
||
|
||
PPB Modules
|
||
PPB
|
||
ARM Cortex-M4
|
||
Core
|
||
Debug
|
||
Interrupts
|
||
Crossbar
|
||
switch
|
||
SRAM
|
||
Upper
|
||
SRAM
|
||
Lower
|
||
Figure 3-1. Core configuration
|
||
Table 3-1. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
ARM Cortex-M4 core,
|
||
r0p1
|
||
http://www.arm.com
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
System/instruction/data
|
||
bus module
|
||
Crossbar switch
|
||
Crossbar switch
|
||
System/instruction/data
|
||
bus module
|
||
SRAM
|
||
SRAM
|
||
Debug
|
||
IEEE 1149.1 JTAG
|
||
Serial Wire Debug
|
||
(SWD)
|
||
ARM Real-Time Trace
|
||
Interface
|
||
Debug
|
||
Interrupts
|
||
Nested Vectored
|
||
Interrupt Controller
|
||
(NVIC)
|
||
NVIC
|
||
Private Peripheral Bus
|
||
(PPB) module
|
||
Miscellaneous Control
|
||
Module (MCM)
|
||
MCM
|
||
Private Peripheral Bus
|
||
(PPB) module
|
||
Memory-Mapped
|
||
Cryptographic
|
||
Acceleration Unit
|
||
(MMCAU)
|
||
MMCAU
|
||
3.2.1.1
|
||
Buses, interconnects, and interfaces
|
||
The ARM Cortex-M4 core has four buses as described in the following table.
|
||
Core modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
72
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 73
|
||
|
||
Bus name
|
||
Description
|
||
Instruction code (ICODE) bus
|
||
The ICODE and DCODE buses are muxed. This muxed bus is called the CODE bus and is
|
||
connected to the crossbar switch via a single master port. In addition, the CODE bus is also
|
||
tightly coupled to the lower half of the system RAM (SRAM\_L).
|
||
Data code (DCODE) bus
|
||
System bus
|
||
The system bus is connected to a separate master port on the crossbar. In addition, the
|
||
system bus is tightly coupled to the upper half system RAM (SRAM\_U).
|
||
Private peripheral (PPB) bus
|
||
The PPB provides access to these modules:
|
||
• ARM modules such as the NVIC, ETM, ITM, DWT, FBP, and ROM table
|
||
• Freescale Miscellaneous Control Module (MCM)
|
||
• Memory-Mapped Cryptographic Acceleration Unit (MMCAU)
|
||
3.2.1.2
|
||
System Tick Timer
|
||
The System Tick Timer's clock source is always the core clock, FCLK. This results in the
|
||
following:
|
||
• The CLKSOURCE bit in SysTick Control and Status register is always set to select
|
||
the core clock.
|
||
• Because the timing reference (FCLK) is a variable frequency, the TENMS bit in the
|
||
SysTick Calibration Value Register is always zero.
|
||
• The NOREF bit in SysTick Calibration Value Register is always set, implying that
|
||
FCLK is the only available source of reference timing.
|
||
3.2.1.3
|
||
Debug facilities
|
||
This device has extensive debug capabilities including run control and tracing
|
||
capabilities. The standard ARM debug port that supports JTAG and SWD interfaces.
|
||
Also the cJTAG interface is supported on this device.
|
||
3.2.1.4
|
||
Core privilege levels
|
||
The ARM documentation uses different terms than this document to distinguish between
|
||
privilege levels.
|
||
If you see this term...
|
||
it also means this term...
|
||
Privileged
|
||
Supervisor
|
||
Unprivileged or user
|
||
User
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
73
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 74
|
||
|
||
3.2.2
|
||
Nested Vectored Interrupt Controller (NVIC) Configuration
|
||
This section summarizes how the module has been configured in the chip. Full
|
||
documentation for this module is provided by ARM and can be found at http://
|
||
www.arm.com.
|
||
Nested Vectored
|
||
Interrupt Controller
|
||
(NVIC)
|
||
ARM Cortex-M4
|
||
core
|
||
Interrupts
|
||
Module
|
||
Module
|
||
Module
|
||
PPB
|
||
Figure 3-2. NVIC configuration
|
||
Table 3-2. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Nested Vectored
|
||
Interrupt Controller
|
||
(NVIC)
|
||
http://www.arm.com
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Private Peripheral Bus
|
||
(PPB)
|
||
ARM Cortex-M4 core
|
||
ARM Cortex-M4 core
|
||
3.2.2.1
|
||
Interrupt priority levels
|
||
This device supports 16 priority levels for interrupts. Therefore, in the NVIC each source
|
||
in the IPR registers contains 4 bits. For example, IPR0 is shown below:
|
||
31
|
||
30
|
||
29
|
||
28
|
||
27
|
||
26
|
||
25
|
||
24
|
||
23
|
||
22
|
||
21
|
||
20
|
||
19
|
||
18
|
||
17
|
||
16
|
||
15
|
||
14
|
||
13
|
||
12
|
||
11
|
||
10
|
||
9
|
||
8
|
||
7
|
||
6
|
||
5
|
||
4
|
||
3
|
||
2
|
||
1
|
||
0
|
||
R
|
||
IRQ3
|
||
0
|
||
0
|
||
0
|
||
0
|
||
IRQ2
|
||
0
|
||
0
|
||
0
|
||
0
|
||
IRQ1
|
||
0
|
||
0
|
||
0
|
||
0
|
||
IRQ0
|
||
0
|
||
0
|
||
0
|
||
0
|
||
W
|
||
3.2.2.2
|
||
Non-maskable interrupt
|
||
The non-maskable interrupt request to the NVIC is controlled by the external NMI signal.
|
||
The pin the NMI signal is multiplexed on, must be configured for the NMI function to
|
||
generate the non-maskable interrupt request.
|
||
Core modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
74
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 75
|
||
|
||
3.2.2.3
|
||
Interrupt channel assignments
|
||
The interrupt source assignments are defined in the following table.
|
||
• Vector number — the value stored on the stack when an interrupt is serviced.
|
||
• IRQ number — non-core interrupt source count, which is the vector number minus
|
||
16.
|
||
The IRQ number is used within ARM's NVIC documentation.
|
||
Table 3-4. Interrupt vector assignments
|
||
Address
|
||
Vector
|
||
IRQ1
|
||
NVIC
|
||
non-IPR
|
||
register
|
||
number
|
||
2
|
||
NVIC
|
||
IPR
|
||
register
|
||
number
|
||
3
|
||
Source module
|
||
Source description
|
||
ARM Core System Handler Vectors
|
||
0x0000\_0000
|
||
0
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Initial Stack Pointer
|
||
0x0000\_0004
|
||
1
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Initial Program Counter
|
||
0x0000\_0008
|
||
2
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Non-maskable Interrupt (NMI)
|
||
0x0000\_000C
|
||
3
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Hard Fault
|
||
0x0000\_0010
|
||
4
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
MemManage Fault
|
||
0x0000\_0014
|
||
5
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Bus Fault
|
||
0x0000\_0018
|
||
6
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Usage Fault
|
||
0x0000\_001C
|
||
7
|
||
–
|
||
–
|
||
–
|
||
—
|
||
—
|
||
0x0000\_0020
|
||
8
|
||
–
|
||
–
|
||
–
|
||
—
|
||
—
|
||
0x0000\_0024
|
||
9
|
||
–
|
||
–
|
||
–
|
||
—
|
||
—
|
||
0x0000\_0028
|
||
10
|
||
–
|
||
–
|
||
–
|
||
—
|
||
—
|
||
0x0000\_002C
|
||
11
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Supervisor call (SVCall)
|
||
0x0000\_0030
|
||
12
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Debug Monitor
|
||
0x0000\_0034
|
||
13
|
||
–
|
||
–
|
||
–
|
||
—
|
||
—
|
||
0x0000\_0038
|
||
14
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
Pendable request for system service
|
||
(PendableSrvReq)
|
||
0x0000\_003C
|
||
15
|
||
–
|
||
–
|
||
–
|
||
ARM core
|
||
System tick timer (SysTick)
|
||
Non-Core Vectors
|
||
0x0000\_0040
|
||
16
|
||
0
|
||
0
|
||
0
|
||
DMA
|
||
DMA channel 0 transfer complete
|
||
0x0000\_0044
|
||
17
|
||
1
|
||
0
|
||
0
|
||
DMA
|
||
DMA channel 1 transfer complete
|
||
0x0000\_0048
|
||
18
|
||
2
|
||
0
|
||
0
|
||
DMA
|
||
DMA channel 2 transfer complete
|
||
0x0000\_004C
|
||
19
|
||
3
|
||
0
|
||
0
|
||
DMA
|
||
DMA channel 3 transfer complete
|
||
0x0000\_0050
|
||
20
|
||
4
|
||
0
|
||
1
|
||
DMA
|
||
DMA channel 4 transfer complete
|
||
0x0000\_0054
|
||
21
|
||
5
|
||
0
|
||
1
|
||
DMA
|
||
DMA channel 5 transfer complete
|
||
0x0000\_0058
|
||
22
|
||
6
|
||
0
|
||
1
|
||
DMA
|
||
DMA channel 6 transfer complete
|
||
0x0000\_005C
|
||
23
|
||
7
|
||
0
|
||
1
|
||
DMA
|
||
DMA channel 7 transfer complete
|
||
0x0000\_0060
|
||
24
|
||
8
|
||
0
|
||
2
|
||
DMA
|
||
DMA channel 8 transfer complete
|
||
Table continues on the next page...
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
75
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 76
|
||
|
||
Table 3-4. Interrupt vector assignments (continued)
|
||
Address
|
||
Vector
|
||
IRQ1
|
||
NVIC
|
||
non-IPR
|
||
register
|
||
number
|
||
2
|
||
NVIC
|
||
IPR
|
||
register
|
||
number
|
||
3
|
||
Source module
|
||
Source description
|
||
0x0000\_0064
|
||
25
|
||
9
|
||
0
|
||
2
|
||
DMA
|
||
DMA channel 9 transfer complete
|
||
.
|
||
0x0000\_0068
|
||
26
|
||
10
|
||
0
|
||
2
|
||
DMA
|
||
DMA channel 10 transfer complete
|
||
0x0000\_006C
|
||
27
|
||
11
|
||
0
|
||
2
|
||
DMA
|
||
DMA channel 11 transfer complete
|
||
0x0000\_0070
|
||
28
|
||
12
|
||
0
|
||
3
|
||
DMA
|
||
DMA channel 12 transfer complete
|
||
0x0000\_0074
|
||
29
|
||
13
|
||
0
|
||
3
|
||
DMA
|
||
DMA channel 13 transfer complete
|
||
0x0000\_0078
|
||
30
|
||
14
|
||
0
|
||
3
|
||
DMA
|
||
DMA channel 14 transfer complete
|
||
0x0000\_007C
|
||
31
|
||
15
|
||
0
|
||
3
|
||
DMA
|
||
DMA channel 15 transfer complete
|
||
0x0000\_0080
|
||
32
|
||
16
|
||
0
|
||
4
|
||
DMA
|
||
DMA error interrupt channels 0-15
|
||
0x0000\_0084
|
||
33
|
||
17
|
||
0
|
||
4
|
||
MCM
|
||
Normal interrupt
|
||
0x0000\_0088
|
||
34
|
||
18
|
||
0
|
||
4
|
||
Flash memory
|
||
Command complete
|
||
0x0000\_008C
|
||
35
|
||
19
|
||
0
|
||
4
|
||
Flash memory
|
||
Read collision
|
||
0x0000\_0090
|
||
36
|
||
20
|
||
0
|
||
5
|
||
Mode Controller
|
||
Low-voltage detect, low-voltage warning
|
||
0x0000\_0094
|
||
37
|
||
21
|
||
0
|
||
5
|
||
LLWU
|
||
Low Leakage Wakeup
|
||
NOTE: The LLWU interrupt must not be
|
||
masked by the interrupt
|
||
controller to avoid a scenario
|
||
where the system does not fully
|
||
exit stop mode on an LLS
|
||
recovery.
|
||
0x0000\_0098
|
||
38
|
||
22
|
||
0
|
||
5
|
||
WDOG or EWM
|
||
Both watchdog modules share this
|
||
interrupt.
|
||
0x0000\_009C
|
||
39
|
||
23
|
||
0
|
||
5
|
||
RNG
|
||
Randon Number Generator
|
||
0x0000\_00A0
|
||
40
|
||
24
|
||
0
|
||
6
|
||
I2C0
|
||
—
|
||
0x0000\_00A4
|
||
41
|
||
25
|
||
0
|
||
6
|
||
I2C1
|
||
—
|
||
0x0000\_00A8
|
||
42
|
||
26
|
||
0
|
||
6
|
||
SPI0
|
||
Single interrupt vector for all sources
|
||
0x0000\_00AC
|
||
43
|
||
27
|
||
0
|
||
6
|
||
SPI1
|
||
Single interrupt vector for all sources
|
||
0x0000\_00B0
|
||
44
|
||
28
|
||
0
|
||
7
|
||
SPI2
|
||
Single interrupt vector for all sources
|
||
0x0000\_00B4
|
||
45
|
||
29
|
||
0
|
||
7
|
||
CAN0
|
||
OR'ed Message buffer (0-15)
|
||
0x0000\_00B8
|
||
46
|
||
30
|
||
0
|
||
7
|
||
CAN0
|
||
Bus Off
|
||
0x0000\_00BC
|
||
47
|
||
31
|
||
0
|
||
7
|
||
CAN0
|
||
Error
|
||
0x0000\_00C0
|
||
48
|
||
32
|
||
1
|
||
8
|
||
CAN0
|
||
Transmit Warning
|
||
0x0000\_00C4
|
||
49
|
||
33
|
||
1
|
||
8
|
||
CAN0
|
||
Receive Warning
|
||
0x0000\_00C8
|
||
50
|
||
34
|
||
1
|
||
8
|
||
CAN0
|
||
Wake Up
|
||
0x0000\_00CC
|
||
51
|
||
35
|
||
1
|
||
8
|
||
I2S0
|
||
Transmit
|
||
0x0000\_00D0
|
||
52
|
||
36
|
||
1
|
||
9
|
||
I2S0
|
||
Receive
|
||
0x0000\_00D4
|
||
53
|
||
37
|
||
1
|
||
9
|
||
CAN1
|
||
OR'ed Message buffer (0-15)
|
||
0x0000\_00D8
|
||
54
|
||
38
|
||
1
|
||
9
|
||
CAN1
|
||
Bus off
|
||
Table continues on the next page...
|
||
Core modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
76
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 77
|
||
|
||
Table 3-4. Interrupt vector assignments (continued)
|
||
Address
|
||
Vector
|
||
IRQ1
|
||
NVIC
|
||
non-IPR
|
||
register
|
||
number
|
||
2
|
||
NVIC
|
||
IPR
|
||
register
|
||
number
|
||
3
|
||
Source module
|
||
Source description
|
||
0x0000\_00DC
|
||
55
|
||
39
|
||
1
|
||
9
|
||
CAN1
|
||
Error
|
||
0x0000\_00E0
|
||
56
|
||
40
|
||
1
|
||
10
|
||
CAN1
|
||
Transmit Warning
|
||
0x0000\_00E4
|
||
57
|
||
41
|
||
1
|
||
10
|
||
CAN1
|
||
Receive Warning
|
||
0x0000\_00E8
|
||
58
|
||
42
|
||
1
|
||
10
|
||
CAN1
|
||
Wake Up
|
||
0x0000\_00EC
|
||
59
|
||
43
|
||
1
|
||
10
|
||
—
|
||
—
|
||
0x0000\_00F0
|
||
60
|
||
44
|
||
1
|
||
11
|
||
UART0
|
||
Single interrupt vector for UART LON
|
||
sources
|
||
0x0000\_00F4
|
||
61
|
||
45
|
||
1
|
||
11
|
||
UART0
|
||
Single interrupt vector for UART status
|
||
sources
|
||
0x0000\_00F8
|
||
62
|
||
46
|
||
1
|
||
11
|
||
UART0
|
||
Single interrupt vector for UART error
|
||
sources
|
||
0x0000\_00FC
|
||
63
|
||
47
|
||
1
|
||
11
|
||
UART1
|
||
Single interrupt vector for UART status
|
||
sources
|
||
0x0000\_0100
|
||
64
|
||
48
|
||
1
|
||
12
|
||
UART1
|
||
Single interrupt vector for UART error
|
||
sources
|
||
0x0000\_0104
|
||
65
|
||
49
|
||
1
|
||
12
|
||
UART2
|
||
Single interrupt vector for UART status
|
||
sources
|
||
0x0000\_0108
|
||
66
|
||
50
|
||
1
|
||
12
|
||
UART2
|
||
Single interrupt vector for UART error
|
||
sources
|
||
0x0000\_010C
|
||
67
|
||
51
|
||
1
|
||
12
|
||
UART3
|
||
Single interrupt vector for UART status
|
||
sources
|
||
0x0000\_0110
|
||
68
|
||
52
|
||
1
|
||
13
|
||
UART3
|
||
Single interrupt vector for UART error
|
||
sources
|
||
0x0000\_0114
|
||
69
|
||
53
|
||
1
|
||
13
|
||
UART4
|
||
Single interrupt vector for UART status
|
||
sources
|
||
0x0000\_0118
|
||
70
|
||
54
|
||
1
|
||
13
|
||
UART4
|
||
Single interrupt vector for UART error
|
||
sources
|
||
0x0000\_011C
|
||
71
|
||
55
|
||
1
|
||
13
|
||
UART5
|
||
Single interrupt vector for UART status
|
||
sources
|
||
0x0000\_0120
|
||
72
|
||
56
|
||
1
|
||
14
|
||
UART5
|
||
Single interrupt vector for UART error
|
||
sources
|
||
0x0000\_0124
|
||
73
|
||
57
|
||
1
|
||
14
|
||
ADC0
|
||
—
|
||
0x0000\_0128
|
||
74
|
||
58
|
||
1
|
||
14
|
||
ADC1
|
||
—
|
||
0x0000\_012C
|
||
75
|
||
59
|
||
1
|
||
14
|
||
CMP0
|
||
—
|
||
0x0000\_0130
|
||
76
|
||
60
|
||
1
|
||
15
|
||
CMP1
|
||
—
|
||
0x0000\_0134
|
||
77
|
||
61
|
||
1
|
||
15
|
||
CMP2
|
||
—
|
||
0x0000\_0138
|
||
78
|
||
62
|
||
1
|
||
15
|
||
FTM0
|
||
Single interrupt vector for all sources
|
||
0x0000\_013C
|
||
79
|
||
63
|
||
1
|
||
15
|
||
FTM1
|
||
Single interrupt vector for all sources
|
||
0x0000\_0140
|
||
80
|
||
64
|
||
2
|
||
16
|
||
FTM2
|
||
Single interrupt vector for all sources
|
||
0x0000\_0144
|
||
81
|
||
65
|
||
2
|
||
16
|
||
CMT
|
||
—
|
||
Table continues on the next page...
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
77
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 78
|
||
|
||
Table 3-4. Interrupt vector assignments (continued)
|
||
Address
|
||
Vector
|
||
IRQ1
|
||
NVIC
|
||
non-IPR
|
||
register
|
||
number
|
||
2
|
||
NVIC
|
||
IPR
|
||
register
|
||
number
|
||
3
|
||
Source module
|
||
Source description
|
||
0x0000\_0148
|
||
82
|
||
66
|
||
2
|
||
16
|
||
RTC
|
||
Alarm interrupt
|
||
0x0000\_014C
|
||
83
|
||
67
|
||
2
|
||
16
|
||
RTC
|
||
Seconds interrupt
|
||
0x0000\_0150
|
||
84
|
||
68
|
||
2
|
||
17
|
||
PIT
|
||
Channel 0
|
||
0x0000\_0154
|
||
85
|
||
69
|
||
2
|
||
17
|
||
PIT
|
||
Channel 1
|
||
0x0000\_0158
|
||
86
|
||
70
|
||
2
|
||
17
|
||
PIT
|
||
Channel 2
|
||
0x0000\_015C
|
||
87
|
||
71
|
||
2
|
||
17
|
||
PIT
|
||
Channel 3
|
||
0x0000\_0160
|
||
88
|
||
72
|
||
2
|
||
18
|
||
PDB
|
||
—
|
||
0x0000\_0164
|
||
89
|
||
73
|
||
2
|
||
18
|
||
USB OTG
|
||
—
|
||
0x0000\_0168
|
||
90
|
||
74
|
||
2
|
||
18
|
||
USB Charger
|
||
Detect
|
||
—
|
||
0x0000\_016C
|
||
91
|
||
75
|
||
2
|
||
18
|
||
Ethernet MAC
|
||
IEEE 1588 Timer Interrupt
|
||
0x0000\_0170
|
||
92
|
||
76
|
||
2
|
||
19
|
||
Ethernet MAC
|
||
Transmit interrupt
|
||
0x0000\_0174
|
||
93
|
||
77
|
||
2
|
||
19
|
||
Ethernet MAC
|
||
Receive interrupt
|
||
0x0000\_0178
|
||
94
|
||
78
|
||
2
|
||
19
|
||
Ethernet MAC
|
||
Error and miscellaneous interrupt
|
||
0x0000\_017C
|
||
95
|
||
79
|
||
2
|
||
19
|
||
—
|
||
—
|
||
0x0000\_0180
|
||
96
|
||
80
|
||
2
|
||
20
|
||
SDHC
|
||
—
|
||
0x0000\_0184
|
||
97
|
||
81
|
||
2
|
||
20
|
||
DAC0
|
||
—
|
||
0x0000\_0188
|
||
98
|
||
82
|
||
2
|
||
20
|
||
DAC1
|
||
—
|
||
0x0000\_018C
|
||
99
|
||
83
|
||
2
|
||
20
|
||
TSI
|
||
Single interrupt vector for all sources
|
||
0x0000\_0190
|
||
100
|
||
84
|
||
2
|
||
21
|
||
MCG
|
||
—
|
||
0x0000\_0194
|
||
101
|
||
85
|
||
2
|
||
21
|
||
Low Power Timer
|
||
—
|
||
0x0000\_0198
|
||
102
|
||
86
|
||
2
|
||
21
|
||
—
|
||
—
|
||
0x0000\_019C
|
||
103
|
||
87
|
||
2
|
||
21
|
||
Port control module Pin detect (Port A)
|
||
0x0000\_01A0
|
||
104
|
||
88
|
||
2
|
||
22
|
||
Port control module Pin detect (Port B)
|
||
0x0000\_01A4
|
||
105
|
||
89
|
||
2
|
||
22
|
||
Port control module Pin detect (Port C)
|
||
0x0000\_01A8
|
||
106
|
||
90
|
||
2
|
||
22
|
||
Port control module Pin detect (Port D)
|
||
0x0000\_01AC
|
||
107
|
||
91
|
||
2
|
||
22
|
||
Port control module Pin detect (Port E)
|
||
0x0000\_01B0
|
||
108
|
||
92
|
||
2
|
||
23
|
||
—
|
||
—
|
||
0x0000\_01B4
|
||
109
|
||
93
|
||
2
|
||
23
|
||
—
|
||
—
|
||
0x0000\_01B8
|
||
110
|
||
94
|
||
2
|
||
23
|
||
Software
|
||
Software interrupt4
|
||
1.
|
||
Indicates the NVIC's interrupt source number.
|
||
2.
|
||
Indicates the NVIC's ISER, ICER, ISPR, ICPR, and IABR register number used for this IRQ. The equation to calculate this
|
||
value is: IRQ div 32
|
||
3.
|
||
Indicates the NVIC's IPR register number used for this IRQ. The equation to calculate this value is: IRQ div 4
|
||
4.
|
||
This interrupt can only be pended or cleared via the NVIC registers.
|
||
Core modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
78
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 79
|
||
|
||
3.2.2.3.1
|
||
Determining the bitfield and register location for configuring a
|
||
particular interrupt
|
||
Suppose you need to configure the low-power timer (LPTMR) interrupt. The following
|
||
table is an excerpt of the LPTMR row from Interrupt channel assignments.
|
||
Table 3-5. LPTMR interrupt vector assignment
|
||
Address
|
||
Vector
|
||
IRQ1
|
||
NVIC
|
||
non-IPR
|
||
register
|
||
number
|
||
2
|
||
NVIC
|
||
IPR
|
||
register
|
||
number
|
||
3
|
||
Source module
|
||
Source description
|
||
0x0000\_0194
|
||
101
|
||
85
|
||
2
|
||
21
|
||
Low Power Timer
|
||
—
|
||
1.
|
||
Indicates the NVIC's interrupt source number.
|
||
2.
|
||
Indicates the NVIC's ISER, ICER, ISPR, ICPR, and IABR register number used for this IRQ. The equation to calculate this
|
||
value is: IRQ div 32
|
||
3.
|
||
Indicates the NVIC's IPR register number used for this IRQ. The equation to calculate this value is: IRQ div 4
|
||
• The NVIC registers you would use to configure the interrupt are:
|
||
• NVICISER2
|
||
• NVICICER2
|
||
• NVICISPR2
|
||
• NVICICPR2
|
||
• NVICIABR2
|
||
• NVICIPR21
|
||
• To determine the particular IRQ's bitfield location within these particular registers:
|
||
• NVICISER2, NVICICER2, NVICISPR2, NVICICPR2, NVICIABR2 bit
|
||
location = IRQ mod 32 = 21
|
||
• NVICIPR21 bitfield starting location = 8 * (IRQ mod 4) + 4 = 12
|
||
Since the NVICIPR bitfields are 4-bit wide (16 priority levels), the NVICIPR21
|
||
bitfield range is 12-15
|
||
Therefore, the following bitfield locations are used to configure the LPTMR interrupts:
|
||
• NVICISER2[21]
|
||
• NVICICER2[21]
|
||
• NVICISPR2[21]
|
||
• NVICICPR2[21]
|
||
• NVICIABR2[21]
|
||
• NVICIPR21[15:12]
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
79
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 80
|
||
|
||
3.2.3
|
||
Asynchronous Wake-up Interrupt Controller (AWIC)
|
||
Configuration
|
||
This section summarizes how the module has been configured in the chip. Full
|
||
documentation for this module is provided by ARM and can be found at http://
|
||
www.arm.com.
|
||
Asynchronous
|
||
Wake-up Interrupt
|
||
Controller (AWIC)
|
||
Nested vectored
|
||
interrupt controller
|
||
(NVIC)
|
||
Wake-up
|
||
requests
|
||
Module
|
||
Module
|
||
Clock logic
|
||
Figure 3-3. Asynchronous Wake-up Interrupt Controller configuration
|
||
Table 3-6. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Nested Vectored
|
||
Interrupt Controller
|
||
(NVIC)
|
||
NVIC
|
||
Wake-up requests
|
||
AWIC wake-up sources
|
||
3.2.3.1
|
||
Wake-up sources
|
||
The device uses the following internal and external inputs to the AWIC module.
|
||
Table 3-7. AWIC Stop and VLPS Wake-up Sources
|
||
Wake-up source
|
||
Description
|
||
Available system resets
|
||
RESET pin and WDOG when LPO is its clock source, and JTAG
|
||
Low-voltage detect
|
||
Mode Controller
|
||
Low-voltage warning
|
||
Mode Controller
|
||
Pin interrupts
|
||
Port Control Module - Any enabled pin interrupt is capable of waking the system
|
||
ADCx
|
||
The ADC is functional when using internal clock source
|
||
CMPx
|
||
Since no system clocks are available, functionality is limited
|
||
I2C
|
||
Address match wakeup
|
||
Table continues on the next page...
|
||
Core modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
80
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 81
|
||
|
||
Table 3-7. AWIC Stop and VLPS Wake-up Sources (continued)
|
||
Wake-up source
|
||
Description
|
||
UART
|
||
Active edge on RXD
|
||
USB
|
||
Wakeup
|
||
LPTMR
|
||
Functional in Stop/VLPS modes
|
||
RTC
|
||
Functional in Stop/VLPS modes
|
||
Ethernet
|
||
Magic Packet wakeup
|
||
SDHC
|
||
Wakeup
|
||
I2S
|
||
Functional when using an external bit clock or external master clock
|
||
1588 Timer
|
||
Wakeup
|
||
TSI
|
||
CAN
|
||
NMI
|
||
Non-maskable interrupt
|
||
3.2.4
|
||
JTAG Controller Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Signal multiplexing
|
||
JTAG controller
|
||
cJTAG
|
||
Figure 3-4. JTAGC Controller configuration
|
||
Table 3-8. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
JTAGC
|
||
JTAGC
|
||
Signal multiplexing
|
||
Port control
|
||
Signal multiplexing
|
||
3.3
|
||
System modules
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
81
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 82
|
||
|
||
3.3.1
|
||
SIM Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Register
|
||
access
|
||
Peripheral
|
||
bridge
|
||
System integration
|
||
module (SIM)
|
||
Figure 3-5. SIM configuration
|
||
Table 3-9. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
SIM
|
||
SIM
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
3.3.2
|
||
System Mode Controller (SMC) Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
82
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 83
|
||
|
||
Power Management
|
||
Controller (PMC)
|
||
Register
|
||
access
|
||
Peripheral
|
||
bridge
|
||
System Mode
|
||
Controller (SMC)
|
||
Resets
|
||
Figure 3-6. System Mode Controller configuration
|
||
Table 3-10. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
System Mode
|
||
Controller (SMC)
|
||
SMC
|
||
System memory map
|
||
System memory map
|
||
Power management
|
||
Power management
|
||
Power management
|
||
controller (PMC)
|
||
PMC
|
||
Low-Leakage Wakeup
|
||
Unit (LLWU)
|
||
LLWU
|
||
Reset Control Module
|
||
(RCM)
|
||
Reset
|
||
3.3.3
|
||
PMC Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
83
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 84
|
||
|
||
Register access
|
||
Power Management
|
||
Controller (PMC)
|
||
Module
|
||
signals
|
||
Peripheral
|
||
bridge
|
||
Module
|
||
signals
|
||
System Mode
|
||
Controller (SMC)
|
||
Low-Leakage
|
||
Wakeup Unit
|
||
Figure 3-7. PMC configuration
|
||
Table 3-11. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
PMC
|
||
PMC
|
||
System memory map
|
||
System memory map
|
||
Power management
|
||
Power management
|
||
Full description
|
||
System Mode
|
||
Controller (SMC)
|
||
System Mode Controller
|
||
Low-Leakage Wakeup
|
||
Unit (LLWU)
|
||
LLWU
|
||
Reset Control Module
|
||
(RCM)
|
||
Reset
|
||
3.3.4
|
||
Low-Leakage Wake-up Unit (LLWU) Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
84
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 85
|
||
|
||
Low-Leakage Wake-up
|
||
Unit (LLWU)
|
||
Power Management
|
||
Controller (PMC)
|
||
Peripheral
|
||
bridge 0
|
||
Register
|
||
access
|
||
Wake-up
|
||
requests
|
||
Module
|
||
Module
|
||
Figure 3-8. Low-Leakage Wake-up Unit configuration
|
||
Table 3-12. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
LLWU
|
||
LLWU
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management chapter
|
||
Power Management
|
||
Controller (PMC)
|
||
Power Management Controller (PMC)
|
||
Mode Controller
|
||
Mode Controller
|
||
Wake-up requests
|
||
LLWU wake-up sources
|
||
3.3.4.1
|
||
Wake-up Sources
|
||
This chip uses the following internal peripheral and external pin inputs as wakeup
|
||
sources to the LLWU module:
|
||
• LLWU\_P0-15 are external pin inputs. Any digital function multiplexed on the pin
|
||
can be selected as the wakeup source. See the chip's signal multiplexing table for the
|
||
digital signal options.
|
||
• LLWU\_M0IF-M7IF are connections to the internal peripheral interrupt flags.
|
||
NOTE
|
||
RESET is also a wakeup source, depending on the bit setting in
|
||
the LLWU\_RST register. On devices where RESET is not a
|
||
dedicated pin, it must also be enabled in the explicit port mux
|
||
control.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
85
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 86
|
||
|
||
Table 3-13. Wakeup sources for LLWU inputs
|
||
Input
|
||
Wakeup source
|
||
Input
|
||
Wakeup source
|
||
LLWU\_P0
|
||
PTE1/LLWU\_P0 pin
|
||
LLWU\_P12
|
||
PTD0/LLWU\_P12 pin
|
||
LLWU\_P1
|
||
PTE2/LLWU\_P1 pin
|
||
LLWU\_P13
|
||
PTD2/LLWU\_P13 pin
|
||
LLWU\_P2
|
||
PTE4/LLWU\_P2 pin
|
||
LLWU\_P14
|
||
PTD4/LLWU\_P14 pin
|
||
LLWU\_P3
|
||
PTA4/LLWU\_P3 pin1
|
||
LLWU\_P15
|
||
PTD6/LLWU\_P15 pin
|
||
LLWU\_P4
|
||
PTA13/LLWU\_P4 pin
|
||
LLWU\_M0IF
|
||
LPTMR2
|
||
LLWU\_P5
|
||
PTB0/LLWU\_P5 pin
|
||
LLWU\_M1IF
|
||
CMP02
|
||
LLWU\_P6
|
||
PTC1/LLWU\_P6 pin
|
||
LLWU\_M2IF
|
||
CMP12
|
||
LLWU\_P7
|
||
PTC3/LLWU\_P7 pin
|
||
LLWU\_M3IF
|
||
CMP22
|
||
LLWU\_P8
|
||
PTC4/LLWU\_P8 pin
|
||
LLWU\_M4IF
|
||
TSI2
|
||
LLWU\_P9
|
||
PTC5/LLWU\_P9 pin
|
||
LLWU\_M5IF
|
||
RTC Alarm2
|
||
LLWU\_P10
|
||
PTC6/LLWU\_P10 pin
|
||
LLWU\_M6IF
|
||
Reserved
|
||
LLWU\_P11
|
||
PTC11/LLWU\_P11 pin
|
||
LLWU\_M7IF
|
||
RTC Seconds2
|
||
1.
|
||
The EZP\_CS signal is checked only on Chip Reset not VLLS, so a VLLS wakeup via a non-reset source does not cause
|
||
EzPort mode entry. If NMI was enabled on entry to LLS/VLLS, asserting the NMI pin generates an NMI interrupt on exit
|
||
from the low power mode. NMI can also be disabled via the FOPT[NMI\_DIS] bit.
|
||
2.
|
||
Requires the peripheral and the peripheral interrupt to be enabled. The LLWU's WUME bit enables the internal module flag
|
||
as a wakeup input. After wakeup, the flags are cleared based on the peripheral clearing mechanism.
|
||
3.3.5
|
||
MCM Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Miscellaneous
|
||
Control Module
|
||
(MCM)
|
||
Transfers
|
||
ARM Cortex-M4
|
||
core
|
||
PPB
|
||
Figure 3-9. MCM configuration
|
||
Table 3-14. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Miscellaneous control
|
||
module (MCM)
|
||
MCM
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Transfers
|
||
Private Peripheral Bus
|
||
(PPB)
|
||
ARM Cortex-M4 core
|
||
ARM Cortex-M4 core
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
86
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 87
|
||
|
||
3.3.6
|
||
Crossbar Switch Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Crossbar Switch
|
||
Slave Modules
|
||
SDHC
|
||
Master Modules
|
||
M2
|
||
M5
|
||
M0
|
||
M1
|
||
S0
|
||
S3
|
||
ARM core
|
||
code bus
|
||
ARM core
|
||
system bus
|
||
DMA
|
||
EzPort
|
||
Mux
|
||
Flash
|
||
controller
|
||
S1
|
||
SRAM
|
||
backdoor
|
||
S2
|
||
Peripheral
|
||
bridge 0
|
||
Memory protection unit
|
||
(MPU)
|
||
Mux
|
||
Peripheral
|
||
bridge 1
|
||
GPIO
|
||
controller
|
||
S4
|
||
FlexBus
|
||
MPU
|
||
USB
|
||
M4
|
||
Ethernet
|
||
M3
|
||
Figure 3-10. Crossbar switch configuration
|
||
Table 3-15. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Crossbar switch
|
||
Crossbar Switch
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock Distribution
|
||
Memory protection
|
||
MPU
|
||
MPU
|
||
Crossbar switch master
|
||
ARM Cortex-M4 core
|
||
ARM Cortex-M4 core
|
||
Crossbar switch master
|
||
DMA controller
|
||
DMA controller
|
||
Table continues on the next page...
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
87
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 88
|
||
|
||
Table 3-15. Reference links to related information (continued)
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Crossbar switch master
|
||
EzPort
|
||
EzPort
|
||
Crossbar switch master
|
||
Ethernet
|
||
Ethernet
|
||
Crossbar switch master
|
||
USB FS/LS
|
||
USB FS/LS
|
||
Crossbar switch master
|
||
SDHC
|
||
SDHC
|
||
Crossbar switch slave
|
||
Flash
|
||
Flash
|
||
Crossbar switch slave
|
||
SRAM backdoor
|
||
SRAM backdoor
|
||
Crossbar switch slave
|
||
Peripheral bridges
|
||
Peripheral bridge
|
||
Crossbar switch slave
|
||
GPIO controller
|
||
GPIO controller
|
||
Crossbar switch slave
|
||
FlexBus
|
||
FlexBus
|
||
3.3.6.1
|
||
Crossbar Switch Master Assignments
|
||
The masters connected to the crossbar switch are assigned as follows:
|
||
Master module
|
||
Master port number
|
||
ARM core code bus
|
||
0
|
||
ARM core system bus
|
||
1
|
||
DMA/EzPort
|
||
2
|
||
Ethernet
|
||
3
|
||
USB OTG
|
||
4
|
||
SDHC
|
||
5
|
||
NOTE
|
||
The DMA and EzPort share a master port. Since these modules
|
||
never operate at the same time, no configuration or arbitration
|
||
explanations are necessary.
|
||
3.3.6.2
|
||
Crossbar Switch Slave Assignments
|
||
The slaves connected to the crossbar switch are assigned as follows:
|
||
Slave module
|
||
Slave port number
|
||
Protected by MPU?
|
||
Flash memory controller
|
||
0
|
||
Yes
|
||
SRAM backdoor
|
||
1
|
||
Yes
|
||
Peripheral bridge 01
|
||
2
|
||
No. Protection built into bridge.
|
||
Peripheral bridge 1/GPIO1
|
||
3
|
||
No. Protection built into bridge.
|
||
FlexBus
|
||
4
|
||
Yes
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
88
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 89
|
||
|
||
1.
|
||
See System memory map for access restrictions.
|
||
3.3.6.3
|
||
PRS register reset values
|
||
The AXBS\_PRSn registers reset to 0054\_3210h.
|
||
3.3.7
|
||
Memory Protection Unit (MPU) Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Memory Protection
|
||
Unit (MPU)
|
||
Transfers
|
||
Slave
|
||
Slave
|
||
Slave
|
||
Peripheral
|
||
bridge 0
|
||
Register
|
||
access
|
||
Transfers
|
||
Logical
|
||
Master
|
||
Logical
|
||
Master
|
||
Logical
|
||
Master
|
||
Figure 3-11. Memory Protection Unit configuration
|
||
Table 3-16. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Memory Protection Unit
|
||
(MPU)
|
||
MPU
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Logical masters
|
||
Logical master assignments
|
||
Slave modules
|
||
Slave module assignments
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
89
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 90
|
||
|
||
3.3.7.1
|
||
MPU Slave Port Assignments
|
||
The memory-mapped resources protected by the MPU are:
|
||
Table 3-17. MPU Slave Port Assignments
|
||
Source
|
||
MPU Slave Port Assignment
|
||
Destination
|
||
Crossbar slave port 0
|
||
MPU slave port 0
|
||
Flash Controller
|
||
Crossbar slave port 1
|
||
MPU slave port 1
|
||
SRAM backdoor
|
||
Code Bus
|
||
MPU slave port 2
|
||
SRAM\_L frontdoor
|
||
System Bus
|
||
MPU slave port 3
|
||
SRAM\_U frontdoor
|
||
Crossbar slave port 4
|
||
MPU slave port 4
|
||
FlexBus
|
||
3.3.7.2
|
||
MPU Logical Bus Master Assignments
|
||
The logical bus master assignments for the MPU are:
|
||
Table 3-18. MPU Logical Bus Master Assignments
|
||
MPU Logical Bus Master Number
|
||
Bus Master
|
||
0
|
||
Core
|
||
1
|
||
Debugger
|
||
2
|
||
DMA
|
||
3
|
||
ENET
|
||
4
|
||
USB
|
||
5
|
||
SDHC
|
||
6
|
||
none
|
||
7
|
||
none
|
||
3.3.7.3
|
||
MPU Access Violation Indications
|
||
Access violations detected by the MPU are signaled to the appropriate bus master as
|
||
shown below:
|
||
Table 3-19. Access Violation Indications
|
||
Bus Master
|
||
Core Indication
|
||
Core
|
||
Bus fault (interrupt vector \#5) Note: To enable bus faults set the core's System
|
||
Handler Control and State Register's BUSFAULTENA bit. If this bit is not set, MPU
|
||
violations result in a hard fault (interrupt vector \#3).
|
||
Debugger
|
||
The STICKYERROR flag is set in the Debug Port Control/Status Register.
|
||
DMA
|
||
Interrupt vector \#32
|
||
Ethernet
|
||
Interrupt vector \#94
|
||
Table continues on the next page...
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
90
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 91
|
||
|
||
Table 3-19. Access Violation Indications (continued)
|
||
Bus Master
|
||
Core Indication
|
||
USB\_OTG
|
||
Interrupt vector \#89
|
||
SDHC
|
||
Interrupt vector \#96
|
||
3.3.7.4
|
||
Reset Values for RGD0 Registers
|
||
At reset, the MPU is enabled with a single region descriptor (RGD0) that maps the entire
|
||
4 GB address space with read, write and execute permissions given to the core, debugger
|
||
and the DMA bus masters.
|
||
The following table shows the chip-specific reset values for RGD0 and RGDAAC0.
|
||
Table 3-20. Reset Values for RGD0 Registers
|
||
Register
|
||
Reset value
|
||
RGD0\_WORD0
|
||
0000\_0000h
|
||
RGD0\_WORD1
|
||
FFFF\_FFFFh
|
||
RGD0\_WORD2
|
||
0061\_F7DFh
|
||
RGD0\_WORD3
|
||
0000\_0001h
|
||
RGDAAC0
|
||
0061\_F7DFh
|
||
3.3.7.5
|
||
Write Access Restrictions for RGD0 Registers
|
||
In addition to configuring the initial state of RGD0, the MPU implements further access
|
||
control on writes to the RGD0 registers. Specifically, the MPU assigns a priority scheme
|
||
where the debugger is treated as the highest priority master followed by the core and then
|
||
all the remaining masters.
|
||
The MPU does not allow writes from the core to affect the RGD0 start or end addresses
|
||
nor the permissions associated with the debugger; it can only write the permission fields
|
||
associated with the other masters.
|
||
These protections (summarized below) guarantee that the debugger always has access to
|
||
the entire address space and those rights cannot be changed by the core or any other bus
|
||
master.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
91
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 92
|
||
|
||
Table 3-21. Write Access to RGD0 Registers
|
||
Bus Master
|
||
Write Access?
|
||
Core
|
||
Partial. The Core cannot write to the following registers or
|
||
register fields:
|
||
• RGD0\_WORD0, RGD0\_WORD1, RGD0\_WORD3
|
||
• RGD0\_WORD2[M1SM, M1UM]
|
||
• RGDAAC0[M1SM, M1UM]
|
||
NOTE: Changes to the RGD0\_WORD2 alterable fields
|
||
should be done via a write to RGDAAC0.
|
||
Debugger
|
||
Yes
|
||
All other masters
|
||
No
|
||
3.3.8
|
||
Peripheral Bridge Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Peripherals
|
||
Transfers
|
||
AIPS-Lite
|
||
peripheral bridge
|
||
Transfers
|
||
Crossbar switch
|
||
Figure 3-12. Peripheral bridge configuration
|
||
Table 3-22. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Peripheral bridge
|
||
(AIPS-Lite)
|
||
Peripheral bridge (AIPS-Lite)
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock Distribution
|
||
Crossbar switch
|
||
Crossbar switch
|
||
Crossbar switch
|
||
3.3.8.1
|
||
Number of peripheral bridges
|
||
This device contains two identical peripheral bridges.
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
92
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 93
|
||
|
||
3.3.8.2
|
||
Memory maps
|
||
The peripheral bridges are used to access the registers of most of the modules on this
|
||
device. See AIPS0 Memory Map and AIPS1 Memory Map for the memory slot
|
||
assignment for each module.
|
||
3.3.8.3
|
||
MPRA register
|
||
Each of the two peripheral bridges supports up to 8 crossbar switch masters, each
|
||
assigned to a MPROTx field in the MPRA register. However, fewer are supported on this
|
||
device. See Crossbar switch for details of the master port assignments for this device.
|
||
3.3.8.4
|
||
AIPS\_Lite MPRA register reset value
|
||
• AIPSx\_MPRA reset value is 0x7770\_0000
|
||
Therefore, masters 0, 1, and 2 are trusted bus masters after reset.
|
||
3.3.8.5
|
||
PACR registers
|
||
Each of the two peripheral bridges support up to 128 peripherals each assigned to an
|
||
PACRx field within the PACRA-PACRP registers. However, fewer peripherals are
|
||
supported on this device. See AIPS0 Memory MapandAIPS1 Memory Map for details of
|
||
the peripheral slot assignments for this device. Unused PACRx fields are reserved.
|
||
3.3.8.6
|
||
AIPS\_Lite PACRE-P register reset values
|
||
The AIPSx\_PACRE-P reset values depend on if the module is available on your
|
||
particular device. For each populated slot in slots 32-127 in Peripheral Bridge 0 (AIPS-
|
||
Lite 0) Memory Map and Peripheral Bridge 1 (AIPS-Lite 1) Memory Map, the
|
||
corresponding module's PACR[32:127] field resets to 0x4.
|
||
3.3.9
|
||
DMA request multiplexer configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
93
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 94
|
||
|
||
DMA Request
|
||
Multiplexer
|
||
DMA controller
|
||
Requests
|
||
Module
|
||
Module
|
||
Module
|
||
Peripheral
|
||
bridge 0
|
||
Register
|
||
access
|
||
Channel
|
||
request
|
||
Figure 3-13. DMA request multiplexer configuration
|
||
Table 3-23. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
DMA request
|
||
multiplexer
|
||
DMA Mux
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Channel request
|
||
DMA controller
|
||
DMA Controller
|
||
Requests
|
||
DMA request sources
|
||
3.3.9.1
|
||
DMA MUX request sources
|
||
This device includes a DMA request mux that allows up to 63 DMA request signals to be
|
||
mapped to any of the 16 DMA channels.
|
||
Because of the mux there is not a hard correlation between any of the DMA request
|
||
sources and a specific DMA channel.
|
||
Table 3-24. DMA request sources - MUX 0
|
||
Source
|
||
number
|
||
Source module
|
||
Source description
|
||
0
|
||
—
|
||
Channel disabled1
|
||
1
|
||
Reserved
|
||
Not used
|
||
2
|
||
UART0
|
||
Receive
|
||
3
|
||
UART0
|
||
Transmit
|
||
4
|
||
UART1
|
||
Receive
|
||
5
|
||
UART1
|
||
Transmit
|
||
6
|
||
UART2
|
||
Receive
|
||
7
|
||
UART2
|
||
Transmit
|
||
8
|
||
UART3
|
||
Receive
|
||
Table continues on the next page...
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
94
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 95
|
||
|
||
Table 3-24. DMA request sources - MUX 0 (continued)
|
||
Source
|
||
number
|
||
Source module
|
||
Source description
|
||
9
|
||
UART3
|
||
Transmit
|
||
10
|
||
UART4
|
||
Receive
|
||
11
|
||
UART4
|
||
Transmit
|
||
12
|
||
UART5
|
||
Receive
|
||
13
|
||
UART5
|
||
Transmit
|
||
14
|
||
I2S0
|
||
Receive
|
||
15
|
||
I2S0
|
||
Transmit
|
||
16
|
||
SPI0
|
||
Receive
|
||
17
|
||
SPI0
|
||
Transmit
|
||
18
|
||
SPI1
|
||
Receive
|
||
19
|
||
SPI1
|
||
Transmit
|
||
20
|
||
SPI2
|
||
Receive
|
||
21
|
||
SPI2
|
||
Transmit
|
||
22
|
||
I2C0
|
||
—
|
||
23
|
||
I2C1
|
||
—
|
||
24
|
||
FTM0
|
||
Channel 0
|
||
25
|
||
FTM0
|
||
Channel 1
|
||
26
|
||
FTM0
|
||
Channel 2
|
||
27
|
||
FTM0
|
||
Channel 3
|
||
28
|
||
FTM0
|
||
Channel 4
|
||
29
|
||
FTM0
|
||
Channel 5
|
||
30
|
||
FTM0
|
||
Channel 6
|
||
31
|
||
FTM0
|
||
Channel 7
|
||
32
|
||
FTM1
|
||
Channel 0
|
||
33
|
||
FTM1
|
||
Channel 1
|
||
34
|
||
FTM2
|
||
Channel 0
|
||
35
|
||
FTM2
|
||
Channel 1
|
||
36
|
||
IEEE 1588 Timers
|
||
Timer 0
|
||
37
|
||
IEEE 1588 Timers
|
||
Timer 1
|
||
38
|
||
IEEE 1588 Timers
|
||
Timer 2
|
||
39
|
||
IEEE 1588 Timers
|
||
Timer 3
|
||
40
|
||
ADC0
|
||
—
|
||
41
|
||
ADC1
|
||
—
|
||
42
|
||
CMP0
|
||
—
|
||
43
|
||
CMP1
|
||
—
|
||
44
|
||
CMP2
|
||
—
|
||
45
|
||
DAC0
|
||
—
|
||
46
|
||
DAC1
|
||
—
|
||
47
|
||
CMT
|
||
—
|
||
Table continues on the next page...
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
95
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 96
|
||
|
||
Table 3-24. DMA request sources - MUX 0 (continued)
|
||
Source
|
||
number
|
||
Source module
|
||
Source description
|
||
48
|
||
PDB
|
||
—
|
||
49
|
||
Port control module
|
||
Port A
|
||
50
|
||
Port control module
|
||
Port B
|
||
51
|
||
Port control module
|
||
Port C
|
||
52
|
||
Port control module
|
||
Port D
|
||
53
|
||
Port control module
|
||
Port E
|
||
54
|
||
DMA MUX
|
||
Always enabled
|
||
55
|
||
DMA MUX
|
||
Always enabled
|
||
56
|
||
DMA MUX
|
||
Always enabled
|
||
57
|
||
DMA MUX
|
||
Always enabled
|
||
58
|
||
DMA MUX
|
||
Always enabled
|
||
59
|
||
DMA MUX
|
||
Always enabled
|
||
60
|
||
DMA MUX
|
||
Always enabled
|
||
61
|
||
DMA MUX
|
||
Always enabled
|
||
62
|
||
DMA MUX
|
||
Always enabled
|
||
63
|
||
DMA MUX
|
||
Always enabled
|
||
1.
|
||
Configuring a DMA channel to select source 0 or any of the reserved sources disables that DMA channel.
|
||
3.3.9.2
|
||
DMA transfers via PIT trigger
|
||
The PIT module can trigger a DMA transfer on the first four DMA channels. The
|
||
assignments are detailed at PIT/DMA Periodic Trigger Assignments .
|
||
3.3.10
|
||
DMA Controller Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
96
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 97
|
||
|
||
DMA Controller
|
||
Crossbar switch
|
||
Requests
|
||
Peripheral
|
||
bridge 0
|
||
Register
|
||
access
|
||
Transfers
|
||
DMA Multiplexer
|
||
Figure 3-14. DMA Controller configuration
|
||
Table 3-25. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
DMA Controller
|
||
DMA Controller
|
||
System memory map
|
||
System memory map
|
||
Register access
|
||
Peripheral bridge
|
||
(AIPS-Lite 0)
|
||
AIPS-Lite 0
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Transfers
|
||
Crossbar switch
|
||
Crossbar switch
|
||
3.3.11
|
||
External Watchdog Monitor (EWM) Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
97
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 98
|
||
|
||
External Watchdog
|
||
Monitor (EWM)
|
||
Peripheral
|
||
bridge 0
|
||
Register
|
||
access
|
||
Signal multiplexing
|
||
Module signals
|
||
Figure 3-15. External Watchdog Monitor configuration
|
||
Table 3-26. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
External Watchdog
|
||
Monitor (EWM)
|
||
EWM
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Signal multiplexing
|
||
Port Control Module
|
||
Signal multiplexing
|
||
3.3.11.1
|
||
EWM clocks
|
||
This table shows the EWM clocks and the corresponding chip clocks.
|
||
Table 3-27. EWM clock connections
|
||
Module clock
|
||
Chip clock
|
||
Low Power Clock
|
||
1 kHz LPO Clock
|
||
3.3.11.2
|
||
EWM low-power modes
|
||
This table shows the EWM low-power modes and the corresponding chip low-power
|
||
modes.
|
||
Table 3-28. EWM low-power modes
|
||
Module mode
|
||
Chip mode
|
||
Wait
|
||
Wait, VLPW
|
||
Stop
|
||
Stop, VLPS, LLS
|
||
Power Down
|
||
VLLS3, VLLS2, VLLS1
|
||
System modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
98
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 99
|
||
|
||
3.3.11.3
|
||
EWM\_OUT pin state in low power modes
|
||
During Wait, Stop and Power Down modes the EWM\_OUT pin enters a high-impedance
|
||
state. A user has the option to control the logic state of the pin using an external pull
|
||
device or by configuring the internal pull device. When the CPU enters a Run mode from
|
||
Wait or Stop recovery, the pin resumes its previous state before entering Wait or Stop
|
||
mode. When the CPU enters Run mode from Power Down, the pin returns to its reset
|
||
state.
|
||
3.3.12
|
||
Watchdog Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
WDOG
|
||
Mode Controller
|
||
Peripheral
|
||
bridge 0
|
||
Register
|
||
access
|
||
Figure 3-16. Watchdog configuration
|
||
Table 3-29. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Watchdog
|
||
Watchdog
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Mode Controller (MC)
|
||
System Mode Controller
|
||
3.3.12.1
|
||
WDOG clocks
|
||
This table shows the WDOG module clocks and the corresponding chip clocks.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
99
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 100
|
||
|
||
Table 3-30. WDOG clock connections
|
||
Module clock
|
||
Chip clock
|
||
LPO Oscillator
|
||
1 kHz LPO Clock
|
||
Alt Clock
|
||
Bus Clock
|
||
Fast Test Clock
|
||
Bus Clock
|
||
System Bus Clock
|
||
Bus Clock
|
||
3.3.12.2
|
||
WDOG low-power modes
|
||
This table shows the WDOG low-power modes and the corresponding chip low-power
|
||
modes.
|
||
Table 3-31. WDOG low-power modes
|
||
Module mode
|
||
Chip mode
|
||
Wait
|
||
Wait, VLPW
|
||
Stop
|
||
Stop, VLPS
|
||
Power Down
|
||
LLS, VLLSx
|
||
3.4
|
||
Clock modules
|
||
3.4.1
|
||
MCG Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Clock modules
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
100
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 101
|
||
|
||
Register
|
||
access
|
||
Peripheral
|
||
bridge
|
||
Multipurpose Clock
|
||
Generator (MCG)
|
||
RTC
|
||
oscillator
|
||
System
|
||
oscillator
|
||
System integration
|
||
module (SIM)
|
||
Figure 3-17. MCG configuration
|
||
Table 3-32. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
MCG
|
||
MCG
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Signal multiplexing
|
||
Port control
|
||
Signal multiplexing
|
||
3.4.2
|
||
OSC Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Signal multiplexing
|
||
Register
|
||
access
|
||
Peripheral
|
||
bridge
|
||
System oscillator
|
||
MCG
|
||
Module signals
|
||
Figure 3-18. OSC configuration
|
||
Table 3-33. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
OSC
|
||
OSC
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Table continues on the next page...
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
101
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 102
|
||
|
||
Table 3-33. Reference links to related information (continued)
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Power management
|
||
Power management
|
||
Signal multiplexing
|
||
Port control
|
||
Signal multiplexing
|
||
Full description
|
||
MCG
|
||
MCG
|
||
3.4.2.1
|
||
OSC modes of operation with MCG
|
||
The MCG's C2 register bits configure the oscillator frequency range. See the OSC and
|
||
MCG chapters for more details.
|
||
3.4.3
|
||
RTC OSC configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Signal multiplexing
|
||
32-kHz RTC oscillator
|
||
MCG
|
||
Module signals
|
||
Figure 3-19. RTC OSC configuration
|
||
Table 3-34. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
RTC OSC
|
||
RTC OSC
|
||
Signal multiplexing
|
||
Port control
|
||
Signal multiplexing
|
||
Full description
|
||
MCG
|
||
MCG
|
||
3.5
|
||
Memories and memory interfaces
|
||
3.5.1
|
||
Flash Memory Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Memories and memory interfaces
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
102
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 103
|
||
|
||
Register
|
||
access
|
||
Flash memory
|
||
Transfers
|
||
Flash memory
|
||
controller
|
||
Peripheral bus
|
||
controller 0
|
||
Figure 3-20. Flash memory configuration
|
||
Table 3-35. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Flash memory
|
||
Flash memory
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock Distribution
|
||
Transfers
|
||
Flash memory
|
||
controller
|
||
Flash memory controller
|
||
Register access
|
||
Peripheral bridge
|
||
Peripheral bridge
|
||
3.5.1.1
|
||
Flash memory types
|
||
This device contains the following types of flash memory:
|
||
• Program flash memory — non-volatile flash memory that can execute program code
|
||
• FlexMemory — encompasses the following memory types:
|
||
• For devices with FlexNVM: FlexNVM — Non-volatile flash memory that can
|
||
execute program code, store data, or backup EEPROM data
|
||
• For devices with FlexNVM: FlexRAM — RAM memory that can be used as
|
||
traditional RAM or as high-endurance EEPROM storage, and also accelerates
|
||
flash programming
|
||
• For devices with only program flash memory: Programming acceleration RAM
|
||
— RAM memory that accelerates flash programming
|
||
3.5.1.2
|
||
Flash Memory Sizes
|
||
The devices covered in this document contain:
|
||
• For devices with program flash only: 2 blocks of program flash consisting of 2 KB
|
||
sectors
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
103
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 104
|
||
|
||
• For devices that contain FlexNVM: 1 block of program flash consisting of 2 KB
|
||
sectors
|
||
• For devices that contain FlexNVM: 1 block of FlexNVM consisting of 2 KB sectors
|
||
• For devices that contain FlexNVM: 1 block of FlexRAM
|
||
The amounts of flash memory for the devices covered in this document are:
|
||
Device
|
||
Program
|
||
flash (KB)
|
||
Block 0 (P-
|
||
Flash)
|
||
address
|
||
range1
|
||
FlexNVM
|
||
(KB)
|
||
Block 1
|
||
(FlexNVM/ P-
|
||
Flash)
|
||
address
|
||
range1
|
||
FlexRAM/
|
||
Programming
|
||
Acceleration
|
||
RAM (KB)
|
||
FlexRAM/
|
||
Programming
|
||
Acceleration
|
||
RAM address
|
||
range
|
||
MK60DN256VL
|
||
Q10
|
||
256
|
||
0x0000\_0000 –
|
||
0x0001\_FFFF
|
||
—
|
||
0x0002\_0000 –
|
||
0x0003\_FFFF
|
||
4
|
||
0x1400\_0000 –
|
||
0x1400\_0FFF
|
||
MK60DX256VL
|
||
Q10
|
||
256
|
||
0x0000\_0000 –
|
||
0x0003\_FFFF
|
||
256
|
||
0x1000\_0000 –
|
||
0x1003\_FFFF
|
||
4
|
||
0x1400\_0000 –
|
||
0x1400\_0FFF
|
||
MK60DN512VL
|
||
Q10
|
||
512
|
||
0x0000\_0000 –
|
||
0x0003\_FFFF
|
||
—
|
||
0x0004\_0000 –
|
||
0x0007\_FFFF
|
||
4
|
||
0x1400\_0000 –
|
||
0x1400\_0FFF
|
||
MK60DN256VM
|
||
D10
|
||
256
|
||
0x0000\_0000 –
|
||
0x0001\_FFFF
|
||
—
|
||
0x0002\_0000 –
|
||
0x0003\_FFFF
|
||
4
|
||
0x1400\_0000 –
|
||
0x1400\_0FFF
|
||
MK60DX256VM
|
||
D10
|
||
256
|
||
0x0000\_0000 –
|
||
0x0003\_FFFF
|
||
256
|
||
0x1000\_0000 –
|
||
0x1003\_FFFF
|
||
4
|
||
0x1400\_0000 –
|
||
0x1400\_0FFF
|
||
MK60DN512VM
|
||
D10
|
||
512
|
||
0x0000\_0000 –
|
||
0x0003\_FFFF
|
||
—
|
||
0x0004\_0000 –
|
||
0x0007\_FFFF
|
||
4
|
||
0x1400\_0000 –
|
||
0x1400\_0FFF
|
||
1.
|
||
For program flash only devices: The addresses shown assume program flash swap is disabled (default configuration).
|
||
3.5.1.3
|
||
Flash Memory Size Considerations
|
||
Since this document covers devices that contain program flash only and devices that
|
||
contain program flash and FlexNVM, there are some items to consider when reading the
|
||
flash memory chapter.
|
||
• The flash memory chapter shows a mixture of information depending on the device
|
||
you are using.
|
||
• For the program flash only devices:
|
||
• Two program flash blocks are supported: program flash 1 and program flash 2.
|
||
The two blocks are contiguous in the system memory map.
|
||
• The program flash blocks support a swap feature in which the starting address of
|
||
the program flash blocks can be swapped.
|
||
• The programming acceleration RAM is used for the Program Section command.
|
||
• For the devices containing program flash and FlexNVM:
|
||
• Since there is only one program flash block, the program flash swap feature is
|
||
not available.
|
||
Memories and memory interfaces
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
104
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 105
|
||
|
||
3.5.1.4
|
||
Flash Memory Map
|
||
The various flash memories and the flash registers are located at different base addresses
|
||
as shown in the following figure. The base address for each is specified in System
|
||
memory map.
|
||
Program flash
|
||
Flash configuration field
|
||
Program flash base address
|
||
Flash memory base address
|
||
Registers
|
||
RAM
|
||
Programming acceleration
|
||
RAM base address
|
||
Figure 3-21. Flash memory map for devices containing only program flash
|
||
Program flash
|
||
Flash configuration field
|
||
FlexNVM base address
|
||
Program flash base address
|
||
Flash memory base address
|
||
Registers
|
||
FlexNVM
|
||
FlexRAM
|
||
FlexRAM base address
|
||
Figure 3-22. Flash memory map for devices containing FlexNVM
|
||
3.5.1.5
|
||
Flash Security
|
||
How flash security is implemented on this device is described in Chip Security.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
105
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 106
|
||
|
||
3.5.1.6
|
||
Flash Modes
|
||
The flash memory operates in NVM normal and NVM special modes. The flash memory
|
||
enters NVM special mode when the EzPort is enabled (EZP\_CS asserted during reset).
|
||
Otherwise, flash memory operates in NVM normal mode.
|
||
3.5.1.7
|
||
Erase All Flash Contents
|
||
In addition to software, the entire flash memory may be erased external to the flash
|
||
memory in two ways:
|
||
1. Via the EzPort by issuing a bulk erase (BE) command. See the EzPort chapter for
|
||
more details.
|
||
2. Via the SWJ-DP debug port by setting DAP\_CONTROL[0]. DAP\_STATUS[0] is set
|
||
to indicate the mass erase command has been accepted. DAP\_STATUS[0] is cleared
|
||
when the mass erase completes.
|
||
3.5.1.8
|
||
FTFL\_FOPT Register
|
||
The flash memory's FTFL\_FOPT register allows the user to customize the operation of
|
||
the MCU at boot time. See FOPT boot options for details of its definition.
|
||
3.5.2
|
||
Flash Memory Controller Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Memories and memory interfaces
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
106
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 107
|
||
|
||
Register
|
||
access
|
||
Flash memory
|
||
controller
|
||
Transfers
|
||
Memory protection
|
||
unit
|
||
Peripheral bus
|
||
controller 0
|
||
Transfers
|
||
Flash memory
|
||
Crossbar switch
|
||
Figure 3-23. Flash memory controller configuration
|
||
Table 3-36. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Flash memory
|
||
controller
|
||
Flash memory controller
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock Distribution
|
||
Transfers
|
||
Flash memory
|
||
Flash memory
|
||
Transfers
|
||
MPU
|
||
MPU
|
||
Transfers
|
||
Crossbar switch
|
||
Crossbar Switch
|
||
Register access
|
||
Peripheral bridge
|
||
Peripheral bridge
|
||
3.5.2.1
|
||
Number of masters
|
||
The Flash Memory Controller supports up to eight crossbar switch masters. However,
|
||
this device has a different number of crossbar switch masters. See Crossbar Switch
|
||
Configuration for details on the master port assignments.
|
||
3.5.2.2
|
||
Program Flash Swap
|
||
On devices that contain program flash memory only, the program flash memory blocks
|
||
may swap their base addresses.
|
||
While not using swap:
|
||
If swap is used, the opposite is true:
|
||
3.5.3
|
||
SRAM Configuration
|
||
This section summarizes how the module has been configured in the chip.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
107
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 108
|
||
|
||
SRAM upper
|
||
Transfers
|
||
SRAM controller
|
||
Cortex-M4
|
||
core
|
||
MPU
|
||
Crossbar
|
||
switch
|
||
SRAM lower
|
||
MPU
|
||
Figure 3-24. SRAM configuration
|
||
Table 3-37. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
SRAM
|
||
SRAM
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock Distribution
|
||
Transfers
|
||
SRAM controller
|
||
SRAM controller
|
||
ARM Cortex-M4 core
|
||
ARM Cortex-M4 core
|
||
Memory protection unit
|
||
Memory protection unit
|
||
3.5.3.1
|
||
SRAM sizes
|
||
This device contains SRAM tightly coupled to the ARM Cortex-M4 core. The amount of
|
||
SRAM for the devices covered in this document is shown in the following table.
|
||
Device
|
||
SRAM (KB)
|
||
MK60DN256VLQ10
|
||
64
|
||
MK60DX256VLQ10
|
||
64
|
||
MK60DN512VLQ10
|
||
128
|
||
MK60DN256VMD10
|
||
64
|
||
MK60DX256VMD10
|
||
64
|
||
MK60DN512VMD10
|
||
128
|
||
3.5.3.2
|
||
SRAM Arrays
|
||
The on-chip SRAM is split into two equally-sized logical arrays, SRAM\_L and
|
||
SRAM\_U.
|
||
The on-chip RAM is implemented such that the SRAM\_L and SRAM\_U ranges form a
|
||
contiguous block in the memory map. As such:
|
||
Memories and memory interfaces
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
108
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 109
|
||
|
||
• SRAM\_L is anchored to 0x1FFF\_FFFF and occupies the space before this ending
|
||
address.
|
||
• SRAM\_U is anchored to 0x2000\_0000 and occupies the space after this beginning
|
||
address.
|
||
Valid address ranges for SRAM\_L and SRAM\_U are then defined as:
|
||
• SRAM\_L = [0x2000\_0000–(SRAM\_size/2)] to 0x1FFF\_FFFF
|
||
• SRAM\_U = 0x2000\_0000 to [0x2000\_0000+(SRAM\_size/2)-1]
|
||
This is illustrated in the following figure.
|
||
SRAM\_U
|
||
0x2000\_0000
|
||
SRAM size / 2
|
||
SRAM\_L
|
||
0x1FFF\_FFFF
|
||
SRAM size / 2
|
||
0x2000\_0000 – SRAM\_size/2
|
||
0x2000 0000 + SRAM size/2 - 1
|
||
Figure 3-25. SRAM blocks memory map
|
||
For example, for a device containing 64 KB of SRAM the ranges are:
|
||
• SRAM\_L: 0x1FFF\_8000 – 0x1FFF\_FFFF
|
||
• SRAM\_U: 0x2000\_0000 – 0x2000\_7FFF
|
||
3.5.3.3
|
||
SRAM retention in low power modes
|
||
The SRAM is retained down to VLLS3 mode.
|
||
In VLLS2 the 4 or 16 KB (user option) region of SRAM\_U from 0x2000\_0000 is
|
||
powered. These different regions (or partitions) of SRAM are labeled as follows:
|
||
• RAM1: the 4 KB region always powered in VLLS2
|
||
• RAM2: the additional 12 KB region optionally powered in VLLS2
|
||
• RAM3: the rest of system RAM
|
||
In VLLS1 no SRAM is retained; however, the 32-byte register file is available.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
109
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 110
|
||
|
||
3.5.3.4
|
||
SRAM accesses
|
||
The SRAM is split into two logical arrays that are 32-bits wide.
|
||
• SRAM\_L — Accessible by the code bus of the Cortex-M4 core and by the backdoor
|
||
port.
|
||
• SRAM\_U — Accessible by the system bus of the Cortex-M4 core and by the
|
||
backdoor port.
|
||
The backdoor port makes the SRAM accessible to the non-core bus masters (such as
|
||
DMA).
|
||
The following figure illustrates the SRAM accesses within the device.
|
||
Cortex-M4 core
|
||
Code bus
|
||
System bus
|
||
SRAM controller
|
||
Backdoor
|
||
SRAM\_L
|
||
SRAM\_U
|
||
Crossbar switch
|
||
non-core master
|
||
non-core master
|
||
non-core master
|
||
Frontdoor
|
||
MPU
|
||
MPU
|
||
Figure 3-26. SRAM access diagram
|
||
The following simultaneous accesses can be made to different logical halves of the
|
||
SRAM:
|
||
• Core code and core system
|
||
• Core code and non-core master
|
||
• Core system and non-core master
|
||
NOTE
|
||
Two non-core masters cannot access SRAM simultaneously.
|
||
The required arbitration and serialization is provided by the
|
||
crossbar switch. The SRAM\_{L,U} arbitration is controlled by
|
||
the SRAM controller based on the configuration bits in the
|
||
MCM module.
|
||
NOTE
|
||
Burst-access cannot occur across the 0x2000\_0000 boundary
|
||
that separates the two SRAM arrays. The two arrays should be
|
||
treated as separate memory ranges for burst accesses.
|
||
Memories and memory interfaces
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
110
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 111
|
||
|
||
3.5.3.5
|
||
SRAM arbitration and priority control
|
||
The MCM's SRAMAP register controls the arbitration and priority schemes for the two
|
||
SRAM arrays.
|
||
3.5.4
|
||
SRAM Controller Configuration
|
||
This section summarizes how the module has been configured in the chip.
|
||
Cortex-M4
|
||
core
|
||
MPU
|
||
Crossbar
|
||
switch
|
||
SRAM controller
|
||
Transfers
|
||
SRAM
|
||
upper
|
||
SRAM
|
||
lower
|
||
MPU
|
||
Figure 3-27. SRAM controller configuration
|
||
Table 3-38. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
System memory map
|
||
System memory map
|
||
Power management
|
||
Power management
|
||
Power management
|
||
controller (PMC)
|
||
PMC
|
||
Transfers
|
||
SRAM
|
||
SRAM
|
||
ARM Cortex-M4 core
|
||
ARM Cortex-M4 core
|
||
MPU
|
||
Memory protection unit
|
||
Configuration
|
||
MCM
|
||
MCM
|
||
3.5.5
|
||
System Register File Configuration
|
||
This section summarizes how the module has been configured in the chip.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
111
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 112
|
||
|
||
Register file
|
||
Peripheral
|
||
bridge 0
|
||
Register
|
||
access
|
||
Figure 3-28. System Register file configuration
|
||
Table 3-39. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
Register file
|
||
Register file
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
3.5.5.1
|
||
System Register file
|
||
This device includes a 32-byte register file that is powered in all power modes.
|
||
Also, it retains contents during low-voltage detect (LVD) events and is only reset during
|
||
a power-on reset.
|
||
3.5.6
|
||
VBAT Register File Configuration
|
||
This section summarizes how the module has been configured in the chip.
|
||
Memories and memory interfaces
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
112
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 113
|
||
|
||
VBAT register file
|
||
Peripheral
|
||
bridge
|
||
Register
|
||
access
|
||
Figure 3-29. VBAT Register file configuration
|
||
Table 3-40. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
VBAT register file
|
||
VBAT register file
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
3.5.6.1
|
||
VBAT register file
|
||
This device includes a 32-byte register file that is powered in all power modes and is
|
||
powered by VBAT.
|
||
It is only reset during VBAT power-on reset.
|
||
3.5.7
|
||
EzPort Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Signal multiplexing
|
||
Module signals
|
||
EzPort
|
||
Transfers
|
||
Crossbar switch
|
||
Figure 3-30. EzPort configuration
|
||
Table 3-41. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
EzPort
|
||
EzPort
|
||
Table continues on the next page...
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
113
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 114
|
||
|
||
Table 3-41. Reference links to related information (continued)
|
||
Topic
|
||
Related module
|
||
Reference
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock Distribution
|
||
Transfers
|
||
Crossbar switch
|
||
Crossbar switch
|
||
Signal Multiplexing
|
||
Port control
|
||
Signal Multiplexing
|
||
3.5.7.1
|
||
JTAG instruction
|
||
The system JTAG controller implements an EZPORT instruction. When executing this
|
||
instruction, the JTAG controller resets the core logic and asserts the EzPort chip select
|
||
signal to force the processor into EzPort mode.
|
||
3.5.7.2
|
||
Flash Option Register (FOPT)
|
||
The FOPT[EZPORT\_DIS] bit can be used to prevent entry into EzPort mode during
|
||
reset. If the FOPT[EZPORT\_DIS] bit is cleared, then the state of the chip select signal
|
||
(EZP\_CS) is ignored and the MCU always boots in normal mode.
|
||
This option is useful for systems that use the EZP\_CS/NMI signal configured for its NMI
|
||
function. Disabling EzPort mode prevents possible unwanted entry into EzPort mode if
|
||
the external circuit that drives the NMI signal asserts it during reset.
|
||
The FOPT register is loaded from the flash option byte. If the flash option byte is
|
||
modified the new value takes effect for any subsequent resets, until the value is changed
|
||
again.
|
||
3.5.8
|
||
FlexBus Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Memories and memory interfaces
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
114
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 115
|
||
|
||
Signal multiplexing
|
||
Module signals
|
||
Register
|
||
access
|
||
FlexBus
|
||
Transfers
|
||
Memory protection
|
||
unit
|
||
Peripheral
|
||
bridge 0
|
||
Crossbar switch
|
||
Figure 3-31. FlexBus configuration
|
||
Table 3-42. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
FlexBus
|
||
FlexBus
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Transfers
|
||
Memory protection unit
|
||
(MPU)
|
||
Memory protection unit (MPU)
|
||
Signal multiplexing
|
||
Port control
|
||
Signal multiplexing
|
||
3.5.8.1
|
||
FlexBus clocking
|
||
The system provides a dedicated clock source to the FlexBus module's external
|
||
CLKOUT. Its clock frequency is derived from a divider of the MCGOUTCLK. See
|
||
Clock Distribution for more details.
|
||
3.5.8.2
|
||
FlexBus signal multiplexing
|
||
The multiplexing of the FlexBus address and data signals is controlled by the port control
|
||
module. However, the multiplexing of some of the FlexBus control signals are controlled
|
||
by the port control and FlexBus modules. The port control module registers control
|
||
whether the FlexBus or another module signals are available on the external pin, while
|
||
the FlexBus's CSPMCR register configures which FlexBus signals are available from the
|
||
module. The control signals are grouped as illustrated:
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
115
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 116
|
||
|
||
Group3
|
||
Group2
|
||
Group1
|
||
Group4
|
||
Group5
|
||
CSPMCR
|
||
FlexBus
|
||
Port Control Module
|
||
To other modules
|
||
To other modules
|
||
To other modules
|
||
To other modules
|
||
To other modules
|
||
External Pins
|
||
FB\_ALE
|
||
Reserved
|
||
FB\_TSIZ0
|
||
Reserved
|
||
FB\_TSIZ1
|
||
Reserved
|
||
Reserved
|
||
Reserved
|
||
FB\_CS1
|
||
FB\_TS
|
||
FB\_CS4
|
||
FB\_BE\_31\_24
|
||
FB\_BE\_23\_16
|
||
FB\_BE\_15\_8
|
||
FB\_BE\_7\_0
|
||
FB\_CS5
|
||
FB\_TBST
|
||
FB\_CS2
|
||
FB\_TA
|
||
FB\_CS3
|
||
Figure 3-32. FlexBus control signal multiplexing
|
||
Memories and memory interfaces
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
116
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 117
|
||
|
||
Therefore, use the CSPMCR and port control registers to configure which control signal
|
||
is available on the external pin. All control signals, except for FB\_TA, are assigned to the
|
||
ALT5 function in the port control module. Since, unlike the other control signals, FB\_TA
|
||
is an input signal, it is assigned to the ALT6 function.
|
||
3.5.8.3
|
||
FlexBus CSCR0 reset value
|
||
On this device the CSCR0 resets to 0x003F\_FC00. Configure this register as needed
|
||
before performing any FlexBus access.
|
||
3.5.8.4
|
||
FlexBus Security
|
||
When security is enabled on the device, FlexBus accesses may be restricted by
|
||
configuring the FBSL field in the SIM's SOPT2 register. See System Integration Module
|
||
(SIM) for details.
|
||
3.5.8.5
|
||
FlexBus line transfers
|
||
Line transfers are not possible from the ARM Cortex-M4 core. Ignore any references to
|
||
line transfers in the FlexBus chapter.
|
||
3.6
|
||
Security
|
||
3.6.1
|
||
CRC Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
117
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 118
|
||
|
||
Register
|
||
access
|
||
Peripheral
|
||
bridge
|
||
CRC
|
||
Figure 3-33. CRC configuration
|
||
Table 3-43. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
CRC
|
||
CRC
|
||
System memory map
|
||
System memory map
|
||
Power management
|
||
Power management
|
||
3.6.2
|
||
MMCAU Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
MMCAU
|
||
Transfers
|
||
ARM Cortex M4
|
||
Core
|
||
PPB
|
||
Figure 3-34. MMCAU configuration
|
||
Table 3-44. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
MMCAU
|
||
MMCAU
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock Distribution
|
||
Power Management
|
||
Power Management
|
||
Transfers
|
||
Private Peripheral Bus
|
||
(PPB)
|
||
ARM Cortex M4 Core
|
||
Security
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
118
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 119
|
||
|
||
3.6.3
|
||
RNG Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Register
|
||
access
|
||
Peripheral
|
||
bridge
|
||
Random number
|
||
generator
|
||
Figure 3-35. RNG configuration
|
||
Table 3-45. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
RNG
|
||
RNG
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
3.7
|
||
Analog
|
||
3.7.1
|
||
16-bit SAR ADC with PGA Configuration
|
||
This section summarizes how the module has been configured in the chip. For a
|
||
comprehensive description of the module itself, see the module’s dedicated chapter.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
119
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 120
|
||
|
||
Signal multiplexing
|
||
Module signals
|
||
Register
|
||
access
|
||
16-bit SAR ADC
|
||
Peripheral bus
|
||
controller 0
|
||
Other peripherals
|
||
Transfers
|
||
Figure 3-36. 16-bit SAR ADC with PGA configuration
|
||
Table 3-46. Reference links to related information
|
||
Topic
|
||
Related module
|
||
Reference
|
||
Full description
|
||
16-bit SAR ADC with
|
||
PGA
|
||
16-bit SAR ADC with PGA
|
||
System memory map
|
||
System memory map
|
||
Clocking
|
||
Clock distribution
|
||
Power management
|
||
Power management
|
||
Signal multiplexing
|
||
Port control
|
||
Signal multiplexing
|
||
3.7.1.1
|
||
ADC instantiation information
|
||
This device contains two ADCs. Each ADC contains a PGA channel for a total of two
|
||
separate PGAs.
|
||
3.7.1.1.1
|
||
Number of ADC channels
|
||
The number of ADC channels present on the device is determined by the pinout of the
|
||
specific device package. For details regarding the number of ADC channel available on a
|
||
particular package, refer to the signal multiplexing chapter of this MCU.
|
||
3.7.1.2
|
||
DMA Support on ADC
|
||
Applications may require continuous sampling of the ADC (4K samples/sec) that may
|
||
have considerable load on the CPU. Though using PDB to trigger ADC may reduce some
|
||
CPU load, The ADC supports DMA request functionality for higher performance when
|
||
the ADC is sampled at a very high rate or cases were PDB is bypassed. The ADC can
|
||
trigger the DMA (via DMA req) on conversion completion.
|
||
Analog
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
120
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 121
|
||
|
||
3.7.1.3
|
||
Connections/channel assignment
|
||
3.7.1.3.1
|
||
ADC0 Connections/Channel Assignment
|
||
NOTE
|
||
As indicated by the following sections, each ADCx\_DPx input
|
||
and certain ADCx\_DMx inputs may operate as single-ended
|
||
ADC channels in single-ended mode.
|
||
3.7.1.3.1.1
|
||
ADC0 Channel Assignment for 144-Pin Package
|
||
ADC Channel
|
||
(SC1n[ADCH])
|
||
Channel
|
||
Input signal
|
||
(SC1n[DIFF]= 1)
|
||
Input signal
|
||
(SC1n[DIFF]= 0)
|
||
00000
|
||
DAD0
|
||
ADC0\_DP0 and ADC0\_DM01
|
||
ADC0\_DP02
|
||
00001
|
||
DAD1
|
||
ADC0\_DP1 and ADC0\_DM1
|
||
ADC0\_DP1
|
||
00010
|
||
DAD2
|
||
PGA0\_DP and PGA0\_DM
|
||
PGA0\_DP
|
||
00011
|
||
DAD3
|
||
ADC0\_DP3 and ADC0\_DM33
|
||
ADC0\_DP34
|
||
001005
|
||
AD4a
|
||
Reserved
|
||
Reserved
|
||
001015
|
||
AD5a
|
||
Reserved
|
||
Reserved
|
||
001105
|
||
AD6a
|
||
Reserved
|
||
Reserved
|
||
001115
|
||
AD7a
|
||
Reserved
|
||
Reserved
|
||
001005
|
||
AD4b
|
||
Reserved
|
||
ADC0\_SE4b
|
||
001015
|
||
AD5b
|
||
Reserved
|
||
ADC0\_SE5b
|
||
001105
|
||
AD6b
|
||
Reserved
|
||
ADC0\_SE6b
|
||
001115
|
||
AD7b
|
||
Reserved
|
||
ADC0\_SE7b
|
||
01000
|
||
AD8
|
||
Reserved
|
||
ADC0\_SE86
|
||
01001
|
||
AD9
|
||
Reserved
|
||
ADC0\_SE97
|
||
01010
|
||
AD10
|
||
Reserved
|
||
ADC0\_SE10
|
||
01011
|
||
AD11
|
||
Reserved
|
||
ADC0\_SE11
|
||
01100
|
||
AD12
|
||
Reserved
|
||
ADC0\_SE12
|
||
01101
|
||
AD13
|
||
Reserved
|
||
ADC0\_SE13
|
||
01110
|
||
AD14
|
||
Reserved
|
||
ADC0\_SE14
|
||
01111
|
||
AD15
|
||
Reserved
|
||
ADC0\_SE15
|
||
10000
|
||
AD16
|
||
Reserved
|
||
ADC0\_SE16
|
||
10001
|
||
AD17
|
||
Reserved
|
||
ADC0\_SE17
|
||
10010
|
||
AD18
|
||
Reserved
|
||
ADC0\_SE18
|
||
10011
|
||
AD19
|
||
Reserved
|
||
ADC0\_DM08
|
||
10100
|
||
AD20
|
||
Reserved
|
||
ADC0\_DM1
|
||
10101
|
||
AD21
|
||
Reserved
|
||
ADC0\_SE21
|
||
10110
|
||
AD22
|
||
Reserved
|
||
ADC0\_SE22
|
||
Table continues on the next page...
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
121
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 122
|
||
|
||
ADC Channel
|
||
(SC1n[ADCH])
|
||
Channel
|
||
Input signal
|
||
(SC1n[DIFF]= 1)
|
||
Input signal
|
||
(SC1n[DIFF]= 0)
|
||
10111
|
||
AD23
|
||
Reserved
|
||
12-bit DAC0 Output/
|
||
ADC0\_SE23
|
||
11000
|
||
AD24
|
||
Reserved
|
||
Reserved
|
||
11001
|
||
AD25
|
||
Reserved
|
||
Reserved
|
||
11010
|
||
AD26
|
||
Temperature Sensor (Diff)
|
||
Temperature Sensor (S.E)
|
||
11011
|
||
AD27
|
||
Bandgap (Diff)9
|
||
Bandgap (S.E)9
|
||
11100
|
||
AD28
|
||
Reserved
|
||
Reserved
|
||
11101
|
||
AD29
|
||
-VREFH (Diff)
|
||
VREFH (S.E)
|
||
11110
|
||
AD30
|
||
Reserved
|
||
VREFL
|
||
11111
|
||
AD31
|
||
Module Disabled
|
||
Module Disabled
|
||
1.
|
||
Interleaved with ADC1\_DP3 and ADC1\_DM3
|
||
2.
|
||
Interleaved with ADC1\_DP3
|
||
3.
|
||
Interleaved with ADC1\_DP0 and ADC1\_DM0
|
||
4.
|
||
Interleaved with ADC1\_DP0
|
||
5.
|
||
ADCx\_CFG2[MUXSEL] bit selects between ADCx\_SEn channels a and b. Refer to MUXSEL description in ADC chapter
|
||
for details.
|
||
6.
|
||
Interleaved with ADC1\_SE8
|
||
7.
|
||
Interleaved with ADC1\_SE9
|
||
8.
|
||
Interleaved with ADC1\_DM3
|
||
9.
|
||
This is the PMC bandgap 1V reference voltage not the VREF module 1.2 V reference voltage. Prior to reading from this
|
||
ADC channel, ensure that you enable the bandgap buffer by setting the PMC\_REGSC[BGBE] bit. Refer to the device data
|
||
sheet for the bandgap voltage (VBG) specification.
|
||
3.7.1.4
|
||
ADC1 Connections/Channel Assignment
|
||
NOTE
|
||
As indicated in the following tables, each ADCx\_DPx input
|
||
and certain ADCx\_DMx inputs may operate as single-ended
|
||
ADC channels in single-ended mode.
|
||
3.7.1.4.1
|
||
ADC1 Channel Assignment for 144-Pin Package
|
||
ADC Channel
|
||
(SC1n[ADCH])
|
||
Channel
|
||
Input signal
|
||
(SC1n[DIFF]= 1)
|
||
Input signal
|
||
(SC1n[DIFF]= 0)
|
||
00000
|
||
DAD0
|
||
ADC1\_DP0 and ADC1\_DM01
|
||
ADC1\_DP02
|
||
00001
|
||
DAD1
|
||
ADC1\_DP1 and ADC1\_DM1
|
||
ADC1\_DP1
|
||
00010
|
||
DAD2
|
||
PGA1\_DP and PGA1\_DM
|
||
PGA1\_DP
|
||
00011
|
||
DAD3
|
||
ADC1\_DP3 and ADC1\_DM33
|
||
ADC1\_DP34
|
||
001005
|
||
AD4a
|
||
Reserved
|
||
ADC1\_SE4a
|
||
001015
|
||
AD5a
|
||
Reserved
|
||
ADC1\_SE5a
|
||
001105
|
||
AD6a
|
||
Reserved
|
||
ADC1\_SE6a
|
||
001115
|
||
AD7a
|
||
Reserved
|
||
ADC1\_SE7a
|
||
Table continues on the next page...
|
||
Analog
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
122
|
||
Preliminary
|
||
Freescale Semiconductor, Inc.
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 123
|
||
|
||
ADC Channel
|
||
(SC1n[ADCH])
|
||
Channel
|
||
Input signal
|
||
(SC1n[DIFF]= 1)
|
||
Input signal
|
||
(SC1n[DIFF]= 0)
|
||
001005
|
||
AD4b
|
||
Reserved
|
||
ADC1\_SE4b
|
||
001015
|
||
AD5b
|
||
Reserved
|
||
ADC1\_SE5b
|
||
001105
|
||
AD6b
|
||
Reserved
|
||
ADC1\_SE6b
|
||
001115
|
||
AD7b
|
||
Reserved
|
||
ADC1\_SE7b
|
||
01000
|
||
AD8
|
||
Reserved
|
||
ADC1\_SE86
|
||
01001
|
||
AD9
|
||
Reserved
|
||
ADC1\_SE97
|
||
01010
|
||
AD10
|
||
Reserved
|
||
ADC1\_SE10
|
||
01011
|
||
AD11
|
||
Reserved
|
||
ADC1\_SE11
|
||
01100
|
||
AD12
|
||
Reserved
|
||
ADC1\_SE12
|
||
01101
|
||
AD13
|
||
Reserved
|
||
ADC1\_SE13
|
||
01110
|
||
AD14
|
||
Reserved
|
||
ADC1\_SE14
|
||
01111
|
||
AD15
|
||
Reserved
|
||
ADC1\_SE15
|
||
10000
|
||
AD16
|
||
Reserved
|
||
ADC1\_SE16
|
||
10001
|
||
AD17
|
||
Reserved
|
||
ADC1\_SE17
|
||
10010
|
||
AD18
|
||
Reserved
|
||
VREF Output
|
||
10011
|
||
AD19
|
||
Reserved
|
||
ADC1\_DM08
|
||
10100
|
||
AD20
|
||
Reserved
|
||
ADC1\_DM1
|
||
10101
|
||
AD21
|
||
Reserved
|
||
Reserved
|
||
10110
|
||
AD22
|
||
Reserved
|
||
10111
|
||
AD23
|
||
Reserved
|
||
12-bit DAC1 Output/
|
||
ADC1\_SE23
|
||
11000
|
||
AD24
|
||
Reserved
|
||
Reserved
|
||
11001
|
||
AD25
|
||
Reserved
|
||
Reserved
|
||
11010
|
||
AD26
|
||
Temperature Sensor (Diff)
|
||
Temperature Sensor (S.E)
|
||
11011
|
||
AD27
|
||
Bandgap (Diff)9
|
||
Bandgap (S.E)9
|
||
11100
|
||
AD28
|
||
Reserved
|
||
Reserved
|
||
11101
|
||
AD29
|
||
-VREFH (Diff)
|
||
VREFH (S.E)
|
||
11110
|
||
AD30
|
||
Reserved
|
||
VREFL
|
||
11111
|
||
AD31
|
||
Module Disabled
|
||
Module Disabled
|
||
1.
|
||
Interleaved with ADC0\_DP3 and ADC0\_DM3
|
||
2.
|
||
Interleaved with ADC0\_DP3
|
||
3.
|
||
Interleaved with ADC0\_DP0 and ADC0\_DM0
|
||
4.
|
||
Interleaved with ADC0\_DP0
|
||
5.
|
||
ADCx\_CFG2[MUXSEL] bit selects between ADCx\_SEn channels a and b. Refer to MUXSEL description in ADC chapter
|
||
for details.
|
||
6.
|
||
Interleaved with ADC0\_SE8
|
||
7.
|
||
Interleaved with ADC0\_SE9
|
||
8.
|
||
Interleaved with ADC0\_DM3
|
||
9.
|
||
This is the PMC bandgap 1V reference voltage not the VREF module 1.2 V reference voltage. Prior to reading from this
|
||
ADC channel, ensure that you enable the bandgap buffer by setting the PMC\_REGSC[BGBE] bit. Refer to the device data
|
||
sheet for the bandgap voltage (VBG) specification.
|
||
Chapter 3 Chip Configuration
|
||
K60 Sub-Family Reference Manual, Rev. 2 Jun 2012
|
||
Freescale Semiconductor, Inc.
|
||
Preliminary
|
||
123
|
||
General Business Information
|
||
|
||

|
||
|
||
## Page 124
|
||
|
||
3.7.1.5
|
||
ADC Channels MUX Selection
|
||
The following figure shows the assignment of ADCx\_SEn channels a and b through a
|
||
MUX selection to ADC. To select between alternate set of channels, refer to
|
||
ADCx\_CFG2[MUXSEL] bit settings for more details.
|
||
|