NXP Semiconductors NXP MKE04Z4 Kinetis_E 1.6 MKE04Z4 NXP Microcontroller Copyright 2016-2018 NXP SPDX-License-Identifier: BSD-3-Clause CM0PLUS r0p0 little false false true 2 false 8 32 FTMRE Flash Memory FTMRE_ 0x40020000 0x1 0xF registers FTMRE 5 FCCOBIX Flash CCOB Index Register 0x1 8 read-write 0 0xFF CCOBIX Common Command Register Index 0 3 read-write FSEC Flash Security Register 0x2 8 read-only 0 0 SEC Flash Security Bits 0 2 read-only 00 Secured #00 01 Secured #01 10 Unsecured #10 11 Secured #11 KEYEN Backdoor Key Security Enable Bits 6 2 read-only 00 Disabled #00 01 Disabled #01 10 Enabled #10 11 Disabled #11 FCLKDIV Flash Clock Divider Register 0x3 8 read-write 0 0xFF FDIV Clock Divider Bits 0 6 read-write FDIVLCK Clock Divider Locked 6 1 read-write 0 FDIV field is open for writing. #0 1 FDIV value is locked and cannot be changed. After the lock bit is set high, only reset can clear this bit and restore writability to the FDIV field in user mode. #1 FDIVLD Clock Divider Loaded 7 1 read-only 0 FCLKDIV register has not been written since the last reset. #0 1 FCLKDIV register has been written since the last reset. #1 FSTAT Flash Status Register 0x5 8 read-write 0x80 0xFF MGSTAT Memory Controller Command Completion Status Flag 0 2 read-only MGBUSY Memory Controller Busy Flag 3 1 read-only 0 Memory controller is idle. #0 1 Memory controller is busy executing a flash command (CCIF = 0). #1 FPVIOL Flash Protection Violation Flag 4 1 read-write 0 No protection violation is detected. #0 1 Protection violation is detected. #1 ACCERR Flash Access Error Flag 5 1 read-write 0 No access error is detected. #0 1 Access error is detected. #1 CCIF Command Complete Interrupt Flag 7 1 read-write 0 Flash command is in progress. #0 1 Flash command has completed. #1 FCNFG Flash Configuration Register 0x7 8 read-write 0 0xFF ERSAREQ Debugger Mass Erase Request 5 1 read-only 0 No request or request complete #0 1 Request to run the Erase All Blocks command verify the erased state program the security byte in the Flash Configuration Field to the unsecure state release MCU security by setting FSEC[SEC] to the unsecure state #1 CCIE Command Complete Interrupt Enable 7 1 read-write 0 Command complete interrupt is disabled. #0 1 An interrupt will be requested whenever the CCIF flag in the FSTAT register is set. #1 FCCOBLO Flash Common Command Object Register: Low 0x8 8 read-write 0 0xFF CCOB Common Command Object Bit 7:0 0 8 read-write FCCOBHI Flash Common Command Object Register:High 0x9 8 read-write 0 0xFF CCOB Common Command Object Bit 15:8 0 8 read-write FPROT Flash Protection Register 0xB 8 read-write 0 0x38 FPLS Flash Protection Lower Address Size 0 2 read-write FPLDIS Flash Protection Lower Address Range Disable 2 1 read-write 0 Protection/Unprotection enabled. #0 1 Protection/Unprotection disabled. #1 RNV Reserved Nonvolatile Bit 3 3 read-only RNV6 Reserved Nonvolatile Bit 6 1 read-only FPOPEN Flash Protection Operation Enable 7 1 read-write 0 When FPOPEN is clear, the FPLDIS field defines unprotected address ranges as specified by the corresponding FPLS field. #0 1 When FPOPEN is set, the FPLDIS field enables protection for the address range specified by the corresponding FPLS field. #1 FOPT Flash Option Register 0xF 8 read-only 0 0 NV Nonvolatile Bits 0 8 read-only IRQ Interrupt IRQ_ 0x40031000 0 0x1 registers SC Interrupt Pin Request Status and Control Register 0 8 read-write 0 0xFF IRQMOD IRQ Detection Mode 0 1 read-write 0 IRQ event is detected only on falling/rising edges. #0 1 IRQ event is detected on falling/rising edges and low/high levels. #1 IRQIE IRQ Interrupt Enable 1 1 read-write 0 Interrupt request when IRQF set is disabled (use polling). #0 1 Interrupt requested whenever IRQF = 1. #1 IRQACK IRQ Acknowledge 2 1 write-only IRQF IRQ Flag 3 1 read-only 0 No IRQ request #0 1 IRQ event is detected. #1 IRQPE IRQ Pin Enable 4 1 read-write 0 IRQ pin function is disabled. #0 1 IRQ pin function is enabled. #1 IRQEDG Interrupt Request (IRQ) Edge Select 5 1 read-write 0 IRQ is falling-edge or falling-edge/low-level sensitive. #0 1 IRQ is rising-edge or rising-edge/high-level sensitive. #1 IRQPDD Interrupt Request (IRQ) Pull Device Disable 6 1 read-write 0 IRQ pull device enabled if IRQPE = 1. #0 1 IRQ pull device disabled if IRQPE = 1. #1 CRC Cyclic Redundancy Check CRC_ 0x40032000 0 0xC registers DATA CRC Data register CRC 0 32 read-write 0xFFFFFFFF 0xFFFFFFFF LL CRC Low Lower Byte 0 8 read-write LU CRC Low Upper Byte 8 8 read-write HL CRC High Lower Byte 16 8 read-write HU CRC High Upper Byte 24 8 read-write DATAL CRC_DATAL register. CRC 0 16 read-write 0xFFFF 0xFFFF DATAL DATAL stores the lower 16 bits of the 16/32 bit CRC 0 16 read-write DATALL CRC_DATALL register. CRC 0 8 read-write 0xFF 0xFF DATALL CRCLL stores the first 8 bits of the 32 bit DATA 0 8 read-write DATALU CRC_DATALU register. 0x1 8 read-write 0xFF 0xFF DATALU DATALL stores the second 8 bits of the 32 bit CRC 0 8 read-write DATAH CRC_DATAH register. CRC 0x2 16 read-write 0xFFFF 0xFFFF DATAH DATAH stores the high 16 bits of the 16/32 bit CRC 0 16 read-write DATAHL CRC_DATAHL register. CRC 0x2 8 read-write 0xFF 0xFF DATAHL DATAHL stores the third 8 bits of the 32 bit CRC 0 8 read-write DATAHU CRC_DATAHU register. 0x3 8 read-write 0xFF 0xFF DATAHU DATAHU stores the fourth 8 bits of the 32 bit CRC 0 8 read-write GPOLY CRC Polynomial register CRC 0x4 32 read-write 0x1021 0xFFFFFFFF LOW Low Polynominal Half-word 0 16 read-write HIGH High Polynominal Half-word 16 16 read-write GPOLYL CRC_GPOLYL register. CRC 0x4 16 read-write 0xFFFF 0xFFFF GPOLYL POLYL stores the lower 16 bits of the 16/32 bit CRC polynomial value 0 16 read-write GPOLYLL CRC_GPOLYLL register. CRC 0x4 8 read-write 0xFF 0xFF GPOLYLL POLYLL stores the first 8 bits of the 32 bit CRC 0 8 read-write GPOLYLU CRC_GPOLYLU register. 0x5 8 read-write 0xFF 0xFF GPOLYLU POLYLL stores the second 8 bits of the 32 bit CRC 0 8 read-write GPOLYH CRC_GPOLYH register. CRC 0x6 16 read-write 0xFFFF 0xFFFF GPOLYH POLYH stores the high 16 bits of the 16/32 bit CRC polynomial value 0 16 read-write GPOLYHL CRC_GPOLYHL register. CRC 0x6 8 read-write 0xFF 0xFF GPOLYHL POLYHL stores the third 8 bits of the 32 bit CRC 0 8 read-write GPOLYHU CRC_GPOLYHU register. 0x7 8 read-write 0xFF 0xFF GPOLYHU POLYHU stores the fourth 8 bits of the 32 bit CRC 0 8 read-write CTRL CRC Control register 0x8 32 read-write 0 0xFFFFFFFF TCRC Width of CRC protocol. 24 1 read-write 0 16-bit CRC protocol. #0 1 32-bit CRC protocol. #1 WAS Write CRC Data Register As Seed 25 1 read-write 0 Writes to the CRC data register are data values. #0 1 Writes to the CRC data register are seed values. #1 FXOR Complement Read Of CRC Data Register 26 1 read-write 0 No XOR on reading. #0 1 Invert or complement the read value of the CRC Data register. #1 TOTR Type Of Transpose For Read 28 2 read-write 00 No transposition. #00 01 Bits in bytes are transposed; bytes are not transposed. #01 10 Both bits in bytes and bytes are transposed. #10 11 Only bytes are transposed; no bits in a byte are transposed. #11 TOT Type Of Transpose For Writes 30 2 read-write 00 No transposition. #00 01 Bits in bytes are transposed; bytes are not transposed. #01 10 Both bits in bytes and bytes are transposed. #10 11 Only bytes are transposed; no bits in a byte are transposed. #11 CTRLHU CRC_CTRLHU register. 0xB 8 read-write 0 0xFF TCRC no description available 0 1 read-write 0 16-bit CRC protocol. #0 1 32-bit CRC protocol. #1 WAS no description available 1 1 read-write 0 Writes to CRC data register are data values. #0 1 Writes to CRC data reguster are seed values. #1 FXOR no description available 2 1 read-write 0 No XOR on reading. #0 1 Invert or complement the read value of CRC data register. #1 TOTR no description available 4 2 read-write 00 No Transposition. #00 01 Bits in bytes are transposed, bytes are not transposed. #01 10 Both bits in bytes and bytes are transposed. #10 11 Only bytes are transposed; no bits in a byte are transposed. #11 TOT no description available 6 2 read-write 00 No Transposition. #00 01 Bits in bytes are transposed, bytes are not transposed. #01 10 Both bits in bytes and bytes are transposed. #10 11 Only bytes are transposed; no bits in a byte are transposed. #11 PWT Pulse Width Timer PWT_ 0x40033000 0 0x8 registers PWT 29 R1 Pulse Width Timer Register 1 0 32 read-write 0 0xFFFFFFFF PWTOV PWT Counter Overflow 0 1 read-write 0 PWT counter no overflow. #0 1 PWT counter runs from 0xFFFF to 0x0000. #1 PWTRDY PWT Pulse Width Valid 1 1 read-write 0 PWT pulse width register(s) is not up-to-date. #0 1 PWT pulse width register(s) has been updated. #1 PWTSR PWT Soft Reset 3 1 write-only 0 No action taken. #0 1 Writing 1 to this field will perform soft reset to PWT. #1 POVIE PWT Counter Overflow Interrupt Enable 4 1 read-write 0 Disable PWT to generate interrupt when PWTOV is set. #0 1 Enable PWT to generate interrupt when PWTOV is set. #1 PRDYIE PWT Pulse Width Data Ready Interrupt Enable 5 1 read-write 0 Disable PWT to generate interrupt when PWTRDY is set. #0 1 Enable PWT to generate interrupt when PWTRDY is set. #1 PWTIE PWT Module Interrupt Enable 6 1 read-write 0 Disables the PWT to generate interrupt. #0 1 Enables the PWT to generate interrupt. #1 PWTEN PWT Module Enable 7 1 read-write 0 The PWT is disabled. #0 1 The PWT is enabled. #1 PRE PWT Clock Prescaler (CLKPRE) Setting 8 3 read-write 000 Clock divided by 1. #000 001 Clock divided by 2. #001 010 Clock divided by 4. #010 011 Clock divided by 8. #011 100 Clock divided by 16. #100 101 Clock divided by 32. #101 110 Clock divided by 64. #110 111 Clock divided by 128. #111 EDGE PWT Input Edge Sensitivity 11 2 read-write 00 The first falling-edge starts the pulse width measurement, and on all the subsequent falling edges, the pulse width is captured. #00 01 The first rising edge starts the pulse width measurement, and on all the subsequent rising and falling edges, the pulse width is captured. #01 10 The first falling edge starts the pulse width measurement, and on all the subsequent rising and falling edges, the pulse width is captured. #10 11 The first-rising edge starts the pulse width measurement, and on all the subsequent rising edges, the pulse width is captured. #11 PINSEL PWT Pulse Inputs Selection 13 2 read-write 00 PWTIN[0] is enabled. #00 01 PWTIN[1] is enabled. #01 10 PWTIN[2] enabled. #10 11 PWTIN[3] enabled. #11 PCLKS PWT Clock Source Selection 15 1 read-write 0 TIMER_CLK is selected as the clock source of PWT counter. #0 1 Alternative clock is selected as the clock source of PWT counter. #1 PPW Positive Pulse Width 16 16 read-only R2 Pulse Width Timer Register 2 0x4 32 read-only 0 0xFFFFFFFF NPW Negative Pulse Width. It is suggested to use half-word (16-bit) or word (32-bit) to read out this value. 0 16 read-only PWTC PWT Counter. It is suggested to use half-word (16-bit) or word (32-bit) to read out this value. 16 16 read-only PIT Periodic Interrupt Timer PIT_ 0x40037000 0 0x120 registers PIT_CH0 22 PIT_CH1 23 MCR PIT Module Control Register 0 32 read-write 0x6 0xFFFFFFFF FRZ Freeze 0 1 read-write 0 Timers continue to run in Debug mode. #0 1 Timers are stopped in Debug mode. #1 MDIS Module Disable - (PIT section) 1 1 read-write 0 Clock for standard PIT timers is enabled. #0 1 Clock for standard PIT timers is disabled. #1 2 0x10 0,1 LDVAL%s Timer Load Value Register 0x100 32 read-write 0 0xFFFFFFFF TSV Timer Start Value 0 32 read-write 2 0x10 0,1 CVAL%s Current Timer Value Register 0x104 32 read-only 0 0xFFFFFFFF TVL Current Timer Value 0 32 read-only 2 0x10 0,1 TCTRL%s Timer Control Register 0x108 32 read-write 0 0xFFFFFFFF TEN Timer Enable 0 1 read-write 0 Timer n is disabled. #0 1 Timer n is enabled. #1 TIE Timer Interrupt Enable 1 1 read-write 0 Interrupt requests from Timer n are disabled. #0 1 Interrupt will be requested whenever TIF is set. #1 CHN Chain Mode 2 1 read-write 0 Timer is not chained. #0 1 Timer is chained to previous timer. For example, for Channel 2, if this field is set, Timer 2 is chained to Timer 1. #1 2 0x10 0,1 TFLG%s Timer Flag Register 0x10C 32 read-write 0 0xFFFFFFFF TIF Timer Interrupt Flag 0 1 read-write 0 Timeout has not yet occurred. #0 1 Timeout has occurred. #1 FTM0 FlexTimer Module FTM FTM0_ 0x40038000 0 0x9C registers FTM0 17 SC Status And Control 0 32 read-write 0 0xFFFFFFFF PS Prescale Factor Selection 0 3 read-write 000 Divide by 1 #000 001 Divide by 2 #001 010 Divide by 4 #010 011 Divide by 8 #011 100 Divide by 16 #100 101 Divide by 32 #101 110 Divide by 64 #110 111 Divide by 128 #111 CLKS Clock Source Selection 3 2 read-write 00 No clock selected. This in effect disables the FTM counter. #00 01 System clock #01 10 Fixed frequency clock #10 11 External clock #11 CPWMS Center-Aligned PWM Select 5 1 read-write 0 FTM counter operates in Up Counting mode. #0 1 FTM counter operates in Up-Down Counting mode. #1 TOIE Timer Overflow Interrupt Enable 6 1 read-write 0 Disable TOF interrupts. Use software polling. #0 1 Enable TOF interrupts. An interrupt is generated when TOF equals one. #1 TOF Timer Overflow Flag 7 1 read-write 0 FTM counter has not overflowed. #0 1 FTM counter has overflowed. #1 CNT Counter 0x4 32 read-write 0 0xFFFFFFFF COUNT Counter Value 0 16 read-write MOD Modulo 0x8 32 read-write 0 0xFFFFFFFF MOD Modulo Value 0 16 read-write 8 0x8 0,1,2,3,4,5,6,7 C%sSC Channel (n) Status And Control 0xC 32 read-write 0 0xFFFFFFFF ELSA Edge or Level Select 2 1 read-write ELSB Edge or Level Select 3 1 read-write MSA Channel Mode Select 4 1 read-write MSB Channel Mode Select 5 1 read-write CHIE Channel Interrupt Enable 6 1 read-write 0 Disable channel interrupts. Use software polling. #0 1 Enable channel interrupts. #1 CHF Channel Flag 7 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 8 0x8 0,1,2,3,4,5,6,7 C%sV Channel (n) Value 0x10 32 read-write 0 0xFFFFFFFF VAL Channel Value 0 16 read-write CNTIN Counter Initial Value 0x4C 32 read-write 0 0xFFFFFFFF INIT Initial Value Of The FTM Counter 0 16 read-write STATUS Capture And Compare Status 0x50 32 read-write 0 0xFFFFFFFF CH0F Channel 0 Flag 0 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH1F Channel 1 Flag 1 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH2F Channel 2 Flag 2 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH3F Channel 3 Flag 3 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH4F Channel 4 Flag 4 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH5F Channel 5 Flag 5 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH6F Channel 6 Flag 6 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH7F Channel 7 Flag 7 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 MODE Features Mode Selection 0x54 32 read-write 0x4 0xFFFFFFFF FTMEN FTM Enable 0 1 read-write 0 Only the TPM-compatible registers (first set of registers) can be used without any restriction. Do not use the FTM-specific registers. #0 1 All registers including the FTM-specific registers (second set of registers) are available for use with no restrictions. #1 INIT Initialize The Channels Output 1 1 read-write WPDIS Write Protection Disable 2 1 read-write 0 Write protection is enabled. #0 1 Write protection is disabled. #1 PWMSYNC PWM Synchronization Mode 3 1 read-write 0 No restrictions. Software and hardware triggers can be used by MOD, CnV, OUTMASK, and FTM counter synchronization. #0 1 Software trigger can only be used by MOD and CnV synchronization, and hardware triggers can only be used by OUTMASK and FTM counter synchronization. #1 CAPTEST Capture Test Mode Enable 4 1 read-write 0 Capture test mode is disabled. #0 1 Capture test mode is enabled. #1 FAULTM Fault Control Mode 5 2 read-write 00 Fault control is disabled for all channels. #00 01 Fault control is enabled for even channels only (channels 0, 2, 4, and 6), and the selected mode is the manual fault clearing. #01 10 Fault control is enabled for all channels, and the selected mode is the manual fault clearing. #10 11 Fault control is enabled for all channels, and the selected mode is the automatic fault clearing. #11 FAULTIE Fault Interrupt Enable 7 1 read-write 0 Fault control interrupt is disabled. #0 1 Fault control interrupt is enabled. #1 SYNC Synchronization 0x58 32 read-write 0 0xFFFFFFFF CNTMIN Minimum Loading Point Enable 0 1 read-write 0 The minimum loading point is disabled. #0 1 The minimum loading point is enabled. #1 CNTMAX Maximum Loading Point Enable 1 1 read-write 0 The maximum loading point is disabled. #0 1 The maximum loading point is enabled. #1 REINIT FTM Counter Reinitialization By Synchronization (FTM counter synchronization) 2 1 read-write 0 FTM counter continues to count normally. #0 1 FTM counter is updated with its initial value when the selected trigger is detected. #1 SYNCHOM Output Mask Synchronization 3 1 read-write 0 OUTMASK register is updated with the value of its buffer in all rising edges of the system clock. #0 1 OUTMASK register is updated with the value of its buffer only by the PWM synchronization. #1 TRIG0 PWM Synchronization Hardware Trigger 0 4 1 read-write 0 Trigger is disabled. #0 1 Trigger is enabled. #1 TRIG1 PWM Synchronization Hardware Trigger 1 5 1 read-write 0 Trigger is disabled. #0 1 Trigger is enabled. #1 TRIG2 PWM Synchronization Hardware Trigger 2 6 1 read-write 0 Trigger is disabled. #0 1 Trigger is enabled. #1 SWSYNC PWM Synchronization Software Trigger 7 1 read-write 0 Software trigger is not selected. #0 1 Software trigger is selected. #1 OUTINIT Initial State For Channels Output 0x5C 32 read-write 0 0xFFFFFFFF CH0OI Channel 0 Output Initialization Value 0 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH1OI Channel 1 Output Initialization Value 1 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH2OI Channel 2 Output Initialization Value 2 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH3OI Channel 3 Output Initialization Value 3 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH4OI Channel 4 Output Initialization Value 4 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH5OI Channel 5 Output Initialization Value 5 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH6OI Channel 6 Output Initialization Value 6 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH7OI Channel 7 Output Initialization Value 7 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 OUTMASK Output Mask 0x60 32 read-write 0 0xFFFFFFFF CH0OM Channel 0 Output Mask 0 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH1OM Channel 1 Output Mask 1 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH2OM Channel 2 Output Mask 2 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH3OM Channel 3 Output Mask 3 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH4OM Channel 4 Output Mask 4 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH5OM Channel 5 Output Mask 5 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH6OM Channel 6 Output Mask 6 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH7OM Channel 7 Output Mask 7 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 COMBINE Function For Linked Channels 0x64 32 read-write 0 0xFFFFFFFF COMBINE0 Combine Channels For n = 0 0 1 read-write 0 Channels (n) and (n+1) are independent. #0 1 Channels (n) and (n+1) are combined. #1 COMP0 Complement Of Channel (n) For n = 0 1 1 read-write 0 The channel (n+1) output is the same as the channel (n) output. #0 1 The channel (n+1) output is the complement of the channel (n) output. #1 DECAPEN0 Dual Edge Capture Mode Enable For n = 0 2 1 read-write 0 The Dual Edge Capture mode in this pair of channels is disabled. #0 1 The Dual Edge Capture mode in this pair of channels is enabled. #1 DECAP0 Dual Edge Capture Mode Captures For n = 0 3 1 read-write 0 The dual edge captures are inactive. #0 1 The dual edge captures are active. #1 DTEN0 Deadtime Enable For n = 0 4 1 read-write 0 The deadtime insertion in this pair of channels is disabled. #0 1 The deadtime insertion in this pair of channels is enabled. #1 SYNCEN0 Synchronization Enable For n = 0 5 1 read-write 0 The PWM synchronization in this pair of channels is disabled. #0 1 The PWM synchronization in this pair of channels is enabled. #1 FAULTEN0 Fault Control Enable For n = 0 6 1 read-write 0 The fault control in this pair of channels is disabled. #0 1 The fault control in this pair of channels is enabled. #1 COMBINE1 Combine Channels For n = 2 8 1 read-write 0 Channels (n) and (n+1) are independent. #0 1 Channels (n) and (n+1) are combined. #1 COMP1 Complement Of Channel (n) For n = 2 9 1 read-write 0 The channel (n+1) output is the same as the channel (n) output. #0 1 The channel (n+1) output is the complement of the channel (n) output. #1 DECAPEN1 Dual Edge Capture Mode Enable For n = 2 10 1 read-write 0 The Dual Edge Capture mode in this pair of channels is disabled. #0 1 The Dual Edge Capture mode in this pair of channels is enabled. #1 DECAP1 Dual Edge Capture Mode Captures For n = 2 11 1 read-write 0 The dual edge captures are inactive. #0 1 The dual edge captures are active. #1 DTEN1 Deadtime Enable For n = 2 12 1 read-write 0 The deadtime insertion in this pair of channels is disabled. #0 1 The deadtime insertion in this pair of channels is enabled. #1 SYNCEN1 Synchronization Enable For n = 2 13 1 read-write 0 The PWM synchronization in this pair of channels is disabled. #0 1 The PWM synchronization in this pair of channels is enabled. #1 FAULTEN1 Fault Control Enable For n = 2 14 1 read-write 0 The fault control in this pair of channels is disabled. #0 1 The fault control in this pair of channels is enabled. #1 COMBINE2 Combine Channels For n = 4 16 1 read-write 0 Channels (n) and (n+1) are independent. #0 1 Channels (n) and (n+1) are combined. #1 COMP2 Complement Of Channel (n) For n = 4 17 1 read-write 0 The channel (n+1) output is the same as the channel (n) output. #0 1 The channel (n+1) output is the complement of the channel (n) output. #1 DECAPEN2 Dual Edge Capture Mode Enable For n = 4 18 1 read-write 0 The Dual Edge Capture mode in this pair of channels is disabled. #0 1 The Dual Edge Capture mode in this pair of channels is enabled. #1 DECAP2 Dual Edge Capture Mode Captures For n = 4 19 1 read-write 0 The dual edge captures are inactive. #0 1 The dual edge captures are active. #1 DTEN2 Deadtime Enable For n = 4 20 1 read-write 0 The deadtime insertion in this pair of channels is disabled. #0 1 The deadtime insertion in this pair of channels is enabled. #1 SYNCEN2 Synchronization Enable For n = 4 21 1 read-write 0 The PWM synchronization in this pair of channels is disabled. #0 1 The PWM synchronization in this pair of channels is enabled. #1 FAULTEN2 Fault Control Enable For n = 4 22 1 read-write 0 The fault control in this pair of channels is disabled. #0 1 The fault control in this pair of channels is enabled. #1 COMBINE3 Combine Channels For n = 6 24 1 read-write 0 Channels (n) and (n+1) are independent. #0 1 Channels (n) and (n+1) are combined. #1 COMP3 Complement Of Channel (n) for n = 6 25 1 read-write 0 The channel (n+1) output is the same as the channel (n) output. #0 1 The channel (n+1) output is the complement of the channel (n) output. #1 DECAPEN3 Dual Edge Capture Mode Enable For n = 6 26 1 read-write 0 The Dual Edge Capture mode in this pair of channels is disabled. #0 1 The Dual Edge Capture mode in this pair of channels is enabled. #1 DECAP3 Dual Edge Capture Mode Captures For n = 6 27 1 read-write 0 The dual edge captures are inactive. #0 1 The dual edge captures are active. #1 DTEN3 Deadtime Enable For n = 6 28 1 read-write 0 The deadtime insertion in this pair of channels is disabled. #0 1 The deadtime insertion in this pair of channels is enabled. #1 SYNCEN3 Synchronization Enable For n = 6 29 1 read-write 0 The PWM synchronization in this pair of channels is disabled. #0 1 The PWM synchronization in this pair of channels is enabled. #1 FAULTEN3 Fault Control Enable For n = 6 30 1 read-write 0 The fault control in this pair of channels is disabled. #0 1 The fault control in this pair of channels is enabled. #1 DEADTIME Deadtime Insertion Control 0x68 32 read-write 0 0xFFFFFFFF DTVAL Deadtime Value 0 6 read-write DTPS Deadtime Prescaler Value 6 2 read-write 10 Divide the system clock by 4. #10 11 Divide the system clock by 16. #11 EXTTRIG FTM External Trigger 0x6C 32 read-write 0 0xFFFFFFFF CH2TRIG Channel 2 Trigger Enable 0 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH3TRIG Channel 3 Trigger Enable 1 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH4TRIG Channel 4 Trigger Enable 2 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH5TRIG Channel 5 Trigger Enable 3 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH0TRIG Channel 0 Trigger Enable 4 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH1TRIG Channel 1 Trigger Enable 5 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 INITTRIGEN Initialization Trigger Enable 6 1 read-write 0 The generation of initialization trigger is disabled. #0 1 The generation of initialization trigger is enabled. #1 TRIGF Channel Trigger Flag 7 1 read-write 0 No channel trigger was generated. #0 1 A channel trigger was generated. #1 POL Channels Polarity 0x70 32 read-write 0 0xFFFFFFFF POL0 Channel 0 Polarity 0 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL1 Channel 1 Polarity 1 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL2 Channel 2 Polarity 2 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL3 Channel 3 Polarity 3 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL4 Channel 4 Polarity 4 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL5 Channel 5 Polarity 5 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL6 Channel 6 Polarity 6 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL7 Channel 7 Polarity 7 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 FMS Fault Mode Status 0x74 32 read-write 0 0xFFFFFFFF FAULTF0 Fault Detection Flag 0 0 1 read-write 0 No fault condition was detected at the fault input. #0 1 A fault condition was detected at the fault input. #1 FAULTF1 Fault Detection Flag 1 1 1 read-write 0 No fault condition was detected at the fault input. #0 1 A fault condition was detected at the fault input. #1 FAULTF2 Fault Detection Flag 2 2 1 read-write 0 No fault condition was detected at the fault input. #0 1 A fault condition was detected at the fault input. #1 FAULTF3 Fault Detection Flag 3 3 1 read-write 0 No fault condition was detected at the fault input. #0 1 A fault condition was detected at the fault input. #1 FAULTIN Fault Inputs 5 1 read-only 0 The logic OR of the enabled fault inputs is 0. #0 1 The logic OR of the enabled fault inputs is 1. #1 WPEN Write Protection Enable 6 1 read-write 0 Write protection is disabled. Write protected bits can be written. #0 1 Write protection is enabled. Write protected bits cannot be written. #1 FAULTF Fault Detection Flag 7 1 read-write 0 No fault condition was detected. #0 1 A fault condition was detected. #1 FILTER Input Capture Filter Control 0x78 32 read-write 0 0xFFFFFFFF CH0FVAL Channel 0 Input Filter 0 4 read-write CH1FVAL Channel 1 Input Filter 4 4 read-write CH2FVAL Channel 2 Input Filter 8 4 read-write CH3FVAL Channel 3 Input Filter 12 4 read-write FLTCTRL Fault Control 0x7C 32 read-write 0 0xFFFFFFFF FAULT0EN Fault Input 0 Enable 0 1 read-write 0 Fault input is disabled. #0 1 Fault input is enabled. #1 FAULT1EN Fault Input 1 Enable 1 1 read-write 0 Fault input is disabled. #0 1 Fault input is enabled. #1 FAULT2EN Fault Input 2 Enable 2 1 read-write 0 Fault input is disabled. #0 1 Fault input is enabled. #1 FAULT3EN Fault Input 3 Enable 3 1 read-write 0 Fault input is disabled. #0 1 Fault input is enabled. #1 FFLTR0EN Fault Input 0 Filter Enable 4 1 read-write 0 Fault input filter is disabled. #0 1 Fault input filter is enabled. #1 FFLTR1EN Fault Input 1 Filter Enable 5 1 read-write 0 Fault input filter is disabled. #0 1 Fault input filter is enabled. #1 FFLTR2EN Fault Input 2 Filter Enable 6 1 read-write 0 Fault input filter is disabled. #0 1 Fault input filter is enabled. #1 FFLTR3EN Fault Input 3 Filter Enable 7 1 read-write 0 Fault input filter is disabled. #0 1 Fault input filter is enabled. #1 FFVAL Fault Input Filter 8 4 read-write CONF Configuration 0x84 32 read-write 0 0xFFFFFFFF NUMTOF TOF Frequency 0 5 read-write BDMMODE Debug Mode 6 2 read-write GTBEEN Global Time Base Enable 9 1 read-write 0 Use of an external global time base is disabled. #0 1 Use of an external global time base is enabled. #1 GTBEOUT Global Time Base Output 10 1 read-write 0 A global time base signal generation is disabled. #0 1 A global time base signal generation is enabled. #1 FLTPOL FTM Fault Input Polarity 0x88 32 read-write 0 0xFFFFFFFF FLT0POL Fault Input 0 Polarity 0 1 read-write 0 The fault input polarity is active high. A 1 at the fault input indicates a fault. #0 1 The fault input polarity is active low. A 0 at the fault input indicates a fault. #1 FLT1POL Fault Input 1 Polarity 1 1 read-write 0 The fault input polarity is active high. A 1 at the fault input indicates a fault. #0 1 The fault input polarity is active low. A 0 at the fault input indicates a fault. #1 FLT2POL Fault Input 2 Polarity 2 1 read-write 0 The fault input polarity is active high. A 1 at the fault input indicates a fault. #0 1 The fault input polarity is active low. A 0 at the fault input indicates a fault. #1 FLT3POL Fault Input 3 Polarity 3 1 read-write 0 The fault input polarity is active high. A 1 at the fault input indicates a fault. #0 1 The fault input polarity is active low. A 0 at the fault input indicates a fault. #1 SYNCONF Synchronization Configuration 0x8C 32 read-write 0 0xFFFFFFFF HWTRIGMODE Hardware Trigger Mode 0 1 read-write 0 FTM clears the TRIGj bit when the hardware trigger j is detected, where j = 0, 1,2. #0 1 FTM does not clear the TRIGj bit when the hardware trigger j is detected, where j = 0, 1,2. #1 CNTINC CNTIN Register Synchronization 2 1 read-write 0 CNTIN register is updated with its buffer value at all rising edges of system clock. #0 1 CNTIN register is updated with its buffer value by the PWM synchronization. #1 INVC INVCTRL Register Synchronization 4 1 read-write 0 INVCTRL register is updated with its buffer value at all rising edges of system clock. #0 1 INVCTRL register is updated with its buffer value by the PWM synchronization. #1 SWOC SWOCTRL Register Synchronization 5 1 read-write 0 SWOCTRL register is updated with its buffer value at all rising edges of system clock. #0 1 SWOCTRL register is updated with its buffer value by the PWM synchronization. #1 SYNCMODE Synchronization Mode 7 1 read-write 0 Legacy PWM synchronization is selected. #0 1 Enhanced PWM synchronization is selected. #1 SWRSTCNT FTM counter synchronization is activated by the software trigger. 8 1 read-write 0 The software trigger does not activate the FTM counter synchronization. #0 1 The software trigger activates the FTM counter synchronization. #1 SWWRBUF MOD, CNTIN, and CV registers synchronization is activated by the software trigger. 9 1 read-write 0 The software trigger does not activate MOD, CNTIN, and CV registers synchronization. #0 1 The software trigger activates MOD, CNTIN, and CV registers synchronization. #1 SWOM Output mask synchronization is activated by the software trigger. 10 1 read-write 0 The software trigger does not activate the OUTMASK register synchronization. #0 1 The software trigger activates the OUTMASK register synchronization. #1 SWINVC Inverting control synchronization is activated by the software trigger. 11 1 read-write 0 The software trigger does not activate the INVCTRL register synchronization. #0 1 The software trigger activates the INVCTRL register synchronization. #1 SWSOC Software output control synchronization is activated by the software trigger. 12 1 read-write 0 The software trigger does not activate the SWOCTRL register synchronization. #0 1 The software trigger activates the SWOCTRL register synchronization. #1 HWRSTCNT FTM counter synchronization is activated by a hardware trigger. 16 1 read-write 0 A hardware trigger does not activate the FTM counter synchronization. #0 1 A hardware trigger activates the FTM counter synchronization. #1 HWWRBUF MOD, CNTIN, and CV registers synchronization is activated by a hardware trigger. 17 1 read-write 0 A hardware trigger does not activate MOD, CNTIN, and CV registers synchronization. #0 1 A hardware trigger activates MOD, CNTIN, and CV registers synchronization. #1 HWOM Output mask synchronization is activated by a hardware trigger. 18 1 read-write 0 A hardware trigger does not activate the OUTMASK register synchronization. #0 1 A hardware trigger activates the OUTMASK register synchronization. #1 HWINVC Inverting control synchronization is activated by a hardware trigger. 19 1 read-write 0 A hardware trigger does not activate the INVCTRL register synchronization. #0 1 A hardware trigger activates the INVCTRL register synchronization. #1 HWSOC Software output control synchronization is activated by a hardware trigger. 20 1 read-write 0 A hardware trigger does not activate the SWOCTRL register synchronization. #0 1 A hardware trigger activates the SWOCTRL register synchronization. #1 INVCTRL FTM Inverting Control 0x90 32 read-write 0 0xFFFFFFFF INV0EN Pair Channels 0 Inverting Enable 0 1 read-write 0 Inverting is disabled. #0 1 Inverting is enabled. #1 INV1EN Pair Channels 1 Inverting Enable 1 1 read-write 0 Inverting is disabled. #0 1 Inverting is enabled. #1 INV2EN Pair Channels 2 Inverting Enable 2 1 read-write 0 Inverting is disabled. #0 1 Inverting is enabled. #1 INV3EN Pair Channels 3 Inverting Enable 3 1 read-write 0 Inverting is disabled. #0 1 Inverting is enabled. #1 SWOCTRL FTM Software Output Control 0x94 32 read-write 0 0xFFFFFFFF CH0OC Channel 0 Software Output Control Enable 0 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH1OC Channel 1 Software Output Control Enable 1 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH2OC Channel 2 Software Output Control Enable 2 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH3OC Channel 3 Software Output Control Enable 3 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH4OC Channel 4 Software Output Control Enable 4 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH5OC Channel 5 Software Output Control Enable 5 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH6OC Channel 6 Software Output Control Enable 6 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH7OC Channel 7 Software Output Control Enable 7 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH0OCV Channel 0 Software Output Control Value 8 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH1OCV Channel 1 Software Output Control Value 9 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH2OCV Channel 2 Software Output Control Value 10 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH3OCV Channel 3 Software Output Control Value 11 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH4OCV Channel 4 Software Output Control Value 12 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH5OCV Channel 5 Software Output Control Value 13 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH6OCV Channel 6 Software Output Control Value 14 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH7OCV Channel 7 Software Output Control Value 15 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 PWMLOAD FTM PWM Load 0x98 32 read-write 0 0xFFFFFFFF CH0SEL Channel 0 Select 0 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH1SEL Channel 1 Select 1 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH2SEL Channel 2 Select 2 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH3SEL Channel 3 Select 3 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH4SEL Channel 4 Select 4 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH5SEL Channel 5 Select 5 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH6SEL Channel 6 Select 6 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH7SEL Channel 7 Select 7 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 LDOK Load Enable 9 1 read-write 0 Loading updated values is disabled. #0 1 Loading updated values is enabled. #1 FTM2 FlexTimer Module FTM FTM2_ 0x4003A000 0 0x9C registers FTM2 19 SC Status And Control 0 32 read-write 0 0xFFFFFFFF PS Prescale Factor Selection 0 3 read-write 000 Divide by 1 #000 001 Divide by 2 #001 010 Divide by 4 #010 011 Divide by 8 #011 100 Divide by 16 #100 101 Divide by 32 #101 110 Divide by 64 #110 111 Divide by 128 #111 CLKS Clock Source Selection 3 2 read-write 00 No clock selected. This in effect disables the FTM counter. #00 01 System clock #01 10 Fixed frequency clock #10 11 External clock #11 CPWMS Center-Aligned PWM Select 5 1 read-write 0 FTM counter operates in Up Counting mode. #0 1 FTM counter operates in Up-Down Counting mode. #1 TOIE Timer Overflow Interrupt Enable 6 1 read-write 0 Disable TOF interrupts. Use software polling. #0 1 Enable TOF interrupts. An interrupt is generated when TOF equals one. #1 TOF Timer Overflow Flag 7 1 read-write 0 FTM counter has not overflowed. #0 1 FTM counter has overflowed. #1 CNT Counter 0x4 32 read-write 0 0xFFFFFFFF COUNT Counter Value 0 16 read-write MOD Modulo 0x8 32 read-write 0 0xFFFFFFFF MOD Modulo Value 0 16 read-write 8 0x8 0,1,2,3,4,5,6,7 C%sSC Channel (n) Status And Control 0xC 32 read-write 0 0xFFFFFFFF ELSA Edge or Level Select 2 1 read-write ELSB Edge or Level Select 3 1 read-write MSA Channel Mode Select 4 1 read-write MSB Channel Mode Select 5 1 read-write CHIE Channel Interrupt Enable 6 1 read-write 0 Disable channel interrupts. Use software polling. #0 1 Enable channel interrupts. #1 CHF Channel Flag 7 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 8 0x8 0,1,2,3,4,5,6,7 C%sV Channel (n) Value 0x10 32 read-write 0 0xFFFFFFFF VAL Channel Value 0 16 read-write CNTIN Counter Initial Value 0x4C 32 read-write 0 0xFFFFFFFF INIT Initial Value Of The FTM Counter 0 16 read-write STATUS Capture And Compare Status 0x50 32 read-write 0 0xFFFFFFFF CH0F Channel 0 Flag 0 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH1F Channel 1 Flag 1 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH2F Channel 2 Flag 2 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH3F Channel 3 Flag 3 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH4F Channel 4 Flag 4 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH5F Channel 5 Flag 5 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH6F Channel 6 Flag 6 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 CH7F Channel 7 Flag 7 1 read-write 0 No channel event has occurred. #0 1 A channel event has occurred. #1 MODE Features Mode Selection 0x54 32 read-write 0x4 0xFFFFFFFF FTMEN FTM Enable 0 1 read-write 0 Only the TPM-compatible registers (first set of registers) can be used without any restriction. Do not use the FTM-specific registers. #0 1 All registers including the FTM-specific registers (second set of registers) are available for use with no restrictions. #1 INIT Initialize The Channels Output 1 1 read-write WPDIS Write Protection Disable 2 1 read-write 0 Write protection is enabled. #0 1 Write protection is disabled. #1 PWMSYNC PWM Synchronization Mode 3 1 read-write 0 No restrictions. Software and hardware triggers can be used by MOD, CnV, OUTMASK, and FTM counter synchronization. #0 1 Software trigger can only be used by MOD and CnV synchronization, and hardware triggers can only be used by OUTMASK and FTM counter synchronization. #1 CAPTEST Capture Test Mode Enable 4 1 read-write 0 Capture test mode is disabled. #0 1 Capture test mode is enabled. #1 FAULTM Fault Control Mode 5 2 read-write 00 Fault control is disabled for all channels. #00 01 Fault control is enabled for even channels only (channels 0, 2, 4, and 6), and the selected mode is the manual fault clearing. #01 10 Fault control is enabled for all channels, and the selected mode is the manual fault clearing. #10 11 Fault control is enabled for all channels, and the selected mode is the automatic fault clearing. #11 FAULTIE Fault Interrupt Enable 7 1 read-write 0 Fault control interrupt is disabled. #0 1 Fault control interrupt is enabled. #1 SYNC Synchronization 0x58 32 read-write 0 0xFFFFFFFF CNTMIN Minimum Loading Point Enable 0 1 read-write 0 The minimum loading point is disabled. #0 1 The minimum loading point is enabled. #1 CNTMAX Maximum Loading Point Enable 1 1 read-write 0 The maximum loading point is disabled. #0 1 The maximum loading point is enabled. #1 REINIT FTM Counter Reinitialization By Synchronization (FTM counter synchronization) 2 1 read-write 0 FTM counter continues to count normally. #0 1 FTM counter is updated with its initial value when the selected trigger is detected. #1 SYNCHOM Output Mask Synchronization 3 1 read-write 0 OUTMASK register is updated with the value of its buffer in all rising edges of the system clock. #0 1 OUTMASK register is updated with the value of its buffer only by the PWM synchronization. #1 TRIG0 PWM Synchronization Hardware Trigger 0 4 1 read-write 0 Trigger is disabled. #0 1 Trigger is enabled. #1 TRIG1 PWM Synchronization Hardware Trigger 1 5 1 read-write 0 Trigger is disabled. #0 1 Trigger is enabled. #1 TRIG2 PWM Synchronization Hardware Trigger 2 6 1 read-write 0 Trigger is disabled. #0 1 Trigger is enabled. #1 SWSYNC PWM Synchronization Software Trigger 7 1 read-write 0 Software trigger is not selected. #0 1 Software trigger is selected. #1 OUTINIT Initial State For Channels Output 0x5C 32 read-write 0 0xFFFFFFFF CH0OI Channel 0 Output Initialization Value 0 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH1OI Channel 1 Output Initialization Value 1 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH2OI Channel 2 Output Initialization Value 2 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH3OI Channel 3 Output Initialization Value 3 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH4OI Channel 4 Output Initialization Value 4 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH5OI Channel 5 Output Initialization Value 5 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH6OI Channel 6 Output Initialization Value 6 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 CH7OI Channel 7 Output Initialization Value 7 1 read-write 0 The initialization value is 0. #0 1 The initialization value is 1. #1 OUTMASK Output Mask 0x60 32 read-write 0 0xFFFFFFFF CH0OM Channel 0 Output Mask 0 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH1OM Channel 1 Output Mask 1 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH2OM Channel 2 Output Mask 2 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH3OM Channel 3 Output Mask 3 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH4OM Channel 4 Output Mask 4 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH5OM Channel 5 Output Mask 5 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH6OM Channel 6 Output Mask 6 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 CH7OM Channel 7 Output Mask 7 1 read-write 0 Channel output is not masked. It continues to operate normally. #0 1 Channel output is masked. It is forced to its inactive state. #1 COMBINE Function For Linked Channels 0x64 32 read-write 0 0xFFFFFFFF COMBINE0 Combine Channels For n = 0 0 1 read-write 0 Channels (n) and (n+1) are independent. #0 1 Channels (n) and (n+1) are combined. #1 COMP0 Complement Of Channel (n) For n = 0 1 1 read-write 0 The channel (n+1) output is the same as the channel (n) output. #0 1 The channel (n+1) output is the complement of the channel (n) output. #1 DECAPEN0 Dual Edge Capture Mode Enable For n = 0 2 1 read-write 0 The Dual Edge Capture mode in this pair of channels is disabled. #0 1 The Dual Edge Capture mode in this pair of channels is enabled. #1 DECAP0 Dual Edge Capture Mode Captures For n = 0 3 1 read-write 0 The dual edge captures are inactive. #0 1 The dual edge captures are active. #1 DTEN0 Deadtime Enable For n = 0 4 1 read-write 0 The deadtime insertion in this pair of channels is disabled. #0 1 The deadtime insertion in this pair of channels is enabled. #1 SYNCEN0 Synchronization Enable For n = 0 5 1 read-write 0 The PWM synchronization in this pair of channels is disabled. #0 1 The PWM synchronization in this pair of channels is enabled. #1 FAULTEN0 Fault Control Enable For n = 0 6 1 read-write 0 The fault control in this pair of channels is disabled. #0 1 The fault control in this pair of channels is enabled. #1 COMBINE1 Combine Channels For n = 2 8 1 read-write 0 Channels (n) and (n+1) are independent. #0 1 Channels (n) and (n+1) are combined. #1 COMP1 Complement Of Channel (n) For n = 2 9 1 read-write 0 The channel (n+1) output is the same as the channel (n) output. #0 1 The channel (n+1) output is the complement of the channel (n) output. #1 DECAPEN1 Dual Edge Capture Mode Enable For n = 2 10 1 read-write 0 The Dual Edge Capture mode in this pair of channels is disabled. #0 1 The Dual Edge Capture mode in this pair of channels is enabled. #1 DECAP1 Dual Edge Capture Mode Captures For n = 2 11 1 read-write 0 The dual edge captures are inactive. #0 1 The dual edge captures are active. #1 DTEN1 Deadtime Enable For n = 2 12 1 read-write 0 The deadtime insertion in this pair of channels is disabled. #0 1 The deadtime insertion in this pair of channels is enabled. #1 SYNCEN1 Synchronization Enable For n = 2 13 1 read-write 0 The PWM synchronization in this pair of channels is disabled. #0 1 The PWM synchronization in this pair of channels is enabled. #1 FAULTEN1 Fault Control Enable For n = 2 14 1 read-write 0 The fault control in this pair of channels is disabled. #0 1 The fault control in this pair of channels is enabled. #1 COMBINE2 Combine Channels For n = 4 16 1 read-write 0 Channels (n) and (n+1) are independent. #0 1 Channels (n) and (n+1) are combined. #1 COMP2 Complement Of Channel (n) For n = 4 17 1 read-write 0 The channel (n+1) output is the same as the channel (n) output. #0 1 The channel (n+1) output is the complement of the channel (n) output. #1 DECAPEN2 Dual Edge Capture Mode Enable For n = 4 18 1 read-write 0 The Dual Edge Capture mode in this pair of channels is disabled. #0 1 The Dual Edge Capture mode in this pair of channels is enabled. #1 DECAP2 Dual Edge Capture Mode Captures For n = 4 19 1 read-write 0 The dual edge captures are inactive. #0 1 The dual edge captures are active. #1 DTEN2 Deadtime Enable For n = 4 20 1 read-write 0 The deadtime insertion in this pair of channels is disabled. #0 1 The deadtime insertion in this pair of channels is enabled. #1 SYNCEN2 Synchronization Enable For n = 4 21 1 read-write 0 The PWM synchronization in this pair of channels is disabled. #0 1 The PWM synchronization in this pair of channels is enabled. #1 FAULTEN2 Fault Control Enable For n = 4 22 1 read-write 0 The fault control in this pair of channels is disabled. #0 1 The fault control in this pair of channels is enabled. #1 COMBINE3 Combine Channels For n = 6 24 1 read-write 0 Channels (n) and (n+1) are independent. #0 1 Channels (n) and (n+1) are combined. #1 COMP3 Complement Of Channel (n) for n = 6 25 1 read-write 0 The channel (n+1) output is the same as the channel (n) output. #0 1 The channel (n+1) output is the complement of the channel (n) output. #1 DECAPEN3 Dual Edge Capture Mode Enable For n = 6 26 1 read-write 0 The Dual Edge Capture mode in this pair of channels is disabled. #0 1 The Dual Edge Capture mode in this pair of channels is enabled. #1 DECAP3 Dual Edge Capture Mode Captures For n = 6 27 1 read-write 0 The dual edge captures are inactive. #0 1 The dual edge captures are active. #1 DTEN3 Deadtime Enable For n = 6 28 1 read-write 0 The deadtime insertion in this pair of channels is disabled. #0 1 The deadtime insertion in this pair of channels is enabled. #1 SYNCEN3 Synchronization Enable For n = 6 29 1 read-write 0 The PWM synchronization in this pair of channels is disabled. #0 1 The PWM synchronization in this pair of channels is enabled. #1 FAULTEN3 Fault Control Enable For n = 6 30 1 read-write 0 The fault control in this pair of channels is disabled. #0 1 The fault control in this pair of channels is enabled. #1 DEADTIME Deadtime Insertion Control 0x68 32 read-write 0 0xFFFFFFFF DTVAL Deadtime Value 0 6 read-write DTPS Deadtime Prescaler Value 6 2 read-write 10 Divide the system clock by 4. #10 11 Divide the system clock by 16. #11 EXTTRIG FTM External Trigger 0x6C 32 read-write 0 0xFFFFFFFF CH2TRIG Channel 2 Trigger Enable 0 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH3TRIG Channel 3 Trigger Enable 1 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH4TRIG Channel 4 Trigger Enable 2 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH5TRIG Channel 5 Trigger Enable 3 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH0TRIG Channel 0 Trigger Enable 4 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 CH1TRIG Channel 1 Trigger Enable 5 1 read-write 0 The generation of the channel trigger is disabled. #0 1 The generation of the channel trigger is enabled. #1 INITTRIGEN Initialization Trigger Enable 6 1 read-write 0 The generation of initialization trigger is disabled. #0 1 The generation of initialization trigger is enabled. #1 TRIGF Channel Trigger Flag 7 1 read-write 0 No channel trigger was generated. #0 1 A channel trigger was generated. #1 POL Channels Polarity 0x70 32 read-write 0 0xFFFFFFFF POL0 Channel 0 Polarity 0 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL1 Channel 1 Polarity 1 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL2 Channel 2 Polarity 2 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL3 Channel 3 Polarity 3 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL4 Channel 4 Polarity 4 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL5 Channel 5 Polarity 5 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL6 Channel 6 Polarity 6 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 POL7 Channel 7 Polarity 7 1 read-write 0 The channel polarity is active high. #0 1 The channel polarity is active low. #1 FMS Fault Mode Status 0x74 32 read-write 0 0xFFFFFFFF FAULTF0 Fault Detection Flag 0 0 1 read-write 0 No fault condition was detected at the fault input. #0 1 A fault condition was detected at the fault input. #1 FAULTF1 Fault Detection Flag 1 1 1 read-write 0 No fault condition was detected at the fault input. #0 1 A fault condition was detected at the fault input. #1 FAULTF2 Fault Detection Flag 2 2 1 read-write 0 No fault condition was detected at the fault input. #0 1 A fault condition was detected at the fault input. #1 FAULTF3 Fault Detection Flag 3 3 1 read-write 0 No fault condition was detected at the fault input. #0 1 A fault condition was detected at the fault input. #1 FAULTIN Fault Inputs 5 1 read-only 0 The logic OR of the enabled fault inputs is 0. #0 1 The logic OR of the enabled fault inputs is 1. #1 WPEN Write Protection Enable 6 1 read-write 0 Write protection is disabled. Write protected bits can be written. #0 1 Write protection is enabled. Write protected bits cannot be written. #1 FAULTF Fault Detection Flag 7 1 read-write 0 No fault condition was detected. #0 1 A fault condition was detected. #1 FILTER Input Capture Filter Control 0x78 32 read-write 0 0xFFFFFFFF CH0FVAL Channel 0 Input Filter 0 4 read-write CH1FVAL Channel 1 Input Filter 4 4 read-write CH2FVAL Channel 2 Input Filter 8 4 read-write CH3FVAL Channel 3 Input Filter 12 4 read-write FLTCTRL Fault Control 0x7C 32 read-write 0 0xFFFFFFFF FAULT0EN Fault Input 0 Enable 0 1 read-write 0 Fault input is disabled. #0 1 Fault input is enabled. #1 FAULT1EN Fault Input 1 Enable 1 1 read-write 0 Fault input is disabled. #0 1 Fault input is enabled. #1 FAULT2EN Fault Input 2 Enable 2 1 read-write 0 Fault input is disabled. #0 1 Fault input is enabled. #1 FAULT3EN Fault Input 3 Enable 3 1 read-write 0 Fault input is disabled. #0 1 Fault input is enabled. #1 FFLTR0EN Fault Input 0 Filter Enable 4 1 read-write 0 Fault input filter is disabled. #0 1 Fault input filter is enabled. #1 FFLTR1EN Fault Input 1 Filter Enable 5 1 read-write 0 Fault input filter is disabled. #0 1 Fault input filter is enabled. #1 FFLTR2EN Fault Input 2 Filter Enable 6 1 read-write 0 Fault input filter is disabled. #0 1 Fault input filter is enabled. #1 FFLTR3EN Fault Input 3 Filter Enable 7 1 read-write 0 Fault input filter is disabled. #0 1 Fault input filter is enabled. #1 FFVAL Fault Input Filter 8 4 read-write CONF Configuration 0x84 32 read-write 0 0xFFFFFFFF NUMTOF TOF Frequency 0 5 read-write BDMMODE Debug Mode 6 2 read-write GTBEEN Global Time Base Enable 9 1 read-write 0 Use of an external global time base is disabled. #0 1 Use of an external global time base is enabled. #1 GTBEOUT Global Time Base Output 10 1 read-write 0 A global time base signal generation is disabled. #0 1 A global time base signal generation is enabled. #1 FLTPOL FTM Fault Input Polarity 0x88 32 read-write 0 0xFFFFFFFF FLT0POL Fault Input 0 Polarity 0 1 read-write 0 The fault input polarity is active high. A 1 at the fault input indicates a fault. #0 1 The fault input polarity is active low. A 0 at the fault input indicates a fault. #1 FLT1POL Fault Input 1 Polarity 1 1 read-write 0 The fault input polarity is active high. A 1 at the fault input indicates a fault. #0 1 The fault input polarity is active low. A 0 at the fault input indicates a fault. #1 FLT2POL Fault Input 2 Polarity 2 1 read-write 0 The fault input polarity is active high. A 1 at the fault input indicates a fault. #0 1 The fault input polarity is active low. A 0 at the fault input indicates a fault. #1 FLT3POL Fault Input 3 Polarity 3 1 read-write 0 The fault input polarity is active high. A 1 at the fault input indicates a fault. #0 1 The fault input polarity is active low. A 0 at the fault input indicates a fault. #1 SYNCONF Synchronization Configuration 0x8C 32 read-write 0 0xFFFFFFFF HWTRIGMODE Hardware Trigger Mode 0 1 read-write 0 FTM clears the TRIGj bit when the hardware trigger j is detected, where j = 0, 1,2. #0 1 FTM does not clear the TRIGj bit when the hardware trigger j is detected, where j = 0, 1,2. #1 CNTINC CNTIN Register Synchronization 2 1 read-write 0 CNTIN register is updated with its buffer value at all rising edges of system clock. #0 1 CNTIN register is updated with its buffer value by the PWM synchronization. #1 INVC INVCTRL Register Synchronization 4 1 read-write 0 INVCTRL register is updated with its buffer value at all rising edges of system clock. #0 1 INVCTRL register is updated with its buffer value by the PWM synchronization. #1 SWOC SWOCTRL Register Synchronization 5 1 read-write 0 SWOCTRL register is updated with its buffer value at all rising edges of system clock. #0 1 SWOCTRL register is updated with its buffer value by the PWM synchronization. #1 SYNCMODE Synchronization Mode 7 1 read-write 0 Legacy PWM synchronization is selected. #0 1 Enhanced PWM synchronization is selected. #1 SWRSTCNT FTM counter synchronization is activated by the software trigger. 8 1 read-write 0 The software trigger does not activate the FTM counter synchronization. #0 1 The software trigger activates the FTM counter synchronization. #1 SWWRBUF MOD, CNTIN, and CV registers synchronization is activated by the software trigger. 9 1 read-write 0 The software trigger does not activate MOD, CNTIN, and CV registers synchronization. #0 1 The software trigger activates MOD, CNTIN, and CV registers synchronization. #1 SWOM Output mask synchronization is activated by the software trigger. 10 1 read-write 0 The software trigger does not activate the OUTMASK register synchronization. #0 1 The software trigger activates the OUTMASK register synchronization. #1 SWINVC Inverting control synchronization is activated by the software trigger. 11 1 read-write 0 The software trigger does not activate the INVCTRL register synchronization. #0 1 The software trigger activates the INVCTRL register synchronization. #1 SWSOC Software output control synchronization is activated by the software trigger. 12 1 read-write 0 The software trigger does not activate the SWOCTRL register synchronization. #0 1 The software trigger activates the SWOCTRL register synchronization. #1 HWRSTCNT FTM counter synchronization is activated by a hardware trigger. 16 1 read-write 0 A hardware trigger does not activate the FTM counter synchronization. #0 1 A hardware trigger activates the FTM counter synchronization. #1 HWWRBUF MOD, CNTIN, and CV registers synchronization is activated by a hardware trigger. 17 1 read-write 0 A hardware trigger does not activate MOD, CNTIN, and CV registers synchronization. #0 1 A hardware trigger activates MOD, CNTIN, and CV registers synchronization. #1 HWOM Output mask synchronization is activated by a hardware trigger. 18 1 read-write 0 A hardware trigger does not activate the OUTMASK register synchronization. #0 1 A hardware trigger activates the OUTMASK register synchronization. #1 HWINVC Inverting control synchronization is activated by a hardware trigger. 19 1 read-write 0 A hardware trigger does not activate the INVCTRL register synchronization. #0 1 A hardware trigger activates the INVCTRL register synchronization. #1 HWSOC Software output control synchronization is activated by a hardware trigger. 20 1 read-write 0 A hardware trigger does not activate the SWOCTRL register synchronization. #0 1 A hardware trigger activates the SWOCTRL register synchronization. #1 INVCTRL FTM Inverting Control 0x90 32 read-write 0 0xFFFFFFFF INV0EN Pair Channels 0 Inverting Enable 0 1 read-write 0 Inverting is disabled. #0 1 Inverting is enabled. #1 INV1EN Pair Channels 1 Inverting Enable 1 1 read-write 0 Inverting is disabled. #0 1 Inverting is enabled. #1 INV2EN Pair Channels 2 Inverting Enable 2 1 read-write 0 Inverting is disabled. #0 1 Inverting is enabled. #1 INV3EN Pair Channels 3 Inverting Enable 3 1 read-write 0 Inverting is disabled. #0 1 Inverting is enabled. #1 SWOCTRL FTM Software Output Control 0x94 32 read-write 0 0xFFFFFFFF CH0OC Channel 0 Software Output Control Enable 0 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH1OC Channel 1 Software Output Control Enable 1 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH2OC Channel 2 Software Output Control Enable 2 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH3OC Channel 3 Software Output Control Enable 3 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH4OC Channel 4 Software Output Control Enable 4 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH5OC Channel 5 Software Output Control Enable 5 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH6OC Channel 6 Software Output Control Enable 6 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH7OC Channel 7 Software Output Control Enable 7 1 read-write 0 The channel output is not affected by software output control. #0 1 The channel output is affected by software output control. #1 CH0OCV Channel 0 Software Output Control Value 8 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH1OCV Channel 1 Software Output Control Value 9 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH2OCV Channel 2 Software Output Control Value 10 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH3OCV Channel 3 Software Output Control Value 11 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH4OCV Channel 4 Software Output Control Value 12 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH5OCV Channel 5 Software Output Control Value 13 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH6OCV Channel 6 Software Output Control Value 14 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 CH7OCV Channel 7 Software Output Control Value 15 1 read-write 0 The software output control forces 0 to the channel output. #0 1 The software output control forces 1 to the channel output. #1 PWMLOAD FTM PWM Load 0x98 32 read-write 0 0xFFFFFFFF CH0SEL Channel 0 Select 0 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH1SEL Channel 1 Select 1 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH2SEL Channel 2 Select 2 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH3SEL Channel 3 Select 3 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH4SEL Channel 4 Select 4 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH5SEL Channel 5 Select 5 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH6SEL Channel 6 Select 6 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 CH7SEL Channel 7 Select 7 1 read-write 0 Do not include the channel in the matching process. #0 1 Include the channel in the matching process. #1 LDOK Load Enable 9 1 read-write 0 Loading updated values is disabled. #0 1 Loading updated values is enabled. #1 ADC Analog-to-digital converter ADC_ 0x4003B000 0 0x20 registers ADC 15 SC1 Status and Control Register 1 0 32 read-write 0x1F 0xFFFFFFFF ADCH Input Channel Select 0 5 read-write 10110 Temperature Sensor #10110 10111 Bandgap #10111 11101 VREFH #11101 11110 VREFL #11110 11111 Module disabled Reset FIFO in FIFO mode. #11111 ADCO Continuous Conversion Enable 5 1 read-write 0 One conversion following a write to the ADC_SC1 when software triggered operation is selected, or one conversion following assertion of ADHWT when hardware triggered operation is selected. When the FIFO function is enabled (AFDEP > 0), a set of conversion are triggered when ADC_SC2[ADTRG]=0 or both ADC_SC2[ADTRG]=1 and ADC_SC4[HTRGME]=1. #0 1 Continuous conversions are initiated following a write to ADC_SC1 when software triggered operation is selected. Continuous conversions are initiated by an ADHWT event when hardware triggered operation is selected. When the FIFO function is enabled (AFDEP > 0), a set of conversions are loop triggered. #1 AIEN Interrupt Enable 6 1 read-write 0 Conversion complete interrupt disabled. #0 1 Conversion complete interrupt enabled. #1 COCO Conversion Complete Flag 7 1 read-only 0 Conversion not completed. #0 1 Conversion completed. #1 SC2 Status and Control Register 2 0x4 32 read-write 0x8 0xFFFFFFFF REFSEL Voltage Reference Selection 0 2 read-write 00 Default voltage reference pin pair (VREFH/VREFL). #00 01 Analog supply pin pair (VDDA/VSSA). #01 11 Reserved - Selects default voltage reference (VREFH/VREFL) pin pair. #11 FFULL Result FIFO full 2 1 read-only 0 Indicates that ADC result FIFO is not full and next conversion data still can be stored into FIFO. #0 1 Indicates that ADC result FIFO is full and next conversion will override old data in case of no read action. #1 FEMPTY Result FIFO empty 3 1 read-only 0 Indicates that ADC result FIFO have at least one valid new data. #0 1 Indicates that ADC result FIFO have no valid new data. #1 ACFGT Compare Function Greater Than Enable 4 1 read-write 0 Compare triggers when input is less than compare level. #0 1 Compare triggers when input is greater than or equal to compare level. #1 ACFE Compare Function Enable 5 1 read-write 0 Compare function disabled. #0 1 Compare function enabled. #1 ADTRG Conversion Trigger Select 6 1 read-write 0 Software trigger selected. #0 1 Hardware trigger selected. #1 ADACT Conversion Active 7 1 read-only 0 Conversion not in progress. #0 1 Conversion in progress. #1 SC3 Status and Control Register 3 0x8 32 read-write 0 0xFFFFFFFF ADICLK Input Clock Select 0 2 read-write 00 Bus clock #00 01 Bus clock divided by 2 #01 10 Alternate clock (ALTCLK) #10 11 Asynchronous clock (ADACK) #11 MODE Conversion Mode Selection 2 2 read-write 00 8-bit conversion (N = 8) #00 01 10-bit conversion (N = 10) #01 10 12-bit conversion (N = 12) #10 ADLSMP Long Sample Time Configuration 4 1 read-write 0 Short sample time. #0 1 Long sample time. #1 ADIV Clock Divide Select 5 2 read-write 00 Divide ration = 1, and clock rate = Input clock. #00 01 Divide ration = 2, and clock rate = Input clock * 2. #01 10 Divide ration = 3, and clock rate = Input clock * 4. #10 11 Divide ration = 4, and clock rate = Input clock * 8. #11 ADLPC Low-Power Configuration 7 1 read-write 0 High speed configuration. #0 1 Low power configuration:The power is reduced at the expense of maximum clock speed. #1 SC4 Status and Control Register 4 0xC 32 read-write 0 0xFFFFFFFF AFDEP FIFO Depth 0 3 read-write 000 FIFO is disabled. #000 001 2-level FIFO is enabled. #001 010 3-level FIFO is enabled.. #010 011 4-level FIFO is enabled. #011 100 5-level FIFO is enabled. #100 101 6-level FIFO is enabled. #101 110 7-level FIFO is enabled. #110 111 8-level FIFO is enabled. #111 ACFSEL Compare Function Selection 5 1 read-write 0 OR all of compare trigger. #0 1 AND all of compare trigger. #1 ASCANE FIFO Scan Mode Enable 6 1 read-write 0 FIFO scan mode disabled. #0 1 FIFO scan mode enabled. #1 HTRGME Hardware Trigger Multiple Conversion Enable 8 1 read-write 0 One hardware trigger pulse triggers one conversion. #0 1 One hardware trigger pulse triggers multiple conversions in fifo mode. #1 R Conversion Result Register 0x10 32 read-only 0 0xFFFFFFFF ADR Conversion Result 0 12 read-only CV Compare Value Register 0x14 32 read-write 0 0xFFFFFFFF CV Conversion Result[11:0] 0 12 read-write APCTL1 Pin Control 1 Register 0x18 32 read-write 0 0xFFFFFFFF ADPC ADC Pin Control 0 16 read-write 0 ADx pin I/O control enabled. #0 1 ADx pin I/O control disabled. #1 SC5 Status and Control Register 5 0x1C 32 read-write 0 0xFFFFFFFF HTRGMASKSEL Hardware Trigger Mask Mode Select 0 1 read-write 0 Hardware trigger mask with HTRGMASKE. #0 1 Hardware trigger mask automatically when data fifo is not empty. #1 HTRGMASKE Hardware Trigger Mask Enable 1 1 read-write 0 Hardware trigger mask disable. #0 1 Hardware trigger mask enable and hardware trigger cannot trigger ADC conversion.. #1 RTC Real-time counter RTC_ 0x4003D000 0 0xC registers RTC 20 SC RTC Status and Control Register 0 32 read-write 0 0xFFFFFFFF RTCO Real-Time Counter Output 4 1 read-write 0 Real-time counter output disabled. #0 1 Real-time counter output enabled. #1 RTIE Real-Time Interrupt Enable 6 1 read-write 0 Real-time interrupt requests are disabled. Use software polling. #0 1 Real-time interrupt requests are enabled. #1 RTIF Real-Time Interrupt Flag 7 1 read-write 0 RTC counter has not reached the value in the RTC modulo register. #0 1 RTC counter has reached the value in the RTC modulo register. #1 RTCPS Real-Time Clock Prescaler Select 8 3 read-write 000 Off #000 001 If RTCLKS = x0, it is 1; if RTCLKS = x1, it is 128. #001 010 If RTCLKS = x0, it is 2; if RTCLKS = x1, it is 256. #010 011 If RTCLKS = x0, it is 4; if RTCLKS = x1, it is 512. #011 100 If RTCLKS = x0, it is 8; if RTCLKS = x1, it is 1024. #100 101 If RTCLKS = x0, it is 16; if RTCLKS = x1, it is 2048. #101 110 If RTCLKS = x0, it is 32; if RTCLKS = x1, it is 100. #110 111 If RTCLKS = x0, it is 64; if RTCLKS = x1, it is 1000. #111 RTCLKS Real-Time Clock Source Select 14 2 read-write 00 External clock source. #00 01 Real-time clock source is 1 kHz (LPOCLK). #01 10 Internal reference clock (ICSIRCLK). #10 11 Bus clock. #11 MOD RTC Modulo Register 0x4 32 read-write 0 0xFFFFFFFF MOD RTC Modulo 0 16 read-write CNT RTC Counter Register 0x8 32 read-only 0 0xFFFFFFFF CNT RTC Count 0 16 read-only SIM System Integration Module SIM_ 0x40048000 0 0x20 registers SRSID System Reset Status and ID Register 0 32 read-only 0x4000002 0xFFFFFFFF LVD Low Voltage Detect 1 1 read-only 0 Reset is not caused by LVD trip or POR. #0 1 Reset is caused by LVD trip or POR. #1 LOC Internal Clock Source Module Reset 2 1 read-only 0 Reset is not caused by the ICS module. #0 1 Reset is caused by the ICS module. #1 WDOG Watchdog (WDOG) 5 1 read-only 0 Reset is not caused by WDOG timeout. #0 1 Reset is caused by WDOG timeout. #1 PIN External Reset Pin 6 1 read-only 0 Reset is not caused by external reset pin. #0 1 Reset came from external reset pin. #1 POR Power-On Reset 7 1 read-only 0 Reset not caused by POR. #0 1 POR caused reset. #1 LOCKUP Core Lockup 9 1 read-only 0 Reset is not caused by core LOCKUP event. #0 1 Reset is caused by core LOCKUP event. #1 SW Software 10 1 read-only 0 Reset is not caused by software setting of SYSRESETREQ bit. #0 1 Reset caused by software setting of SYSRESETREQ bit #1 MDMAP MDM-AP System Reset Request 11 1 read-only 0 Reset is not caused by host debugger system setting of the System Reset Request bit. #0 1 Reset is caused by host debugger system setting of the System Reset Request bit. #1 SACKERR Stop Mode Acknowledge Error Reset 13 1 read-only 0 Reset is not caused by peripheral failure to acknowledge attempt to enter Stop mode. #0 1 Reset is caused by peripheral failure to acknowledge attempt to enter Stop mode. #1 PINID Device Pin ID 16 4 read-only 0000 8-pin #0000 0001 16-pin #0001 0010 20-pin #0010 0011 24-pin #0011 0100 32-pin #0100 0101 44-pin #0101 0110 48-pin #0110 0111 64-pin #0111 1000 80-pin #1000 1010 100-pin #1010 RevID Device Revision Number 20 4 read-only SUBFAMID Kinetis sub-family ID 24 4 read-only 0100 KEx4 sub-family #0100 FAMID Kinetis family ID 28 4 read-only 0000 KE0x family. #0000 SOPT System Options Register 0x4 32 read-write 0xE 0xFFFFFFFF NMIE NMI Pin Enable 1 1 read-write 0 PTB4/KBI1_P6/FTM2_CH4/SPI0_MISO/ACMP1_IN2/NMI pin functions as PTB4, KBI1_P6, FTM2_CH4, SPI0_MISO or ACMP1_IN2. #0 1 PTB4/KBI1_P6/FTM2_CH4/SPI0_MISO/ACMP1_IN2/NMI pin functions as NMI. #1 RSTPE RESET Pin Enable 2 1 read-write 0 PTA5/IRQ/TCLK1/RESET pin functions as PTA5, IRQ, or TCLK1. #0 1 PTA5/IRQ/TCLK1/RESET pin functions as RESET. #1 SWDE Single Wire Debug Port Pin Enable 3 1 read-write 0 PTA4/ACMP0_OUT/SWD_DIO as PTA4 or ACMP0_OUT function, PTA0/KBI0_P0/FTM0_CH0/RTCO/ACMP0_IN2/ADC0_SE0/SWD_CLK as PTA0, KBI0_P0, FTM0_CH0, RTCO, ACMP0_IN2 or ADC0_SE0 function. #0 1 PTA4/ACMP0_OUT/SWD_DIO as SWD_DIO function, PTA0/KBI0_P0/FTM0_CH0/RTCO/ACMP0_IN2/ADC0_SE0/SWD_CLK as SWD_CLK function. #1 ACTRG ACMP Trigger FTM2 selection 5 1 read-write 0 ACMP0 out #0 1 ACMP1 out #1 FTMIC FTM0CH0 Input Capture Source 6 2 read-write 00 FTM0_CH0 pin #00 01 ACMP0 OUT #01 10 ACMP1 OUT #10 11 RTC overflow #11 RXDFE UART0 RxD Filter Select 8 2 read-write 00 RXD0 input signal is connected to UART0 module directly. #00 01 RXD0 input signal is filtered by ACMP0, then injected to UART0. #01 10 RXD0 input signal is filtered by ACMP1, then injected to UART0. #10 RXDCE UART0_RX Capture Select 12 1 read-write 0 UART0_RX input signal is connected to the UART0 module only. #0 1 UART0_RX input signal is connected to the UART0 module and FTM0 channel 1. #1 FTMSYNC FTM2 Synchronization Select 14 1 write-only 0 No synchronization triggered. #0 1 Generates a PWM synchronization trigger to the FTM2 modules. #1 TXDME UART0_TX Modulation Select 15 1 read-write 0 UART0_TX output is connected to pinout directly. #0 1 UART0_TX output is modulated by FTM0 channel 0 before mapped to pinout. #1 BUSREF BUS Clock Output select 16 3 read-write 000 Bus #000 001 Bus divided by 2 #001 010 Bus divided by 4 #010 011 Bus divided by 8 #011 100 Bus divided by 16 #100 101 Bus divided by 32 #101 110 Bus divided by 64 #110 111 Bus divided by 128 #111 CLKOE Bus Clock Output Enable 19 1 read-write 0 Bus clock output is disabled on PTC5. #0 1 Bus clock output is enabled on PTC5. #1 ADHWT ADC Hardware Trigger Source 20 3 read-write 000 RTC overflow as the ADC hardware trigger #000 001 FTM0 init trigger as the ADC hardware trigger #001 010 FTM2 init trigger with 8-bit programmable counter delay #010 011 FTM2 match trigger with 8-bit programmable counter delay #011 100 PIT channel0 overflow as the ADC hardware trigger #100 101 PIT channel1 overflow as the ADC hardware trigger #101 110 ACMP0 out as the ADC hardware trigger. #110 111 ACMP1 out as the ADC hardware trigger #111 DLYACT FTM2 Trigger Delay Active 23 1 read-only 0 The delay is inactive. #0 1 The delay is active. #1 DELAY FTM2 Trigger Delay 24 8 read-write PINSEL Pin Selection Register 0x8 32 read-write 0 0xFFFFFFFF I2C0PS I2C0 Port Pin Select 5 1 read-write 0 I2C0_SCL and I2C0_SDA are mapped on PTA3 and PTA2, respectively. #0 1 I2C0_SCL and I2C0_SDA are mapped on PTB7 and PTB6, respectively. #1 SPI0PS SPI0 Pin Select 6 1 read-write 0 SPI0_SCK, SPI0_MOSI, SPI0_MISO, and SPI0_PCS are mapped on PTB2, PTB3, PTB4, and PTB5. #0 1 SPI0_SCK, SPI0_MOSI, SPI0_MISO, and SPI0_PCS are mapped on PTA6, PTA7, PTB1, and PTB0. #1 UART0PS UART0 Pin Select 7 1 read-write 0 UART0_RX and UART0_TX are mapped on PTB0 and PTB1. #0 1 UART0_RX and UART0_TX are mapped on PTA2 and PTA3. #1 FTM0PS0 FTM0_CH0 Port Pin Select 8 1 read-write 0 FTM0_CH0 channels are mapped on PTA0. #0 1 FTM0_CH0 channels are mapped on PTB2. #1 FTM0PS1 FTM0_CH1 Port Pin Select 9 1 read-write 0 FTM0_CH1 channels are mapped on PTA1. #0 1 FTM0_CH1 channels are mapped on PTB3. #1 FTM2PS2 FTM2_CH2 Port Pin Select 14 1 read-write 0 FTM2_CH2 channels are mapped on PTC2. #0 1 FTM2_CH2 channels are mapped on PTC4. #1 FTM2PS3 FTM2_CH3 Port Pin Select 15 1 read-write 0 FTM2_CH3 channels are mapped on PTC3. #0 1 FTM2_CH3 channels are mapped on PTC5. #1 FTM0CLKPS FTM0 TCLK Pin Select 28 1 read-write 0 Selects TCLK1 for FTM0 module. #0 1 Selects TCLK2 for FTM0 module. #1 FTM2CLKPS FTM2 TCLK Pin Select 30 1 read-write 0 Selects TCLK1 for FTM2 module. #0 1 Selects TCLK2 for FTM2 module. #1 PWTCLKPS PWT TCLK Pin Select 31 1 read-write 0 Selects TCLK1 for PWT module. #0 1 Selects TCLK2 for PWT module. #1 SCGC System Clock Gating Control Register 0xC 32 read-write 0x3000 0xFFFFFFFF RTC RTC Clock Gate Control 0 1 read-write 0 Bus clock to the RTC module is disabled. #0 1 Bus clock to the RTC module is enabled. #1 PIT PIT Clock Gate Control 1 1 read-write 0 Bus clock to the PIT module is disabled. #0 1 Bus clock to the PIT module is enabled. #1 PWT PWT Clock Gate Control 4 1 read-write 0 Timer clock to the PWT module is disabled. #0 1 Timer clock to the PWT module is enabled. #1 FTM0 FTM0 Clock Gate Control 5 1 read-write 0 Bus clock to the FTM0 module is disabled. #0 1 Bus clock to the FTM0 module is enabled. #1 FTM2 FTM2 Clock Gate Control 7 1 read-write 0 Bus clock to the FTM2 module is disabled. #0 1 Bus clock to the FTM2 module is enabled. #1 CRC CRC Clock Gate Control 10 1 read-write 0 Bus clock to the CRC module is disabled. #0 1 Bus clock to the CRC module is enabled. #1 FLASH Flash Clock Gate Control 12 1 read-write 0 Bus clock to the flash module is disabled. #0 1 Bus clock to the flash module is enabled. #1 SWD SWD (single wire debugger) Clock Gate Control 13 1 read-write 0 Bus clock to the SWD module is disabled. #0 1 Bus clock to the SWD module is enabled. #1 I2C I2C Clock Gate Control 17 1 read-write 0 Bus clock to the IIC module is disabled. #0 1 Bus clock to the IIC module is enabled. #1 SPI0 SPI0 Clock Gate Control 18 1 read-write 0 Bus clock to the SPI0 module is disabled. #0 1 Bus clock to the SPI0 module is enabled. #1 UART0 UART0 Clock Gate Control 20 1 read-write 0 Bus clock to the UART0 module is disabled. #0 1 Bus clock to the UART0 module is enabled. #1 KBI0 KBI0 Clock Gate Control 24 1 read-write 0 Bus clock to the KBI0 module is disabled. #0 1 Bus clock to the KBI0 module is enabled. #1 KBI1 KBI1 Clock Gate Control 25 1 read-write 0 Bus clock to the KBI1 module is disabled. #0 1 Bus clock to the KBI1 module is enabled. #1 IRQ IRQ Clock Gate Control 27 1 read-write 0 Bus clock to the IRQ module is disabled. #0 1 Bus clock to the IRQ module is enabled. #1 ADC ADC Clock Gate Control 29 1 read-write 0 Bus clock to the ADC module is disabled. #0 1 Bus clock to the ADC module is enabled. #1 ACMP0 ACMP0 Clock Gate Control 30 1 read-write 0 Bus clock to the ACMP0 module is disabled. #0 1 Bus clock to the ACMP0 module is enabled. #1 ACMP1 ACMP1 Clock Gate Control 31 1 read-write 0 Bus clock to the ACMP1 module is disabled. #0 1 Bus clock to the ACMP1 module is enabled. #1 UUIDL Universally Unique Identifier Low Register 0x10 32 read-only 0 0 ID Universally Unique Identifier 0 32 read-only UUIDML Universally Unique Identifier Middle Low Register 0x14 32 read-only 0 0 ID Universally Unique Identifier 0 32 read-only UUIDMH Universally Unique Identifier Middle High Register 0x18 32 read-only 0 0 ID Universally Unique Identifier 0 16 read-only CLKDIV Clock Divider Register 0x1C 32 read-write 0 0xFFFFFFFF OUTDIV3 Clock 3 output divider value 20 1 read-write 0 Same as ICSOUTCLK. #0 1 ICSOUTCLK divides by 2. #1 OUTDIV2 Clock 2 output divider value 24 1 read-write 0 Not divided from divider1. #0 1 Divide by 2 from divider1. #1 OUTDIV1 Clock 1 output divider value 28 2 read-write 00 Same as ICSOUTCLK. #00 01 ICSOUTCLK divides by 2. #01 10 ICSOUTCLK divides by 3. #10 11 ICSOUTCLK divides by 4. #11 PORT Port control and interrupts PORT_ 0x40049000 0 0x10 registers IOFLT Port Filter Register 0 32 read-write 0xC00000 0xFFFFFFFF FLTA Filter Selection for Input from PTA 0 2 read-write 00 BUSCLK #00 01 FLTDIV1 #01 10 FLTDIV2 #10 11 FLTDIV3 #11 FLTB Filter Selection for Input from PTB 2 2 read-write 00 BUSCLK #00 01 FLTDIV1 #01 10 FLTDIV2 #10 11 FLTDIV3 #11 FLTC Filter Selection for Input from PTC 4 2 read-write 00 BUSCLK #00 01 FLTDIV1 #01 10 FLTDIV2 #10 11 FLTDIV3 #11 FLTIIC Filter Selection For Input from SCL/SDA 10 2 read-write 00 No filter #00 01 Select FLTDIV1 #01 10 Select FLTDIV2 #10 11 Select BUSCLK #11 FLTFTM0 Filter Selection For Input from FTM0CH0/FTM0CH1 12 2 read-write 00 No filter #00 01 Select FLTDIV1 #01 10 Select FLTDIV2 #10 11 Select FLTDIV3 #11 FLTPWT Filter Selection For Input from PWT_IN1/PWT_IN0 14 2 read-write 00 No filter #00 01 Select FLTDIV1 #01 10 Select FLTDIV2 #10 11 Select FLTDIV3 #11 FLTRST Filter Selection for Input from RESET/IRQ 16 2 read-write 00 No filter. #00 01 Selects FLTDIV1, and will switch to FLTDIV3 in Stop mode automatically. #01 10 Selects FLTDIV2, and will switch to FLTDIV3 in Stop mode automatically. #10 11 FLTDIV3 #11 FLTKBI0 Filter selection for Input from KBI0 18 2 read-write 00 No filter. #00 01 Selects FLTDIV1, and will switch to FLTDIV3 in Stop mode automatically. #01 10 Selects FLTDIV2, and will switch to FLTDIV3 in Stop mode automatically. #10 11 FLTDIV3 #11 FLTKBI1 Filter Selection for Input from KBI1 20 2 read-write 00 No filter #00 01 Selects FLTDIV1, and will switch to FLTDIV3 in Stop mode automatically. #01 10 Selects FLTDIV2, and will switch to FLTDIV3 in Stop mode automatically. #10 11 FLTDIV3 #11 FLTNMI Filter Selection for Input from NMI 22 2 read-write 00 No filter. #00 01 Selects FLTDIV1, and will switch to FLTDIV3 in Stop mode automatically. #01 10 Selects FLTDIV2, and will switch to FLTDIV3 in Stop mode automatically. #10 11 FLTDIV3 #11 FLTDIV1 Filter Division Set 1 24 2 read-write 00 BUSCLK/2 #00 01 BUSCLK/4 #01 10 BUSCLK/8 #10 11 BUSCLK/16 #11 FLTDIV2 Filter Division Set 2 26 3 read-write 000 BUSCLK/32 #000 001 BUSCLK/64 #001 010 BUSCLK/128 #010 011 BUSCLK/256 #011 100 BUSCLK/512 #100 101 BUSCLK/1024 #101 110 BUSCLK/2048 #110 111 BUSCLK/4096 #111 FLTDIV3 Filter Division Set 3 29 3 read-write 000 LPOCLK #000 001 LPOCLK/2 #001 010 LPOCLK/4 #010 011 LPOCLK/8 #011 100 LPOCLK/16 #100 101 LPOCLK/32 #101 110 LPOCLK/64 #110 111 LPOCLK/128 #111 PUEL Port Pullup Enable Low Register 0x4 32 read-write 0x1 0xFFFFFFFF PTAPE0 Pull Enable for Port A Bit 0 0 1 read-write 0 Pullup is disabled for port A bit 0. #0 1 Pullup is enabled for port A bit 0. #1 PTAPE1 Pull Enable for Port A Bit 1 1 1 read-write 0 Pullup is disabled for port A bit 1. #0 1 Pullup is enabled for port A bit 1. #1 PTAPE2 Pull Enable for Port A Bit 2 2 1 read-write 0 Pullup is disabled for port A bit 2. #0 1 Pullup is enabled for port A bit 2. #1 PTAPE3 Pull Enable for Port A Bit 3 3 1 read-write 0 Pullup is disabled for port A bit 3. #0 1 Pullup is enabled for port A bit 3. #1 PTAPE4 Pull Enable for Port A Bit 4 4 1 read-write 0 Pullup is disabled for port A bit 4. #0 1 Pullup is enabled for port A bit 4. #1 PTAPE5 Pull Enable for Port A Bit 5 5 1 read-write 0 Pullup is disabled for port A bit 5. #0 1 Pullup is enabled for port A bit 5. #1 PTAPE6 Pull Enable for Port A Bit 6 6 1 read-write 0 Pullup is disabled for port A bit 6. #0 1 Pullup is enabled for port A bit 6. #1 PTAPE7 Pull Enable for Port A Bit 7 7 1 read-write 0 Pullup is disabled for port A bit 7. #0 1 Pullup is enabled for port A bit 7. #1 PTBPE0 Pull Enable for Port B Bit 0 8 1 read-write 0 Pullup is disabled for port B bit 0. #0 1 Pullup is enabled for port B bit 0. #1 PTBPE1 Pull Enable for Port B Bit 1 9 1 read-write 0 Pullup is disabled for port B bit 1. #0 1 Pullup is enabled for port B bit 1. #1 PTBPE2 Pull Enable for Port B Bit 2 10 1 read-write 0 Pullup is disabled for port B bit 2. #0 1 Pullup is enabled for port B bit 2. #1 PTBPE3 Pull Enable for Port B Bit 3 11 1 read-write 0 Pullup is disabled for port B bit 3. #0 1 Pullup is enabled for port B bit 3. #1 PTBPE4 Pull Enable for Port B Bit 4 12 1 read-write 0 Pullup is disabled for port B bit 4. #0 1 Pullup is enabled for port B bit 4. #1 PTBPE5 Pull Enable for Port B Bit 5 13 1 read-write 0 Pullup is disabled for port B bit 5. #0 1 Pullup is enabled for port B bit 5. #1 PTBPE6 Pull Enable for Port B Bit 6 14 1 read-write 0 Pullup is disabled for port B bit 6. #0 1 Pullup is enabled for port B bit 6. #1 PTBPE7 Pull Enable for Port B Bit 7 15 1 read-write 0 Pullup is disabled for port B bit 7. #0 1 Pullup is enabled for port B bit 7. #1 PTCPE0 Pull Enable for Port C Bit 0 16 1 read-write 0 Pullup is disabled for port C bit 0. #0 1 Pullup is enabled for port C bit 0. #1 PTCPE1 Pull Enable for Port C Bit 1 17 1 read-write 0 Pullup is disabled for port C bit 1. #0 1 Pullup is enabled for port C bit 1. #1 PTCPE2 Pull Enable for Port C Bit 2 18 1 read-write 0 Pullup is disabled for port C bit 2. #0 1 Pullup is enabled for port C bit 2. #1 PTCPE3 Pull Enable for Port C Bit 3 19 1 read-write 0 Pullup is disabled for port C bit 3. #0 1 Pullup is enabled for port C bit 3. #1 PTCPE4 Pull Enable for Port C Bit 4 20 1 read-write 0 Pullup is disabled for port C bit 4. #0 1 Pullup is enabled for port C bit 4. #1 PTCPE5 Pull Enable for Port C Bit 5 21 1 read-write 0 Pullup is disabled for port C bit 5. #0 1 Pullup is enabled for port C bit 5. #1 HDRVE Port High Drive Enable Register 0xC 32 read-write 0 0xFFFFFFFF PTB5 High Current Drive Capability of PTB5 1 1 read-write 0 PTB5 is disabled to offer high current drive capability. #0 1 PTB5 is enabled to offer high current drive capability. #1 PTC1 High Current Drive Capability of PTC1 2 1 read-write 0 PTC1 is disabled to offer high current drive capability. #0 1 PTC1 is enabled to offer high current drive capability. #1 PTC5 High Current Drive Capability of PTC5 3 1 read-write 0 PTC5 is disabled to offer high current drive capability. #0 1 PTC5 is enabled to offer high current drive capability. #1 WDOG Watchdog timer WDOG_ 0x40052000 0 0x8 registers WDOG 28 CS1 Watchdog Control and Status Register 1 0 8 read-write 0x80 0xFF STOP Stop Enable 0 1 read-write 0 Watchdog disabled in chip stop mode. #0 1 Watchdog enabled in chip stop mode. #1 WAIT Wait Enable 1 1 read-write 0 Watchdog disabled in chip wait mode. #0 1 Watchdog enabled in chip wait mode. #1 DBG Debug Enable 2 1 read-write 0 Watchdog disabled in chip debug mode. #0 1 Watchdog enabled in chip debug mode. #1 TST Watchdog Test 3 2 read-write 00 Watchdog test mode disabled. #00 01 Watchdog user mode enabled. (Watchdog test mode disabled.) After testing the watchdog, software should use this setting to indicate that the watchdog is functioning normally in user mode. #01 10 Watchdog test mode enabled, only the low byte is used. WDOG_CNTL is compared with WDOG_TOVALL. #10 11 Watchdog test mode enabled, only the high byte is used. WDOG_CNTH is compared with WDOG_TOVALH. #11 UPDATE Allow updates 5 1 read-write 0 Updates not allowed. After the initial configuration, the watchdog cannot be later modified without forcing a reset. #0 1 Updates allowed. Software can modify the watchdog configuration registers within 128 bus clocks after performing the unlock write sequence. #1 INT Watchdog Interrupt 6 1 read-write 0 Watchdog interrupts are disabled. Watchdog resets are not delayed. #0 1 Watchdog interrupts are enabled. Watchdog resets are delayed by 128 bus clocks. #1 EN Watchdog Enable 7 1 read-write 0 Watchdog disabled. #0 1 Watchdog enabled. #1 CS2 Watchdog Control and Status Register 2 0x1 8 read-write 0x1 0xFF CLK Watchdog Clock 0 2 read-write 00 Bus clock. #00 01 1 kHz internal low-power oscillator (LPOCLK). #01 10 32 kHz internal oscillator (ICSIRCLK). #10 11 External clock source. #11 PRES Watchdog Prescalar 4 1 read-write 0 256 prescalar disabled. #0 1 256 prescalar enabled. #1 FLG Watchdog Interrupt Flag 6 1 read-write 0 No interrupt occurred. #0 1 An interrupt occurred. #1 WIN Watchdog Window 7 1 read-write 0 Window mode disabled. #0 1 Window mode enabled. #1 CNTH Watchdog Counter Register: High 0x2 8 read-write 0 0xFF CNTHIGH High byte of the Watchdog Counter 0 8 read-write CNTL Watchdog Counter Register: Low 0x3 8 read-write 0 0xFF CNTLOW Low byte of the Watchdog Counter 0 8 read-write TOVALH Watchdog Timeout Value Register: High 0x4 8 read-write 0 0xFF TOVALHIGH High byte of the timeout value 0 8 read-write TOVALL Watchdog Timeout Value Register: Low 0x5 8 read-write 0x4 0xFF TOVALLOW Low byte of the timeout value 0 8 read-write WINH Watchdog Window Register: High 0x6 8 read-write 0 0xFF WINHIGH High byte of Watchdog Window 0 8 read-write WINL Watchdog Window Register: Low 0x7 8 read-write 0 0xFF WINLOW Low byte of Watchdog Window 0 8 read-write ICS Clock management ICS_ 0x40064000 0 0x5 registers ICS 27 C1 ICS Control Register 1 0 8 read-write 0x4 0xFF IREFSTEN Internal Reference Stop Enable 0 1 read-write 0 Internal reference clock is disabled in Stop mode. #0 1 Internal reference clock stays enabled in Stop mode if IRCLKEN is set, or if ICS is in FEI, FBI, or FBILP mode before entering Stop. #1 IRCLKEN Internal Reference Clock Enable 1 1 read-write 0 ICSIRCLK is inactive. #0 1 ICSIRCLK is active. #1 IREFS Internal Reference Select 2 1 read-write 0 External reference clock is selected. #0 1 Internal reference clock is selected. #1 RDIV Reference Divider 3 3 read-write CLKS Clock Source Select 6 2 read-write 00 Output of FLL is selected. #00 01 Internal reference clock is selected. #01 10 External reference clock is selected. #10 11 Reserved, defaults to 00. #11 C2 ICS Control Register 2 0x1 8 read-write 0x20 0xFF LP Low Power Select 4 1 read-write 0 FLL is not disabled in bypass mode. #0 1 FLL is disabled in bypass modes unless debug is active. #1 BDIV Bus Frequency Divider 5 3 read-write 000 Encoding 0-Divides the selected clock by 1. #000 001 Encoding 1-Divides the selected clock by 2 (reset default). #001 010 Encoding 2-Divides the selected clock by 4. #010 011 Encoding 3-Divides the selected clock by 8. #011 100 Encoding 4-Divides the selected clock by 16. #100 101 Encoding 5-Divides the selected clock by 32. #101 110 Encoding 6-Divides the selected clock by 64. #110 111 Encoding 7-Divides the selected clock by 128. #111 C3 ICS Control Register 3 0x2 8 read-write 0 0 SCTRIM Slow Internal Reference Clock Trim Setting 0 8 read-write C4 ICS Control Register 4 0x3 8 read-write 0 0xFE SCFTRIM Slow Internal Reference Clock Fine Trim 0 1 read-write CME Clock Monitor Enable 5 1 read-write 0 Clock monitor is disabled. #0 1 Generates a reset request on loss of external clock. #1 LOLIE Loss of Lock Interrupt 7 1 read-write 0 No request on loss of lock. #0 1 Generates an interrupt request on loss of lock. #1 S ICS Status Register 0x4 8 read-write 0x10 0xFF CLKST Clock Mode Status 2 2 read-only 00 Output of FLL is selected. #00 01 FLL Bypassed, internal reference clock is selected. #01 10 FLL Bypassed, external reference clock is selected. #10 IREFST Internal Reference Status 4 1 read-only 0 Source of reference clock is external clock. #0 1 Source of reference clock is internal clock. #1 LOCK Lock Status 6 1 read-only 0 FLL is currently unlocked. #0 1 FLL is currently locked. #1 LOLS Loss of Lock Status 7 1 read-write 0 FLL has not lost lock since LOLS was last cleared. #0 1 FLL has lost lock since LOLS was last cleared. #1 OSC Oscillator OSC_ 0x40065000 0 0x1 registers CR OSC Control Register 0 8 read-write 0 0xFF OSCINIT OSC Initialization 0 1 read-only 0 Oscillator initialization is not complete. #0 1 Oscillator initialization is completed. #1 HGO High Gain Oscillator Select 1 1 read-write 0 Low-power mode #0 1 High-gain mode #1 RANGE Frequency Range Select 2 1 read-write 0 Low frequency range of 32 kHz. #0 1 High frequency range of 4-24 MHz. #1 OSCOS OSC Output Select 4 1 read-write 0 External clock source from EXTAL pin is selected. #0 1 Oscillator clock source is selected. #1 OSCSTEN OSC Enable in Stop mode 5 1 read-write 0 OSC clock is disabled in Stop mode. #0 1 OSC clock stays enabled in Stop mode. #1 OSCEN OSC Enable 7 1 read-write 0 OSC module is disabled. #0 1 OSC module is enabled. #1 I2C0 Inter-Integrated Circuit I2C0_ 0x40066000 0 0xC registers I2C0 8 A1 I2C Address Register 1 0 8 read-write 0 0xFF AD Address 1 7 read-write F I2C Frequency Divider register 0x1 8 read-write 0 0xFF ICR ClockRate 0 6 read-write MULT Multiplier Factor 6 2 read-write 00 mul = 1 #00 01 mul = 2 #01 10 mul = 4 #10 C1 I2C Control Register 1 0x2 8 read-write 0 0xFF WUEN Wakeup Enable 1 1 read-write 0 Normal operation. No interrupt generated when address matching in low power mode. #0 1 Enables the wakeup function in low power mode. #1 RSTA Repeat START 2 1 write-only TXAK Transmit Acknowledge Enable 3 1 read-write 0 An acknowledge signal is sent to the bus on the following receiving byte (if FACK is cleared) or the current receiving byte (if FACK is set). #0 1 No acknowledge signal is sent to the bus on the following receiving data byte (if FACK is cleared) or the current receiving data byte (if FACK is set). #1 TX Transmit Mode Select 4 1 read-write 0 Receive #0 1 Transmit #1 MST Master Mode Select 5 1 read-write 0 Slave mode #0 1 Master mode #1 IICIE I2C Interrupt Enable 6 1 read-write 0 Disabled #0 1 Enabled #1 IICEN I2C Enable 7 1 read-write 0 Disabled #0 1 Enabled #1 S I2C Status register 0x3 8 read-write 0x80 0xFF RXAK Receive Acknowledge 0 1 read-only 0 Acknowledge signal was received after the completion of one byte of data transmission on the bus #0 1 No acknowledge signal detected #1 IICIF Interrupt Flag 1 1 read-write 0 No interrupt pending #0 1 Interrupt pending #1 SRW Slave Read/Write 2 1 read-only 0 Slave receive, master writing to slave #0 1 Slave transmit, master reading from slave #1 RAM Range Address Match 3 1 read-write 0 Not addressed #0 1 Addressed as a slave #1 ARBL Arbitration Lost 4 1 read-write 0 Standard bus operation. #0 1 Loss of arbitration. #1 BUSY Bus Busy 5 1 read-only 0 Bus is idle #0 1 Bus is busy #1 IAAS Addressed As A Slave 6 1 read-write 0 Not addressed #0 1 Addressed as a slave #1 TCF Transfer Complete Flag 7 1 read-only 0 Transfer in progress #0 1 Transfer complete #1 D I2C Data I/O register 0x4 8 read-write 0 0xFF DATA Data 0 8 read-write C2 I2C Control Register 2 0x5 8 read-write 0 0xFF AD Slave Address 0 3 read-write RMEN Range Address Matching Enable 3 1 read-write 0 Range mode disabled. No address matching occurs for an address within the range of values of the A1 and RA registers. #0 1 Range mode enabled. Address matching occurs when a slave receives an address within the range of values of the A1 and RA registers. #1 SBRC Slave Baud Rate Control 4 1 read-write 0 The slave baud rate follows the master baud rate and clock stretching may occur #0 1 Slave baud rate is independent of the master baud rate #1 ADEXT Address Extension 6 1 read-write 0 7-bit address scheme #0 1 10-bit address scheme #1 GCAEN General Call Address Enable 7 1 read-write 0 Disabled #0 1 Enabled #1 FLT I2C Programmable Input Glitch Filter register 0x6 8 read-write 0 0xFF FLT I2C Programmable Filter Factor 0 4 read-write 0 No filter/bypass #0000 STARTF I2C Bus Start Detect Flag 4 1 read-write 0 No start happens on I2C bus #0 1 Start detected on I2C bus #1 SSIE I2C Bus Stop or Start Interrupt Enable 5 1 read-write 0 Stop or start detection interrupt is disabled #0 1 Stop or start detection interrupt is enabled #1 STOPF I2C Bus Stop Detect Flag 6 1 read-write 0 No stop happens on I2C bus #0 1 Stop detected on I2C bus #1 SHEN Stop Hold Enable 7 1 read-write 0 Stop holdoff is disabled. The MCU's entry to stop mode is not gated. #0 1 Stop holdoff is enabled. #1 RA I2C Range Address register 0x7 8 read-write 0 0xFF RAD Range Slave Address 1 7 read-write SMB I2C SMBus Control and Status register 0x8 8 read-write 0 0xFF SHTF2IE SHTF2 Interrupt Enable 0 1 read-write 0 SHTF2 interrupt is disabled #0 1 SHTF2 interrupt is enabled #1 SHTF2 SCL High Timeout Flag 2 1 1 read-write 0 No SCL high and SDA low timeout occurs #0 1 SCL high and SDA low timeout occurs #1 SHTF1 SCL High Timeout Flag 1 2 1 read-only 0 No SCL high and SDA high timeout occurs #0 1 SCL high and SDA high timeout occurs #1 SLTF SCL Low Timeout Flag 3 1 read-write 0 No low timeout occurs #0 1 Low timeout occurs #1 TCKSEL Timeout Counter Clock Select 4 1 read-write 0 Timeout counter counts at the frequency of the I2C module clock / 64 #0 1 Timeout counter counts at the frequency of the I2C module clock #1 SIICAEN Second I2C Address Enable 5 1 read-write 0 I2C address register 2 matching is disabled #0 1 I2C address register 2 matching is enabled #1 ALERTEN SMBus Alert Response Address Enable 6 1 read-write 0 SMBus alert response address matching is disabled #0 1 SMBus alert response address matching is enabled #1 FACK Fast NACK/ACK Enable 7 1 read-write 0 An ACK or NACK is sent on the following receiving data byte #0 1 Writing 0 to TXAK after receiving a data byte generates an ACK. Writing 1 to TXAK after receiving a data byte generates a NACK. #1 A2 I2C Address Register 2 0x9 8 read-write 0xC2 0xFF SAD SMBus Address 1 7 read-write SLTH I2C SCL Low Timeout Register High 0xA 8 read-write 0 0xFF SSLT Most significant byte of SCL low timeout value that determines the timeout period of SCL low. 0 8 read-write SLTL I2C SCL Low Timeout Register Low 0xB 8 read-write 0 0xFF SSLT Least significant byte of SCL low timeout value that determines the timeout period of SCL low. 0 8 read-write UART0 Universal Asynchronous Receiver/Transmitter (UART) UART0_ 0x4006A000 0 0x8 registers UART0 12 BDH UART Baud Rate Register: High 0 8 read-write 0 0xFF SBR Baud Rate Modulo Divisor. 0 5 read-write SBNS Stop Bit Number Select 5 1 read-write 0 One stop bit. #0 1 Two stop bit. #1 RXEDGIE RxD Input Active Edge Interrupt Enable (for RXEDGIF) 6 1 read-write 0 Hardware interrupts from UART_S2[RXEDGIF] disabled (use polling). #0 1 Hardware interrupt requested when UART_S2[RXEDGIF] flag is 1. #1 LBKDIE LIN Break Detect Interrupt Enable (for LBKDIF) 7 1 read-write 0 Hardware interrupts from UART_S2[LBKDIF] disabled (use polling). #0 1 Hardware interrupt requested when UART_S2[LBKDIF] flag is 1. #1 BDL UART Baud Rate Register: Low 0x1 8 read-write 0x4 0xFF SBR Baud Rate Modulo Divisor 0 8 read-write C1 UART Control Register 1 0x2 8 read-write 0 0xFF PT Parity Type 0 1 read-write 0 Even parity. #0 1 Odd parity. #1 PE Parity Enable 1 1 read-write 0 No hardware parity generation or checking. #0 1 Parity enabled. #1 ILT Idle Line Type Select 2 1 read-write 0 Idle character bit count starts after start bit. #0 1 Idle character bit count starts after stop bit. #1 WAKE Receiver Wakeup Method Select 3 1 read-write 0 Idle-line wake-up. #0 1 Address-mark wake-up. #1 M 9-Bit or 8-Bit Mode Select 4 1 read-write 0 Normal - start + 8 data bits (lsb first) + stop. #0 1 Receiver and transmitter use 9-bit data characters start + 8 data bits (lsb first) + 9th data bit + stop. #1 RSRC Receiver Source Select 5 1 read-write 0 Provided LOOPS is set, RSRC is cleared, selects internal loop back mode and the UART does not use the RxD pins. #0 1 Single-wire UART mode where the TxD pin is connected to the transmitter output and receiver input. #1 UARTSWAI UART Stops in Wait Mode 6 1 read-write 0 UART clocks continue to run in Wait mode so the UART can be the source of an interrupt that wakes up the CPU. #0 1 UART clocks freeze while CPU is in Wait mode. #1 LOOPS Loop Mode Select 7 1 read-write 0 Normal operation - RxD and TxD use separate pins. #0 1 Loop mode or single-wire mode where transmitter outputs are internally connected to receiver input. (See RSRC bit.) RxD pin is not used by UART. #1 C2 UART Control Register 2 0x3 8 read-write 0 0xFF SBK Send Break 0 1 read-write 0 Normal transmitter operation. #0 1 Queue break character(s) to be sent. #1 RWU Receiver Wakeup Control 1 1 read-write 0 Normal UART receiver operation. #0 1 UART receiver in standby waiting for wake-up condition. #1 RE Receiver Enable 2 1 read-write 0 Receiver off. #0 1 Receiver on. #1 TE Transmitter Enable 3 1 read-write 0 Transmitter off. #0 1 Transmitter on. #1 ILIE Idle Line Interrupt Enable for IDLE 4 1 read-write 0 Hardware interrupts from S1[IDLE] disabled; use polling. #0 1 Hardware interrupt requested when S1[IDLE] flag is 1. #1 RIE Receiver Interrupt Enable for RDRF 5 1 read-write 0 Hardware interrupts from S1[RDRF] disabled; use polling. #0 1 Hardware interrupt requested when S1[RDRF] flag is 1. #1 TCIE Transmission Complete Interrupt Enable for TC 6 1 read-write 0 Hardware interrupts from TC disabled; use polling. #0 1 Hardware interrupt requested when TC flag is 1. #1 TIE Transmit Interrupt Enable for TDRE 7 1 read-write 0 Hardware interrupts from TDRE disabled; use polling. #0 1 Hardware interrupt requested when TDRE flag is 1. #1 S1 UART Status Register 1 0x4 8 read-only 0xC0 0xFF PF Parity Error Flag 0 1 read-only 0 No parity error. #0 1 Parity error. #1 FE Framing Error Flag 1 1 read-only 0 No framing error detected. This does not guarantee the framing is correct. #0 1 Framing error. #1 NF Noise Flag 2 1 read-only 0 No noise detected. #0 1 Noise detected in the received character in UART_D. #1 OR Receiver Overrun Flag 3 1 read-only 0 No overrun. #0 1 Receive overrun (new UART data lost). #1 IDLE Idle Line Flag 4 1 read-only 0 No idle line detected. #0 1 Idle line was detected. #1 RDRF Receive Data Register Full Flag 5 1 read-only 0 Receive data register empty. #0 1 Receive data register full. #1 TC Transmission Complete Flag 6 1 read-only 0 Transmitter active (sending data, a preamble, or a break). #0 1 Transmitter idle (transmission activity complete). #1 TDRE Transmit Data Register Empty Flag 7 1 read-only 0 Transmit data register (buffer) full. #0 1 Transmit data register (buffer) empty. #1 S2 UART Status Register 2 0x5 8 read-write 0 0xFF RAF Receiver Active Flag 0 1 read-only 0 UART receiver idle waiting for a start bit. #0 1 UART receiver active (RxD input not idle). #1 LBKDE LIN Break Detection Enable 1 1 read-write 0 Break detection is disabled. #0 1 Break detection is enabled (Break character is detected at length 11 bit times (if C1[M] = 0, BDH[SBNS] = 0) or 12 (if C1[M] = 1, BDH[SBNS] = 0 or C1[M] = 0, BDH[SBNS] = 1) or 13 (if C1[M] = 1, BDH[SBNS] = 1)). #1 BRK13 Break Character Generation Length 2 1 read-write 0 Break character is transmitted with length of 10 bit times (if M = 0, SBNS = 0) or 11 (if M = 1, SBNS = 0 or M = 0, SBNS = 1) or 12 (if M = 1, SBNS = 1). #0 1 Break character is transmitted with length of 13 bit times (if M = 0, SBNS = 0) or 14 (if M = 1, SBNS = 0 or M = 0, SBNS = 1) or 15 (if M = 1, SBNS = 1). #1 RWUID Receive Wake Up Idle Detect 3 1 read-write 0 During receive standby state (RWU = 1), S1[IDLE] does not get set upon detection of an idle character. #0 1 During receive standby state (RWU = 1), S1[IDLE] gets set upon detection of an idle character. #1 RXINV Receive Data Inversion 4 1 read-write 0 Receive data not inverted. #0 1 Receive data inverted. #1 RXEDGIF RxD Pin Active Edge Interrupt Flag 6 1 read-write 0 No active edge on the receive pin has occurred. #0 1 An active edge on the receive pin has occurred. #1 LBKDIF LIN Break Detect Interrupt Flag 7 1 read-write 0 No LIN break character has been detected. #0 1 LIN break character has been detected. #1 C3 UART Control Register 3 0x6 8 read-write 0 0xFF PEIE Parity Error Interrupt Enable 0 1 read-write 0 PF interrupts disabled; use polling). #0 1 Hardware interrupt requested when PF is set. #1 FEIE Framing Error Interrupt Enable 1 1 read-write 0 FE interrupts disabled; use polling). #0 1 Hardware interrupt requested when FE is set. #1 NEIE Noise Error Interrupt Enable 2 1 read-write 0 NF interrupts disabled; use polling). #0 1 Hardware interrupt requested when NF is set. #1 ORIE Overrun Interrupt Enable 3 1 read-write 0 OR interrupts disabled; use polling. #0 1 Hardware interrupt requested when OR is set. #1 TXINV Transmit Data Inversion 4 1 read-write 0 Transmit data not inverted. #0 1 Transmit data inverted. #1 TXDIR TxD Pin Direction in Single-Wire Mode 5 1 read-write 0 TxD pin is an input in single-wire mode. #0 1 TxD pin is an output in single-wire mode. #1 T8 Ninth Data Bit for Transmitter 6 1 read-write R8 Ninth Data Bit for Receiver 7 1 read-only D UART Data Register 0x7 8 read-write 0 0xFF R0T0 Read receive data buffer 0 or write transmit data buffer 0. 0 1 read-write R1T1 Read receive data buffer 1 or write transmit data buffer 1. 1 1 read-write R2T2 Read receive data buffer 2 or write transmit data buffer 2. 2 1 read-write R3T3 Read receive data buffer 3 or write transmit data buffer 3. 3 1 read-write R4T4 Read receive data buffer 4 or write transmit data buffer 4. 4 1 read-write R5T5 Read receive data buffer 5 or write transmit data buffer 5. 5 1 read-write R6T6 Read receive data buffer 6 or write transmit data buffer 6. 6 1 read-write R7T7 Read receive data buffer 7 or write transmit data buffer 7. 7 1 read-write ACMP0 Analog comparator ACMP ACMP0_ 0x40073000 0 0x4 registers ACMP0 16 CS ACMP Control and Status Register 0 8 read-write 0 0xFF ACMOD ACMP MOD 0 2 read-write 00 ACMP interrupt on output falling edge. #00 01 ACMP interrupt on output rising edge. #01 10 ACMP interrupt on output falling edge. #10 11 ACMP interrupt on output falling or rising edge. #11 ACOPE ACMP Output Pin Enable 2 1 read-write 0 ACMP output cannot be placed onto external pin. #0 1 ACMP output can be placed onto external pin. #1 ACO ACMP Output 3 1 read-only ACIE ACMP Interrupt Enable 4 1 read-write 0 Disable the ACMP Interrupt. #0 1 Enable the ACMP Interrupt. #1 ACF ACMP Interrupt Flag Bit 5 1 read-write HYST Analog Comparator Hysterisis Selection 6 1 read-write 0 20 mV. #0 1 30 mV. #1 ACE Analog Comparator Enable 7 1 read-write 0 The ACMP is disabled. #0 1 The ACMP is enabled. #1 C0 ACMP Control Register 0 0x1 8 read-write 0 0xFF ACNSEL ACMP Negative Input Select 0 2 read-write 00 External reference 0 #00 01 External reference 1 #01 10 External reference 2 #10 11 DAC output #11 ACPSEL ACMP Positive Input Select 4 2 read-write 00 External reference 0 #00 01 External reference 1 #01 10 External reference 2 #10 11 DAC output #11 C1 ACMP Control Register 1 0x2 8 read-write 0 0xFF DACVAL DAC Output Level Selection 0 6 read-write DACREF DAC Reference Select 6 1 read-write 0 The DAC selects Bandgap as the reference. #0 1 The DAC selects VDDA as the reference. #1 DACEN DAC Enable 7 1 read-write 0 The DAC is disabled. #0 1 The DAC is enabled. #1 C2 ACMP Control Register 2 0x3 8 read-write 0 0xFF ACIPE ACMP Input Pin Enable 0 3 read-write 0 The corresponding external analog input is not allowed. #000 1 The corresponding external analog input is allowed. #001 ACMP1 Analog comparator ACMP ACMP1_ 0x40074000 0 0x4 registers ACMP1 21 CS ACMP Control and Status Register 0 8 read-write 0 0xFF ACMOD ACMP MOD 0 2 read-write 00 ACMP interrupt on output falling edge. #00 01 ACMP interrupt on output rising edge. #01 10 ACMP interrupt on output falling edge. #10 11 ACMP interrupt on output falling or rising edge. #11 ACOPE ACMP Output Pin Enable 2 1 read-write 0 ACMP output cannot be placed onto external pin. #0 1 ACMP output can be placed onto external pin. #1 ACO ACMP Output 3 1 read-only ACIE ACMP Interrupt Enable 4 1 read-write 0 Disable the ACMP Interrupt. #0 1 Enable the ACMP Interrupt. #1 ACF ACMP Interrupt Flag Bit 5 1 read-write HYST Analog Comparator Hysterisis Selection 6 1 read-write 0 20 mV. #0 1 30 mV. #1 ACE Analog Comparator Enable 7 1 read-write 0 The ACMP is disabled. #0 1 The ACMP is enabled. #1 C0 ACMP Control Register 0 0x1 8 read-write 0 0xFF ACNSEL ACMP Negative Input Select 0 2 read-write 00 External reference 0 #00 01 External reference 1 #01 10 External reference 2 #10 11 DAC output #11 ACPSEL ACMP Positive Input Select 4 2 read-write 00 External reference 0 #00 01 External reference 1 #01 10 External reference 2 #10 11 DAC output #11 C1 ACMP Control Register 1 0x2 8 read-write 0 0xFF DACVAL DAC Output Level Selection 0 6 read-write DACREF DAC Reference Select 6 1 read-write 0 The DAC selects Bandgap as the reference. #0 1 The DAC selects VDDA as the reference. #1 DACEN DAC Enable 7 1 read-write 0 The DAC is disabled. #0 1 The DAC is enabled. #1 C2 ACMP Control Register 2 0x3 8 read-write 0 0xFF ACIPE ACMP Input Pin Enable 0 3 read-write 0 The corresponding external analog input is not allowed. #000 1 The corresponding external analog input is allowed. #001 SPI0 Serial Peripheral Interface SPI0_ 0x40076000 0 0x8 registers SPI0 10 C1 SPI Control Register 1 0 8 read-write 0x4 0xFF LSBFE LSB First (shifter direction) 0 1 read-write 0 SPI serial data transfers start with the most significant bit. #0 1 SPI serial data transfers start with the least significant bit. #1 SSOE Slave Select Output Enable 1 1 read-write 0 When C2[MODFEN] is 0: In master mode, SS pin function is general-purpose I/O (not SPI). In slave mode, SS pin function is slave select input. When C2[MODFEN] is 1: In master mode, SS pin function is SS input for mode fault. In slave mode, SS pin function is slave select input. #0 1 When C2[MODFEN] is 0: In master mode, SS pin function is general-purpose I/O (not SPI). In slave mode, SS pin function is slave select input. When C2[MODFEN] is 1: In master mode, SS pin function is automatic SS output. In slave mode: SS pin function is slave select input. #1 CPHA Clock Phase 2 1 read-write 0 First edge on SPSCK occurs at the middle of the first cycle of a data transfer. #0 1 First edge on SPSCK occurs at the start of the first cycle of a data transfer. #1 CPOL Clock Polarity 3 1 read-write 0 Active-high SPI clock (idles low) #0 1 Active-low SPI clock (idles high) #1 MSTR Master/Slave Mode Select 4 1 read-write 0 SPI module configured as a slave SPI device #0 1 SPI module configured as a master SPI device #1 SPTIE SPI Transmit Interrupt Enable 5 1 read-write 0 Interrupts from SPTEF inhibited (use polling) #0 1 When SPTEF is 1, hardware interrupt requested #1 SPE SPI System Enable 6 1 read-write 0 SPI system inactive #0 1 SPI system enabled #1 SPIE SPI Interrupt Enable: for SPRF and MODF 7 1 read-write 0 Interrupts from SPRF and MODF are inhibited-use polling #0 1 Request a hardware interrupt when SPRF or MODF is 1 #1 C2 SPI Control Register 2 0x1 8 read-write 0 0xFF SPC0 SPI Pin Control 0 0 1 read-write 0 SPI uses separate pins for data input and data output (pin mode is normal). In master mode of operation: MISO is master in and MOSI is master out. In slave mode of operation: MISO is slave out and MOSI is slave in. #0 1 SPI configured for single-wire bidirectional operation (pin mode is bidirectional). In master mode of operation: MISO is not used by SPI; MOSI is master in when BIDIROE is 0 or master I/O when BIDIROE is 1. In slave mode of operation: MISO is slave in when BIDIROE is 0 or slave I/O when BIDIROE is 1; MOSI is not used by SPI. #1 SPISWAI SPI Stop in Wait Mode 1 1 read-write 0 SPI clocks continue to operate in Wait mode. #0 1 SPI clocks stop when the MCU enters Wait mode. #1 BIDIROE Bidirectional Mode Output Enable 3 1 read-write 0 Output driver disabled so SPI data I/O pin acts as an input #0 1 SPI I/O pin enabled as an output #1 MODFEN Master Mode-Fault Function Enable 4 1 read-write 0 Mode fault function disabled, master SS pin reverts to general-purpose I/O not controlled by SPI #0 1 Mode fault function enabled, master SS pin acts as the mode fault input or the slave select output #1 SPMIE SPI Match Interrupt Enable 7 1 read-write 0 Interrupts from SPMF inhibited (use polling) #0 1 When SPMF is 1, requests a hardware interrupt #1 BR SPI Baud Rate Register 0x2 8 read-write 0 0xFF SPR SPI Baud Rate Divisor 0 4 read-write 0000 Baud rate divisor is 2. #0000 0001 Baud rate divisor is 4. #0001 0010 Baud rate divisor is 8. #0010 0011 Baud rate divisor is 16. #0011 0100 Baud rate divisor is 32. #0100 0101 Baud rate divisor is 64. #0101 0110 Baud rate divisor is 128. #0110 0111 Baud rate divisor is 256. #0111 1000 Baud rate divisor is 512. #1000 SPPR SPI Baud Rate Prescale Divisor 4 3 read-write 000 Baud rate prescaler divisor is 1. #000 001 Baud rate prescaler divisor is 2. #001 010 Baud rate prescaler divisor is 3. #010 011 Baud rate prescaler divisor is 4. #011 100 Baud rate prescaler divisor is 5. #100 101 Baud rate prescaler divisor is 6. #101 110 Baud rate prescaler divisor is 7. #110 111 Baud rate prescaler divisor is 8. #111 S SPI Status Register 0x3 8 read-write 0x20 0xFF MODF Master Mode Fault Flag 4 1 read-only 0 No mode fault error #0 1 Mode fault error detected #1 SPTEF SPI Transmit Buffer Empty Flag 5 1 read-only 0 SPI transmit buffer not empty #0 1 SPI transmit buffer empty #1 SPMF SPI Match Flag 6 1 read-write 0 Value in the receive data buffer does not match the value in the M register #0 1 Value in the receive data buffer matches the value in the M register #1 SPRF SPI Read Buffer Full Flag 7 1 read-only 0 No data available in the receive data buffer #0 1 Data available in the receive data buffer #1 D SPI Data Register 0x5 8 read-write 0 0xFF Bits Data (low byte) 0 8 read-write M SPI Match Register 0x7 8 read-write 0 0xFF Bits Hardware compare value (low byte) 0 8 read-write KBI0 Keyboard interrupts KBI KBI0_ 0x40079000 0 0x3 registers KBI0 24 SC KBI Status and Control Register 0 8 read-write 0 0xFF KBMOD KBI Detection Mode 0 1 read-write 0 Keyboard detects edges only. #0 1 Keyboard detects both edges and levels. #1 KBIE KBI Interrupt Enable 1 1 read-write 0 KBI interrupt not enabled. #0 1 KBI interrupt enabled. #1 KBACK KBI Acknowledge 2 1 write-only KBF KBI Interrupt Flag 3 1 read-only 0 KBI interrupt request not detected. #0 1 KBI interrupt request detected. #1 PE KBIx Pin Enable Register 0x1 8 read-write 0 0xFF KBIPE KBI Pin Enables 0 8 read-write 0 Pin is not enabled as KBI interrupt. #0 1 Pin is enabled as KBI interrupt. #1 ES KBIx Edge Select Register 0x2 8 read-write 0 0xFF KBEDG KBI Edge Selects 0 8 read-write 0 Falling edge/low level. #0 1 Rising edge/high level. #1 KBI1 Keyboard interrupts KBI KBI1_ 0x4007A000 0 0x3 registers KBI1 25 SC KBI Status and Control Register 0 8 read-write 0 0xFF KBMOD KBI Detection Mode 0 1 read-write 0 Keyboard detects edges only. #0 1 Keyboard detects both edges and levels. #1 KBIE KBI Interrupt Enable 1 1 read-write 0 KBI interrupt not enabled. #0 1 KBI interrupt enabled. #1 KBACK KBI Acknowledge 2 1 write-only KBF KBI Interrupt Flag 3 1 read-only 0 KBI interrupt request not detected. #0 1 KBI interrupt request detected. #1 PE KBIx Pin Enable Register 0x1 8 read-write 0 0xFF KBIPE KBI Pin Enables 0 8 read-write 0 Pin is not enabled as KBI interrupt. #0 1 Pin is enabled as KBI interrupt. #1 ES KBIx Edge Select Register 0x2 8 read-write 0 0xFF KBEDG KBI Edge Selects 0 8 read-write 0 Falling edge/low level. #0 1 Rising edge/high level. #1 PMC Power management PMC_ 0x4007D000 0 0x2 registers PMC 6 SPMSC1 System Power Management Status and Control 1 Register 0 8 read-write 0x1C 0xFF BGBE Bandgap Buffer Enable 0 1 read-write 0 Bandgap buffer is disabled. #0 1 Bandgap buffer is enabled. #1 LVDE Low-Voltage Detect Enable 2 1 read-write 0 LVD logic is disabled. #0 1 LVD logic is enabled. #1 LVDSE Low-Voltage Detect Stop Enable 3 1 read-write 0 Low-voltage detect is disabled during Stop mode. #0 1 Low-voltage detect is enabled during Stop mode. #1 LVDRE Low-Voltage Detect Reset Enable 4 1 read-write 0 LVD events do not generate hardware resets. #0 1 Forces an MCU reset when an enabled low-voltage detect event occurs. #1 LVWIE Low-Voltage Warning Interrupt Enable 5 1 read-write 0 Hardware interrupt is disabled (use polling). #0 1 Requests a hardware interrupt when LVWF = 1. #1 LVWACK Low-Voltage Warning Acknowledge 6 1 write-only LVWF Low-Voltage Warning Flag 7 1 read-only 0 Low-voltage warning is not present. #0 1 Low-voltage warning is present or was present. #1 SPMSC2 System Power Management Status and Control 2 Register 0x1 8 read-write 0 0xFF LVWV Low-Voltage Warning Voltage Select 4 2 read-write 00 Low trip point is selected (VLVW = VLVW1). #00 01 Middle 1 trip point is selected (VLVW = VLVW2). #01 10 Middle 2 trip point is selected (VLVW = VLVW3). #10 11 High trip point is selected (VLVW = VLVW4). #11 LVDV Low-Voltage Detect Voltage Select 6 1 read-write 0 Low trip point is selected (VLVD = VLVDL). #0 1 High trip point is selected (VLVD = VLVDH). #1 GPIOA General Purpose Input/Output GPIOA_ 0x400FF000 0 0x1C registers IRQ 7 PDOR Port Data Output Register 0 32 read-write 0 0xFFFFFFFF PDO0 Port Data Output 0 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO1 Port Data Output 1 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO2 Port Data Output 2 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO3 Port Data Output 3 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO4 Port Data Output 4 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO5 Port Data Output 5 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO6 Port Data Output 6 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO7 Port Data Output 7 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO8 Port Data Output 8 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO9 Port Data Output 9 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO10 Port Data Output 10 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO11 Port Data Output 11 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO12 Port Data Output 12 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO13 Port Data Output 13 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO14 Port Data Output 14 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO15 Port Data Output 15 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO16 Port Data Output 16 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO17 Port Data Output 17 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO18 Port Data Output 18 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO19 Port Data Output 19 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO20 Port Data Output 20 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO21 Port Data Output 21 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO22 Port Data Output 22 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO23 Port Data Output 23 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO24 Port Data Output 24 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO25 Port Data Output 25 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO26 Port Data Output 26 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO27 Port Data Output 27 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO28 Port Data Output 28 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO29 Port Data Output 29 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO30 Port Data Output 30 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PDO31 Port Data Output 31 1 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PSOR Port Set Output Register 0x4 32 write-only 0 0xFFFFFFFF PTSO0 Port Set Output 0 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO1 Port Set Output 1 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO2 Port Set Output 2 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO3 Port Set Output 3 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO4 Port Set Output 4 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO5 Port Set Output 5 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO6 Port Set Output 6 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO7 Port Set Output 7 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO8 Port Set Output 8 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO9 Port Set Output 9 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO10 Port Set Output 10 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO11 Port Set Output 11 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO12 Port Set Output 12 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO13 Port Set Output 13 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO14 Port Set Output 14 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO15 Port Set Output 15 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO16 Port Set Output 16 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO17 Port Set Output 17 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO18 Port Set Output 18 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO19 Port Set Output 19 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO20 Port Set Output 20 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO21 Port Set Output 21 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO22 Port Set Output 22 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO23 Port Set Output 23 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO24 Port Set Output 24 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO25 Port Set Output 25 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO26 Port Set Output 26 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO27 Port Set Output 27 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO28 Port Set Output 28 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO29 Port Set Output 29 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO30 Port Set Output 30 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PTSO31 Port Set Output 31 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PCOR Port Clear Output Register 0x8 32 write-only 0 0xFFFFFFFF PTCO0 Port Clear Output 0 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO1 Port Clear Output 1 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO2 Port Clear Output 2 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO3 Port Clear Output 3 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO4 Port Clear Output 4 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO5 Port Clear Output 5 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO6 Port Clear Output 6 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO7 Port Clear Output 7 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO8 Port Clear Output 8 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO9 Port Clear Output 9 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO10 Port Clear Output 10 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO11 Port Clear Output 11 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO12 Port Clear Output 12 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO13 Port Clear Output 13 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO14 Port Clear Output 14 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO15 Port Clear Output 15 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO16 Port Clear Output 16 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO17 Port Clear Output 17 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO18 Port Clear Output 18 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO19 Port Clear Output 19 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO20 Port Clear Output 20 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO21 Port Clear Output 21 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO22 Port Clear Output 22 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO23 Port Clear Output 23 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO24 Port Clear Output 24 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO25 Port Clear Output 25 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO26 Port Clear Output 26 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO27 Port Clear Output 27 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO28 Port Clear Output 28 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO29 Port Clear Output 29 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO30 Port Clear Output 30 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTCO31 Port Clear Output 31 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTOR Port Toggle Output Register 0xC 32 write-only 0 0xFFFFFFFF PTTO0 Port Toggle Output 0 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO1 Port Toggle Output 1 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO2 Port Toggle Output 2 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO3 Port Toggle Output 3 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO4 Port Toggle Output 4 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO5 Port Toggle Output 5 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO6 Port Toggle Output 6 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO7 Port Toggle Output 7 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO8 Port Toggle Output 8 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO9 Port Toggle Output 9 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO10 Port Toggle Output 10 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO11 Port Toggle Output 11 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO12 Port Toggle Output 12 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO13 Port Toggle Output 13 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO14 Port Toggle Output 14 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO15 Port Toggle Output 15 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO16 Port Toggle Output 16 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO17 Port Toggle Output 17 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO18 Port Toggle Output 18 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO19 Port Toggle Output 19 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO20 Port Toggle Output 20 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO21 Port Toggle Output 21 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO22 Port Toggle Output 22 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO23 Port Toggle Output 23 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO24 Port Toggle Output 24 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO25 Port Toggle Output 25 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO26 Port Toggle Output 26 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO27 Port Toggle Output 27 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO28 Port Toggle Output 28 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO29 Port Toggle Output 29 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO30 Port Toggle Output 30 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PTTO31 Port Toggle Output 31 1 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PDIR Port Data Input Register 0x10 32 read-only 0 0xFFFFFFFF PDI0 Port Data Input 0 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI1 Port Data Input 1 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI2 Port Data Input 2 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI3 Port Data Input 3 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI4 Port Data Input 4 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI5 Port Data Input 5 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI6 Port Data Input 6 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI7 Port Data Input 7 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI8 Port Data Input 8 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI9 Port Data Input 9 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI10 Port Data Input 10 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI11 Port Data Input 11 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI12 Port Data Input 12 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI13 Port Data Input 13 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI14 Port Data Input 14 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI15 Port Data Input 15 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI16 Port Data Input 16 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI17 Port Data Input 17 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI18 Port Data Input 18 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI19 Port Data Input 19 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI20 Port Data Input 20 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI21 Port Data Input 21 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI22 Port Data Input 22 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI23 Port Data Input 23 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI24 Port Data Input 24 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI25 Port Data Input 25 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI26 Port Data Input 26 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI27 Port Data Input 27 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI28 Port Data Input 28 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI29 Port Data Input 29 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI30 Port Data Input 30 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDI31 Port Data Input 31 1 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDDR Port Data Direction Register 0x14 32 read-write 0 0xFFFFFFFF PDD0 Port Data Direction 0 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD1 Port Data Direction 1 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD2 Port Data Direction 2 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD3 Port Data Direction 3 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD4 Port Data Direction 4 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD5 Port Data Direction 5 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD6 Port Data Direction 6 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD7 Port Data Direction 7 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD8 Port Data Direction 8 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD9 Port Data Direction 9 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD10 Port Data Direction 10 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD11 Port Data Direction 11 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD12 Port Data Direction 12 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD13 Port Data Direction 13 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD14 Port Data Direction 14 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD15 Port Data Direction 15 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD16 Port Data Direction 16 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD17 Port Data Direction 17 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD18 Port Data Direction 18 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD19 Port Data Direction 19 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD20 Port Data Direction 20 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD21 Port Data Direction 21 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD22 Port Data Direction 22 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD23 Port Data Direction 23 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD24 Port Data Direction 24 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD25 Port Data Direction 25 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD26 Port Data Direction 26 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD27 Port Data Direction 27 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD28 Port Data Direction 28 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD29 Port Data Direction 29 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD30 Port Data Direction 30 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PDD31 Port Data Direction 31 1 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in GPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PIDR Port Input Disable Register 0x18 32 read-write 0xFFFFFFFF 0xFFFFFFFF PID0 Port Input Disable 0 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID1 Port Input Disable 1 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID2 Port Input Disable 2 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID3 Port Input Disable 3 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID4 Port Input Disable 4 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID5 Port Input Disable 5 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID6 Port Input Disable 6 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID7 Port Input Disable 7 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID8 Port Input Disable 8 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID9 Port Input Disable 9 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID10 Port Input Disable 10 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID11 Port Input Disable 11 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID12 Port Input Disable 12 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID13 Port Input Disable 13 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID14 Port Input Disable 14 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID15 Port Input Disable 15 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID16 Port Input Disable 16 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID17 Port Input Disable 17 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID18 Port Input Disable 18 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID19 Port Input Disable 19 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID20 Port Input Disable 20 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID21 Port Input Disable 21 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID22 Port Input Disable 22 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID23 Port Input Disable 23 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID24 Port Input Disable 24 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID25 Port Input Disable 25 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID26 Port Input Disable 26 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID27 Port Input Disable 27 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID28 Port Input Disable 28 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID29 Port Input Disable 29 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID30 Port Input Disable 30 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 PID31 Port Input Disable 31 1 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input.Corresponding Port Data Input Register bit will read zero. #1 ROM System ROM ROM_ 0xF0002000 0 0x1000 registers ENTRY Entry 0 32 read-only 0 0 ENTRY ENTRY 0 32 read-only TABLEMARK End of Table Marker Register 0x4 32 read-only 0 0xFFFFFFFF MARK Hardwired to 0x0000_0000 0 32 read-only SYSACCESS System Access Register 0xFCC 32 read-only 0x1 0xFFFFFFFF SYSACCESS Hardwired to 0x0000_0001 0 32 read-only 8 0x4 4,5,6,7,0,1,2,3 PERIPHID%s Peripheral ID Register 0xFD0 32 read-only 0 0 PERIPHID Peripheral ID1 is hardwired to 0x0000_00E0; ID2 to 0x0000_0008; and all the others to 0x0000_0000. 0 32 read-only 4 0x4 0,1,2,3 COMPID%s Component ID Register 0xFF0 32 read-only 0 0 COMPID Component ID 0 32 read-only MCM Core Platform Miscellaneous Control Module MCM_ 0xF0003000 0x8 0x8 registers PLASC Crossbar Switch (AXBS) Slave Configuration 0x8 16 read-only 0x7 0xFFFF ASC Each bit in the ASC field indicates whether there is a corresponding connection to the crossbar switch's slave input port. 0 8 read-only 0 A bus slave connection to AXBS input port n is absent. #0 1 A bus slave connection to AXBS input port n is present. #1 PLAMC Crossbar Switch (AXBS) Master Configuration 0xA 16 read-only 0x1 0xFFFF AMC Each bit in the AMC field indicates whether there is a corresponding connection to the AXBS master input port. 0 8 read-only 0 A bus master connection to AXBS input port n is absent #0 1 A bus master connection to AXBS input port n is present #1 PLACR Platform Control Register 0xC 32 read-write 0x800 0xFFFFFFFF CFCC Clear Flash Controller Cache 10 1 write-only DFCDA Disable Flash Controller Data Caching 11 1 read-write 0 Enable flash controller data caching #0 1 Disable flash controller data caching. #1 DFCIC Disable Flash Controller Instruction Caching 12 1 read-write 0 Enable flash controller instruction caching. #0 1 Disable flash controller instruction caching. #1 DFCC Disable Flash Controller Cache 13 1 read-write 0 Enable flash controller cache. #0 1 Disable flash controller cache. #1 EFDS Enable Flash Data Speculation 14 1 read-write 0 Disable flash data speculation. #0 1 Enable flash data speculation. #1 DFCS Disable Flash Controller Speculation 15 1 read-write 0 Enable flash controller speculation. #0 1 Disable flash controller speculation. #1 ESFC Enable Stalling Flash Controller 16 1 read-write 0 Disable stalling flash controller when flash is busy. #0 1 Enable stalling flash controller when flash is busy. #1 FGPIOA General Purpose Input/Output FGPIOA_ 0xF8000000 0 0x1C registers PDOR Port Data Output Register 0 32 read-write 0 0xFFFFFFFF PDO Port Data Output 0 32 read-write 0 Logic level 0 is driven on pin, provided pin is configured for general-purpose output. #0 1 Logic level 1 is driven on pin, provided pin is configured for general-purpose output. #1 PSOR Port Set Output Register 0x4 32 write-only 0 0xFFFFFFFF PTSO Port Set Output 0 32 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to logic 1. #1 PCOR Port Clear Output Register 0x8 32 write-only 0 0xFFFFFFFF PTCO Port Clear Output 0 32 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is cleared to logic 0. #1 PTOR Port Toggle Output Register 0xC 32 write-only 0 0xFFFFFFFF PTTO Port Toggle Output 0 32 write-only 0 Corresponding bit in PDORn does not change. #0 1 Corresponding bit in PDORn is set to the inverse of its existing logic state. #1 PDIR Port Data Input Register 0x10 32 read-only 0 0xFFFFFFFF PDI Port Data Input 0 32 read-only 0 Pin logic level is logic 0, or is not configured for use by digital function. #0 1 Pin logic level is logic 1. #1 PDDR Port Data Direction Register 0x14 32 read-write 0 0xFFFFFFFF PDD Port Data Direction 0 32 read-write 0 Pin is configured as general-purpose input, for the GPIO function. The pin will be high-Z if the port input is disabled in FPIOx_PIDR register. #0 1 Pin is configured as general-purpose output, for the GPIO function. #1 PIDR Port Input Disable Register 0x18 32 read-write 0xFFFFFFFF 0xFFFFFFFF PID Port Input Disable 0 32 read-write 0 Pin is configured for General Purpose Input, provided the pin is configured for any digital function. #0 1 Pin is not configured as General Purpose Input. Corresponding Port Data Input Register bit will read zero. #1