logo资料库

FS32K144UAT0VLLT参考手册(2018.1).pdf

第1页 / 共2009页
第2页 / 共2009页
第3页 / 共2009页
第4页 / 共2009页
第5页 / 共2009页
第6页 / 共2009页
第7页 / 共2009页
第8页 / 共2009页
资料共2009页,剩余部分请下载后查看
S32K1xx Reference Manual (Supports S32K116, S32K118, S32K142, S32K144, S32K146, and S32K148)
Contents
Chapter 1​: About This Manual
Audience
Organization
Module descriptions
Example: chip-specific information that clarifies content in the same chapter
Example: chip-specific information that refers to a different chapter
Register descriptions
Conventions
Notes, Cautions, and Warnings
Numbering systems
Typographic notation
Special terms
Chapter 2​: Introduction
Overview
S32K1xx Series introduction
S32K14x
S32K11x
Feature summary
Block diagram
Feature comparison
Applications
Module functional categories
Arm Cortex-M4F Core Modules
Arm Cortex-M0+ Core Modules
System modules
Memories and memory interfaces
Power Management
Clocking
Analog modules
Timer modules
Communication interfaces
Debug modules
Chapter 3​: Memory Map
Introduction
SRAM memory map
Flash memory map
Peripheral bridge (AIPS-Lite) memory map
Read-after-write sequence and required serialization of memory operations
Private Peripheral Bus (PPB) memory map
Aliased bit-band regions for CM4 core
Chapter 4​: Signal Multiplexing and Pin Assignment
Introduction
Functional description
Pad description
Default pad state
Signal Multiplexing sheet
IO Signal Table
Input muxing table
Pinout diagrams
Chapter 5​: Security Overview
Introduction
Device security
Flash memory security
Flash memory security interactions with debug
Cryptographic Services Engine (CSEc) security features
Device Boot modes
Security use case examples
Secure boot: check bootloader for integrity and authenticity
Chain of trust: check flash memory for integrity and authenticity
Secure communication
Component protection
Message-authentication example
Steps required before failure analysis
Security programming flow example (Secure Boot)
Chapter 6​: Safety Overview
Introduction
S32K1xx safety concept
Cortex-M4/M0+ Structural Core Self Test (SCST)
ECC on RAM and flash memory
Power supply monitoring
Clock monitoring
Temporal protection
Operational interference protection
System Memory Protection Unit (MPU)
Peripheral protection
Register protection
CRC
Diversity of system resources
Chapters 7-23 Core and System Modules
Chapter 7​: CM4 Overview
Arm Cortex-M4F core configuration
Buses, interconnects, and interfaces
System Tick Timer
Debug facilities
Caches
Core privilege levels
Nested Vectored Interrupt Controller (NVIC) Configuration
Interrupt priority levels
Non-maskable interrupt
Determining the bitfield and register location for configuring a particular interrupt
Asynchronous Wake-up Interrupt Controller (AWIC) Configuration
Wake-up sources
FPU configuration
JTAG controller configuration
Chapter 8​: CM0+ Overview
Arm Cortex-M0+ core introduction
Buses, interconnects, and interfaces
System tick timer
Debug facilities
Core privilege levels
Nested vectored interrupt controller (NVIC)
Interrupt priority levels
Non-maskable interrupt
Determining the bitfield and register location for configuring a particular interrupt
AWIC introduction
Wake-up sources
Chapter 9​: Miscellaneous Control Module (MCM)
Chip-specific MCM information
Introduction
Features
Memory map/register descriptions
MCM
MCM_PLASC
MCM_PLAMC
MCM_CPCR
MCM_ISCR
MCM_PID
MCM_CPO
MCM_LMDRn
MCM_LMDR2
MCM_LMPECR
MCM_LMPEIR
MCM_LMFAR
MCM_LMFATR
MCM_LMFDHR
MCM_LMFDLR
Functional description
Interrupts
Chapter 10​: System Integration Module (SIM)
Chip-specific SIM information
SIM register bitfield implementation
Introduction
Features
Memory map and register definition
SIM register descriptions
SIM Memory map
Chip Control register (CHIP​CTL)
FTM Option Register 0 (FTMO​PT0)
LPO Clock Select Register (LPOC​LKS)
ADC Options Register (ADCO​PT)
FTM Option Register 1 (FTMO​PT1)
Miscellaneous control register 0 (MISC​TRL0)
System Device Identification Register (SDID)
Platform Clock Gating Control Register (PLAT​CGC)
Flash Configuration Register 1 (FCFG​1)
Unique Identification Register High (UIDH)
Unique Identification Register Mid-High (UIDM​H)
Unique Identification Register Mid Low (UIDM​L)
Unique Identification Register Low (UIDL)
System Clock Divider Register 4 (CLKD​IV4)
Miscellaneous Control register 1 (MISC​TRL1)
Chapter 11​: Port Control and Interrupts (PORT)
Chip-specific PORT information
Number of PCRs
I/O configuration sequence
Digital input filter configuration sequence
Digital input filter configuration sequence while using GPIO interrupt
Digital input filter configuration sequence while using NMI
Introduction
Overview
Features
Modes of operation
Run mode
Wait mode
Stop mode
Debug mode
External signal description
Detailed signal description
Memory map and register definition
PORT
PORT_PCRn
PORT_GPCLR
PORT_GPCHR
PORT_GICLR
PORT_GICHR
PORT_ISFR
PORT_DFER
PORT_DFCR
PORT_DFWR
Functional description
Pin control
Global pin control
Global interrupt control
External interrupts
Digital filter
Chapter 12​: General-Purpose Input/Output (GPIO)
Chip-specific GPIO information
Instantiation information
GPIO ports memory map
GPIO register reset values
Introduction
Features
Modes of operation
GPIO signal descriptions
Detailed signal description
Memory map and register definition
GPIO register descriptions
GPIO Memory map
Port Data Output Register (PDOR)
Port Set Output Register (PSOR)
Port Clear Output Register (PCOR)
Port Toggle Output Register (PTOR)
Port Data Input Register (PDIR)
Port Data Direction Register (PDDR)
Port Input Disable Register (PIDR)
Functional description
General-purpose input
General-purpose output
Chapter 13​: Crossbar Switch Lite (AXBS-Lite)
Chip-specific AXBS-Lite information
Crossbar Switch master assignments
Crossbar Switch slave assignments
Introduction
Features
Functional Description
General operation
Arbitration
Arbitration during undefined length bursts
Fixed-priority operation
Round-robin priority operation
Initialization/application information
Chapter 14​: Memory Protection Unit (MPU)
Chip-specific MPU information
MPU Slave Port Assignments
MPU Logical Bus Master Assignments
Current PID
Region descriptors and slave port configuration
Introduction
Overview
Block diagram
Features
MPU register descriptions
MPU Memory map
Control/Error Status Register (CESR)
Error Address Register, slave port n (EAR0 - EAR4)
Error Detail Register, slave port n (EDR0 - EDR4)
Region Descriptor n, Word 0 (RGD0​_​WOR​D0 - RGD1​5_​WO​RD0)
Region Descriptor 0, Word 1 (RGD0​_​WOR​D1)
Region Descriptor 0, Word 2 (RGD0​_​WOR​D2)
Region Descriptor 0, Word 3 (RGD0​_​WOR​D3)
Region Descriptor n, Word 1 (RGD1​_​WOR​D1 - RGD1​5_​WO​RD1)
Region Descriptor n, Word 2 (RGD1​_​WOR​D2 - RGD1​5_​WO​RD2)
Region Descriptor n, Word 3 (RGD1​_​WOR​D3 - RGD1​5_​WO​RD3)
Region Descriptor Alternate Access Control 0 (RGDA​AC0)
Region Descriptor Alternate Access Control n (RGDA​AC1 - RGDA​AC15)
Functional description
Access evaluation macro
Hit determination
Privilege violation determination
Putting it all together and error terminations
Power management
Initialization information
Application information
Chapter 15​: Peripheral Bridge (AIPS-Lite)
Chip-specific AIPS information
Instantiation information
Memory maps
Introduction
Features
General operation
Memory map/register definition
AIPS register descriptions
AIPS Memory map
Master Privilege Register A (MPRA)
Peripheral Access Control Register (PACR​A)
Peripheral Access Control Register (PACR​B)
Peripheral Access Control Register (PACR​D)
Off-Platform Peripheral Access Control Register (OPAC​RA)
Off-Platform Peripheral Access Control Register (OPAC​RB)
Off-Platform Peripheral Access Control Register (OPAC​RC)
Off-Platform Peripheral Access Control Register (OPAC​RD)
Off-Platform Peripheral Access Control Register (OPAC​RE)
Off-Platform Peripheral Access Control Register (OPAC​RF)
Off-Platform Peripheral Access Control Register (OPAC​RG)
Off-Platform Peripheral Access Control Register (OPAC​RH)
Off-Platform Peripheral Access Control Register (OPAC​RI)
Off-Platform Peripheral Access Control Register (OPAC​RJ)
Off-Platform Peripheral Access Control Register (OPAC​RK)
Off-Platform Peripheral Access Control Register (OPAC​RL)
Functional description
Access support
Chapter 16​: Direct Memory Access Multiplexer (DMAMUX)
Chip-specific DMAMUX information
Number of channels
DMA transfers via TRGMUX trigger
Introduction
Overview
Features
Modes of operation
External signal description
Memory map/register definition
DMAMUX register descriptions
DMAMUX Memory map
Channel Configuration register (CHCF​G0 - CHCF​G15)
Functional description
DMA channels with periodic triggering capability
DMA channels with no triggering capability
Always-enabled DMA sources
Initialization/application information
Reset
Enabling and configuring sources
Chapter 17​: Enhanced Direct Memory Access (eDMA)
Chip-specific eDMA information
Number of channels
Introduction
eDMA system block diagram
Block parts
Features
Modes of operation
Memory map/register definition
TCD memory
TCD initialization
TCD structure
Reserved memory and bit fields
DMA register descriptions
DMA Memory map
Control Register (CR)
Error Status Register (ES)
Enable Request Register (ERQ)
Enable Error Interrupt Register (EEI)
Clear Enable Error Interrupt Register (CEEI)
Set Enable Error Interrupt Register (SEEI)
Clear Enable Request Register (CERQ)
Set Enable Request Register (SERQ)
Clear DONE Status Bit Register (CDNE)
Set START Bit Register (SSRT)
Clear Error Register (CERR)
Clear Interrupt Request Register (CINT)
Interrupt Request Register (INT)
Error Register (ERR)
Hardware Request Status Register (HRS)
Enable Asynchronous Request in Stop Register (EARS)
Channel Priority Register (DCHP​RI0 - DCHP​RI15)
TCD Source Address (TCD0​_​SAD​DR - TCD1​5_​SA​DDR)
TCD Signed Source Address Offset (TCD0​_​SOF​F - TCD1​5_​SO​FF)
TCD Transfer Attributes (TCD0​_​ATT​R - TCD1​5_​AT​TR)
TCD Minor Byte Count (Minor Loop Mapping Disabled) (TCD0​_​NBY​TES_​​MLNO - TCD1​5_​NB​YTES​_​MLN​O)
TCD Signed Minor Loop Offset (Minor Loop Mapping Enabled and Offset Disabled) (TCD0​_​NBY​TES_​​MLOF​FNO - TCD1​5_​NB​YTES​_​MLO​FFNO)
TCD Signed Minor Loop Offset (Minor Loop Mapping and Offset Enabled) (TCD0​_​NBY​TES_​​MLOF​FYES - TCD1​5_​NB​YTES​_​MLO​FFYE​S)
TCD Last Source Address Adjustment (TCD0​_​SLA​ST - TCD1​5_​SL​AST)
TCD Destination Address (TCD0​_​DAD​DR - TCD1​5_​DA​DDR)
TCD Signed Destination Address Offset (TCD0​_​DOF​F - TCD1​5_​DO​FF)
TCD Current Minor Loop Link, Major Loop Count (Channel Linking Disabled) (TCD0​_​CIT​ER_​E​LINK​NO - TCD1​5_​CI​TER_​​ELIN​KNO)
TCD Current Minor Loop Link, Major Loop Count (Channel Linking Enabled) (TCD0​_​CIT​ER_​E​LINK​YES - TCD1​5_​CI​TER_​​ELIN​KYES)
TCD Last Destination Address Adjustment/Scatter Gather Address (TCD0​_​DLA​STSG​A - TCD1​5_​DL​ASTS​GA)
TCD Control and Status (TCD0​_​CSR - TCD1​5_​CS​R)
TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Disabled) (TCD0​_​BIT​ER_​E​LINK​NO - TCD1​5_​BI​TER_​​ELIN​KNO)
TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Enabled) (TCD0​_​BIT​ER_​E​LINK​YES - TCD1​5_​BI​TER_​​ELIN​KYES)
Functional description
eDMA basic data flow
Fault reporting and handling
Channel preemption
Initialization/application information
eDMA initialization
Programming errors
Arbitration mode considerations
Fixed channel arbitration
Round-robin channel arbitration
Performing DMA transfers
Single request
Multiple requests
Using the modulo feature
Monitoring transfer descriptor status
Testing for minor loop completion
Reading the transfer descriptors of active channels
Checking channel preemption status
Channel Linking
Dynamic programming
Dynamically changing the channel priority
Dynamic channel linking
Dynamic scatter/gather
Method 1 (channel not using major loop channel linking)
Method 2 (channel using major loop channel linking)
Suspend/resume a DMA channel with active hardware service requests
Suspend an active DMA channel
Resume a DMA channel
Chapter 18​: Trigger MUX Control (TRGMUX)
Chip-specific TRGMUX information
Module interconnectivity
TRGMUX register information
Introduction
Features
Memory map and register definition
TRGMUX register descriptions
TRGMUX Memory map
TRGMUX DMAMUX0 Register (DMAM​UX0)
TRGMUX EXTOUT0 Register (EXTO​UT0)
TRGMUX EXTOUT1 Register (EXTO​UT1)
TRGMUX ADC0 Register (ADC0)
TRGMUX ADC1 Register (ADC1)
TRGMUX CMP0 Register (CMP0)
TRGMUX FTM0 Register (FTM0)
TRGMUX FTM1 Register (FTM1)
TRGMUX FTM2 Register (FTM2)
TRGMUX FTM3 Register (FTM3)
TRGMUX PDB0 Register (PDB0)
TRGMUX PDB1 Register (PDB1)
TRGMUX FLEXIO Register (FLEX​IO)
TRGMUX LPIT0 Register (LPIT​0)
TRGMUX LPUART0 Register (LPUA​RT0)
TRGMUX LPUART1 Register (LPUA​RT1)
TRGMUX LPI2C0 Register (LPI2​C0)
TRGMUX LPSPI0 Register (LPSP​I0)
TRGMUX LPSPI1 Register (LPSP​I1)
TRGMUX LPTMR0 Register (LPTM​R0)
TRGMUX LPI2C1 Register (LPI2​C1)
TRGMUX FTM4 Register (FTM4)
TRGMUX FTM5 Register (FTM5)
TRGMUX FTM6 Register (FTM6)
TRGMUX FTM7 Register (FTM7)
Chapter 19​: External Watchdog Monitor (EWM)
Chip-specific EWM information
EWM_OUT signal configuration
EWM Memory Map access
EWM low-power modes
Introduction
Features
Modes of Operation
Stop Mode
Debug Mode
Block Diagram
EWM Signal Descriptions
Memory Map/Register Definition
EWM register descriptions
EWM Memory map
Control Register (CTRL)
Service Register (SERV)
Compare Low Register (CMPL)
Compare High Register (CMPH)
Clock Prescaler Register (CLKP​RESC​ALER)
Functional Description
The EWM_OUT_b Signal
EWM_OUT_b pin state in low power modes
The EWM_in Signal
EWM Counter
EWM Compare Registers
EWM Refresh Mechanism
EWM Interrupt
Counter clock prescaler
Chapter 20​: Error Injection Module (EIM)
Chip-specific EIM information
EIM channel assignments
Introduction
Overview
Features
EIM register descriptions
EIM Memory map
Error Injection Module Configuration Register (EIMC​R)
Error Injection Channel Enable register (EICH​EN)
Error Injection Channel Descriptor n, Word0 (EICH​D0_​W​ORD0 - EICH​D1_​W​ORD0)
Error Injection Channel Descriptor n, Word1 (EICH​D0_​W​ORD1 - EICH​D1_​W​ORD1)
Functional description
Chapter 21​: Error Reporting Module (ERM)
Chip-specific ERM information
Sources of memory error events
Introduction
Overview
Features
ERM register descriptions
ERM Memory map
ERM Configuration Register 0 (CR0)
ERM Status Register 0 (SR0)
ERM Memory n Error Address Register (EAR0 - EAR1)
Functional description
Single-bit correction events
Non-correctable error events
Initialization
Chapter 22​: Watchdog timer (WDOG)
Chip-specific WDOG information
WDOG clocks
WDOG low-power modes
Default watchdog timeout
Introduction
Features
Block diagram
Memory map and register definition
WDOG register descriptions
WDOG Memory map
Watchdog Control and Status Register (CS)
Watchdog Counter Register (CNT)
Watchdog Timeout Value Register (TOVA​L)
Watchdog Window Register (WIN)
Functional description
Clock source
Watchdog refresh mechanism
Window mode
Refreshing the Watchdog
Using interrupts to delay resets
Backup reset
Functionality in debug and low-power modes
Fast testing of the watchdog
Testing each byte of the counter
Entering user mode
Application Information
Chapter 23​: Cyclic Redundancy Check (CRC)
Chip-specific CRC information
Introduction
Features
Block diagram
Modes of operation
Run mode
Low-power modes (Stop)
Memory map and register descriptions
CRC register descriptions
CRC Memory map
CRC Data register (DATA)
CRC Polynomial register (GPOL​Y)
CRC Control register (CTRL)
Functional description
CRC initialization/reinitialization
CRC calculations
16-bit CRC
32-bit CRC
Transpose feature
Types of transpose
CRC result complement
Chapters 24-25 Reset and Boot
Chapter 24​: Reset and Boot
Introduction
Reset
Power-on reset (POR)
System reset sources
External pin reset
RESET_B pin filter
Low voltage detect (LVD)
Watchdog reset
Loss-of-clock (LOC) reset
Loss-of-lock (LOL) reset
Stop mode acknowledge error (SACKERR)
Software reset (SW)
Lockup reset (LOCKUP)
MDM-AP system reset request
MCU Resets
Reset pin
Debug resets
JTAG reset
Resetting the debug subsystem
Boot
Boot sources
FOPT boot options
Boot sequence
Chapter 25​: Reset Control Module (RCM)
Chip-specific RCM information
RCM register information
Reset pin filter operation in STOP1/2 modes
Introduction
Reset memory map and register descriptions
RCM
RCM_VERID
RCM_PARAM
RCM_SRS
RCM_RPC
RCM_SSRS
RCM_SRIE
Chapters 26-29 Clocking
Chapter 26​: Clock Distribution
Introduction
High level clocking diagram
Clock definitions
Internal clocking requirements
Clock divider values after reset
HSRUN mode clocking
VLPR mode clocking
VLPR/VLPS mode entry
Clock Gating
Module clocks
Chapter 27​: System Clock Generator (SCG)
Chip-specific SCG information
Introduction
Features
Memory Map/Register Definition
SCG
SCG_VERID
SCG_PARAM
SCG_CSR
SCG_RCCR
SCG_VCCR
SCG_HCCR
SCG_CLKOUTCNFG
SCG_SOSCCSR
SCG_SOSCDIV
SCG_SOSCCFG
SCG_SIRCCSR
SCG_SIRCDIV
SCG_SIRCCFG
SCG_FIRCCSR
SCG_FIRCDIV
SCG_FIRCCFG
SCG_SPLLCSR
SCG_SPLLDIV
SCG_SPLLCFG
Functional description
SCG Clock Mode Transitions
Chapter 28​: Peripheral Clock Controller (PCC)
Chip-specific PCC information
PCC register information
PCC CMU0 Register (PCC_​​CMU0)
PCC CMU1 Register (PCC_​​CMU1)
Introduction
Features
Functional description
Memory map and register definition
PCC register descriptions
PCC Memory map
PCC FTFC Register (PCC_​​FTFC)
PCC DMAMUX Register (PCC_​​DMAM​UX)
PCC FlexCAN0 Register (PCC_​​Flex​CAN0)
PCC FlexCAN1 Register (PCC_​​Flex​CAN1)
PCC FTM3 Register (PCC_​​FTM3)
PCC ADC1 Register (PCC_​​ADC1)
PCC FlexCAN2 Register (PCC_​​Flex​CAN2)
PCC LPSPI0 Register (PCC_​​LPSP​I0)
PCC LPSPI1 Register (PCC_​​LPSP​I1)
PCC LPSPI2 Register (PCC_​​LPSP​I2)
PCC PDB1 Register (PCC_​​PDB1)
PCC CRC Register (PCC_​​CRC)
PCC PDB0 Register (PCC_​​PDB0)
PCC LPIT Register (PCC_​​LPIT)
PCC FTM0 Register (PCC_​​FTM0)
PCC FTM1 Register (PCC_​​FTM1)
PCC FTM2 Register (PCC_​​FTM2)
PCC ADC0 Register (PCC_​​ADC0)
PCC RTC Register (PCC_​​RTC)
PCC LPTMR0 Register (PCC_​​LPTM​R0)
PCC PORTA Register (PCC_​​PORT​A)
PCC PORTB Register (PCC_​​PORT​B)
PCC PORTC Register (PCC_​​PORT​C)
PCC PORTD Register (PCC_​​PORT​D)
PCC PORTE Register (PCC_​​PORT​E)
PCC SAI0 Register (PCC_​​SAI0)
PCC SAI1 Register (PCC_​​SAI1)
PCC FlexIO Register (PCC_​​Flex​IO)
PCC EWM Register (PCC_​​EWM)
PCC LPI2C0 Register (PCC_​​LPI2​C0)
PCC LPI2C1 Register (PCC_​​LPI2​C1)
PCC LPUART0 Register (PCC_​​LPUA​RT0)
PCC LPUART1 Register (PCC_​​LPUA​RT1)
PCC LPUART2 Register (PCC_​​LPUA​RT2)
PCC FTM4 Register (PCC_​​FTM4)
PCC FTM5 Register (PCC_​​FTM5)
PCC FTM6 Register (PCC_​​FTM6)
PCC FTM7 Register (PCC_​​FTM7)
PCC CMP0 Register (PCC_​​CMP0)
PCC QSPI Register (PCC_​​QSPI)
PCC ENET Register (PCC_​​ENET)
Chapter 29​: Clock Monitoring Unit (CMU)
CMU chip-specific information
Introduction
Basic operation
Main features
CMU-FC register descriptions
CMU-FC Memory map
CMU Frequency Check Global Configuration Register (GCR)
CMU Frequency Check Reference Count Configuration Register (RCCR)
CMU Frequency Check High Threshold Configuration Register (HTCR)
CMU Frequency Check Low Threshold Configuration Register (LTCR)
CMU Frequency Check Status Register (SR)
CMU Frequency Check Interrupt/Event Enable Register (IER)
Monitored clock lost
Functional description
Programming guidelines
Programming HFREF and LFREF
Programming CMU_FC_RCCR[REF_CNT]
Module Programming Sequence
Chapters 30-36 Memories and Memory Interfaces
Chapter 30​: Memories and Memory Interfaces
Introduction
Flash Memory Controller and flash memory modules
SRAM configuration
SRAM sizes
SRAM accessibility
SRAM arbitration and priority control
SRAM retention: power modes and resets
Chapter 31​: PRAM Controller (PRAMC)
PRAMC chip-specific information
Introduction
Memory map and register definition
Functional description
Error Correcting Code (ECC)
Overview
Read/Write introduction
Reads
Unaligned reads
ECC errors on reads
Optional read wait-state
Reads and ECC events
Writes
32-bit writes
Less than 32-bit writes
Unaligned writes
Late write hits
Initialization / Application information
Chapter 32​: Local Memory Controller (LMEM)
Chip-specific LMEM information
LMEM region description
LMEM SRAM sizes
Introduction
Block Diagram
Cache features
Memory Map/Register Definition
LMEM register descriptions
LMEM Memory map
Cache control register (PCCC​R)
Cache line control register (PCCL​CR)
Cache search address register (PCCS​AR)
Cache read/write value register (PCCC​VR)
Cache regions mode register (PCCR​MR)
Functional Description
LMEM Function
SRAM Function
SRAM Configuration
SRAM Arrays
SRAM Accesses
Cache Function
Cache Control
Cache set commands
Cache line commands
Chapter 33​: Miscellaneous System Control Module (MSCM)
Chip-specific MSCM information
Chip-specific TMLSZ/TMUSZ information
Chip-specific register information
Overview
Chip Configuration and Boot
MSCM Memory Map/Register Definition
CPU Configuration Memory Map and Registers
MSCM register descriptions
MSCM Memory map
Processor X Type Register (CPxT​YPE)
Processor X Number Register (CPxN​UM)
Processor X Master Register (CPxM​ASTE​R)
Processor X Count Register (CPxC​OUNT)
Processor X Configuration Register 0 (CPxC​FG0)
Processor X Configuration Register 1 (CPxC​FG1)
Processor X Configuration Register 2 (CPxC​FG2)
Processor X Configuration Register 3 (CPxC​FG3)
Processor 0 Type Register (CP0T​YPE)
Processor 0 Number Register (CP0N​UM)
Processor 0 Master Register (CP0M​ASTE​R)
Processor 0 Count Register (CP0C​OUNT)
Processor 0 Configuration Register 0 (CP0C​FG0)
Processor 0 Configuration Register 1 (CP0C​FG1)
Processor 0 Configuration Register 2 (CP0C​FG2)
Processor 0 Configuration Register 3 (CP0C​FG3)
On-Chip Memory Descriptor Register (OCMD​R0)
On-Chip Memory Descriptor Register (OCMD​R1)
On-Chip Memory Descriptor Register (OCMD​R2)
Chapter 34​: Flash Memory Controller (FMC)
Chip-specific FMC information
FMC masters
Program flash and Data flash port width
Introduction
Overview
Features
Modes of operation
External signal description
Functional description
Default configuration
Speculative reads
Initialization and application information
Chapter 35​: Flash Memory Module (FTFC)
Chip-specific FTFC information
Flash memory types
Flash memory sizes
128 KB program flash / 32 KB FlexNVM / 2 KB FlexRAM module
Emulated EEPROM data set size (EEESIZE)
FlexNVM partition code (DEPART)
256 KB program flash / 32 KB FlexNVM / 2 KB FlexRAM module
Emulated EEPROM data set size (EEESIZE)
FlexNVM partition code (DEPART)
256 KB program flash / 64 KB FlexNVM / 4 KB FlexRAM module
Emulated EEPROM data set size (EEESIZE)
FlexNVM partition code (DEPART)
512 KB program flash / 64 KB FlexNVM / 4 KB FlexRAM module
Emulated EEPROM data set size (EEESIZE)
FlexNVM partition code (DEPART)
1 MB program flash / 256 KB FlexNVM / 4 KB FlexRAM module
Emulated EEPROM data set size (EEESIZE)
FlexNVM partition code (DEPART)
2 MB program flash / 256 KB FlexNVM / 4 KB FlexRAM module
Emulated EEPROM data set size (EEESIZE)
FlexNVM partition code (DEPART)
Flash memory map
Flash memory security
Power mode restrictions on flash memory programming
Flash memory modes
Erase all contents of flash memory
Customize MCU operations via FTFC_FOPT register
Simultaneous operations on PFLASH read partitions
Introduction
Features
Program flash memory features
FlexNVM memory features
FlexRAM features
Cryptographic Services Engine (CSEc) module features
Other FTFC module features
Block diagram
Glossary
External signal description
Memory map and registers
Flash configuration field description
Program flash 0 IFR map
Program Once field
Data flash 0 IFR map
EEPROM data set size
FlexNVM partition code
Register descriptions
FTFC register descriptions
FTFC Memory map
Flash Status Register (FSTA​T)
Flash Configuration Register (FCNF​G)
Flash Security Register (FSEC)
Flash Option Register (FOPT)
Flash Common Command Object Registers (FCCO​B0 - FCCO​BB)
Program Flash Protection Registers (FPRO​T0 - FPRO​T3)
EEPROM Protection Register (FEPR​OT)
Data Flash Protection Register (FDPR​OT)
Flash CSEc Status Register (FCSE​STAT)
Flash Error Status Register (FERS​TAT)
Flash Error Configuration Register (FERC​NFG)
Functional description
Flash protection
FlexNVM description
FlexNVM block partitioning for FlexRAM
EEPROM user perspective
EEPROM implementation overview
Write endurance to FlexRAM for emulated EEPROM
ECC implementation for FlexNVM
Interrupts
Flash operation in low-power modes
Wait mode
Stop mode
Functional modes of operation
Flash memory reads and ignored writes
Read while write (RWW)
Flash program and erase
FTFC command operations
Command write sequence
Load the FCCOB registers
Launch the command by clearing CCIF
Command execution and error reporting
Flash commands
Flash commands by mode
Allowed simultaneous flash operations
Margin read commands
Flash command descriptions
Read 1s Block command
Read 1s Section command
Program Check command
Program Phrase command
Erase Flash Block command
Erase Flash Sector command
Suspending an Erase Flash Sector operation
Resuming a suspended Erase Flash Sector operation
Aborting a suspended Erase Flash Sector operation
Program Section command
Flash sector programming
Read 1s All Blocks command
Read Once command
Program Once command
Erase All Blocks command
Triggering an erase all external to the flash module
Verify Backdoor Access Key command
Erase All Blocks Unsecure command
Program Partition command
Set FlexRAM Function command
Security
FTFC access by mode and security
Changing the security state
Un-securing the MCU using backdoor key access
Cryptographic Services Engine (CSEc)
Key/seed/random number generation
Secure boot mode
User CSEc command interface and command set
CSEc command header
Generic PRAM interface description
CMD_ENC_ECB
CMD_ENC_CBC
CMD_DEC_ECB
CMD_DEC_CBC
CMD_GENERATE_MAC
CSEc format for CMD_GENERATE_MAC (pointer method)
CMD_VERIFY_MAC
CMD_VERIFY_MAC - CSEc format (pointer method)
CMD_LOAD_KEY
CMD_LOAD_PLAIN_KEY
CMD_EXPORT_RAM_KEY
CMD_INIT_RNG
CMD_EXTEND_SEED
CMD_RND
CMD_SECURE_BOOT
CMD_BOOT_FAILURE
CMD_BOOT_OK
CMD_GET_STATUS
CMD_GET_ID
CMD_CANCEL
CMD_BOOT_DEFINE
CMD_DBG_CHAL
CMD_DBG_AUTH
CMD_MP_COMPRESS
Reset sequence
Chapter 36​: Quad Serial Peripheral Interface (QuadSPI)
Chip-specific QuadSPI information
Overview
Memory size requirement
QuadSPI register reset values
Use case
Supported read modes
External memory options
Recommended software configuration
Recommended programming sequence
Clock ratio between QuadSPI clocks
QuadSPI_MCR[SCLKCFG] implementation
QuadSPI_SOCCR[SOCCFG] implementation
Introduction
Features
Block Diagram
QuadSPI Modes of Operation
Acronyms and Abbreviations
Glossary for QuadSPI module
External Signal Description
Driving External Signals
Memory Map and Register Definition
Register Write Access
Peripheral Bus Register Descriptions
QuadSPI
QuadSPI_MCR
QuadSPI_IPCR
QuadSPI_FLSHCR
QuadSPI_BUF0CR
QuadSPI_BUF1CR
QuadSPI_BUF2CR
QuadSPI_BUF3CR
QuadSPI_BFGENCR
QuadSPI_SOCCR
QuadSPI_BUF0IND
QuadSPI_BUF1IND
QuadSPI_BUF2IND
QuadSPI_SFAR
QuadSPI_SFACR
QuadSPI_SMPR
QuadSPI_RBSR
QuadSPI_RBCT
QuadSPI_TBSR
QuadSPI_TBDR
QuadSPI_TBCT
QuadSPI_SR
QuadSPI_FR
QuadSPI_RSER
QuadSPI_SPNDST
QuadSPI_SPTRCLR
QuadSPI_SFA1AD
QuadSPI_SFA2AD
QuadSPI_SFB1AD
QuadSPI_SFB2AD
QuadSPI_RBDRn
QuadSPI_LUTKEY
QuadSPI_LCKCR
QuadSPI_LUTn
Serial Flash Address Assignment
Flash memory mapped AMBA bus
AHB Bus Access Considerations
Memory Mapped Serial Flash Data - Individual Flash Mode on Flash A
Memory Mapped Serial Flash Data - Individual Flash Mode on Flash B
AHB RX Data Buffer (QSPI_ARDB0 to QSPI_ARDB31)
ARDBn
Interrupt Signals
Functional Description
Serial Flash Access Schemes
Normal Mode
Programmable Sequence Engine
Flexible AHB buffers
Suspend-Abort Mechanism
HBURST Support
Look-up Table
Issuing Serial Flash Memory (SFM) Commands
Flash Programming
Flash Read
Byte Ordering of Serial Flash Read Data
Normal Mode Interrupt and DMA Requests
TX Buffer Operation
Address scheme
HyperRAM Support
Initialization/Application Information
Power Up and Reset
Available Status/Flag Information
IP Commands
AHB Commands
Overview of Error Flags
IP Bus and AHB Access Command Collisions
Exclusive Access to Serial Flash for AHB Commands
RX Buffer Read via QSPI_ARDB Registers
RX Buffer Read via QSPI_RBDR Registers
Command Arbitration
Flash Device Selection
DMA Usage
DMA Usage in Normal Mode
Bandwidth considerations
Byte Ordering - Endianness
Programming Flash Data
Reading Flash Data into the RX Buffer
Readout of the RX Buffer via QSPI_RBDRn
Readout of the RX Buffer via ARDBn
Reading Flash Data into the AHB Buffer
Readout of the AHB Buffer via Memory Mapped Read
Driving Flash Control Signals in Single and Dual Mode
Serial Flash Devices
Example Sequences
Read Command (Spansion Hyperflash/HyperRAM)
Read Status Register(Spansion Hyperflash/HyperRAM)
Word Program (Spansion Hyperflash/HyperRAM)
Fast Read Sequence (Macronix/Numonyx/Spansion/Winbond)
Fast Dual I/O DT Read Sequence (Macronix)
Fast Read Quad Output (Winbond)
4 x I/O Read Enhance Performance Mode (XIP) (Macronix)
Dual Command Page Program (Numonyx)
Sector Erase (Macronix/Spansion/Numonyx)
Read Status Register (Macronix/Spansion/Numonyx/Winbond)
Sampling of Serial Flash Input Data
Basic Description
Supported read modes
SDR mode
Internal sampling
DQS sampling method
DDR Mode
DQS sampling method
Data Strobe (DQS) sampling method
Basic Description
Internally generated DQS
External DQS
Data Input Hold Requirement of Flash
Chapters 37-39 Power Management
Chapter 37​: Power Management
Introduction
Power modes description
Entering and exiting power modes
Clocking modes
Clock gating
Stop mode options
DMA wake-up
Compute Operation (CPO)
Peripheral Doze
Power mode transitions
Shutdown sequencing for power modes
Power mode restrictions on flash memory programming
Module operation in available low power modes
QuadSPI, Ethernet, and SAI operation
Chapter 38​: System Mode Controller (SMC)
Introduction
Modes of operation
Memory map and register descriptions
SMC
SMC_VERID
SMC_PARAM
SMC_PMPROT
SMC_PMCTRL
SMC_ STOPCTRL
SMC_PMSTAT
Functional description
Power mode transitions
Power mode entry/exit sequencing
VLPS/Stop mode entry sequence
VLPS/Stop mode exit sequence
Aborted very low power stop mode entry
Transition from stop modes to Debug mode
Run modes
RUN mode
Very-Low Power Run (VLPR) mode
High Speed Run (HSRUN) mode
Stop modes
STOP mode
Very-Low-Power Stop (VLPS) mode
Debug in low power modes
Chapter 39​: Power Management Controller (PMC)
Chip-specific PMC information
Modes supported
Introduction
Features
Modes of Operation
Full Performance Mode (FPM)
Low Power Mode (LPM)
Low Voltage Detect (LVD) System
Low Voltage Reset (LVR) Operation
LVD Interrupt Operation
Low-voltage warning (LVW) interrupt operation
Memory Map and Register Definition
PMC register descriptions
PMC Memory map
Low Voltage Detect Status and Control 1 Register (LVDS​C1)
Low Voltage Detect Status and Control 2 Register (LVDS​C2)
Regulator Status and Control Register (REGS​C)
Low Power Oscillator Trim Register (LPOT​RIM)
Chapters 40-42 Analog Modules
Chapter 40​: ADC Configuration
Instantiation information
ADC Connections/Channel Assignment
Register implementation
DMA Support on ADC
ADC Hardware Interleaved Channels
ADC internal supply monitoring
ADC Reference Options
ADC Trigger Sources
PDB triggering scheme
TRGMUX trigger scheme
Trigger Selection
Trigger Latching and Arbitration
ADC triggering configurations
ADC low-power modes
ADC Trigger Concept – Use Case
ADC calibration scheme
Chapter 41​: Analog-to-Digital Converter (ADC)
Chip-specific ADC information
Introduction
Features
Block diagram
ADC signal descriptions
Analog Power (VDDA)
Analog Ground (VSSA)
Voltage Reference Select
Analog Channel Inputs (ADx)
ADC register descriptions
ADC Memory map
ADC Status and Control Register 1 (SC1A - aSC1​P)
ADC Configuration Register 1 (CFG1)
ADC Configuration Register 2 (CFG2)
ADC Data Result Registers (RA - aRP)
Compare Value Registers (CV1 - CV2)
Status and Control Register 2 (SC2)
Status and Control Register 3 (SC3)
BASE Offset Register (BASE​_​OFS)
ADC Offset Correction Register (OFS)
USER Offset Correction Register (USR_​​OFS)
ADC X Offset Correction Register (XOFS)
ADC Y Offset Correction Register (YOFS)
ADC Gain Register (G)
ADC User Gain Register (UG)
ADC General Calibration Value Register S (CLPS)
ADC Plus-Side General Calibration Value Register 3 (CLP3)
ADC Plus-Side General Calibration Value Register 2 (CLP2)
ADC Plus-Side General Calibration Value Register 1 (CLP1)
ADC Plus-Side General Calibration Value Register 0 (CLP0)
ADC Plus-Side General Calibration Value Register X (CLPX)
ADC Plus-Side General Calibration Value Register 9 (CLP9)
ADC General Calibration Offset Value Register S (CLPS​_​OFS)
ADC Plus-Side General Calibration Offset Value Register 3 (CLP3​_​OFS)
ADC Plus-Side General Calibration Offset Value Register 2 (CLP2​_​OFS)
ADC Plus-Side General Calibration Offset Value Register 1 (CLP1​_​OFS)
ADC Plus-Side General Calibration Offset Value Register 0 (CLP0​_​OFS)
ADC Plus-Side General Calibration Offset Value Register X (CLPX​_​OFS)
ADC Plus-Side General Calibration Offset Value Register 9 (CLP9​_​OFS)
ADC Status and Control Register 1 (SC1A​A - SC1Z)
ADC Data Result Registers (RAA - RZ)
Functional description
Clock select and divide control
Voltage reference selection
Hardware trigger and channel selects
Conversion control
Initiating conversions
Completing conversions
Aborting conversions
Power control
Sample time and total conversion time
Hardware average function
Automatic compare function
Calibration function
User-defined offset function
MCU Normal Stop mode operation
Normal Stop mode with Alternate clock sources enabled
Chapter 42​: Comparator (CMP)
Chip-specific CMP information
Instantiation information
CMP input connections
CMP external references
External window/sample input
CMP trigger mode
Programming recommendation
Introduction
Features
CMP features
8-bit DAC key features
ANMUX key features
CMP, DAC, and ANMUX diagram
CMP block diagram
CMP pin descriptions
External pins
CMP functional modes
Disabled mode (# 1)
Continuous mode (#s 2A & 2B)
Sampled, Non-Filtered mode (#s 3A & 3B)
Sampled, Filtered mode (#s 4A & 4B)
Windowed mode (#s 5A & 5B)
Windowed/Resampled mode (# 6)
Windowed/Filtered mode (#7)
Memory map/register definitions
CMP
CMP_C0
CMP_C1
CMP_C2
CMP functional description
Initialization
Low-pass filter
Enabling filter modes
Latency issues
Interrupts
DMA support
DAC functional description
Digital-to-analog converter block diagram
DAC resets
DAC clocks
DAC interrupts
Trigger mode
Chapters 43-47 Timer Modules
Chapter 43​: Programmable delay block (PDB)
Chip-specific PDB information
Instantiation Information
PDB trigger interconnections with ADC and TRGMUX
Back-to-back acknowledgement connections
Pulse-Out Enable Register Implementation
Introduction
Features
Implementation
Back-to-back acknowledgment connections
Block diagram
Modes of operation
Memory map and register definition
PDB
PDB_SC
PDB_MOD
PDB_CNT
PDB_IDLY
PDB_CHnC1
PDB_CHnS
PDB_CHnDLY0
PDB_CHnDLY1
PDB_CHnDLY2
PDB_CHnDLY3
PDB_CHnDLY4
PDB_CHnDLY5
PDB_CHnDLY6
PDB_CHnDLY7
PDB_POEN
PDB_POnDLY
Functional description
PDB pre-trigger and trigger outputs
PDB trigger input source selection
Pulse-Out's
Updating the delay registers
Interrupts
DMA
Application information
Impact of using the prescaler and multiplication factor on timing resolution
Chapter 44​: FlexTimer Module (FTM)
Chip-specific FTM information
Instantiation Information
FTM Interrupts
FTM Fault Detection Inputs
FTM Hardware Triggers and Synchronization
FTM Input Capture Options
FTM Hall sensor support
FTM Modulation Implementation
FTM Global Time Base
FTM BDM and debug halt mode
Introduction
FlexTimer philosophy
Features
Modes of operation
Block Diagram
FTM signal descriptions
Memory map and register definition
Memory map
Register descriptions
FTM register descriptions
FTM Memory map
Status And Control (SC)
Counter (CNT)
Modulo (MOD)
Channel (n) Status And Control (C0SC - C7SC)
Channel (n) Value (C0V - C7V)
Counter Initial Value (CNTI​N)
Capture And Compare Status (STAT​US)
Features Mode Selection (MODE)
Synchronization (SYNC)
Initial State For Channels Output (OUTI​NIT)
Output Mask (OUTM​ASK)
Function For Linked Channels (COMB​INE)
Deadtime Configuration (DEAD​TIME)
FTM External Trigger (EXTT​RIG)
Channels Polarity (POL)
Fault Mode Status (FMS)
Input Capture Filter Control (FILT​ER)
Fault Control (FLTC​TRL)
Quadrature Decoder Control And Status (QDCT​RL)
Configuration (CONF)
FTM Fault Input Polarity (FLTP​OL)
Synchronization Configuration (SYNC​ONF)
FTM Inverting Control (INVC​TRL)
FTM Software Output Control (SWOC​TRL)
FTM PWM Load (PWML​OAD)
Half Cycle Register (HCR)
Pair 0 Deadtime Configuration (PAIR​0DEA​DTIM​E)
Pair 1 Deadtime Configuration (PAIR​1DEA​DTIM​E)
Pair 2 Deadtime Configuration (PAIR​2DEA​DTIM​E)
Pair 3 Deadtime Configuration (PAIR​3DEA​DTIM​E)
Mirror of Modulo Value (MOD_​​MIRR​OR)
Mirror of Channel (n) Match Value (C0V_​​MIRR​OR - C7V_​​MIRR​OR)
Functional Description
Clock source
Counter clock source
Prescaler
Counter
Up counting
Up-down counting
Free running counter
Counter reset
Counter events
Channel Modes
Input Capture Mode
Filter for Input Capture Mode
FTM Counter Reset in Input Capture Mode
Output Compare mode
Edge-Aligned PWM (EPWM) mode
Center-Aligned PWM (CPWM) mode
Combine mode
Asymmetrical PWM
Modified Combine PWM Mode
Synchronization
Complementary Mode
Registers updated from write buffers
CNTIN register update
MOD and HCR registers update
CnV register update
PWM synchronization
Hardware trigger
Software trigger
Synchronization Points
MOD register synchronization
CNTIN register synchronization
C(n)V and C(n+1)V register synchronization
OUTMASK register synchronization
INVCTRL register synchronization
SWOCTRL register synchronization
FTM counter synchronization
Inverting
Software Output Control Mode
Deadtime insertion
Separated Deadtime by Pair of Channels
Deadtime insertion corner cases
Output mask
Fault Control
Automatic fault clearing
Manual fault clearing
Fault inputs polarity control
Polarity Control
Initialization
Features Priority
External Trigger
Initialization Trigger
Capture Test Mode
DMA
Dual Edge Capture Mode
One-Shot Capture mode
Continuous Capture mode
Pulse width measurement
Period measurement
Read coherency mechanism
Quadrature Decoder Mode
Quadrature Decoder boundary conditions
Debug mode
Reload Points
Reload Opportunities
Frequency of Reload Opportunities
Update of the Registers
Global Load
Global time base (GTB)
Enabling the global time base (GTB)
Channel trigger output
External Control of Channels Output
Dithering
PWM Period Dithering
Up Counting
Up-Down Counting
PWM Edge Dithering
EPWM Mode
CPWM Mode
Combine Mode
Modified Combine PWM Mode
Reset Overview
FTM Interrupts
Timer Overflow Interrupt
Reload Point Interrupt
Channel (n) Interrupt
Fault Interrupt
Initialization Procedure
Chapter 45​: Low Power Interrupt Timer (LPIT)
Chip-specific LPIT information
Instantiation Information
LPIT/DMA Periodic Trigger Assignments
LPIT input triggers
LPIT/ADC Trigger
Introduction
Modes of operation
Memory Map and Registers
LPIT register descriptions
LPIT Memory map
Version ID Register (VERI​D)
Parameter Register (PARA​M)
Module Control Register (MCR)
Module Status Register (MSR)
Module Interrupt Enable Register (MIER)
Set Timer Enable Register (SETT​EN)
Clear Timer Enable Register (CLRT​EN)
Timer Value Register (TVAL​0 - TVAL​3)
Current Timer Value (CVAL​0 - CVAL​3)
Timer Control Register (TCTR​L0 - TCTR​L3)
Functional description
LPIT programming model
Initialization
Timer Modes
Trigger Control for Timers
Channel Chaining
Detailed timing
Chapter 46​: Low Power Timer (LPTMR)
Chip-specific LPTMR information
Instantiation Information
LPTMR pulse counter input options
Introduction
Features
Modes of operation
LPTMR signal descriptions
Detailed signal descriptions
Memory map and register definition
LPTMR register descriptions
LPTMR Memory map
Low Power Timer Control Status Register (CSR)
Low Power Timer Prescale Register (PSR)
Low Power Timer Compare Register (CMR)
Low Power Timer Counter Register (CNR)
Functional description
LPTMR power and reset
LPTMR clocking
LPTMR prescaler/glitch filter
Prescaler enabled
Prescaler bypassed
Glitch filter
Glitch filter bypassed
LPTMR compare
LPTMR counter
LPTMR hardware trigger
LPTMR interrupt
Chapter 47​: Real Time Clock (RTC)
Chip-specific RTC information
RTC instantiation
RTC interrupts
Software recommendation
Introduction
Features
Modes of operation
RTC signal descriptions
RTC clock output
Register definition
RTC register descriptions
RTC Memory map
RTC Time Seconds Register (TSR)
RTC Time Prescaler Register (TPR)
RTC Time Alarm Register (TAR)
RTC Time Compensation Register (TCR)
RTC Control Register (CR)
RTC Status Register (SR)
RTC Lock Register (LR)
RTC Interrupt Enable Register (IER)
Functional description
Power, clocking, and reset
Oscillator control
Software reset
Supervisor access
Time counter
Compensation
Time alarm
Update mode
Register lock
Interrupt
Chapters 48-54 Communication Modules
Chapter 48​: Low Power Serial Peripheral Interface (LPSPI)
Chip-specific LPSPI information
Instantiation Information
Introduction
Features
Block Diagram
Modes of operation
Signal Descriptions
Wiring options
Memory Map and Registers
LPSPI register descriptions
LPSPI Memory map
Version ID Register (VERI​D)
Parameter Register (PARA​M)
Control Register (CR)
Status Register (SR)
Interrupt Enable Register (IER)
DMA Enable Register (DER)
Configuration Register 0 (CFGR​0)
Configuration Register 1 (CFGR​1)
Data Match Register 0 (DMR0)
Data Match Register 1 (DMR1)
Clock Configuration Register (CCR)
FIFO Control Register (FCR)
FIFO Status Register (FSR)
Transmit Command Register (TCR)
Transmit Data Register (TDR)
Receive Status Register (RSR)
Receive Data Register (RDR)
Functional description
Clocking and resets
Master Mode
Slave Mode
Interrupts and DMA Requests
Peripheral Triggers
Chapter 49​: Low Power Inter-Integrated Circuit (LPI2C)
Chip-specific LPI2C information
Instantiation information
Introduction
Features
Block Diagram
Modes of operation
Signal Descriptions
Wiring options
Memory Map and Registers
LPI2C register descriptions
LPI2C Memory map
Version ID Register (VERI​D)
Parameter Register (PARA​M)
Master Control Register (MCR)
Master Status Register (MSR)
Master Interrupt Enable Register (MIER)
Master DMA Enable Register (MDER)
Master Configuration Register 0 (MCFG​R0)
Master Configuration Register 1 (MCFG​R1)
Master Configuration Register 2 (MCFG​R2)
Master Configuration Register 3 (MCFG​R3)
Master Data Match Register (MDMR)
Master Clock Configuration Register 0 (MCCR​0)
Master Clock Configuration Register 1 (MCCR​1)
Master FIFO Control Register (MFCR)
Master FIFO Status Register (MFSR)
Master Transmit Data Register (MTDR)
Master Receive Data Register (MRDR)
Slave Control Register (SCR)
Slave Status Register (SSR)
Slave Interrupt Enable Register (SIER)
Slave DMA Enable Register (SDER)
Slave Configuration Register 1 (SCFG​R1)
Slave Configuration Register 2 (SCFG​R2)
Slave Address Match Register (SAMR)
Slave Address Status Register (SASR)
Slave Transmit ACK Register (STAR)
Slave Transmit Data Register (STDR)
Slave Receive Data Register (SRDR)
Functional description
Clocking and Resets
Master Mode
Slave Mode
Interrupts and DMA Requests
Peripheral Triggers
Chapter 50​: Low Power Universal Asynchronous Receiver/Transmitter (LPUART)
Chip-specific LPUART information
Instantiation Information
Introduction
Features
Modes of operation
Signal Descriptions
Block diagram
Register definition
LPUART register descriptions
LPUART Memory map
Version ID Register (VERI​D)
Parameter Register (PARA​M)
LPUART Global Register (GLOB​AL)
LPUART Pin Configuration Register (PINC​FG)
LPUART Baud Rate Register (BAUD)
LPUART Status Register (STAT)
LPUART Control Register (CTRL)
LPUART Data Register (DATA)
LPUART Match Address Register (MATC​H)
LPUART Modem IrDA Register (MODI​R)
LPUART FIFO Register (FIFO)
LPUART Watermark Register (WATE​R)
Functional description
Baud rate generation
Transmitter functional description
Send break and queued idle
Hardware flow control
Transceiver driver enable
Transceiver driver enable using RTS_B
Receiver functional description
Data sampling technique
Receiver wakeup operation
Idle-line wakeup
Address-mark wakeup
Data match wakeup
Address Match operation
Idle Match operation
Match On Match Off operation
Hardware flow control
Infrared decoder
Start bit detection
Noise filtering
Low-bit detection
High-bit detection
Additional LPUART functions
Data Modes
Idle length
Loop mode
Single-wire operation
Infrared interface
Infrared transmit encoder
Infrared receive decoder
Interrupts and status flags
Peripheral Triggers
Chapter 51​: Flexible I/O (FlexIO)
Chip-specific FlexIO information
FlexIO Configuration
Introduction
Features
Block Diagram
Modes of operation
FlexIO Signal Descriptions
Memory Map and Registers
FLEXIO register descriptions
FLEXIO Memory map
Version ID Register (VERI​D)
Parameter Register (PARA​M)
FlexIO Control Register (CTRL)
Pin State Register (PIN)
Shifter Status Register (SHIF​TSTA​T)
Shifter Error Register (SHIF​TERR)
Timer Status Register (TIMS​TAT)
Shifter Status Interrupt Enable (SHIF​TSIE​N)
Shifter Error Interrupt Enable (SHIF​TEIE​N)
Timer Interrupt Enable Register (TIMI​EN)
Shifter Status DMA Enable (SHIF​TSDE​N)
Shifter Control N Register (SHIF​TCTL​0 - SHIF​TCTL​3)
Shifter Configuration N Register (SHIF​TCFG​0 - SHIF​TCFG​3)
Shifter Buffer N Register (SHIF​TBUF​0 - SHIF​TBUF​3)
Shifter Buffer N Bit Swapped Register (SHIF​TBUF​BIS0 - SHIF​TBUF​BIS3)
Shifter Buffer N Byte Swapped Register (SHIF​TBUF​BYS0 - SHIF​TBUF​BYS3)
Shifter Buffer N Bit Byte Swapped Register (SHIF​TBUF​BBS0 - SHIF​TBUF​BBS3)
Timer Control N Register (TIMC​TL0 - TIMC​TL3)
Timer Configuration N Register (TIMC​FG0 - TIMC​FG3)
Timer Compare N Register (TIMC​MP0 - TIMC​MP3)
Functional description
Clocking and Resets
Shifter operation
Timer Operation
Pin operation
Interrupts and DMA Requests
Peripheral Triggers
Application Information
UART Transmit
UART Receive
SPI Master
SPI Slave
I2C Master
I2S Master
I2S Slave
Chapter 52​: FlexCAN
Chip-specific FlexCAN information
Instantiation information
Reset value of MDIS bit
FlexCAN external time tick
FlexCAN Interrupts
FlexCAN Operation in Low Power Modes
FlexCAN oscillator clock
Supported baud rate
Requirements for entering FlexCAN modes: Freeze, Disable, Stop
Introduction
Overview
FlexCAN module features
Modes of operation
FlexCAN signal descriptions
CAN Rx
CAN Tx
Memory map/register definition
FlexCAN memory mapping
CAN register descriptions
CAN Memory map
Module Configuration Register (MCR)
Control 1 register (CTRL​1)
Free Running Timer (TIME​R)
Rx Mailboxes Global Mask Register (RXMG​MASK)
Rx 14 Mask register (RX14​MASK)
Rx 15 Mask register (RX15​MASK)
Error Counter (ECR)
Error and Status 1 register (ESR1)
Interrupt Masks 1 register (IMAS​K1)
Interrupt Flags 1 register (IFLA​G1)
Control 2 register (CTRL​2)
Error and Status 2 register (ESR2)
CRC Register (CRCR)
Rx FIFO Global Mask register (RXFG​MASK)
Rx FIFO Information Register (RXFI​R)
CAN Bit Timing Register (CBT)
Rx Individual Mask Registers (RXIM​R0 - RXIM​R31)
Pretended Networking Control 1 Register (CTRL​1_​PN)
Pretended Networking Control 2 Register (CTRL​2_​PN)
Pretended Networking Wake Up Match Register (WU_​M​TC)
Pretended Networking ID Filter 1 Register (FLT_​​ID1)
Pretended Networking DLC Filter Register (FLT_​​DLC)
Pretended Networking Payload Low Filter 1 Register (PL1_​​LO)
Pretended Networking Payload High Filter 1 Register (PL1_​​HI)
Pretended Networking ID Filter 2 Register / ID Mask Register (FLT_​​ID2_​​IDMA​SK)
Pretended Networking Payload Low Filter 2 Register / Payload Low Mask Register (PL2_​​PLMA​SK_​L​O)
Pretended Networking Payload High Filter 2 low order bits / Payload High Mask Register (PL2_​​PLMA​SK_​H​I)
Wake Up Message Buffer Register for C/S (WMB0​_​CS - WMB3​_​CS)
Wake Up Message Buffer Register for ID (WMB0​_​ID - WMB3​_​ID)
Wake Up Message Buffer Register for Data 0-3 (WMB0​_​D03 - WMB3​_​D03)
Wake Up Message Buffer Register Data 4-7 (WMB0​_​D47 - WMB3​_​D47)
CAN FD Control Register (FDCT​RL)
CAN FD Bit Timing Register (FDCB​T)
CAN FD CRC Register (FDCR​C)
Message buffer structure
FlexCAN Memory Partition for CAN FD
FlexCAN message buffer memory map
Rx FIFO structure
Functional description
Transmit process
Arbitration process
Lowest-number Mailbox first
Highest-priority Mailbox first
Local Priority disabled
Local Priority enabled
Arbitration process (continued)
Receive process
Matching process
Receive Process under Pretended Networking Mode
Move process
Move-in
Move-out
Data coherence
Transmission abort mechanism
Mailbox inactivation
Mailbox lock mechanism
Rx FIFO
Rx FIFO under DMA Operation
Clear FIFO Operation
CAN protocol related features
CAN FD ISO compliance
CAN FD frames
Transceiver Delay Compensation
Remote frames
Overload frames
Time stamp
Protocol timing
Arbitration and matching timing
Tx Arbitration start delay
Clock domains and restrictions
Modes of operation details
Freeze mode
Module Disable mode
Stop mode
Pretended Networking Mode
Interrupts
Bus interface
Initialization/application information
FlexCAN initialization sequence
Chapter 53​: Synchronous Audio Interface (SAI)
Chip-specific SAI information
SAI configuration
Chip-specific register information
Introduction
Features
Block diagram
Modes of operation
External signals
Memory map and register definition
I2S register descriptions
I2S Memory map
Version ID Register (VERI​D)
Parameter Register (PARA​M)
SAI Transmit Control Register (TCSR)
SAI Transmit Configuration 1 Register (TCR1)
SAI Transmit Configuration 2 Register (TCR2)
SAI Transmit Configuration 3 Register (TCR3)
SAI Transmit Configuration 4 Register (TCR4)
SAI Transmit Configuration 5 Register (TCR5)
SAI Transmit Data Register (TDR0 - TDR3)
SAI Transmit FIFO Register (TFR0 - TFR3)
SAI Transmit Mask Register (TMR)
SAI Receive Control Register (RCSR)
SAI Receive Configuration 1 Register (RCR1)
SAI Receive Configuration 2 Register (RCR2)
SAI Receive Configuration 3 Register (RCR3)
SAI Receive Configuration 4 Register (RCR4)
SAI Receive Configuration 5 Register (RCR5)
SAI Receive Data Register (RDR0 - RDR3)
SAI Receive FIFO Register (RFR0 - RFR3)
SAI Receive Mask Register (RMR)
Functional description
SAI clocking
SAI resets
Synchronous modes
Frame sync configuration
Data FIFO
Data alignment
FIFO pointers
FIFO packing
FIFO Combine
Word mask register
Interrupts and DMA requests
FIFO request flag
FIFO warning flag
FIFO error flag
Sync error flag
Word start flag
Chapter 54​: Ethernet MAC (ENET)
Chip-specific ENET information
Introduction
Overview
Features
Ethernet MAC features
IP protocol performance optimization features
IEEE 1588 features
Block diagram
External signal description
Memory map/register definition
ENET
ENET_EIR
ENET_EIMR
ENET_RDAR
ENET_TDAR
ENET_ECR
ENET_MMFR
ENET_MSCR
ENET_MIBC
ENET_RCR
ENET_TCR
ENET_PALR
ENET_PAUR
ENET_OPD
ENET_IAUR
ENET_IALR
ENET_GAUR
ENET_GALR
ENET_TFWR
ENET_RDSR
ENET_TDSR
ENET_MRBR
ENET_RSFL
ENET_RSEM
ENET_RAEM
ENET_RAFL
ENET_TSEM
ENET_TAEM
ENET_TAFL
ENET_TIPG
ENET_FTRL
ENET_TACC
ENET_RACC
ENET_RMON_T_DROP
ENET_RMON_T_PACKETS
ENET_RMON_T_BC_PKT
ENET_RMON_T_MC_PKT
ENET_RMON_T_CRC_ALIGN
ENET_RMON_T_UNDERSIZE
ENET_RMON_T_OVERSIZE
ENET_RMON_T_FRAG
ENET_RMON_T_JAB
ENET_RMON_T_COL
ENET_RMON_T_P64
ENET_RMON_T_P65TO127
ENET_RMON_T_P128TO255
ENET_RMON_T_P256TO511
ENET_RMON_T_P512TO1023
ENET_RMON_T_P1024TO2047
ENET_RMON_T_P_GTE2048
ENET_RMON_T_OCTETS
ENET_IEEE_T_DROP
ENET_IEEE_T_FRAME_OK
ENET_IEEE_T_1COL
ENET_IEEE_T_MCOL
ENET_IEEE_T_DEF
ENET_IEEE_T_LCOL
ENET_IEEE_T_EXCOL
ENET_IEEE_T_MACERR
ENET_IEEE_T_CSERR
ENET_IEEE_T_SQE
ENET_IEEE_T_FDXFC
ENET_IEEE_T_OCTETS_OK
ENET_RMON_R_PACKETS
ENET_RMON_R_BC_PKT
ENET_RMON_R_MC_PKT
ENET_RMON_R_CRC_ALIGN
ENET_RMON_R_UNDERSIZE
ENET_RMON_R_OVERSIZE
ENET_RMON_R_FRAG
ENET_RMON_R_JAB
ENET_RMON_R_RESVD_0
ENET_RMON_R_P64
ENET_RMON_R_P65TO127
ENET_RMON_R_P128TO255
ENET_RMON_R_P256TO511
ENET_RMON_R_P512TO1023
ENET_RMON_R_P1024TO2047
ENET_RMON_R_P_GTE2048
ENET_RMON_R_OCTETS
ENET_IEEE_R_DROP
ENET_IEEE_R_FRAME_OK
ENET_IEEE_R_CRC
ENET_IEEE_R_ALIGN
ENET_IEEE_R_MACERR
ENET_IEEE_R_FDXFC
ENET_IEEE_R_OCTETS_OK
ENET_ATCR
ENET_ATVR
ENET_ATOFF
ENET_ATPER
ENET_ATCOR
ENET_ATINC
ENET_ATSTMP
ENET_TGSR
ENET_TCSRn
ENET_TCCRn
Functional description
Ethernet MAC frame formats
Pause Frames
Magic packets
IP and higher layers frame format
Ethernet types
IPv4 datagram format
IPv6 datagram format
Internet Control Message Protocol (ICMP) datagram format
User Datagram Protocol (UDP) datagram format
TCP datagram format
IEEE 1588 message formats
Transport encapsulation
UDP/IP
Native Ethernet (PTPv2)
PTP header
PTPv1 header
PTPv2 header
MAC receive
Collision detection in half-duplex mode
Preamble processing
MAC address check
Unicast address check
Multicast and unicast address resolution
Broadcast address reject
Miss-bit implementation
Frame length/type verification: payload length check
Frame length/type verification: frame length check
VLAN frames processing
Pause frame termination
CRC check
Frame padding removal
MAC transmit
Frame payload padding
MAC address insertion
CRC-32 generation
Inter-packet gap (IPG)
Collision detection and handling — half-duplex operation only
Full-duplex flow control operation
Remote device congestion
Local device/FIFO congestion
Magic packet detection
Sleep mode
Magic packet detection
Wakeup
IP accelerator functions
Checksum calculation
Additional padding processing
32-bit Ethernet payload alignment
Receive processing
Transmit processing
Received frame discard
IPv4 fragments
IPv6 support
Receive processing
Transmit processing
Resets and stop controls
Hardware reset
Soft reset
Hardware freeze
Graceful stop
Graceful transmit stop (GTS)
Graceful receive stop (GRS)
Graceful stop interrupt (GRA)
IEEE 1588 functions
Adjustable timer module
Adjustable timer implementation
Transmit timestamping
Receive timestamping
Time synchronization
Input Capture and Output Compare
Input capture
Output compare
DMA requests
FIFO thresholds
Receive FIFO
Transmit FIFO
Loopback options
Legacy buffer descriptors
Legacy receive buffer descriptor
Legacy transmit buffer descriptor
Enhanced buffer descriptors
Enhanced receive buffer descriptor
Enhanced transmit buffer descriptor
Client FIFO application interface
Data structure description
Data structure examples
Frame status
FIFO protection
Transmit FIFO underflow
Transmit FIFO overflow
Receive FIFO overflow
Reference clock
PHY management interface
MDIO clause 22 frame format
MDIO clause 45 frame format
MDIO clock generation
MDIO operation
Ethernet interfaces
RMII interface
MII Interface — transmit
Transmit with collision — half-duplex
MII interface — receive
Chapters 55-56 Debug Modules
Chapter 55​: Debug
Introduction
CM4 and CM0+ ROM table
Debug port
Debug port pin descriptions
System TAP connection
MDM-AP status and control registers
MDM-AP Control Register
MDM-AP Status Register
Debug resets
AHB-AP
ITM
Core trace connectivity
TPIU
DWT
MTB
Debug in low-power modes
Debug and security
Chapter 56​: JTAG Controller (JTAGC)
Chip-specific JTAGC information
Introduction
Block diagram
Features
Modes of operation
Reset
IEEE 1149.1-2001 defined test modes
Bypass mode
External signal description
TCK—Test clock input
TDI—Test data input
TDO—Test data output
TMS—Test mode select
Register description
Instruction register
Bypass register
Device identification register
Boundary scan register
Functional description
JTAGC reset configuration
IEEE 1149.1-2001 (JTAG) Test Access Port
TAP controller state machine
Enabling the TAP controller
Selecting an IEEE 1149.1-2001 register
JTAGC block instructions
IDCODE instruction
SAMPLE/PRELOAD instruction
SAMPLE instruction
EXTEST External test instruction
ENABLE_SOC_DATA1 instruction
HIGHZ instruction
CLAMP instruction
BYPASS instruction
Boundary scan
Initialization/Application information
Appendix A: Release Notes for Revision 6
General changes
About This Manual changes
Introduction changes
Memory map changes
Signal multiplexing changes
Security Overview changes
Safety Overview changes
CM0+ Overview changes
CM4 Overview changes
MCM changes
Chip-specific MCM information changes
MCM changes
SIM changes
Chip-specific SIM information changes
SIM changes
PORT changes
Chip-specific PORT information changes
Port Control and Interrupts (PORT) changes
GPIO changes
Chip-specific GPIO information changes
GPIO module changes
AXBS-Lite changes
Chip-specific AXBS-Lite information changes
AXBS_Lite module changes
MPU changes
Chip-specific MPU information changes
MPU module changes
AIPS-Lite changes
Chip-specific AIPS information changes
AIPS_Lite module changes
DMAMUX changes
Chip-specific DMAMUX information changes
DMAMUX module changes
eDMA changes
Chip-specific eDMA information changes
eDMA2 module changes
TRGMUX changes
Chip-specific TRGMUX information changes
TRGMUX module changes
EWM changes
Chip-specific EWM information changes
EWM module changes
EIM changes
Chip-specific EIM information changes
EIM changes
ERM changes
Chip-specific ERM information changes
ERM module changes
WDOG changes
Chip-specific WDOG information changes
WDOG module changes
CRC module changes
Reset and Boot changes
RCM changes
Chip-specific RCM information changes
RCM changes
Clock Distribution changes
SCG changes
Chip-specific SCG information changes
SCG changes
PCC changes
Chip-specific PCC information changes
PCC module changes
CMU changes
Memories and memory interfaces changes
PRAMC changes
LMEM changes
Chip-specific LMEM information changes
LMEM module changes
MSCM changes
Chip-specific MSCM information changes
MSCM changes
FMC changes
Chip-specific FMC changes
FMC changes
FTFC changes
Chip-specific FTFC information changes
FTFC changes
QSPI changes
Chip-specific QSPI information changes
QuadSPI changes
Power Management changes
SMC changes
PMC changes
Chip-specific PMC changes
PMC module changes
ADC Configuration changes
ADC changes
Chip-specific ADC information changes
ADC module changes
CMP changes
Chip-specific CMP changes
CMP changes
PDB changes
Chip-specific PDB information changes
PDB changes
FTM changes
Chip-specific FTM information changes
FTM module changes
LPIT changes
Chip-specific LPIT information changes
LPIT module changes
LPTMR changes
Chip-specific LPTMR information changes
LPTMR module changes
RTC changes
Chip-specific RTC changes
RTC module changes
LPSPI changes
Chip-specific LPSPI information changes
LPSPI module changes
LPI2C changes
Chip-specific LPI2C information changes
LPI2C module changes
LPUART changes
Chip-specific LPUART information changes
LPUART module changes
FlexIO changes
Chip-specific FlexIO changes
FLEXIO module changes
FlexCAN changes
Chip-specific FlexCAN information changes
FlexCAN module changes
SAI changes
Chip-specific SAI changes
SAI module changes
ENETchanges
Chip-specific ENET changes
ENET module changes
Debug changes
JTAGC changes
Chip-specific JTAGC information changes
JTAGC module changes
S32K1xx Series Reference Manual Supports S32K116, S32K118, S32K142, S32K144, S32K146, and S32K148 Document Number: S32K1XXRM Rev. 6, 12/2017 Preliminary
2 Preliminary NXP Semiconductors S32K1xx Series Reference Manual, Rev. 6, 12/2017
Section number Contents Title Chapter 1 About This Manual Page 1.1 1.2 Audience....................................................................................................................................................................... 49 Organization..................................................................................................................................................................49 1.3 Module descriptions......................................................................................................................................................49 1.3.1 Example: chip-specific information that clarifies content in the same chapter............................................. 50 1.3.2 Example: chip-specific information that refers to a different chapter........................................................... 51 Register descriptions.....................................................................................................................................................52 Conventions.................................................................................................................................................................. 53 1.5.1 Notes, Cautions, and Warnings......................................................................................................................53 1.5.2 Numbering systems........................................................................................................................................53 1.5.3 Typographic notation..................................................................................................................................... 54 1.5.4 Special terms.................................................................................................................................................. 54 Chapter 2 Introduction Overview.......................................................................................................................................................................57 S32K1xx Series introduction........................................................................................................................................ 57 2.2.1 S32K14x.........................................................................................................................................................57 2.2.2 S32K11x ........................................................................................................................................................58 Feature summary...........................................................................................................................................................59 Block diagram...............................................................................................................................................................62 Feature comparison.......................................................................................................................................................64 Applications.................................................................................................................................................................. 66 1.4 1.5 2.1 2.2 2.3 2.4 2.5 2.6 2.7 Module functional categories........................................................................................................................................67 2.7.1 Arm Cortex-M4F Core Modules....................................................................................................................68 2.7.2 Arm Cortex-M0+ Core Modules....................................................................................................................69 2.7.3 System modules............................................................................................................................................. 69 2.7.4 Memories and memory interfaces..................................................................................................................70 NXP Semiconductors Preliminary 3 S32K1xx Series Reference Manual, Rev. 6, 12/2017
Section number Title Page 2.7.5 Power Management........................................................................................................................................71 2.7.6 Clocking......................................................................................................................................................... 71 2.7.7 Analog modules............................................................................................................................................. 72 2.7.8 Timer modules............................................................................................................................................... 72 2.7.9 Communication interfaces............................................................................................................................. 73 2.7.10 Debug modules.............................................................................................................................................. 73 Chapter 3 Memory Map 3.1 3.2 3.3 3.4 3.5 3.6 4.1 4.2 4.3 4.4 4.5 Introduction...................................................................................................................................................................75 SRAM memory map.....................................................................................................................................................75 3.2.1 S32K14x: SRAM memory map ....................................................................................................................75 3.2.2 S32K11x: SRAM memory map ....................................................................................................................75 Flash memory map........................................................................................................................................................76 Peripheral bridge (AIPS-Lite) memory map.................................................................................................................76 3.4.1 Read-after-write sequence and required serialization of memory operations................................................77 Private Peripheral Bus (PPB) memory map..................................................................................................................78 Aliased bit-band regions for CM4 core........................................................................................................................ 79 Signal Multiplexing and Pin Assignment Chapter 4 Introduction...................................................................................................................................................................81 Functional description...................................................................................................................................................81 Pad description..............................................................................................................................................................82 Default pad state........................................................................................................................................................... 83 Signal Multiplexing sheet............................................................................................................................................. 84 4.5.1 IO Signal Table ............................................................................................................................................. 84 4.5.2 Input muxing table......................................................................................................................................... 86 4.6 Pinout diagrams............................................................................................................................................................ 87 Chapter 5 Security Overview 5.1 Introduction...................................................................................................................................................................89 4 Preliminary NXP Semiconductors S32K1xx Series Reference Manual, Rev. 6, 12/2017
Section number Title Page 5.2 Device security..............................................................................................................................................................89 5.2.1 Flash memory security................................................................................................................................... 89 5.2.2 Cryptographic Services Engine (CSEc) security features..............................................................................90 5.2.3 Device Boot modes........................................................................................................................................ 91 5.3 Security use case examples...........................................................................................................................................91 5.4 5.5 6.1 6.2 5.3.1 Secure boot: check bootloader for integrity and authenticity........................................................................ 91 5.3.2 Chain of trust: check flash memory for integrity and authenticity................................................................ 92 5.3.3 Secure communication...................................................................................................................................93 5.3.4 Component protection....................................................................................................................................94 5.3.5 Message-authentication example................................................................................................................... 95 Steps required before failure analysis........................................................................................................................... 96 Security programming flow example (Secure Boot).................................................................................................... 97 Chapter 6 Safety Overview Introduction...................................................................................................................................................................99 S32K1xx safety concept............................................................................................................................................... 100 6.2.1 Cortex-M4/M0+ Structural Core Self Test (SCST).......................................................................................101 6.2.2 ECC on RAM and flash memory...................................................................................................................102 6.2.3 Power supply monitoring............................................................................................................................... 102 6.2.4 Clock monitoring........................................................................................................................................... 103 6.2.5 Temporal protection.......................................................................................................................................103 6.2.6 Operational interference protection............................................................................................................... 103 6.2.7 CRC................................................................................................................................................................105 6.2.8 Diversity of system resources........................................................................................................................ 105 Chapter 7 CM4 Overview 7.1 Arm Cortex-M4F core configuration............................................................................................................................107 7.1.1 Buses, interconnects, and interfaces.............................................................................................................. 108 7.1.2 System Tick Timer.........................................................................................................................................108 NXP Semiconductors Preliminary 5 S32K1xx Series Reference Manual, Rev. 6, 12/2017
Section number Title Page 7.1.3 Debug facilities.............................................................................................................................................. 108 7.1.4 Caches............................................................................................................................................................ 109 7.1.5 Core privilege levels...................................................................................................................................... 109 7.2 Nested Vectored Interrupt Controller (NVIC) Configuration...................................................................................... 110 7.2.1 Interrupt priority levels.................................................................................................................................. 110 7.2.2 Non-maskable interrupt..................................................................................................................................110 7.2.3 Determining the bitfield and register location for configuring a particular interrupt.................................... 111 7.3 Asynchronous Wake-up Interrupt Controller (AWIC) Configuration..........................................................................112 7.3.1 Wake-up sources............................................................................................................................................ 112 7.4 7.5 FPU configuration.........................................................................................................................................................113 JTAG controller configuration......................................................................................................................................114 Chapter 8 CM0+ Overview 8.1 Arm Cortex-M0+ core introduction..............................................................................................................................115 8.1.1 Buses, interconnects, and interfaces.............................................................................................................. 115 8.1.2 System tick timer........................................................................................................................................... 116 8.1.3 Debug facilities.............................................................................................................................................. 116 8.1.4 Core privilege levels...................................................................................................................................... 116 8.2 Nested vectored interrupt controller (NVIC) ...............................................................................................................117 8.2.1 Interrupt priority levels.................................................................................................................................. 117 8.2.2 Non-maskable interrupt..................................................................................................................................117 8.2.3 Determining the bitfield and register location for configuring a particular interrupt.................................... 117 8.3 AWIC introduction....................................................................................................................................................... 118 8.3.1 Wake-up sources............................................................................................................................................ 118 Chapter 9 Miscellaneous Control Module (MCM) Chip-specific MCM information.................................................................................................................................. 121 Introduction...................................................................................................................................................................121 9.2.1 Features.......................................................................................................................................................... 122 S32K1xx Series Reference Manual, Rev. 6, 12/2017 Preliminary NXP Semiconductors 9.1 9.2 6
Section number Title Page 9.3 Memory map/register descriptions............................................................................................................................... 122 9.3.1 Crossbar Switch (AXBS) Slave Configuration (MCM_PLASC)..................................................................123 9.3.2 Crossbar Switch (AXBS) Master Configuration (MCM_PLAMC).............................................................. 123 9.3.3 Core Platform Control Register (MCM_CPCR)............................................................................................125 9.3.4 Interrupt Status and Control Register (MCM_ISCR).................................................................................... 128 9.3.5 Process ID Register (MCM_PID).................................................................................................................. 131 9.3.6 Compute Operation Control Register (MCM_CPO)..................................................................................... 132 9.3.7 Local Memory Descriptor Register (MCM_LMDRn)...................................................................................133 9.3.8 Local Memory Descriptor Register2 (MCM_LMDR2).................................................................................136 9.3.9 LMEM Parity and ECC Control Register (MCM_LMPECR).......................................................................140 9.3.10 LMEM Parity and ECC Interrupt Register (MCM_LMPEIR)...................................................................... 141 9.3.11 LMEM Fault Address Register (MCM_LMFAR).........................................................................................142 9.3.12 LMEM Fault Attribute Register (MCM_LMFATR)..................................................................................... 143 9.3.13 LMEM Fault Data High Register (MCM_LMFDHR).................................................................................. 144 9.3.14 LMEM Fault Data Low Register (MCM_LMFDLR)....................................................................................144 9.4 Functional description...................................................................................................................................................145 9.4.1 Interrupts........................................................................................................................................................ 145 Chapter 10 System Integration Module (SIM) 10.1 Chip-specific SIM information..................................................................................................................................... 147 10.1.1 SIM register bitfield implementation.............................................................................................................147 10.2 Introduction...................................................................................................................................................................147 10.2.1 Features.......................................................................................................................................................... 147 10.3 Memory map and register definition.............................................................................................................................148 10.3.1 SIM register descriptions............................................................................................................................... 148 Chapter 11 Port Control and Interrupts (PORT) 11.1 Chip-specific PORT information..................................................................................................................................175 11.1.1 Number of PCRs............................................................................................................................................ 175 NXP Semiconductors Preliminary 7 S32K1xx Series Reference Manual, Rev. 6, 12/2017
Section number Title Page 11.1.2 I/O configuration sequence ........................................................................................................................... 176 11.1.3 Digital input filter configuration sequence ................................................................................................... 176 11.2 Introduction...................................................................................................................................................................177 11.3 Overview.......................................................................................................................................................................177 11.3.1 Features.......................................................................................................................................................... 178 11.3.2 Modes of operation........................................................................................................................................ 178 11.4 External signal description............................................................................................................................................179 11.5 Detailed signal description............................................................................................................................................179 11.6 Memory map and register definition.............................................................................................................................180 11.6.1 Pin Control Register n (PORT_PCRn).......................................................................................................... 182 11.6.2 Global Pin Control Low Register (PORT_GPCLR)......................................................................................185 11.6.3 Global Pin Control High Register (PORT_GPCHR).....................................................................................185 11.6.4 Global Interrupt Control Low Register (PORT_GICLR).............................................................................. 186 11.6.5 Global Interrupt Control High Register (PORT_GICHR).............................................................................186 11.6.6 Interrupt Status Flag Register (PORT_ISFR)................................................................................................ 187 11.6.7 Digital Filter Enable Register (PORT_DFER).............................................................................................. 188 11.6.8 Digital Filter Clock Register (PORT_DFCR)................................................................................................188 11.6.9 Digital Filter Width Register (PORT_DFWR).............................................................................................. 189 11.7 Functional description...................................................................................................................................................189 11.7.1 Pin control...................................................................................................................................................... 189 11.7.2 Global pin control.......................................................................................................................................... 190 11.7.3 Global interrupt control..................................................................................................................................191 11.7.4 External interrupts..........................................................................................................................................191 11.7.5 Digital filter....................................................................................................................................................192 Chapter 12 General-Purpose Input/Output (GPIO) 12.1 Chip-specific GPIO information...................................................................................................................................193 12.1.1 Instantiation information................................................................................................................................193 12.1.2 GPIO ports memory map............................................................................................................................... 193 8 Preliminary NXP Semiconductors S32K1xx Series Reference Manual, Rev. 6, 12/2017
分享到:
收藏