mbed library sources. Supersedes mbed-src.
Dependents: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
targets/TARGET_NUVOTON/TARGET_NANO100/device/Nano100Series.h@181:36facd806e4a, 2018-07-30 (annotated)
- Committer:
- benkatz
- Date:
- Mon Jul 30 20:31:44 2018 +0000
- Revision:
- 181:36facd806e4a
- Parent:
- 174:b96e65c34a4d
going on the robot. fixed a dumb bug in float_to_uint
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 174:b96e65c34a4d | 1 | /**************************************************************************//** |
AnnaBridge | 174:b96e65c34a4d | 2 | * @file Nano100Series.h |
AnnaBridge | 174:b96e65c34a4d | 3 | * @version V1.00 |
AnnaBridge | 174:b96e65c34a4d | 4 | * $Revision: 79 $ |
AnnaBridge | 174:b96e65c34a4d | 5 | * $Date: 15/06/22 5:34p $ |
AnnaBridge | 174:b96e65c34a4d | 6 | * @brief Nano100 series peripheral access layer header file. |
AnnaBridge | 174:b96e65c34a4d | 7 | * This file contains all the peripheral register's definitions, |
AnnaBridge | 174:b96e65c34a4d | 8 | * bits definitions and memory mapping for NuMicro Nano100 series MCU. |
AnnaBridge | 174:b96e65c34a4d | 9 | * |
AnnaBridge | 174:b96e65c34a4d | 10 | * @note |
AnnaBridge | 174:b96e65c34a4d | 11 | * Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. |
AnnaBridge | 174:b96e65c34a4d | 12 | *****************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 13 | /** |
AnnaBridge | 174:b96e65c34a4d | 14 | \mainpage NuMicro NANO100BN Driver Reference Guide |
AnnaBridge | 174:b96e65c34a4d | 15 | * |
AnnaBridge | 174:b96e65c34a4d | 16 | * <b>Introduction</b> |
AnnaBridge | 174:b96e65c34a4d | 17 | * |
AnnaBridge | 174:b96e65c34a4d | 18 | * This user manual describes the usage of Nano100BN Series MCU device driver |
AnnaBridge | 174:b96e65c34a4d | 19 | * |
AnnaBridge | 174:b96e65c34a4d | 20 | * <b>Disclaimer</b> |
AnnaBridge | 174:b96e65c34a4d | 21 | * |
AnnaBridge | 174:b96e65c34a4d | 22 | * The Software is furnished "AS IS", without warranty as to performance or results, and |
AnnaBridge | 174:b96e65c34a4d | 23 | * the entire risk as to performance or results is assumed by YOU. Nuvoton disclaims all |
AnnaBridge | 174:b96e65c34a4d | 24 | * warranties, express, implied or otherwise, with regard to the Software, its use, or |
AnnaBridge | 174:b96e65c34a4d | 25 | * operation, including without limitation any and all warranties of merchantability, fitness |
AnnaBridge | 174:b96e65c34a4d | 26 | * for a particular purpose, and non-infringement of intellectual property rights. |
AnnaBridge | 174:b96e65c34a4d | 27 | * |
AnnaBridge | 174:b96e65c34a4d | 28 | * <b>Important Notice</b> |
AnnaBridge | 174:b96e65c34a4d | 29 | * |
AnnaBridge | 174:b96e65c34a4d | 30 | * Nuvoton Products are neither intended nor warranted for usage in systems or equipment, |
AnnaBridge | 174:b96e65c34a4d | 31 | * any malfunction or failure of which may cause loss of human life, bodily injury or severe |
AnnaBridge | 174:b96e65c34a4d | 32 | * property damage. Such applications are deemed, "Insecure Usage". |
AnnaBridge | 174:b96e65c34a4d | 33 | * |
AnnaBridge | 174:b96e65c34a4d | 34 | * Insecure usage includes, but is not limited to: equipment for surgical implementation, |
AnnaBridge | 174:b96e65c34a4d | 35 | * atomic energy control instruments, airplane or spaceship instruments, the control or |
AnnaBridge | 174:b96e65c34a4d | 36 | * operation of dynamic, brake or safety systems designed for vehicular use, traffic signal |
AnnaBridge | 174:b96e65c34a4d | 37 | * instruments, all types of safety devices, and other applications intended to support or |
AnnaBridge | 174:b96e65c34a4d | 38 | * sustain life. |
AnnaBridge | 174:b96e65c34a4d | 39 | * |
AnnaBridge | 174:b96e65c34a4d | 40 | * All Insecure Usage shall be made at customer's risk, and in the event that third parties |
AnnaBridge | 174:b96e65c34a4d | 41 | * lay claims to Nuvoton as a result of customer's Insecure Usage, customer shall indemnify |
AnnaBridge | 174:b96e65c34a4d | 42 | * the damages and liabilities thus incurred by Nuvoton. |
AnnaBridge | 174:b96e65c34a4d | 43 | * |
AnnaBridge | 174:b96e65c34a4d | 44 | * Please note that all data and specifications are subject to change without notice. All the |
AnnaBridge | 174:b96e65c34a4d | 45 | * trademarks of products and companies mentioned in this datasheet belong to their respective |
AnnaBridge | 174:b96e65c34a4d | 46 | * owners. |
AnnaBridge | 174:b96e65c34a4d | 47 | * |
AnnaBridge | 174:b96e65c34a4d | 48 | * <b>Copyright Notice</b> |
AnnaBridge | 174:b96e65c34a4d | 49 | * |
AnnaBridge | 174:b96e65c34a4d | 50 | * Copyright (C) 2014~2016 Nuvoton Technology Corp. All rights reserved. |
AnnaBridge | 174:b96e65c34a4d | 51 | */ |
AnnaBridge | 174:b96e65c34a4d | 52 | #ifndef __NANO100SERIES_H__ |
AnnaBridge | 174:b96e65c34a4d | 53 | #define __NANO100SERIES_H__ |
AnnaBridge | 174:b96e65c34a4d | 54 | |
AnnaBridge | 174:b96e65c34a4d | 55 | #ifdef __cplusplus |
AnnaBridge | 174:b96e65c34a4d | 56 | extern "C" { |
AnnaBridge | 174:b96e65c34a4d | 57 | #endif |
AnnaBridge | 174:b96e65c34a4d | 58 | |
AnnaBridge | 174:b96e65c34a4d | 59 | /** @addtogroup NANO100_Definitions NANO100 Definitions |
AnnaBridge | 174:b96e65c34a4d | 60 | This file defines all structures and symbols for Nano100: |
AnnaBridge | 174:b96e65c34a4d | 61 | - interrupt numbers |
AnnaBridge | 174:b96e65c34a4d | 62 | - registers and bit fields |
AnnaBridge | 174:b96e65c34a4d | 63 | - peripheral base address |
AnnaBridge | 174:b96e65c34a4d | 64 | - peripheral ID |
AnnaBridge | 174:b96e65c34a4d | 65 | - Peripheral definitions |
AnnaBridge | 174:b96e65c34a4d | 66 | @{ |
AnnaBridge | 174:b96e65c34a4d | 67 | */ |
AnnaBridge | 174:b96e65c34a4d | 68 | |
AnnaBridge | 174:b96e65c34a4d | 69 | /******************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 70 | /* Processor and Core Peripherals */ |
AnnaBridge | 174:b96e65c34a4d | 71 | /******************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 72 | /** @addtogroup NANO100_CMSIS Device CMSIS Definitions |
AnnaBridge | 174:b96e65c34a4d | 73 | Configuration of the Cortex-M0 Processor and Core Peripherals |
AnnaBridge | 174:b96e65c34a4d | 74 | @{ |
AnnaBridge | 174:b96e65c34a4d | 75 | */ |
AnnaBridge | 174:b96e65c34a4d | 76 | |
AnnaBridge | 174:b96e65c34a4d | 77 | /** |
AnnaBridge | 174:b96e65c34a4d | 78 | * @details Interrupt Number Definition. The maximum of 32 Specific Interrupts are possible. |
AnnaBridge | 174:b96e65c34a4d | 79 | */ |
AnnaBridge | 174:b96e65c34a4d | 80 | typedef enum IRQn { |
AnnaBridge | 174:b96e65c34a4d | 81 | /****** Cortex-M0 Processor Exceptions Numbers *****************************************/ |
AnnaBridge | 174:b96e65c34a4d | 82 | |
AnnaBridge | 174:b96e65c34a4d | 83 | NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 84 | HardFault_IRQn = -13, /*!< 3 Cortex-M0 Hard Fault Interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 85 | SVCall_IRQn = -5, /*!< 11 Cortex-M0 SV Call Interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 86 | PendSV_IRQn = -2, /*!< 14 Cortex-M0 Pend SV Interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 87 | SysTick_IRQn = -1, /*!< 15 Cortex-M0 System Tick Interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 88 | |
AnnaBridge | 174:b96e65c34a4d | 89 | /****** Nano100 specific Interrupt Numbers ***********************************************/ |
AnnaBridge | 174:b96e65c34a4d | 90 | BOD_IRQn = 0, /*!< Brownout low voltage detected interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 91 | WDT_IRQn = 1, /*!< Watch Dog Timer interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 92 | EINT0_IRQn = 2, /*!< External signal interrupt from PB.14 pin */ |
AnnaBridge | 174:b96e65c34a4d | 93 | EINT1_IRQn = 3, /*!< External signal interrupt from PB.15 pin */ |
AnnaBridge | 174:b96e65c34a4d | 94 | GPABC_IRQn = 4, /*!< External signal interrupt from PA[15:0]/PB[13:0]/PC[15:0] */ |
AnnaBridge | 174:b96e65c34a4d | 95 | GPDEF_IRQn = 5, /*!< External interrupt from PD[15:0]/PE[15:0]/PF[15:0] */ |
AnnaBridge | 174:b96e65c34a4d | 96 | PWM0_IRQn = 6, /*!< PWM 0 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 97 | PWM1_IRQn = 7, /*!< PWM 1 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 98 | TMR0_IRQn = 8, /*!< Timer 0 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 99 | TMR1_IRQn = 9, /*!< Timer 1 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 100 | TMR2_IRQn = 10, /*!< Timer 2 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 101 | TMR3_IRQn = 11, /*!< Timer 3 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 102 | UART0_IRQn = 12, /*!< UART0 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 103 | UART1_IRQn = 13, /*!< UART1 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 104 | SPI0_IRQn = 14, /*!< SPI0 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 105 | SPI1_IRQn = 15, /*!< SPI1 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 106 | SPI2_IRQn = 16, /*!< SPI2 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 107 | HIRC_IRQn = 17, /*!< HIRC interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 108 | I2C0_IRQn = 18, /*!< I2C0 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 109 | I2C1_IRQn = 19, /*!< I2C1 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 110 | SC2_IRQn = 20, /*!< Smart Card 2 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 111 | SC0_IRQn = 21, /*!< Smart Card 0 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 112 | SC1_IRQn = 22, /*!< Smart Card 1 interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 113 | USBD_IRQn = 23, /*!< USB FS Device interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 114 | LCD_IRQn = 25, /*!< LCD interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 115 | PDMA_IRQn = 26, /*!< PDMA interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 116 | I2S_IRQn = 27, /*!< I2S interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 117 | PDWU_IRQn = 28, /*!< Power Down Wake up interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 118 | ADC_IRQn = 29, /*!< ADC interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 119 | DAC_IRQn = 30, /*!< DAC interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 120 | RTC_IRQn = 31 /*!< Real time clock interrupt */ |
AnnaBridge | 174:b96e65c34a4d | 121 | } IRQn_Type; |
AnnaBridge | 174:b96e65c34a4d | 122 | |
AnnaBridge | 174:b96e65c34a4d | 123 | |
AnnaBridge | 174:b96e65c34a4d | 124 | /* |
AnnaBridge | 174:b96e65c34a4d | 125 | * ========================================================================== |
AnnaBridge | 174:b96e65c34a4d | 126 | * ----------- Processor and Core Peripheral Section ------------------------ |
AnnaBridge | 174:b96e65c34a4d | 127 | * ========================================================================== |
AnnaBridge | 174:b96e65c34a4d | 128 | */ |
AnnaBridge | 174:b96e65c34a4d | 129 | |
AnnaBridge | 174:b96e65c34a4d | 130 | /* Configuration of the Cortex-M0 Processor and Core Peripherals */ |
AnnaBridge | 174:b96e65c34a4d | 131 | #define __CM0_REV 0x0201 /*!< Core Revision r2p1 */ |
AnnaBridge | 174:b96e65c34a4d | 132 | #define __NVIC_PRIO_BITS 2 /*!< Number of Bits used for Priority Levels */ |
AnnaBridge | 174:b96e65c34a4d | 133 | #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ |
AnnaBridge | 174:b96e65c34a4d | 134 | #define __MPU_PRESENT 0 /*!< MPU present or not */ |
AnnaBridge | 174:b96e65c34a4d | 135 | #define __FPU_PRESENT 0 /*!< FPU present or not */ |
AnnaBridge | 174:b96e65c34a4d | 136 | |
AnnaBridge | 174:b96e65c34a4d | 137 | /*@}*/ /* end of group NANO100_CMSIS */ |
AnnaBridge | 174:b96e65c34a4d | 138 | |
AnnaBridge | 174:b96e65c34a4d | 139 | |
AnnaBridge | 174:b96e65c34a4d | 140 | #include "core_cm0.h" /* Cortex-M0 processor and core peripherals */ |
AnnaBridge | 174:b96e65c34a4d | 141 | #include "system_Nano100Series.h" /* Nano100 Series System include file */ |
AnnaBridge | 174:b96e65c34a4d | 142 | #include <stdint.h> |
AnnaBridge | 174:b96e65c34a4d | 143 | |
AnnaBridge | 174:b96e65c34a4d | 144 | /******************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 145 | /* Device Specific Peripheral registers structures */ |
AnnaBridge | 174:b96e65c34a4d | 146 | /******************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 147 | /** @addtogroup NANO100_Peripherals NANO100 Peripherals |
AnnaBridge | 174:b96e65c34a4d | 148 | NANO100 Device Specific Peripheral registers structures |
AnnaBridge | 174:b96e65c34a4d | 149 | @{ |
AnnaBridge | 174:b96e65c34a4d | 150 | */ |
AnnaBridge | 174:b96e65c34a4d | 151 | |
AnnaBridge | 174:b96e65c34a4d | 152 | #if defined ( __CC_ARM ) |
AnnaBridge | 174:b96e65c34a4d | 153 | #pragma anon_unions |
AnnaBridge | 174:b96e65c34a4d | 154 | #endif |
AnnaBridge | 174:b96e65c34a4d | 155 | |
AnnaBridge | 174:b96e65c34a4d | 156 | |
AnnaBridge | 174:b96e65c34a4d | 157 | |
AnnaBridge | 174:b96e65c34a4d | 158 | /*---------------------- Analog to Digital Converter -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 159 | /** |
AnnaBridge | 174:b96e65c34a4d | 160 | @addtogroup ADC Analog to Digital Converter(ADC) |
AnnaBridge | 174:b96e65c34a4d | 161 | Memory Mapped Structure for ADC Controller |
AnnaBridge | 174:b96e65c34a4d | 162 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 163 | |
AnnaBridge | 174:b96e65c34a4d | 164 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 165 | |
AnnaBridge | 174:b96e65c34a4d | 166 | |
AnnaBridge | 174:b96e65c34a4d | 167 | /** |
AnnaBridge | 174:b96e65c34a4d | 168 | * RESULT0, RESULT1.. RESULT17 |
AnnaBridge | 174:b96e65c34a4d | 169 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 170 | * Offset: 0x00 ~0x44 A/D Data Register 0~17 |
AnnaBridge | 174:b96e65c34a4d | 171 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 172 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 173 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 174 | * |[11:0] |RSLT |A/D Conversion Result |
AnnaBridge | 174:b96e65c34a4d | 175 | * | | |This field contains 12 bits conversion results. |
AnnaBridge | 174:b96e65c34a4d | 176 | * |[16] |VALID |Data Valid Flag |
AnnaBridge | 174:b96e65c34a4d | 177 | * | | |It is a mirror of VALID bit in ADC_RESULTx |
AnnaBridge | 174:b96e65c34a4d | 178 | * |[17] |OVERRUN |Over Run Flag |
AnnaBridge | 174:b96e65c34a4d | 179 | * | | |It is a mirror to OVERRUN bit in ADC_RESULTx |
AnnaBridge | 174:b96e65c34a4d | 180 | */ |
AnnaBridge | 174:b96e65c34a4d | 181 | __I uint32_t RESULT[18]; |
AnnaBridge | 174:b96e65c34a4d | 182 | |
AnnaBridge | 174:b96e65c34a4d | 183 | |
AnnaBridge | 174:b96e65c34a4d | 184 | /** |
AnnaBridge | 174:b96e65c34a4d | 185 | * CR |
AnnaBridge | 174:b96e65c34a4d | 186 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 187 | * Offset: 0x48 A/D Control Register |
AnnaBridge | 174:b96e65c34a4d | 188 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 189 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 190 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 191 | * |[0] |ADEN |A/D Converter Enable |
AnnaBridge | 174:b96e65c34a4d | 192 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 193 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 194 | * | | |Before starting A/D conversion, this bit should be set to 1. |
AnnaBridge | 174:b96e65c34a4d | 195 | * | | |Clear it to 0 to disable A/D converter analog circuit power consumption. |
AnnaBridge | 174:b96e65c34a4d | 196 | * |[1] |ADIE |A/D Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 197 | * | | |0 = A/D interrupt function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 198 | * | | |1 = A/D interrupt function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 199 | * | | |A/D conversion end interrupt request is generated if ADIE bit is set to 1. |
AnnaBridge | 174:b96e65c34a4d | 200 | * |[3:2] |ADMD |A/D Converter Operation Mode |
AnnaBridge | 174:b96e65c34a4d | 201 | * | | |00 = Single conversion |
AnnaBridge | 174:b96e65c34a4d | 202 | * | | |01 = Reserved |
AnnaBridge | 174:b96e65c34a4d | 203 | * | | |10 = Single-cycle scan |
AnnaBridge | 174:b96e65c34a4d | 204 | * | | |11 = Continuous scan |
AnnaBridge | 174:b96e65c34a4d | 205 | * |[5:4] |TRGS |Hardware Trigger Source |
AnnaBridge | 174:b96e65c34a4d | 206 | * | | |This field must keep 00 |
AnnaBridge | 174:b96e65c34a4d | 207 | * | | |Software should disable TRGE and ADST before change TRGS. |
AnnaBridge | 174:b96e65c34a4d | 208 | * | | |In hardware trigger mode, the ADST bit is set by the external trigger from STADC, However software has the highest priority to set or cleared ADST bit at any time. |
AnnaBridge | 174:b96e65c34a4d | 209 | * |[7:6] |TRGCOND |External Trigger Condition |
AnnaBridge | 174:b96e65c34a4d | 210 | * | | |These two bits decide external pin STADC trigger event is level or edge. |
AnnaBridge | 174:b96e65c34a4d | 211 | * | | |The signal must be kept at stable state at least 8 PCLKs for level trigger and 4 PCLKs at high and low state. |
AnnaBridge | 174:b96e65c34a4d | 212 | * | | |00 = Low level |
AnnaBridge | 174:b96e65c34a4d | 213 | * | | |01 = High level |
AnnaBridge | 174:b96e65c34a4d | 214 | * | | |10 = Falling edge |
AnnaBridge | 174:b96e65c34a4d | 215 | * | | |11 = Rising edge |
AnnaBridge | 174:b96e65c34a4d | 216 | * |[8] |TRGE |External Trigger Enable |
AnnaBridge | 174:b96e65c34a4d | 217 | * | | |Enable or disable triggering of A/D conversion by external STADC pin. |
AnnaBridge | 174:b96e65c34a4d | 218 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 219 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 220 | * |[9] |PTEN |PDMA Transfer Enable |
AnnaBridge | 174:b96e65c34a4d | 221 | * | | |0 = PDMA data transfer Disabled. |
AnnaBridge | 174:b96e65c34a4d | 222 | * | | |1 = PDMA data transfer in ADC_RESULT 0~17 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 223 | * | | |When A/D conversion is completed, the converted data is loaded into ADC_RESULT 0~10, software can enable this bit to generate a PDMA data transfer request. |
AnnaBridge | 174:b96e65c34a4d | 224 | * | | |When PTEN=1, software must set ADIE=0 to disable interrupt. |
AnnaBridge | 174:b96e65c34a4d | 225 | * | | |PDMA can access ADC_RESULT 0-17 registers by block or single transfer mode. |
AnnaBridge | 174:b96e65c34a4d | 226 | * |[10] |DIFF |Differential Mode Selection |
AnnaBridge | 174:b96e65c34a4d | 227 | * | | |0 = ADC is operated in single-ended mode. |
AnnaBridge | 174:b96e65c34a4d | 228 | * | | |1 = ADC is operated in differential mode. |
AnnaBridge | 174:b96e65c34a4d | 229 | * | | |The A/D analog input ADC_CH0/ADC_CH1 consists of a differential pair. |
AnnaBridge | 174:b96e65c34a4d | 230 | * | | |So as ADC_CH2/ADC_CH3, ADC_CH4/ADC_CH5, ADC_CH6/ADC_CH7, ADC_CH8/ADC_CH9 and ADC_CH10/ADC_CH11. |
AnnaBridge | 174:b96e65c34a4d | 231 | * | | |The even channel defines as plus analog input voltage (Vplus) and the odd channel defines as minus analog input voltage (Vminus). |
AnnaBridge | 174:b96e65c34a4d | 232 | * | | |Differential input voltage (Vdiff) = Vplus - Vminus, where Vplus is the analog input; Vminus is the inverted analog input. |
AnnaBridge | 174:b96e65c34a4d | 233 | * | | |In differential input mode, only the even number of the two corresponding channels needs to be enabled in CHEN (ADCHER[11:0]). |
AnnaBridge | 174:b96e65c34a4d | 234 | * | | |The conversion result will be placed to the corresponding data register of the enabled channel. |
AnnaBridge | 174:b96e65c34a4d | 235 | * | | |Note: Calibration should calibrated each time when switching between single-ended and differential mode |
AnnaBridge | 174:b96e65c34a4d | 236 | * |[11] |ADST |A/D Conversion Start |
AnnaBridge | 174:b96e65c34a4d | 237 | * | | |0 = Conversion stopped and A/D converter enter idle state. |
AnnaBridge | 174:b96e65c34a4d | 238 | * | | |1 = Conversion starts. |
AnnaBridge | 174:b96e65c34a4d | 239 | * | | |ADST bit can be set to 1 from two sources: software write and external pin STADC. |
AnnaBridge | 174:b96e65c34a4d | 240 | * | | |ADST is cleared to 0 by hardware automatically at the end of single mode and single-cycle scan mode on specified channels. |
AnnaBridge | 174:b96e65c34a4d | 241 | * | | |In continuous scan mode, A/D conversion is continuously performed sequentially unless software writes 0 to this bit or chip reset. |
AnnaBridge | 174:b96e65c34a4d | 242 | * | | |Note: After ADC conversion done, SW needs to wait at least one ADC clock before to set this bit high again. |
AnnaBridge | 174:b96e65c34a4d | 243 | * |[13:12] |TMSEL |Select A/D Enable Time-Out Source |
AnnaBridge | 174:b96e65c34a4d | 244 | * | | |00 = TMR0 |
AnnaBridge | 174:b96e65c34a4d | 245 | * | | |01 = TMR1 |
AnnaBridge | 174:b96e65c34a4d | 246 | * | | |10 = TMR2 |
AnnaBridge | 174:b96e65c34a4d | 247 | * | | |11 = TMR3 |
AnnaBridge | 174:b96e65c34a4d | 248 | * |[15] |TMTRGMOD |Timer Event Trigger ADC Conversion |
AnnaBridge | 174:b96e65c34a4d | 249 | * | | |0 = This function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 250 | * | | |1 = ADC Enabled by TIMER OUT event. Setting TMSEL to select timer event from timer0~3 |
AnnaBridge | 174:b96e65c34a4d | 251 | * |[17:16] |REFSEL |Reference Voltage Source Selection |
AnnaBridge | 174:b96e65c34a4d | 252 | * | | |00 = Reserved |
AnnaBridge | 174:b96e65c34a4d | 253 | * | | |01 = Select Int_VREF as reference voltage |
AnnaBridge | 174:b96e65c34a4d | 254 | * | | |10 = Select VREF as reference voltage |
AnnaBridge | 174:b96e65c34a4d | 255 | * | | |11 = Reserved |
AnnaBridge | 174:b96e65c34a4d | 256 | * |[19:18] |RESSEL |Resolution Selection |
AnnaBridge | 174:b96e65c34a4d | 257 | * | | |00 = 6 bits |
AnnaBridge | 174:b96e65c34a4d | 258 | * | | |01 = 8 bits |
AnnaBridge | 174:b96e65c34a4d | 259 | * | | |10 = 10 bits |
AnnaBridge | 174:b96e65c34a4d | 260 | * | | |11 = 12 bits |
AnnaBridge | 174:b96e65c34a4d | 261 | * |[31:24] |TMPDMACNT |PDMA Count |
AnnaBridge | 174:b96e65c34a4d | 262 | * | | |When each timer event occur PDMA will transfer TMPDMACNT +1 ADC result in the amount of this register setting |
AnnaBridge | 174:b96e65c34a4d | 263 | * | | |Note: The total amount of PDMA transferring data should be set in PDMA byte count register. |
AnnaBridge | 174:b96e65c34a4d | 264 | * | | |When PDMA finish is set, ADC will not be enabled and start transfer even though the timer event occurred. |
AnnaBridge | 174:b96e65c34a4d | 265 | */ |
AnnaBridge | 174:b96e65c34a4d | 266 | __IO uint32_t CR; |
AnnaBridge | 174:b96e65c34a4d | 267 | |
AnnaBridge | 174:b96e65c34a4d | 268 | /** |
AnnaBridge | 174:b96e65c34a4d | 269 | * CHEN |
AnnaBridge | 174:b96e65c34a4d | 270 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 271 | * Offset: 0x4C A/D Channel Enable Register |
AnnaBridge | 174:b96e65c34a4d | 272 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 273 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 274 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 275 | * |[0] |CHEN0 |Analog Input Channel 0 Enable (Convert Input Voltage From PA.0 ) |
AnnaBridge | 174:b96e65c34a4d | 276 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 277 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 278 | * | | |If more than one channel in single mode is enabled by software, the least channel is converted and other enabled channels will be ignored. |
AnnaBridge | 174:b96e65c34a4d | 279 | * |[1] |CHEN1 |Analog Input Channel 1 Enable(Convert Input Voltage From PA.1 ) |
AnnaBridge | 174:b96e65c34a4d | 280 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 281 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 282 | * |[2] |CHEN2 |Analog Input Channel 2 Enable (Convert Input Voltage From PA.2 ) |
AnnaBridge | 174:b96e65c34a4d | 283 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 284 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 285 | * |[3] |CHEN3 |Analog Input Channel 3 Enable(Convert Input Voltage From PA.3 ) |
AnnaBridge | 174:b96e65c34a4d | 286 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 287 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 288 | * |[4] |CHEN4 |Analog Input Channel 4 Enable (Convert Input Voltage From PA.4 ) |
AnnaBridge | 174:b96e65c34a4d | 289 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 290 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 291 | * |[5] |CHEN5 |Analog Input Channel 5 Enable (Convert Input Voltage From PA.5 ) |
AnnaBridge | 174:b96e65c34a4d | 292 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 293 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 294 | * |[6] |CHEN6 |Analog Input Channel 6 Enable (Convert Input Voltage From PA.6 ) |
AnnaBridge | 174:b96e65c34a4d | 295 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 296 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 297 | * |[7] |CHEN7 |Analog Input Channel 7 Enable (Convert Input Voltage From PA.7 ) |
AnnaBridge | 174:b96e65c34a4d | 298 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 299 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 300 | * |[8] |CHEN8 |Analog Input Channel 8 Enable For DAC0 (Convert Input Voltage From PD.0 ) |
AnnaBridge | 174:b96e65c34a4d | 301 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 302 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 303 | * |[9] |CHEN9 |Analog Input Channel 9 Enable For DAC1 (Convert Input Voltage From PD.1 ) |
AnnaBridge | 174:b96e65c34a4d | 304 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 305 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 306 | * |[10] |CHEN10 |Analog Input Channel 10 Enable (Convert Input Voltage From PD.2 ) |
AnnaBridge | 174:b96e65c34a4d | 307 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 308 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 309 | * |[11] |CHEN11 |Analog Input Channel 11 Enable(Convert Input Voltage From PD.3 ) |
AnnaBridge | 174:b96e65c34a4d | 310 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 311 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 312 | * |[12] |CHEN12 |Analog Input Channel 12 Enable (Convert DAC0 Output Voltage) |
AnnaBridge | 174:b96e65c34a4d | 313 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 314 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 315 | * |[13] |CHEN13 |Analog Input Channel 13 Enable (Convert DAC1 Output Voltage) |
AnnaBridge | 174:b96e65c34a4d | 316 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 317 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 318 | * |[14] |CHEN14 |Analog Input Channel 14 Enable (Convert VTEMP) |
AnnaBridge | 174:b96e65c34a4d | 319 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 320 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 321 | * |[15] |CHEN15 |Analog Input Channel 15 Enable (Convert Int_VREF) |
AnnaBridge | 174:b96e65c34a4d | 322 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 323 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 324 | * |[16] |CHEN16 |Analog Input Channel 16 Enable (Convert AVDD) |
AnnaBridge | 174:b96e65c34a4d | 325 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 326 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 327 | * |[17] |CHEN17 |Analog Input Channel 17 Enable (Convert AVSS) |
AnnaBridge | 174:b96e65c34a4d | 328 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 329 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 330 | */ |
AnnaBridge | 174:b96e65c34a4d | 331 | __IO uint32_t CHEN; |
AnnaBridge | 174:b96e65c34a4d | 332 | |
AnnaBridge | 174:b96e65c34a4d | 333 | /** |
AnnaBridge | 174:b96e65c34a4d | 334 | * CMPR0 |
AnnaBridge | 174:b96e65c34a4d | 335 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 336 | * Offset: 0x50 A/D Compare Register 0 |
AnnaBridge | 174:b96e65c34a4d | 337 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 338 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 339 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 340 | * |[0] |CMPEN |Compare Enable |
AnnaBridge | 174:b96e65c34a4d | 341 | * | | |0 = Compare Disabled. |
AnnaBridge | 174:b96e65c34a4d | 342 | * | | |1 = Compare Enabled. |
AnnaBridge | 174:b96e65c34a4d | 343 | * | | |Set this bit to 1 to enable compare CMPD[11:0] with specified channel conversion result when converted data is loaded into ADC_RESULTx register. |
AnnaBridge | 174:b96e65c34a4d | 344 | * | | |When this bit is set to 1, and CMPMATCNT is 0, the CMPF will be set once the match is hit |
AnnaBridge | 174:b96e65c34a4d | 345 | * |[1] |CMPIE |Compare Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 346 | * | | |0 = Compare function interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 347 | * | | |1 = Compare function interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 348 | * | | |If the compare function is enabled and the compare condition matches the setting of CMPCOND and CMPMATCNT, CMPF bit will be asserted, in the meanwhile, if CMPIE is set to 1, a compare interrupt request is generated. |
AnnaBridge | 174:b96e65c34a4d | 349 | * |[2] |CMPCOND |Compare Condition |
AnnaBridge | 174:b96e65c34a4d | 350 | * | | |0 = Set the compare condition as that when a 12-bit A/D conversion result is less than the 12-bit CMPD (ADCMPRx[27:16]), the internal match counter will increase one. |
AnnaBridge | 174:b96e65c34a4d | 351 | * | | |1 = Set the compare condition as that when a 12-bit A/D conversion result is greater or equal to the 12-bit CMPD (ADCMPRx[27:16]), the internal match counter will increase by one. |
AnnaBridge | 174:b96e65c34a4d | 352 | * | | |Note: When the internal counter reaches the value to (CMPMATCNT +1), the CMPF bit will be set. |
AnnaBridge | 174:b96e65c34a4d | 353 | * |[7:3] |CMPCH |Compare Channel Selection |
AnnaBridge | 174:b96e65c34a4d | 354 | * | | |This field selects the channel whose conversion result is selected to be compared. |
AnnaBridge | 174:b96e65c34a4d | 355 | * |[11:8] |CMPMATCNT |Compare Match Count |
AnnaBridge | 174:b96e65c34a4d | 356 | * | | |When the specified A/D channel analog conversion result matches the compare condition defined by CMPCOND[2], the internal match counter will increase 1. |
AnnaBridge | 174:b96e65c34a4d | 357 | * | | |When the internal counter reaches the value to (CMPMATCNT +1), the CMPF bit will be set. |
AnnaBridge | 174:b96e65c34a4d | 358 | * |[27:16] |CMPD |Comparison Data |
AnnaBridge | 174:b96e65c34a4d | 359 | * | | |The 12 bits data is used to compare with conversion result of specified channel. |
AnnaBridge | 174:b96e65c34a4d | 360 | * | | |Software can use it to monitor the external analog input pin voltage variation in scan mode without imposing a load on software. |
AnnaBridge | 174:b96e65c34a4d | 361 | */ |
AnnaBridge | 174:b96e65c34a4d | 362 | __IO uint32_t CMPR0; |
AnnaBridge | 174:b96e65c34a4d | 363 | |
AnnaBridge | 174:b96e65c34a4d | 364 | /** |
AnnaBridge | 174:b96e65c34a4d | 365 | * CMPR1 |
AnnaBridge | 174:b96e65c34a4d | 366 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 367 | * Offset: 0x54 A/D Compare Register 1 |
AnnaBridge | 174:b96e65c34a4d | 368 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 369 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 370 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 371 | * |[0] |CMPEN |Compare Enable |
AnnaBridge | 174:b96e65c34a4d | 372 | * | | |0 = Compare Disabled. |
AnnaBridge | 174:b96e65c34a4d | 373 | * | | |1 = Compare Enabled. |
AnnaBridge | 174:b96e65c34a4d | 374 | * | | |Set this bit to 1 to enable compare CMPD[11:0] with specified channel conversion result when converted data is loaded into ADC_RESULTx register. |
AnnaBridge | 174:b96e65c34a4d | 375 | * | | |When this bit is set to 1, and CMPMATCNT is 0, the CMPF will be set once the match is hit |
AnnaBridge | 174:b96e65c34a4d | 376 | * |[1] |CMPIE |Compare Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 377 | * | | |0 = Compare function interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 378 | * | | |1 = Compare function interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 379 | * | | |If the compare function is enabled and the compare condition matches the setting of CMPCOND and CMPMATCNT, CMPF bit will be asserted, in the meanwhile, if CMPIE is set to 1, a compare interrupt request is generated. |
AnnaBridge | 174:b96e65c34a4d | 380 | * |[2] |CMPCOND |Compare Condition |
AnnaBridge | 174:b96e65c34a4d | 381 | * | | |0 = Set the compare condition as that when a 12-bit A/D conversion result is less than the 12-bit CMPD (ADCMPRx[27:16]), the internal match counter will increase one. |
AnnaBridge | 174:b96e65c34a4d | 382 | * | | |1 = Set the compare condition as that when a 12-bit A/D conversion result is greater or equal to the 12-bit CMPD (ADCMPRx[27:16]), the internal match counter will increase by one. |
AnnaBridge | 174:b96e65c34a4d | 383 | * | | |Note: When the internal counter reaches the value to (CMPMATCNT +1), the CMPF bit will be set. |
AnnaBridge | 174:b96e65c34a4d | 384 | * |[7:3] |CMPCH |Compare Channel Selection |
AnnaBridge | 174:b96e65c34a4d | 385 | * | | |This field selects the channel whose conversion result is selected to be compared. |
AnnaBridge | 174:b96e65c34a4d | 386 | * |[11:8] |CMPMATCNT |Compare Match Count |
AnnaBridge | 174:b96e65c34a4d | 387 | * | | |When the specified A/D channel analog conversion result matches the compare condition defined by CMPCOND[2], the internal match counter will increase 1. |
AnnaBridge | 174:b96e65c34a4d | 388 | * | | |When the internal counter reaches the value to (CMPMATCNT +1), the CMPF bit will be set. |
AnnaBridge | 174:b96e65c34a4d | 389 | * |[27:16] |CMPD |Comparison Data |
AnnaBridge | 174:b96e65c34a4d | 390 | * | | |The 12 bits data is used to compare with conversion result of specified channel. |
AnnaBridge | 174:b96e65c34a4d | 391 | * | | |Software can use it to monitor the external analog input pin voltage variation in scan mode without imposing a load on software. |
AnnaBridge | 174:b96e65c34a4d | 392 | */ |
AnnaBridge | 174:b96e65c34a4d | 393 | __IO uint32_t CMPR1; |
AnnaBridge | 174:b96e65c34a4d | 394 | |
AnnaBridge | 174:b96e65c34a4d | 395 | /** |
AnnaBridge | 174:b96e65c34a4d | 396 | * SR |
AnnaBridge | 174:b96e65c34a4d | 397 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 398 | * Offset: 0x58 A/D Status Register |
AnnaBridge | 174:b96e65c34a4d | 399 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 400 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 401 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 402 | * |[0] |ADF |A/D Conversion End Flag |
AnnaBridge | 174:b96e65c34a4d | 403 | * | | |A status flag that indicates the end of A/D conversion. |
AnnaBridge | 174:b96e65c34a4d | 404 | * | | |ADF is set to 1 at these two conditions: |
AnnaBridge | 174:b96e65c34a4d | 405 | * | | |When A/D conversion ends in single mode |
AnnaBridge | 174:b96e65c34a4d | 406 | * | | |When A/D conversion ends on all specified channels in scan mode. |
AnnaBridge | 174:b96e65c34a4d | 407 | * | | |This flag can be cleared by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 408 | * |[1] |CMPF0 |Compare Flag |
AnnaBridge | 174:b96e65c34a4d | 409 | * | | |When the selected channel A/D conversion result meets setting condition in ADCMPR0 then this bit is set to 1. |
AnnaBridge | 174:b96e65c34a4d | 410 | * | | |And it is cleared by writing 1 to self. |
AnnaBridge | 174:b96e65c34a4d | 411 | * | | |0 = Conversion result in ADC_RESULTx does not meet ADCMPR0setting. |
AnnaBridge | 174:b96e65c34a4d | 412 | * | | |1 = Conversion result in ADC_RESULTx meets ADCMPR0setting. |
AnnaBridge | 174:b96e65c34a4d | 413 | * | | |This flag can be cleared by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 414 | * | | |Note: When this flag is set, the matching counter will be reset to 0,and continue to count when user write 1 to clear CMPF0 |
AnnaBridge | 174:b96e65c34a4d | 415 | * |[2] |CMPF1 |Compare Flag |
AnnaBridge | 174:b96e65c34a4d | 416 | * | | |When the selected channel A/D conversion result meets setting condition in ADCMPR1 then this bit is set to 1. |
AnnaBridge | 174:b96e65c34a4d | 417 | * | | |And it is cleared by writing 1 to self. |
AnnaBridge | 174:b96e65c34a4d | 418 | * | | |0 = Conversion result in ADC_RESULTx does not meet ADCMPR1 setting. |
AnnaBridge | 174:b96e65c34a4d | 419 | * | | |1 = Conversion result in ADC_RESULTx meets ADCMPR1 setting. |
AnnaBridge | 174:b96e65c34a4d | 420 | * | | |This flag can be cleared by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 421 | * | | |Note: when this flag is set, the matching counter will be reset to 0,and continue to count when user write 1 to clear CMPF1 |
AnnaBridge | 174:b96e65c34a4d | 422 | * |[3] |BUSY |BUSY/IDLE |
AnnaBridge | 174:b96e65c34a4d | 423 | * | | |0 = A/D converter is in idle state. |
AnnaBridge | 174:b96e65c34a4d | 424 | * | | |1 = A/D converter is busy at conversion. |
AnnaBridge | 174:b96e65c34a4d | 425 | * | | |This bit is a mirror of ADST bit in ADCR. That is to say if ADST = 1,then BUSY is 1 and vice versa. |
AnnaBridge | 174:b96e65c34a4d | 426 | * | | |It is read only. |
AnnaBridge | 174:b96e65c34a4d | 427 | * |[8:4] |CHANNEL |Current Conversion Channel |
AnnaBridge | 174:b96e65c34a4d | 428 | * | | |This filed reflects current conversion channel when BUSY=1. |
AnnaBridge | 174:b96e65c34a4d | 429 | * | | |When BUSY=0, it shows the next channel to be converted. |
AnnaBridge | 174:b96e65c34a4d | 430 | * | | |It is read only. |
AnnaBridge | 174:b96e65c34a4d | 431 | * |[16] |INITRDY |ADC Power-Up Sequence Completed |
AnnaBridge | 174:b96e65c34a4d | 432 | * | | |0 = ADC not powered up after system reset. |
AnnaBridge | 174:b96e65c34a4d | 433 | * | | |1 = ADC has been powered up since the last system reset. |
AnnaBridge | 174:b96e65c34a4d | 434 | * | | |Note: This bit will be set after system reset occurred and automatically cleared by power-up event. |
AnnaBridge | 174:b96e65c34a4d | 435 | */ |
AnnaBridge | 174:b96e65c34a4d | 436 | __IO uint32_t SR; |
AnnaBridge | 174:b96e65c34a4d | 437 | uint32_t RESERVE0[1]; |
AnnaBridge | 174:b96e65c34a4d | 438 | |
AnnaBridge | 174:b96e65c34a4d | 439 | |
AnnaBridge | 174:b96e65c34a4d | 440 | /** |
AnnaBridge | 174:b96e65c34a4d | 441 | * PDMA |
AnnaBridge | 174:b96e65c34a4d | 442 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 443 | * Offset: 0x60 A/D PDMA current transfer data Register |
AnnaBridge | 174:b96e65c34a4d | 444 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 445 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 446 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 447 | * |[11:0] |AD_PDMA |ADC PDMA Current Transfer Data Register |
AnnaBridge | 174:b96e65c34a4d | 448 | * | | |When PDMA transferring, read this register can monitor current PDMA transfer data. |
AnnaBridge | 174:b96e65c34a4d | 449 | * | | |This is a read only register. |
AnnaBridge | 174:b96e65c34a4d | 450 | */ |
AnnaBridge | 174:b96e65c34a4d | 451 | __I uint32_t PDMA; |
AnnaBridge | 174:b96e65c34a4d | 452 | |
AnnaBridge | 174:b96e65c34a4d | 453 | /** |
AnnaBridge | 174:b96e65c34a4d | 454 | * PWRCTL |
AnnaBridge | 174:b96e65c34a4d | 455 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 456 | * Offset: 0x64 ADC Power Management Register |
AnnaBridge | 174:b96e65c34a4d | 457 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 458 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 459 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 460 | * |[0] |PWUPRDY |ADC Power-Up Sequence Completed And Ready For Conversion |
AnnaBridge | 174:b96e65c34a4d | 461 | * | | |0 = ADC is not ready for conversion; may be in power down state or in the progress of power up. |
AnnaBridge | 174:b96e65c34a4d | 462 | * | | |1 = ADC is ready for conversion. |
AnnaBridge | 174:b96e65c34a4d | 463 | * |[1] |PWDCALEN |Power Up Calibration Function Enable |
AnnaBridge | 174:b96e65c34a4d | 464 | * | | |1 = Power up with calibration. |
AnnaBridge | 174:b96e65c34a4d | 465 | * | | |0 = Power up without calibration. |
AnnaBridge | 174:b96e65c34a4d | 466 | * | | |Note: This bit work together with CALFBKSEL set 1 |
AnnaBridge | 174:b96e65c34a4d | 467 | * |[3:2] |PWDMOD |Power-Down Mode |
AnnaBridge | 174:b96e65c34a4d | 468 | * | | |00 = Power down |
AnnaBridge | 174:b96e65c34a4d | 469 | * | | |01 = Reserved |
AnnaBridge | 174:b96e65c34a4d | 470 | * | | |10 = Standby mode |
AnnaBridge | 174:b96e65c34a4d | 471 | * | | |11 = Reserved |
AnnaBridge | 174:b96e65c34a4d | 472 | * | | |Note: Different PWDMOD has different power down/up sequence, in order to avoid ADC powering up with wrong sequence; user must keep PWMOD consistent each time in powe down and power up |
AnnaBridge | 174:b96e65c34a4d | 473 | */ |
AnnaBridge | 174:b96e65c34a4d | 474 | __IO uint32_t PWRCTL; |
AnnaBridge | 174:b96e65c34a4d | 475 | |
AnnaBridge | 174:b96e65c34a4d | 476 | /** |
AnnaBridge | 174:b96e65c34a4d | 477 | * CALCTL |
AnnaBridge | 174:b96e65c34a4d | 478 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 479 | * Offset: 0x68 ADC Calibration Control Register |
AnnaBridge | 174:b96e65c34a4d | 480 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 481 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 482 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 483 | * |[0] |CALEN |Calibration Function Enable |
AnnaBridge | 174:b96e65c34a4d | 484 | * | | |Enable this bit to turn on the calibration function block. |
AnnaBridge | 174:b96e65c34a4d | 485 | * | | |0 = Disable |
AnnaBridge | 174:b96e65c34a4d | 486 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 487 | * |[1] |CALSTART |Calibration Functional Block Start |
AnnaBridge | 174:b96e65c34a4d | 488 | * | | |0 = Stops calibration functional block. |
AnnaBridge | 174:b96e65c34a4d | 489 | * | | |1 = Starts calibration functional block. |
AnnaBridge | 174:b96e65c34a4d | 490 | * | | |Note: This bit is set by SW and clear by HW; don't write 1 to this bit while CALEN = 0. |
AnnaBridge | 174:b96e65c34a4d | 491 | * |[2] |CALDONE |Calibrate Functional Block Complete |
AnnaBridge | 174:b96e65c34a4d | 492 | * | | |0 = Not yet. |
AnnaBridge | 174:b96e65c34a4d | 493 | * | | |1 = Selected functional block complete. |
AnnaBridge | 174:b96e65c34a4d | 494 | * |[3] |CALSEL |Select Calibration Functional Block |
AnnaBridge | 174:b96e65c34a4d | 495 | * | | |0 = Load calibration functional block. |
AnnaBridge | 174:b96e65c34a4d | 496 | * | | |1 = Calibration functional block. |
AnnaBridge | 174:b96e65c34a4d | 497 | */ |
AnnaBridge | 174:b96e65c34a4d | 498 | __IO uint32_t CALCTL; |
AnnaBridge | 174:b96e65c34a4d | 499 | |
AnnaBridge | 174:b96e65c34a4d | 500 | /** |
AnnaBridge | 174:b96e65c34a4d | 501 | * CALWORD |
AnnaBridge | 174:b96e65c34a4d | 502 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 503 | * Offset: 0x6C A/D calibration load word register |
AnnaBridge | 174:b96e65c34a4d | 504 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 505 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 506 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 507 | * |[6:0] |CALWORD |Calibration Word Register |
AnnaBridge | 174:b96e65c34a4d | 508 | * | | |Write to this register with the previous calibration word before load calibration action |
AnnaBridge | 174:b96e65c34a4d | 509 | * | | |Read this register after calibration done |
AnnaBridge | 174:b96e65c34a4d | 510 | * | | |Note: The calibration block contains two parts "CALIBRATION" and "LOAD CALIBRATION"; if the calibration block is config as "CALIBRATION"; then this register represent the result of calibration when calibration is completed; if config as "LOAD CALIBRATION" ; config this register before loading calibration action, after loading calibration complete, the loaded calibration word will apply to the ADC;while in loading calibration function the loaded value will not be equal to the original CALWORD until calibration is done. |
AnnaBridge | 174:b96e65c34a4d | 511 | */ |
AnnaBridge | 174:b96e65c34a4d | 512 | __IO uint32_t CALWORD; |
AnnaBridge | 174:b96e65c34a4d | 513 | |
AnnaBridge | 174:b96e65c34a4d | 514 | /** |
AnnaBridge | 174:b96e65c34a4d | 515 | * SMPLCNT0 |
AnnaBridge | 174:b96e65c34a4d | 516 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 517 | * Offset: 0x70 ADC Channel Sampling Time Counter Register Group 0 |
AnnaBridge | 174:b96e65c34a4d | 518 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 519 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 520 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 521 | * |[3:0] |CH0SAMPCNT|Channel 0 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 522 | * | | |0000 = 0 ADC clock |
AnnaBridge | 174:b96e65c34a4d | 523 | * | | |0001 = 1 ADC clock |
AnnaBridge | 174:b96e65c34a4d | 524 | * | | |0010 = 2 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 525 | * | | |0011 = 4 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 526 | * | | |0100 = 8 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 527 | * | | |0101 = 16 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 528 | * | | |0110 = 32 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 529 | * | | |0111 = 64 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 530 | * | | |1000 = 128 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 531 | * | | |1001 = 256 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 532 | * | | |1010 = 512 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 533 | * | | |Others = 1024 ADC clocks |
AnnaBridge | 174:b96e65c34a4d | 534 | * |[7:4] |CH1SAMPCNT|Channel 1 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 535 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 536 | * |[11:8] |CH2SAMPCNT|Channel 2 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 537 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 538 | * |[15:12] |CH3SAMPCNT|Channel 3 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 539 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 540 | * |[19:16] |CH4SAMPCNT|Channel 4 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 541 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 542 | * |[23:20] |CH5SAMPCNT|Channel 5 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 543 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 544 | * |[27:24] |CH6SAMPCNT|Channel 6 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 545 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 546 | * |[31:28] |CH7SAMPCNT|Channel 7 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 547 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 548 | */ |
AnnaBridge | 174:b96e65c34a4d | 549 | __IO uint32_t SMPLCNT0; |
AnnaBridge | 174:b96e65c34a4d | 550 | |
AnnaBridge | 174:b96e65c34a4d | 551 | /** |
AnnaBridge | 174:b96e65c34a4d | 552 | * SMPLCNT1 |
AnnaBridge | 174:b96e65c34a4d | 553 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 554 | * Offset: 0x74 ADC Channel Sampling Time Counter Register Group 1 |
AnnaBridge | 174:b96e65c34a4d | 555 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 556 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 557 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 558 | * |[3:0] |CH8SAMPCNT|Channel 8 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 559 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 560 | * |[7:4] |CH9SAMPCNT|Channel 9 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 561 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 562 | * |[11:8] |CH10SAMPCNT|Channel 10 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 563 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 564 | * |[15:12] |CH11SAMPCNT|Channel 11 Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 565 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 566 | * |[19:16] |INTCHSAMPCNT|Internal Channel (VTEMP, AVDD, AVSS, Int_VREF, DAC0, DAC1) Sampling Counter |
AnnaBridge | 174:b96e65c34a4d | 567 | * | | |The same as Channel 0 sampling counter table. |
AnnaBridge | 174:b96e65c34a4d | 568 | */ |
AnnaBridge | 174:b96e65c34a4d | 569 | __IO uint32_t SMPLCNT1; |
AnnaBridge | 174:b96e65c34a4d | 570 | |
AnnaBridge | 174:b96e65c34a4d | 571 | } ADC_T; |
AnnaBridge | 174:b96e65c34a4d | 572 | |
AnnaBridge | 174:b96e65c34a4d | 573 | /** |
AnnaBridge | 174:b96e65c34a4d | 574 | @addtogroup ADC_CONST ADC Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 575 | Constant Definitions for ADC Controller |
AnnaBridge | 174:b96e65c34a4d | 576 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 577 | #define ADC_RESULT_RSLT_Pos (0) /*!< ADC_T::RESULT: RSLT Position */ |
AnnaBridge | 174:b96e65c34a4d | 578 | #define ADC_RESULT_RSLT_Msk (0xffful << ADC_RESULT_RSLT_Pos) /*!< ADC_T::RESULT: RSLT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 579 | |
AnnaBridge | 174:b96e65c34a4d | 580 | #define ADC_RESULT_VALID_Pos (16) /*!< ADC_T::RESULT: VALID Position */ |
AnnaBridge | 174:b96e65c34a4d | 581 | #define ADC_RESULT_VALID_Msk (0x1ul << ADC_RESULT_VALID_Pos) /*!< ADC_T::RESULT: VALID Mask */ |
AnnaBridge | 174:b96e65c34a4d | 582 | |
AnnaBridge | 174:b96e65c34a4d | 583 | #define ADC_RESULT_OVERRUN_Pos (17) /*!< ADC_T::RESULT: OVERRUN Position */ |
AnnaBridge | 174:b96e65c34a4d | 584 | #define ADC_RESULT_OVERRUN_Msk (0x1ul << ADC_RESULT_OVERRUN_Pos) /*!< ADC_T::RESULT: OVERRUN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 585 | |
AnnaBridge | 174:b96e65c34a4d | 586 | #define ADC_CR_ADEN_Pos (0) /*!< ADC_T::CR: ADEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 587 | #define ADC_CR_ADEN_Msk (0x1ul << ADC_CR_ADEN_Pos) /*!< ADC_T::CR: ADEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 588 | |
AnnaBridge | 174:b96e65c34a4d | 589 | #define ADC_CR_ADIE_Pos (1) /*!< ADC_T::CR: ADIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 590 | #define ADC_CR_ADIE_Msk (0x1ul << ADC_CR_ADIE_Pos) /*!< ADC_T::CR: ADIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 591 | |
AnnaBridge | 174:b96e65c34a4d | 592 | #define ADC_CR_ADMD_Pos (2) /*!< ADC_T::CR: ADMD Position */ |
AnnaBridge | 174:b96e65c34a4d | 593 | #define ADC_CR_ADMD_Msk (0x3ul << ADC_CR_ADMD_Pos) /*!< ADC_T::CR: ADMD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 594 | |
AnnaBridge | 174:b96e65c34a4d | 595 | #define ADC_CR_TRGS_Pos (4) /*!< ADC_T::CR: TRGS Position */ |
AnnaBridge | 174:b96e65c34a4d | 596 | #define ADC_CR_TRGS_Msk (0x3ul << ADC_CR_TRGS_Pos) /*!< ADC_T::CR: TRGS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 597 | |
AnnaBridge | 174:b96e65c34a4d | 598 | #define ADC_CR_TRGCOND_Pos (6) /*!< ADC_T::CR: TRGCOND Position */ |
AnnaBridge | 174:b96e65c34a4d | 599 | #define ADC_CR_TRGCOND_Msk (0x3ul << ADC_CR_TRGCOND_Pos) /*!< ADC_T::CR: TRGCOND Mask */ |
AnnaBridge | 174:b96e65c34a4d | 600 | |
AnnaBridge | 174:b96e65c34a4d | 601 | #define ADC_CR_TRGE_Pos (8) /*!< ADC_T::CR: TRGE Position */ |
AnnaBridge | 174:b96e65c34a4d | 602 | #define ADC_CR_TRGE_Msk (0x1ul << ADC_CR_TRGE_Pos) /*!< ADC_T::CR: TRGE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 603 | |
AnnaBridge | 174:b96e65c34a4d | 604 | #define ADC_CR_PTEN_Pos (9) /*!< ADC_T::CR: PTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 605 | #define ADC_CR_PTEN_Msk (0x1ul << ADC_CR_PTEN_Pos) /*!< ADC_T::CR: PTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 606 | |
AnnaBridge | 174:b96e65c34a4d | 607 | #define ADC_CR_DIFF_Pos (10) /*!< ADC_T::CR: DIFF Position */ |
AnnaBridge | 174:b96e65c34a4d | 608 | #define ADC_CR_DIFF_Msk (0x1ul << ADC_CR_DIFF_Pos) /*!< ADC_T::CR: DIFF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 609 | |
AnnaBridge | 174:b96e65c34a4d | 610 | #define ADC_CR_ADST_Pos (11) /*!< ADC_T::CR: ADST Position */ |
AnnaBridge | 174:b96e65c34a4d | 611 | #define ADC_CR_ADST_Msk (0x1ul << ADC_CR_ADST_Pos) /*!< ADC_T::CR: ADST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 612 | |
AnnaBridge | 174:b96e65c34a4d | 613 | #define ADC_CR_TMSEL_Pos (12) /*!< ADC_T::CR: TMSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 614 | #define ADC_CR_TMSEL_Msk (0x3ul << ADC_CR_TMSEL_Pos) /*!< ADC_T::CR: TMSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 615 | |
AnnaBridge | 174:b96e65c34a4d | 616 | #define ADC_CR_TMTRGMOD_Pos (15) /*!< ADC_T::CR: TMTRGMOD Position */ |
AnnaBridge | 174:b96e65c34a4d | 617 | #define ADC_CR_TMTRGMOD_Msk (0x1ul << ADC_CR_TMTRGMOD_Pos) /*!< ADC_T::CR: TMTRGMOD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 618 | |
AnnaBridge | 174:b96e65c34a4d | 619 | #define ADC_CR_REFSEL_Pos (16) /*!< ADC_T::CR: REFSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 620 | #define ADC_CR_REFSEL_Msk (0x3ul << ADC_CR_REFSEL_Pos) /*!< ADC_T::CR: REFSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 621 | |
AnnaBridge | 174:b96e65c34a4d | 622 | #define ADC_CR_RESSEL_Pos (18) /*!< ADC_T::CR: RESSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 623 | #define ADC_CR_RESSEL_Msk (0x3ul << ADC_CR_RESSEL_Pos) /*!< ADC_T::CR: RESSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 624 | |
AnnaBridge | 174:b96e65c34a4d | 625 | #define ADC_CR_TMPDMACNT_Pos (24) /*!< ADC_T::CR: TMPDMACNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 626 | #define ADC_CR_TMPDMACNT_Msk (0xfful << ADC_CR_TMPDMACNT_Pos) /*!< ADC_T::CR: TMPDMACNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 627 | |
AnnaBridge | 174:b96e65c34a4d | 628 | #define ADC_CHEN_CHEN0_Pos (0) /*!< ADC_T::CHEN: CHEN0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 629 | #define ADC_CHEN_CHEN0_Msk (0x1ul << ADC_CHEN_CHEN0_Pos) /*!< ADC_T::CHEN: CHEN0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 630 | |
AnnaBridge | 174:b96e65c34a4d | 631 | #define ADC_CMPR_CMPEN_Pos (0) /*!< ADC_T::CMPR: CMPEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 632 | #define ADC_CMPR_CMPEN_Msk (0x1ul << ADC_CMPR_CMPEN_Pos) /*!< ADC_T::CMPR: CMPEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 633 | |
AnnaBridge | 174:b96e65c34a4d | 634 | #define ADC_CMPR_CMPIE_Pos (1) /*!< ADC_T::CMPR: CMPIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 635 | #define ADC_CMPR_CMPIE_Msk (0x1ul << ADC_CMPR_CMPIE_Pos) /*!< ADC_T::CMPR: CMPIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 636 | |
AnnaBridge | 174:b96e65c34a4d | 637 | #define ADC_CMPR_CMPCOND_Pos (2) /*!< ADC_T::CMPR: CMPCOND Position */ |
AnnaBridge | 174:b96e65c34a4d | 638 | #define ADC_CMPR_CMPCOND_Msk (0x1ul << ADC_CMPR_CMPCOND_Pos) /*!< ADC_T::CMPR: CMPCOND Mask */ |
AnnaBridge | 174:b96e65c34a4d | 639 | |
AnnaBridge | 174:b96e65c34a4d | 640 | #define ADC_CMPR_CMPCH_Pos (3) /*!< ADC_T::CMPR: CMPCH Position */ |
AnnaBridge | 174:b96e65c34a4d | 641 | #define ADC_CMPR_CMPCH_Msk (0x1ful << ADC_CMPR_CMPCH_Pos) /*!< ADC_T::CMPR: CMPCH Mask */ |
AnnaBridge | 174:b96e65c34a4d | 642 | |
AnnaBridge | 174:b96e65c34a4d | 643 | #define ADC_CMPR_CMPMATCNT_Pos (8) /*!< ADC_T::CMPR: CMPMATCNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 644 | #define ADC_CMPR_CMPMATCNT_Msk (0xful << ADC_CMPR_CMPMATCNT_Pos) /*!< ADC_T::CMPR: CMPMATCNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 645 | |
AnnaBridge | 174:b96e65c34a4d | 646 | #define ADC_CMPR_CMPD_Pos (16) /*!< ADC_T::CMPR: CMPD Position */ |
AnnaBridge | 174:b96e65c34a4d | 647 | #define ADC_CMPR_CMPD_Msk (0xffful << ADC_CMPR_CMPD_Pos) /*!< ADC_T::CMPR: CMPD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 648 | |
AnnaBridge | 174:b96e65c34a4d | 649 | #define ADC_SR_ADF_Pos (0) /*!< ADC_T::SR: ADF Position */ |
AnnaBridge | 174:b96e65c34a4d | 650 | #define ADC_SR_ADF_Msk (0x1ul << ADC_SR_ADF_Pos) /*!< ADC_T::SR: ADF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 651 | |
AnnaBridge | 174:b96e65c34a4d | 652 | #define ADC_SR_CMPF0_Pos (1) /*!< ADC_T::SR: CMPF0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 653 | #define ADC_SR_CMPF0_Msk (0x1ul << ADC_SR_CMPF0_Pos) /*!< ADC_T::SR: CMPF0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 654 | |
AnnaBridge | 174:b96e65c34a4d | 655 | #define ADC_SR_CMPF1_Pos (2) /*!< ADC_T::SR: CMPF1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 656 | #define ADC_SR_CMPF1_Msk (0x1ul << ADC_SR_CMPF1_Pos) /*!< ADC_T::SR: CMPF1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 657 | |
AnnaBridge | 174:b96e65c34a4d | 658 | #define ADC_SR_BUSY_Pos (3) /*!< ADC_T::SR: BUSY Position */ |
AnnaBridge | 174:b96e65c34a4d | 659 | #define ADC_SR_BUSY_Msk (0x1ul << ADC_SR_BUSY_Pos) /*!< ADC_T::SR: BUSY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 660 | |
AnnaBridge | 174:b96e65c34a4d | 661 | #define ADC_SR_CHANNEL_Pos (4) /*!< ADC_T::SR: CHANNEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 662 | #define ADC_SR_CHANNEL_Msk (0x1ful << ADC_SR_CHANNEL_Pos) /*!< ADC_T::SR: CHANNEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 663 | |
AnnaBridge | 174:b96e65c34a4d | 664 | #define ADC_SR_INITRDY_Pos (16) /*!< ADC_T::SR: INITRDY Position */ |
AnnaBridge | 174:b96e65c34a4d | 665 | #define ADC_SR_INITRDY_Msk (0x1ul << ADC_SR_INITRDY_Pos) /*!< ADC_T::SR: INITRDY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 666 | |
AnnaBridge | 174:b96e65c34a4d | 667 | #define ADC_PDMA_AD_PDMA_Pos (0) /*!< ADC_T::PDMA: AD_PDMA Position */ |
AnnaBridge | 174:b96e65c34a4d | 668 | #define ADC_PDMA_AD_PDMA_Msk (0xffful << ADC_PDMA_AD_PDMA_Pos) /*!< ADC_T::PDMA: AD_PDMA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 669 | |
AnnaBridge | 174:b96e65c34a4d | 670 | #define ADC_PWRCTL_PWUPRDY_Pos (0) /*!< ADC_T::PWRCTL: PWUPRDY Position */ |
AnnaBridge | 174:b96e65c34a4d | 671 | #define ADC_PWRCTL_PWUPRDY_Msk (0x1ul << ADC_PWRCTL_PWUPRDY_Pos) /*!< ADC_T::PWRCTL: PWUPRDY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 672 | |
AnnaBridge | 174:b96e65c34a4d | 673 | #define ADC_PWRCTL_PWDCALEN_Pos (1) /*!< ADC_T::PWRCTL: PWDCALEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 674 | #define ADC_PWRCTL_PWDCALEN_Msk (0x1ul << ADC_PWRCTL_PWDCALEN_Pos) /*!< ADC_T::PWRCTL: PWDCALEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 675 | |
AnnaBridge | 174:b96e65c34a4d | 676 | #define ADC_PWRCTL_PWDMOD_Pos (2) /*!< ADC_T::PWRCTL: PWDMOD Position */ |
AnnaBridge | 174:b96e65c34a4d | 677 | #define ADC_PWRCTL_PWDMOD_Msk (0x3ul << ADC_PWRCTL_PWDMOD_Pos) /*!< ADC_T::PWRCTL: PWDMOD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 678 | |
AnnaBridge | 174:b96e65c34a4d | 679 | #define ADC_CALCTL_CALEN_Pos (0) /*!< ADC_T::CALCTL: CALEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 680 | #define ADC_CALCTL_CALEN_Msk (0x1ul << ADC_CALCTL_CALEN_Pos) /*!< ADC_T::CALCTL: CALEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 681 | |
AnnaBridge | 174:b96e65c34a4d | 682 | #define ADC_CALCTL_CALSTART_Pos (1) /*!< ADC_T::CALCTL: CALSTART Position */ |
AnnaBridge | 174:b96e65c34a4d | 683 | #define ADC_CALCTL_CALSTART_Msk (0x1ul << ADC_CALCTL_CALSTART_Pos) /*!< ADC_T::CALCTL: CALSTART Mask */ |
AnnaBridge | 174:b96e65c34a4d | 684 | |
AnnaBridge | 174:b96e65c34a4d | 685 | #define ADC_CALCTL_CALDONE_Pos (2) /*!< ADC_T::CALCTL: CALDONE Position */ |
AnnaBridge | 174:b96e65c34a4d | 686 | #define ADC_CALCTL_CALDONE_Msk (0x1ul << ADC_CALCTL_CALDONE_Pos) /*!< ADC_T::CALCTL: CALDONE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 687 | |
AnnaBridge | 174:b96e65c34a4d | 688 | #define ADC_CALCTL_CALSEL_Pos (3) /*!< ADC_T::CALCTL: CALSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 689 | #define ADC_CALCTL_CALSEL_Msk (0x1ul << ADC_CALCTL_CALSEL_Pos) /*!< ADC_T::CALCTL: CALSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 690 | |
AnnaBridge | 174:b96e65c34a4d | 691 | #define ADC_CALWORD_CALWORD_Pos (0) /*!< ADC_T::CALWORD: CALWORD Position */ |
AnnaBridge | 174:b96e65c34a4d | 692 | #define ADC_CALWORD_CALWORD_Msk (0x7ful << ADC_CALWORD_CALWORD_Pos) /*!< ADC_T::CALWORD: CALWORD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 693 | |
AnnaBridge | 174:b96e65c34a4d | 694 | #define ADC_SMPLCNT0_CH0SAMPCNT_Pos (0) /*!< ADC_T::SMPLCNT0: CH0SAMPCNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 695 | #define ADC_SMPLCNT0_CH0SAMPCNT_Msk (0xful << ADC_SMPLCNT0_CH0SAMPCNT_Pos) /*!< ADC_T::SMPLCNT0: CH0SAMPCNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 696 | |
AnnaBridge | 174:b96e65c34a4d | 697 | #define ADC_SMPLCNT1_CH8SAMPCNT_Pos (0) /*!< ADC_T::SMPLCNT1: CH8SAMPCNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 698 | #define ADC_SMPLCNT1_CH8SAMPCNT_Msk (0xful << ADC_SMPLCNT1_CH8SAMPCNT_Pos) /*!< ADC_T::SMPLCNT1: CH8SAMPCNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 699 | |
AnnaBridge | 174:b96e65c34a4d | 700 | #define ADC_SMPLCNT1_INTCHSAMPCNT_Pos (16) /*!< ADC_T::SMPLCNT1: INTCHSAMPCNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 701 | #define ADC_SMPLCNT1_INTCHSAMPCNT_Msk (0xful << ADC_SMPLCNT1_INTCHSAMPCNT_Pos) /*!< ADC_T::SMPLCNT1: INTCHSAMPCNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 702 | |
AnnaBridge | 174:b96e65c34a4d | 703 | /**@}*/ /* ADC_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 704 | /**@}*/ /* end of ADC register group */ |
AnnaBridge | 174:b96e65c34a4d | 705 | |
AnnaBridge | 174:b96e65c34a4d | 706 | |
AnnaBridge | 174:b96e65c34a4d | 707 | /*---------------------- System Clock Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 708 | /** |
AnnaBridge | 174:b96e65c34a4d | 709 | @addtogroup CLK System Clock Controller(CLK) |
AnnaBridge | 174:b96e65c34a4d | 710 | Memory Mapped Structure for CLK Controller |
AnnaBridge | 174:b96e65c34a4d | 711 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 712 | |
AnnaBridge | 174:b96e65c34a4d | 713 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 714 | |
AnnaBridge | 174:b96e65c34a4d | 715 | |
AnnaBridge | 174:b96e65c34a4d | 716 | /** |
AnnaBridge | 174:b96e65c34a4d | 717 | * PWRCTL |
AnnaBridge | 174:b96e65c34a4d | 718 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 719 | * Offset: 0x00 System Power Down Control Register |
AnnaBridge | 174:b96e65c34a4d | 720 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 721 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 722 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 723 | * |[0] |HXT_EN |HXT Control |
AnnaBridge | 174:b96e65c34a4d | 724 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 725 | * | | |The bit default value is set by flash controller user configuration register config0 [26]. |
AnnaBridge | 174:b96e65c34a4d | 726 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 727 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 728 | * | | |HXT is disabled by default. |
AnnaBridge | 174:b96e65c34a4d | 729 | * |[1] |LXT_EN |LXT Control |
AnnaBridge | 174:b96e65c34a4d | 730 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 731 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 732 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 733 | * | | |LXT is disabled by default. |
AnnaBridge | 174:b96e65c34a4d | 734 | * |[2] |HIRC_EN |HIRC Control |
AnnaBridge | 174:b96e65c34a4d | 735 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 736 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 737 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 738 | * | | |HIRC is enabled by default. |
AnnaBridge | 174:b96e65c34a4d | 739 | * |[3] |LIRC_EN |LIRC Control |
AnnaBridge | 174:b96e65c34a4d | 740 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 741 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 742 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 743 | * | | |LIRC is enabled by default. |
AnnaBridge | 174:b96e65c34a4d | 744 | * |[4] |WK_DLY |Wake-Up Delay Counter Enable |
AnnaBridge | 174:b96e65c34a4d | 745 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 746 | * | | |When chip wakes up from Power-down mode, the clock control will delay 4096 clock cycles to wait HXT stable or 16 clock cycles to wait HIRC stable. |
AnnaBridge | 174:b96e65c34a4d | 747 | * | | |0 = Delay clock cycle Disabled. |
AnnaBridge | 174:b96e65c34a4d | 748 | * | | |1 = Delay clock cycle Enabled. |
AnnaBridge | 174:b96e65c34a4d | 749 | * |[5] |PD_WK_IE |Power-Down Mode Wake-Up Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 750 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 751 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 752 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 753 | * | | |PD_WK_INT will be set if both PD_WK_IS and PD_WK_IE are high. |
AnnaBridge | 174:b96e65c34a4d | 754 | * |[6] |PD_EN |Chip Power-Down Mode Enable Bit |
AnnaBridge | 174:b96e65c34a4d | 755 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 756 | * | | |When CPU sets this bit, the chip power down is enabled and chip will not enter Power-down mode until CPU sleep mode is also active |
AnnaBridge | 174:b96e65c34a4d | 757 | * | | |When chip wakes up from Power-down mode, this bit will be auto cleared. |
AnnaBridge | 174:b96e65c34a4d | 758 | * | | |When chip is in Power-down mode, the LDO, HXT and HIRC will be disabled, but LXT and LIRC are not controlled by Power-down mode. |
AnnaBridge | 174:b96e65c34a4d | 759 | * | | |When power down, the PLL and system clock (CPU, HCLKx and PCLKx) are also disabled no matter the Clock Source selection. |
AnnaBridge | 174:b96e65c34a4d | 760 | * | | |Peripheral clocks are not controlled by this bit, if peripheral Clock Source is from LXT or LIRC. |
AnnaBridge | 174:b96e65c34a4d | 761 | * | | |In Power-down mode, flash macro power is ON. |
AnnaBridge | 174:b96e65c34a4d | 762 | * | | |0 = Chip operated in Normal mode. |
AnnaBridge | 174:b96e65c34a4d | 763 | * | | |1 = Chip power down Enabled. |
AnnaBridge | 174:b96e65c34a4d | 764 | * |[8] |HXT_SELXT |HXT SELXT |
AnnaBridge | 174:b96e65c34a4d | 765 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 766 | * | | |0 = High frequency crystal loop back path Disabled. It is used for external oscillator. |
AnnaBridge | 174:b96e65c34a4d | 767 | * | | |1 = High frequency crystal loop back path Enabled. It is used for external crystal. |
AnnaBridge | 174:b96e65c34a4d | 768 | * |[9] |HXT_GAIN |HXT Gain Control Bit |
AnnaBridge | 174:b96e65c34a4d | 769 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 770 | * | | |Gain control is used to enlarge the gain of crystal to make sure crystal wok normally. |
AnnaBridge | 174:b96e65c34a4d | 771 | * | | |If gain control is enabled, crystal will consume more power than gain control off. |
AnnaBridge | 174:b96e65c34a4d | 772 | * | | |0 = Gain control Disabled. It means HXT gain is always high. |
AnnaBridge | 174:b96e65c34a4d | 773 | * | | |For 16MHz to 24MHz crystal. |
AnnaBridge | 174:b96e65c34a4d | 774 | * | | |1 = Gain control Enabled. HXT gain will be high lasting 2ms then low. This is for power saving. |
AnnaBridge | 174:b96e65c34a4d | 775 | * | | |For 4MHz to 16MHz crystal. |
AnnaBridge | 174:b96e65c34a4d | 776 | * |[10] |LXT_SCNT |LXT Stable Time Control |
AnnaBridge | 174:b96e65c34a4d | 777 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 778 | * | | |0 = Delay 4096 LXT before LXT output. |
AnnaBridge | 174:b96e65c34a4d | 779 | * | | |1 = Delay 8192 LXT before LXT output. |
AnnaBridge | 174:b96e65c34a4d | 780 | * |[12:11] |HXT_HF_ST |HXT Frequency Selection |
AnnaBridge | 174:b96e65c34a4d | 781 | * | | |Set this bit to meet HXT frequency selection (Recommended) |
AnnaBridge | 174:b96e65c34a4d | 782 | * | | |00 = HXT frequency is from 4 MHz to 12 MHz. |
AnnaBridge | 174:b96e65c34a4d | 783 | * | | |01 = HXT frequency is from 12 MHz to 16 MHz. |
AnnaBridge | 174:b96e65c34a4d | 784 | * | | |10 = HXT frequency is from 16 MHz to 24 MHz. |
AnnaBridge | 174:b96e65c34a4d | 785 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 786 | */ |
AnnaBridge | 174:b96e65c34a4d | 787 | __IO uint32_t PWRCTL; |
AnnaBridge | 174:b96e65c34a4d | 788 | |
AnnaBridge | 174:b96e65c34a4d | 789 | /** |
AnnaBridge | 174:b96e65c34a4d | 790 | * AHBCLK |
AnnaBridge | 174:b96e65c34a4d | 791 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 792 | * Offset: 0x04 AHB Devices Clock Enable Control Register |
AnnaBridge | 174:b96e65c34a4d | 793 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 794 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 795 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 796 | * |[0] |GPIO_EN |GPIO Controller Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 797 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 798 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 799 | * |[1] |DMA_EN |DMA Controller Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 800 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 801 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 802 | * |[2] |ISP_EN |Flash ISP Controller Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 803 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 804 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 805 | * |[3] |EBI_EN |EBI Controller Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 806 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 807 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 808 | * |[4] |SRAM_EN |SRAM Controller Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 809 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 810 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 811 | * |[5] |TICK_EN |System Tick Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 812 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 813 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 814 | */ |
AnnaBridge | 174:b96e65c34a4d | 815 | __IO uint32_t AHBCLK; |
AnnaBridge | 174:b96e65c34a4d | 816 | |
AnnaBridge | 174:b96e65c34a4d | 817 | /** |
AnnaBridge | 174:b96e65c34a4d | 818 | * APBCLK |
AnnaBridge | 174:b96e65c34a4d | 819 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 820 | * Offset: 0x08 APB Devices Clock Enable Control Register |
AnnaBridge | 174:b96e65c34a4d | 821 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 822 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 823 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 824 | * |[0] |WDT_EN |Watchdog Timer Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 825 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 826 | * | | |This bit is used to control the WDT APB clock only, The WDT engine Clock Source is from LIRC. |
AnnaBridge | 174:b96e65c34a4d | 827 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 828 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 829 | * |[1] |RTC_EN |Real-Time-Clock Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 830 | * | | |This bit is used to control the RTC APB clock only, The RTC engine Clock Source is from LXT. |
AnnaBridge | 174:b96e65c34a4d | 831 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 832 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 833 | * |[2] |TMR0_EN |Timer0 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 834 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 835 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 836 | * |[3] |TMR1_EN |Timer1 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 837 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 838 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 839 | * |[4] |TMR2_EN |Timer2 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 840 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 841 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 842 | * |[5] |TMR3_EN |Timer3 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 843 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 844 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 845 | * |[6] |FDIV_EN |Frequency Divider Output Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 846 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 847 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 848 | * |[7] |SC2_EN |SmartCard 2 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 849 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 850 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 851 | * |[8] |I2C0_EN |I2C0 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 852 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 853 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 854 | * |[9] |I2C1_EN |I2C1 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 855 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 856 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 857 | * |[12] |SPI0_EN |SPI0 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 858 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 859 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 860 | * |[13] |SPI1_EN |SPI1 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 861 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 862 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 863 | * |[14] |SPI2_EN |SPI2 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 864 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 865 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 866 | * |[16] |UART0_EN |UART0 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 867 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 868 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 869 | * |[17] |UART1_EN |UART1 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 870 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 871 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 872 | * |[20] |PWM0_CH01_EN|PWM0 Channel 0 And Channel 1Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 873 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 874 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 875 | * |[21] |PWM0_CH23_EN|PWM0 Channel 2 And Channel 3 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 876 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 877 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 878 | * |[22] |PWM1_CH01_EN|PWM1 Channel 0 And Channel 1 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 879 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 880 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 881 | * |[23] |PWM1_CH23_EN|PWM1 Channel 2 And Channel 3 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 882 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 883 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 884 | * |[25] |DAC_EN |12-Bit DAC Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 885 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 886 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 887 | * |[26] |LCD_EN |LCD Controller Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 888 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 889 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 890 | * |[27] |USBD_EN |USB FS Device Controller Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 891 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 892 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 893 | * |[28] |ADC_EN |Analog-Digital-Converter (ADC) Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 894 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 895 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 896 | * |[29] |I2S_EN |I2S Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 897 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 898 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 899 | * |[30] |SC0_EN |SmartCard 0 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 900 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 901 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 902 | * |[31] |SC1_EN |SmartCard 1 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 903 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 904 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 905 | */ |
AnnaBridge | 174:b96e65c34a4d | 906 | __IO uint32_t APBCLK; |
AnnaBridge | 174:b96e65c34a4d | 907 | |
AnnaBridge | 174:b96e65c34a4d | 908 | /** |
AnnaBridge | 174:b96e65c34a4d | 909 | * CLKSTATUS |
AnnaBridge | 174:b96e65c34a4d | 910 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 911 | * Offset: 0x0C Clock status monitor Register |
AnnaBridge | 174:b96e65c34a4d | 912 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 913 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 914 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 915 | * |[0] |HXT_STB |HXT Clock Source Stable Flag |
AnnaBridge | 174:b96e65c34a4d | 916 | * | | |0 = HXT clock is not stable or not enable. |
AnnaBridge | 174:b96e65c34a4d | 917 | * | | |1 = HXT clock is stable. |
AnnaBridge | 174:b96e65c34a4d | 918 | * |[1] |LXT_STB |LXT Clock Source Stable Flag |
AnnaBridge | 174:b96e65c34a4d | 919 | * | | |0 = LXT clock is not stable or not enable. |
AnnaBridge | 174:b96e65c34a4d | 920 | * | | |1 = LXT clock is stable. |
AnnaBridge | 174:b96e65c34a4d | 921 | * |[2] |PLL_STB |PLL Clock Source Stable Flag |
AnnaBridge | 174:b96e65c34a4d | 922 | * | | |0 = PLL clock is not stable or not enable. |
AnnaBridge | 174:b96e65c34a4d | 923 | * | | |1 = PLL clock is stable. |
AnnaBridge | 174:b96e65c34a4d | 924 | * |[3] |LIRC_STB |LIRC Clock Source Stable Flag |
AnnaBridge | 174:b96e65c34a4d | 925 | * | | |0 = LIRC clock is not stable or not enable. |
AnnaBridge | 174:b96e65c34a4d | 926 | * | | |1 = LIRC clock is stable. |
AnnaBridge | 174:b96e65c34a4d | 927 | * |[4] |HIRC_STB |HIRC Clock Source Stable Flag |
AnnaBridge | 174:b96e65c34a4d | 928 | * | | |0 = HIRC clock is not stable or not enable. |
AnnaBridge | 174:b96e65c34a4d | 929 | * | | |1 = HIRC clock is stable. |
AnnaBridge | 174:b96e65c34a4d | 930 | * |[7] |CLK_SW_FAIL|Clock Switch Fail Flag |
AnnaBridge | 174:b96e65c34a4d | 931 | * | | |0 = Clock switch success. |
AnnaBridge | 174:b96e65c34a4d | 932 | * | | |1 = Clock switch fail. |
AnnaBridge | 174:b96e65c34a4d | 933 | * | | |This bit will be set when target switch Clock Source is not stable. This bit is write 1 clear |
AnnaBridge | 174:b96e65c34a4d | 934 | */ |
AnnaBridge | 174:b96e65c34a4d | 935 | __I uint32_t CLKSTATUS; |
AnnaBridge | 174:b96e65c34a4d | 936 | |
AnnaBridge | 174:b96e65c34a4d | 937 | /** |
AnnaBridge | 174:b96e65c34a4d | 938 | * CLKSEL0 |
AnnaBridge | 174:b96e65c34a4d | 939 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 940 | * Offset: 0x10 Clock Source Select Control Register 0 |
AnnaBridge | 174:b96e65c34a4d | 941 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 942 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 943 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 944 | * |[2:0] |HCLK_S |HCLK Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 945 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 946 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 947 | * | | |Before Clock Source switches, the related clock sources (pre-select and new-select) must be turn on |
AnnaBridge | 174:b96e65c34a4d | 948 | * | | |The 3-bit default value is reloaded with the value of CFOSC (Config0[26:24]) in user configuration register in Flash controller by any reset. |
AnnaBridge | 174:b96e65c34a4d | 949 | * | | |Therefore the default value is either 000b or 111b. |
AnnaBridge | 174:b96e65c34a4d | 950 | * | | |000 = HXT |
AnnaBridge | 174:b96e65c34a4d | 951 | * | | |001 = LXT |
AnnaBridge | 174:b96e65c34a4d | 952 | * | | |010 = PLL Clock |
AnnaBridge | 174:b96e65c34a4d | 953 | * | | |011 = LIRC |
AnnaBridge | 174:b96e65c34a4d | 954 | * | | |111 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 955 | * | | |Others = Reserved |
AnnaBridge | 174:b96e65c34a4d | 956 | */ |
AnnaBridge | 174:b96e65c34a4d | 957 | __IO uint32_t CLKSEL0; |
AnnaBridge | 174:b96e65c34a4d | 958 | |
AnnaBridge | 174:b96e65c34a4d | 959 | /** |
AnnaBridge | 174:b96e65c34a4d | 960 | * CLKSEL1 |
AnnaBridge | 174:b96e65c34a4d | 961 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 962 | * Offset: 0x14 Clock Source Select Control Register 1 |
AnnaBridge | 174:b96e65c34a4d | 963 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 964 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 965 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 966 | * |[1:0] |UART_S |UART 0/1 Clock Source Selection (UART0 And UART1 Use The Same Clock Source Selection) |
AnnaBridge | 174:b96e65c34a4d | 967 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 968 | * | | |01 = LXT |
AnnaBridge | 174:b96e65c34a4d | 969 | * | | |10 = PLL Clock |
AnnaBridge | 174:b96e65c34a4d | 970 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 971 | * |[3:2] |ADC_S |ADC Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 972 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 973 | * | | |01 = LXT |
AnnaBridge | 174:b96e65c34a4d | 974 | * | | |10 = PLL Clock |
AnnaBridge | 174:b96e65c34a4d | 975 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 976 | * |[5:4] |PWM0_CH01_S|PWM0 Channel 0 And Channel 1 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 977 | * | | |PWM0 channel 0 and channel 1 use the same Engine clock source, both of them with the same prescaler |
AnnaBridge | 174:b96e65c34a4d | 978 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 979 | * | | |01 = LXT |
AnnaBridge | 174:b96e65c34a4d | 980 | * | | |10 = HCLK |
AnnaBridge | 174:b96e65c34a4d | 981 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 982 | * |[7:6] |PWM0_CH23_S|PWM0 Channel 2 And Channel 3 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 983 | * | | |PWM0 channel 2 and channel 3 use the same Engine clock source, both of them with the same prescaler |
AnnaBridge | 174:b96e65c34a4d | 984 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 985 | * | | |01 = LXT |
AnnaBridge | 174:b96e65c34a4d | 986 | * | | |10 = HCLK |
AnnaBridge | 174:b96e65c34a4d | 987 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 988 | * |[10:8] |TMR0_S |Timer0 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 989 | * | | |000 = HXT |
AnnaBridge | 174:b96e65c34a4d | 990 | * | | |001 = LXT |
AnnaBridge | 174:b96e65c34a4d | 991 | * | | |010 = LIRC |
AnnaBridge | 174:b96e65c34a4d | 992 | * | | |011 = External Pin |
AnnaBridge | 174:b96e65c34a4d | 993 | * | | |111 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 994 | * | | |Others = Reserved |
AnnaBridge | 174:b96e65c34a4d | 995 | * |[14:12] |TMR1_S |Timer1 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 996 | * | | |000 = HXT |
AnnaBridge | 174:b96e65c34a4d | 997 | * | | |001 = LXT |
AnnaBridge | 174:b96e65c34a4d | 998 | * | | |010 = LIRC |
AnnaBridge | 174:b96e65c34a4d | 999 | * | | |011 = External Pin |
AnnaBridge | 174:b96e65c34a4d | 1000 | * | | |111 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1001 | * | | |Others = Reserved |
AnnaBridge | 174:b96e65c34a4d | 1002 | * |[18] |LCD_S |LCD Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1003 | * | | |0 = Clock Source from LXT. |
AnnaBridge | 174:b96e65c34a4d | 1004 | * | | |1 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 1005 | */ |
AnnaBridge | 174:b96e65c34a4d | 1006 | __IO uint32_t CLKSEL1; |
AnnaBridge | 174:b96e65c34a4d | 1007 | |
AnnaBridge | 174:b96e65c34a4d | 1008 | /** |
AnnaBridge | 174:b96e65c34a4d | 1009 | * CLKSEL2 |
AnnaBridge | 174:b96e65c34a4d | 1010 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1011 | * Offset: 0x18 Clock Source Select Control Register 2 |
AnnaBridge | 174:b96e65c34a4d | 1012 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1013 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1014 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1015 | * |[3:2] |FRQDIV_S |Clock Divider Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1016 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 1017 | * | | |01 = LXT |
AnnaBridge | 174:b96e65c34a4d | 1018 | * | | |10 = HCLK |
AnnaBridge | 174:b96e65c34a4d | 1019 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1020 | * |[5:4] |PWM1_CH01_S|PWM1 Channel 0 And Channel 1 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1021 | * | | |PWM1 channel 0 and channel 1 use the same Engine clock source, both of them with the same pre-scale |
AnnaBridge | 174:b96e65c34a4d | 1022 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 1023 | * | | |01 = LXT |
AnnaBridge | 174:b96e65c34a4d | 1024 | * | | |10 = HCLK |
AnnaBridge | 174:b96e65c34a4d | 1025 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1026 | * |[7:6] |PWM1_CH23_S|PWM1 Channel 2 And Channel 2 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1027 | * | | |PWM1 channel 2 and channel 3 use the same Engine clock source, both of them with the same pre-scale |
AnnaBridge | 174:b96e65c34a4d | 1028 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 1029 | * | | |01 = LXT |
AnnaBridge | 174:b96e65c34a4d | 1030 | * | | |10 = HCLK |
AnnaBridge | 174:b96e65c34a4d | 1031 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1032 | * |[10:8] |TMR2_S |Timer2 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1033 | * | | |000 = HXT |
AnnaBridge | 174:b96e65c34a4d | 1034 | * | | |001 = LXT |
AnnaBridge | 174:b96e65c34a4d | 1035 | * | | |010 = LIRC |
AnnaBridge | 174:b96e65c34a4d | 1036 | * | | |011 = External Pin |
AnnaBridge | 174:b96e65c34a4d | 1037 | * | | |111 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1038 | * | | |Others = Reserved |
AnnaBridge | 174:b96e65c34a4d | 1039 | * |[14:12] |TMR3_S |Timer3 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1040 | * | | |000 = HXT |
AnnaBridge | 174:b96e65c34a4d | 1041 | * | | |001 = LXT |
AnnaBridge | 174:b96e65c34a4d | 1042 | * | | |010 = LIRC |
AnnaBridge | 174:b96e65c34a4d | 1043 | * | | |011 = External Pin |
AnnaBridge | 174:b96e65c34a4d | 1044 | * | | |111 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1045 | * | | |Others = Reserved |
AnnaBridge | 174:b96e65c34a4d | 1046 | * |[17:16] |I2S_S |I2S Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1047 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 1048 | * | | |01 = PLL Clock |
AnnaBridge | 174:b96e65c34a4d | 1049 | * | | |10 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1050 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1051 | * |[19:18] |SC_S |SC Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1052 | * | | |00 = HXT |
AnnaBridge | 174:b96e65c34a4d | 1053 | * | | |01 = PLL Clock |
AnnaBridge | 174:b96e65c34a4d | 1054 | * | | |10 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1055 | * | | |11 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1056 | * | | |Note: SC0,SC1 and SC2 use the same Clock Source selection but they have different clock divider number. |
AnnaBridge | 174:b96e65c34a4d | 1057 | * |[20] |SPI0_S |SPI0 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1058 | * | | |0 = PLL. |
AnnaBridge | 174:b96e65c34a4d | 1059 | * | | |1 = HCLK. |
AnnaBridge | 174:b96e65c34a4d | 1060 | * |[21] |SPI1_S |SPI1 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1061 | * | | |0 = PLL. |
AnnaBridge | 174:b96e65c34a4d | 1062 | * | | |1 = HCLK. |
AnnaBridge | 174:b96e65c34a4d | 1063 | * |[22] |SPI2_S |SPI2 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 1064 | * | | |0 = PLL. |
AnnaBridge | 174:b96e65c34a4d | 1065 | * | | |1 = HCLK. |
AnnaBridge | 174:b96e65c34a4d | 1066 | */ |
AnnaBridge | 174:b96e65c34a4d | 1067 | __IO uint32_t CLKSEL2; |
AnnaBridge | 174:b96e65c34a4d | 1068 | |
AnnaBridge | 174:b96e65c34a4d | 1069 | /** |
AnnaBridge | 174:b96e65c34a4d | 1070 | * CLKDIV0 |
AnnaBridge | 174:b96e65c34a4d | 1071 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1072 | * Offset: 0x1C Clock Divider Number Register 0 |
AnnaBridge | 174:b96e65c34a4d | 1073 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1074 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1075 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1076 | * |[3:0] |HCLK_N |HCLK Clock Divide Number From HCLK Clock Source |
AnnaBridge | 174:b96e65c34a4d | 1077 | * | | |The HCLK clock frequency = (HCLK Clock Source frequency) / (HCLK_N + 1). |
AnnaBridge | 174:b96e65c34a4d | 1078 | * |[7:4] |USB_N |USB Clock Divide Number From PLL Clock |
AnnaBridge | 174:b96e65c34a4d | 1079 | * | | |The USB clock frequency = (PLL frequency ) / (USB_N + 1). |
AnnaBridge | 174:b96e65c34a4d | 1080 | * |[11:8] |UART_N |UART Clock Divide Number From UART Clock Source |
AnnaBridge | 174:b96e65c34a4d | 1081 | * | | |The UART clock frequency = (UART Clock Source frequency ) / (UART_N + 1). |
AnnaBridge | 174:b96e65c34a4d | 1082 | * |[15:12] |I2S_N |I2S Clock Divide Number From I2S Clock Source |
AnnaBridge | 174:b96e65c34a4d | 1083 | * | | |The I2S clock frequency = (I2S Clock Source frequency ) / (I2S_N + 1). |
AnnaBridge | 174:b96e65c34a4d | 1084 | * |[23:16] |ADC_N |ADC Clock Divide Number From ADC Clock Source |
AnnaBridge | 174:b96e65c34a4d | 1085 | * | | |The ADC clock frequency = (ADC Clock Source frequency ) / (ADC_N + 1). |
AnnaBridge | 174:b96e65c34a4d | 1086 | * |[31:28] |SC0_N |SC 0 Clock Divide Number From SC 0 Clock Source |
AnnaBridge | 174:b96e65c34a4d | 1087 | * | | |The SC 0 clock frequency = (SC0 Clock Source frequency ) / (SC0_N + 1). |
AnnaBridge | 174:b96e65c34a4d | 1088 | */ |
AnnaBridge | 174:b96e65c34a4d | 1089 | __IO uint32_t CLKDIV0; |
AnnaBridge | 174:b96e65c34a4d | 1090 | |
AnnaBridge | 174:b96e65c34a4d | 1091 | /** |
AnnaBridge | 174:b96e65c34a4d | 1092 | * CLKDIV1 |
AnnaBridge | 174:b96e65c34a4d | 1093 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1094 | * Offset: 0x20 Clock Divider Number Register 1 |
AnnaBridge | 174:b96e65c34a4d | 1095 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1096 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1097 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1098 | * |[3:0] |SC1_N |SC 1 Clock Divide Number From SC 1 Clock Source |
AnnaBridge | 174:b96e65c34a4d | 1099 | * | | |The SC 1 clock frequency = (SC 1 Clock Source frequency ) / (SC1_N + 1). |
AnnaBridge | 174:b96e65c34a4d | 1100 | * |[7:4] |SC2_N |SC 2 Clock Divide Number From SC2 Clock Source |
AnnaBridge | 174:b96e65c34a4d | 1101 | * | | |The SC 2 clock frequency = (SC 2 Clock Source frequency ) / (SC2_N + 1). |
AnnaBridge | 174:b96e65c34a4d | 1102 | */ |
AnnaBridge | 174:b96e65c34a4d | 1103 | __IO uint32_t CLKDIV1; |
AnnaBridge | 174:b96e65c34a4d | 1104 | |
AnnaBridge | 174:b96e65c34a4d | 1105 | /** |
AnnaBridge | 174:b96e65c34a4d | 1106 | * PLLCTL |
AnnaBridge | 174:b96e65c34a4d | 1107 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1108 | * Offset: 0x24 PLL Control Register |
AnnaBridge | 174:b96e65c34a4d | 1109 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1110 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1111 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1112 | * |[4:0] |FB_DV |PLL Feedback Divider Control Pins |
AnnaBridge | 174:b96e65c34a4d | 1113 | * | | |Refer to the formulas below the table. |
AnnaBridge | 174:b96e65c34a4d | 1114 | * | | |The range of FB_DV is from 0 to 63. |
AnnaBridge | 174:b96e65c34a4d | 1115 | * |[9:8] |IN_DV |PLL Input Divider Control Pins |
AnnaBridge | 174:b96e65c34a4d | 1116 | * | | |Refer to the formulas below the table. |
AnnaBridge | 174:b96e65c34a4d | 1117 | * |[12] |OUT_DV |PLL Output Divider Control Pins |
AnnaBridge | 174:b96e65c34a4d | 1118 | * | | |Refer to the formulas below the table. This bit MUST be 0 for PLL output low deviation. |
AnnaBridge | 174:b96e65c34a4d | 1119 | * |[16] |PD |Power-Down Mode |
AnnaBridge | 174:b96e65c34a4d | 1120 | * | | |If set the PD_EN bit "1" in PWR_CTL register, the PLL will enter Power-down mode too |
AnnaBridge | 174:b96e65c34a4d | 1121 | * | | |0 = PLL is in normal mode. |
AnnaBridge | 174:b96e65c34a4d | 1122 | * | | |1 = PLL is in power-down mode (default). |
AnnaBridge | 174:b96e65c34a4d | 1123 | * |[17] |PLL_SRC |PLL Source Clock Select |
AnnaBridge | 174:b96e65c34a4d | 1124 | * | | |0 = PLL source clock from HXT. |
AnnaBridge | 174:b96e65c34a4d | 1125 | * | | |1 = PLL source clock from HIRC. |
AnnaBridge | 174:b96e65c34a4d | 1126 | */ |
AnnaBridge | 174:b96e65c34a4d | 1127 | __IO uint32_t PLLCTL; |
AnnaBridge | 174:b96e65c34a4d | 1128 | |
AnnaBridge | 174:b96e65c34a4d | 1129 | /** |
AnnaBridge | 174:b96e65c34a4d | 1130 | * FRQDIV |
AnnaBridge | 174:b96e65c34a4d | 1131 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1132 | * Offset: 0x28 Frequency Divider Control Register |
AnnaBridge | 174:b96e65c34a4d | 1133 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1134 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1135 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1136 | * |[3:0] |FSEL |Divider Output Frequency Selection Bits |
AnnaBridge | 174:b96e65c34a4d | 1137 | * | | |The formula of output frequency is |
AnnaBridge | 174:b96e65c34a4d | 1138 | * | | |Fout = Fin/2^(N+1),. |
AnnaBridge | 174:b96e65c34a4d | 1139 | * | | |Where Fin is the input clock frequency, Fout is the frequency of divider output clock and N is the 4-bit value of FSEL[3:0]. |
AnnaBridge | 174:b96e65c34a4d | 1140 | * |[4] |FDIV_EN |Frequency Divider Enable Bit |
AnnaBridge | 174:b96e65c34a4d | 1141 | * | | |0 = Frequency Divider Disabled. |
AnnaBridge | 174:b96e65c34a4d | 1142 | * | | |1 = Frequency Divider Enabled. |
AnnaBridge | 174:b96e65c34a4d | 1143 | */ |
AnnaBridge | 174:b96e65c34a4d | 1144 | __IO uint32_t FRQDIV; |
AnnaBridge | 174:b96e65c34a4d | 1145 | |
AnnaBridge | 174:b96e65c34a4d | 1146 | /** |
AnnaBridge | 174:b96e65c34a4d | 1147 | * MCLKO |
AnnaBridge | 174:b96e65c34a4d | 1148 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1149 | * Offset: 0x2C Module Clock Output Register |
AnnaBridge | 174:b96e65c34a4d | 1150 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1151 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1152 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1153 | * |[5:0] |MCLK_SEL |Module Clock Output Source Selection (PC.0) |
AnnaBridge | 174:b96e65c34a4d | 1154 | * | | |000000 = ISP_CLK |
AnnaBridge | 174:b96e65c34a4d | 1155 | * | | |000001 = HIRC |
AnnaBridge | 174:b96e65c34a4d | 1156 | * | | |000010 = HXT |
AnnaBridge | 174:b96e65c34a4d | 1157 | * | | |000011 = LXT |
AnnaBridge | 174:b96e65c34a4d | 1158 | * | | |000100 = LIRC |
AnnaBridge | 174:b96e65c34a4d | 1159 | * | | |000101 = PLL output |
AnnaBridge | 174:b96e65c34a4d | 1160 | * | | |000110 = PLL input |
AnnaBridge | 174:b96e65c34a4d | 1161 | * | | |000111 = System Tick |
AnnaBridge | 174:b96e65c34a4d | 1162 | * | | |001000 = HCLK clock |
AnnaBridge | 174:b96e65c34a4d | 1163 | * | | |001010 = PCLK clock |
AnnaBridge | 174:b96e65c34a4d | 1164 | * | | |100000 = TMR0_CLK |
AnnaBridge | 174:b96e65c34a4d | 1165 | * | | |100001 = TMR1_CLK |
AnnaBridge | 174:b96e65c34a4d | 1166 | * | | |100010 = UART0_CLK |
AnnaBridge | 174:b96e65c34a4d | 1167 | * | | |100011 = USB_CLK |
AnnaBridge | 174:b96e65c34a4d | 1168 | * | | |100100 = ADC_CLK |
AnnaBridge | 174:b96e65c34a4d | 1169 | * | | |100101 = WDT_CLK |
AnnaBridge | 174:b96e65c34a4d | 1170 | * | | |100110 = PWM0_CH01_CLK |
AnnaBridge | 174:b96e65c34a4d | 1171 | * | | |100111 = PWM0_CH32_CLK |
AnnaBridge | 174:b96e65c34a4d | 1172 | * | | |101001 = LCD_CLK |
AnnaBridge | 174:b96e65c34a4d | 1173 | * | | |111000 = TMR2_CLK |
AnnaBridge | 174:b96e65c34a4d | 1174 | * | | |111001 = TMR3_CLK |
AnnaBridge | 174:b96e65c34a4d | 1175 | * | | |111010 = UART1_CLK |
AnnaBridge | 174:b96e65c34a4d | 1176 | * | | |111011 = PWM1_CH01_CLK |
AnnaBridge | 174:b96e65c34a4d | 1177 | * | | |111100 = PWM1_CH23_CLK |
AnnaBridge | 174:b96e65c34a4d | 1178 | * | | |111101 = I²S_CLK |
AnnaBridge | 174:b96e65c34a4d | 1179 | * | | |111110 = SC0_CLK |
AnnaBridge | 174:b96e65c34a4d | 1180 | * | | |111111 = SC1_CLK |
AnnaBridge | 174:b96e65c34a4d | 1181 | * |[7] |MCLK_EN |Module Clock Output Enable |
AnnaBridge | 174:b96e65c34a4d | 1182 | * | | |User can get the module clock output from PC.0 pin via choosing the clock source in the MCLK_SEL bit field and then setting MCLK_EN bit to 1. |
AnnaBridge | 174:b96e65c34a4d | 1183 | * | | |0 = Module clock output Disabled. |
AnnaBridge | 174:b96e65c34a4d | 1184 | * | | |1 = Module clock output Enabled. |
AnnaBridge | 174:b96e65c34a4d | 1185 | * | | |Note: If this bit is enabled, PC.0 will be configured to module clock output and the setting of PC0_MFP will be ineffective |
AnnaBridge | 174:b96e65c34a4d | 1186 | */ |
AnnaBridge | 174:b96e65c34a4d | 1187 | __IO uint32_t MCLKO; |
AnnaBridge | 174:b96e65c34a4d | 1188 | |
AnnaBridge | 174:b96e65c34a4d | 1189 | /** |
AnnaBridge | 174:b96e65c34a4d | 1190 | * WK_INTSTS |
AnnaBridge | 174:b96e65c34a4d | 1191 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1192 | * Offset: 0x30 Wake-up interrupt status |
AnnaBridge | 174:b96e65c34a4d | 1193 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1194 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1195 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1196 | * |[0] |PD_WK_IS |Wake-Up Interrupt Status In Chip Power-Down Mode |
AnnaBridge | 174:b96e65c34a4d | 1197 | * | | |This bit indicates that some event resumes chip from Power-down mode |
AnnaBridge | 174:b96e65c34a4d | 1198 | * | | |The status is set if external interrupts, UART, GPIO, RTC, USB, SPI, Timer, WDT, and BOD wake-up occurred. |
AnnaBridge | 174:b96e65c34a4d | 1199 | * | | |Write 1 to clear this bit. |
AnnaBridge | 174:b96e65c34a4d | 1200 | */ |
AnnaBridge | 174:b96e65c34a4d | 1201 | __IO uint32_t WK_INTSTS; |
AnnaBridge | 174:b96e65c34a4d | 1202 | |
AnnaBridge | 174:b96e65c34a4d | 1203 | } CLK_T; |
AnnaBridge | 174:b96e65c34a4d | 1204 | |
AnnaBridge | 174:b96e65c34a4d | 1205 | /** |
AnnaBridge | 174:b96e65c34a4d | 1206 | @addtogroup CLK_CONST CLK Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 1207 | Constant Definitions for CLK Controller |
AnnaBridge | 174:b96e65c34a4d | 1208 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 1209 | |
AnnaBridge | 174:b96e65c34a4d | 1210 | #define CLK_PWRCTL_HXT_EN_Pos (0) /*!< CLK_T::PWRCTL: HXT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1211 | #define CLK_PWRCTL_HXT_EN_Msk (0x1ul << CLK_PWRCTL_HXT_EN_Pos) /*!< CLK_T::PWRCTL: HXT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1212 | |
AnnaBridge | 174:b96e65c34a4d | 1213 | #define CLK_PWRCTL_LXT_EN_Pos (1) /*!< CLK_T::PWRCTL: LXT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1214 | #define CLK_PWRCTL_LXT_EN_Msk (0x1ul << CLK_PWRCTL_LXT_EN_Pos) /*!< CLK_T::PWRCTL: LXT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1215 | |
AnnaBridge | 174:b96e65c34a4d | 1216 | #define CLK_PWRCTL_HIRC_EN_Pos (2) /*!< CLK_T::PWRCTL: HIRC_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1217 | #define CLK_PWRCTL_HIRC_EN_Msk (0x1ul << CLK_PWRCTL_HIRC_EN_Pos) /*!< CLK_T::PWRCTL: HIRC_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1218 | |
AnnaBridge | 174:b96e65c34a4d | 1219 | #define CLK_PWRCTL_LIRC_EN_Pos (3) /*!< CLK_T::PWRCTL: LIRC_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1220 | #define CLK_PWRCTL_LIRC_EN_Msk (0x1ul << CLK_PWRCTL_LIRC_EN_Pos) /*!< CLK_T::PWRCTL: LIRC_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1221 | |
AnnaBridge | 174:b96e65c34a4d | 1222 | #define CLK_PWRCTL_WK_DLY_Pos (4) /*!< CLK_T::PWRCTL: WK_DLY Position */ |
AnnaBridge | 174:b96e65c34a4d | 1223 | #define CLK_PWRCTL_WK_DLY_Msk (0x1ul << CLK_PWRCTL_WK_DLY_Pos) /*!< CLK_T::PWRCTL: WK_DLY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1224 | |
AnnaBridge | 174:b96e65c34a4d | 1225 | #define CLK_PWRCTL_PD_WK_IE_Pos (5) /*!< CLK_T::PWRCTL: PD_WK_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 1226 | #define CLK_PWRCTL_PD_WK_IE_Msk (0x1ul << CLK_PWRCTL_PD_WK_IE_Pos) /*!< CLK_T::PWRCTL: PD_WK_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1227 | |
AnnaBridge | 174:b96e65c34a4d | 1228 | #define CLK_PWRCTL_PD_EN_Pos (6) /*!< CLK_T::PWRCTL: PD_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1229 | #define CLK_PWRCTL_PD_EN_Msk (0x1ul << CLK_PWRCTL_PD_EN_Pos) /*!< CLK_T::PWRCTL: PD_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1230 | |
AnnaBridge | 174:b96e65c34a4d | 1231 | #define CLK_PWRCTL_HXT_SELXT_Pos (8) /*!< CLK_T::PWRCTL: HXT_SELXT Position */ |
AnnaBridge | 174:b96e65c34a4d | 1232 | #define CLK_PWRCTL_HXT_SELXT_Msk (0x1ul << CLK_PWRCTL_HXT_SELXT_Pos) /*!< CLK_T::PWRCTL: HXT_SELXT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1233 | |
AnnaBridge | 174:b96e65c34a4d | 1234 | #define CLK_PWRCTL_HXT_GAIN_Pos (9) /*!< CLK_T::PWRCTL: HXT_GAIN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1235 | #define CLK_PWRCTL_HXT_GAIN_Msk (0x1ul << CLK_PWRCTL_HXT_GAIN_Pos) /*!< CLK_T::PWRCTL: HXT_GAIN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1236 | |
AnnaBridge | 174:b96e65c34a4d | 1237 | #define CLK_PWRCTL_LXT_SCNT_Pos (10) /*!< CLK_T::PWRCTL: LXT_SCNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 1238 | #define CLK_PWRCTL_LXT_SCNT_Msk (0x1ul << CLK_PWRCTL_LXT_SCNT_Pos) /*!< CLK_T::PWRCTL: LXT_SCNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1239 | |
AnnaBridge | 174:b96e65c34a4d | 1240 | #define CLK_PWRCTL_HXT_HF_ST_Pos (11) /*!< CLK_T::PWRCTL: HXT_HF_ST Position */ |
AnnaBridge | 174:b96e65c34a4d | 1241 | #define CLK_PWRCTL_HXT_HF_ST_Msk (0x3ul << CLK_PWRCTL_HXT_HF_ST_Pos) /*!< CLK_T::PWRCTL: HXT_HF_ST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1242 | |
AnnaBridge | 174:b96e65c34a4d | 1243 | #define CLK_AHBCLK_GPIO_EN_Pos (0) /*!< CLK_T::AHBCLK: GPIO_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1244 | #define CLK_AHBCLK_GPIO_EN_Msk (0x1ul << CLK_AHBCLK_GPIO_EN_Pos) /*!< CLK_T::AHBCLK: GPIO_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1245 | |
AnnaBridge | 174:b96e65c34a4d | 1246 | #define CLK_AHBCLK_DMA_EN_Pos (1) /*!< CLK_T::AHBCLK: DMA_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1247 | #define CLK_AHBCLK_DMA_EN_Msk (0x1ul << CLK_AHBCLK_DMA_EN_Pos) /*!< CLK_T::AHBCLK: DMA_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1248 | |
AnnaBridge | 174:b96e65c34a4d | 1249 | #define CLK_AHBCLK_ISP_EN_Pos (2) /*!< CLK_T::AHBCLK: ISP_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1250 | #define CLK_AHBCLK_ISP_EN_Msk (0x1ul << CLK_AHBCLK_ISP_EN_Pos) /*!< CLK_T::AHBCLK: ISP_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1251 | |
AnnaBridge | 174:b96e65c34a4d | 1252 | #define CLK_AHBCLK_EBI_EN_Pos (3) /*!< CLK_T::AHBCLK: EBI_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1253 | #define CLK_AHBCLK_EBI_EN_Msk (0x1ul << CLK_AHBCLK_EBI_EN_Pos) /*!< CLK_T::AHBCLK: EBI_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1254 | |
AnnaBridge | 174:b96e65c34a4d | 1255 | #define CLK_AHBCLK_SRAM_EN_Pos (4) /*!< CLK_T::AHBCLK: SRAM_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1256 | #define CLK_AHBCLK_SRAM_EN_Msk (0x1ul << CLK_AHBCLK_SRAM_EN_Pos) /*!< CLK_T::AHBCLK: SRAM_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1257 | |
AnnaBridge | 174:b96e65c34a4d | 1258 | #define CLK_AHBCLK_TICK_EN_Pos (5) /*!< CLK_T::AHBCLK: TICK_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1259 | #define CLK_AHBCLK_TICK_EN_Msk (0x1ul << CLK_AHBCLK_TICK_EN_Pos) /*!< CLK_T::AHBCLK: TICK_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1260 | |
AnnaBridge | 174:b96e65c34a4d | 1261 | #define CLK_APBCLK_WDT_EN_Pos (0) /*!< CLK_T::APBCLK: WDT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1262 | #define CLK_APBCLK_WDT_EN_Msk (0x1ul << CLK_APBCLK_WDT_EN_Pos) /*!< CLK_T::APBCLK: WDT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1263 | |
AnnaBridge | 174:b96e65c34a4d | 1264 | #define CLK_APBCLK_RTC_EN_Pos (1) /*!< CLK_T::APBCLK: RTC_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1265 | #define CLK_APBCLK_RTC_EN_Msk (0x1ul << CLK_APBCLK_RTC_EN_Pos) /*!< CLK_T::APBCLK: RTC_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1266 | |
AnnaBridge | 174:b96e65c34a4d | 1267 | #define CLK_APBCLK_TMR0_EN_Pos (2) /*!< CLK_T::APBCLK: TMR0_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1268 | #define CLK_APBCLK_TMR0_EN_Msk (0x1ul << CLK_APBCLK_TMR0_EN_Pos) /*!< CLK_T::APBCLK: TMR0_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1269 | |
AnnaBridge | 174:b96e65c34a4d | 1270 | #define CLK_APBCLK_TMR1_EN_Pos (3) /*!< CLK_T::APBCLK: TMR1_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1271 | #define CLK_APBCLK_TMR1_EN_Msk (0x1ul << CLK_APBCLK_TMR1_EN_Pos) /*!< CLK_T::APBCLK: TMR1_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1272 | |
AnnaBridge | 174:b96e65c34a4d | 1273 | #define CLK_APBCLK_TMR2_EN_Pos (4) /*!< CLK_T::APBCLK: TMR2_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1274 | #define CLK_APBCLK_TMR2_EN_Msk (0x1ul << CLK_APBCLK_TMR2_EN_Pos) /*!< CLK_T::APBCLK: TMR2_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1275 | |
AnnaBridge | 174:b96e65c34a4d | 1276 | #define CLK_APBCLK_TMR3_EN_Pos (5) /*!< CLK_T::APBCLK: TMR3_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1277 | #define CLK_APBCLK_TMR3_EN_Msk (0x1ul << CLK_APBCLK_TMR3_EN_Pos) /*!< CLK_T::APBCLK: TMR3_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1278 | |
AnnaBridge | 174:b96e65c34a4d | 1279 | #define CLK_APBCLK_FDIV_EN_Pos (6) /*!< CLK_T::APBCLK: FDIV_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1280 | #define CLK_APBCLK_FDIV_EN_Msk (0x1ul << CLK_APBCLK_FDIV_EN_Pos) /*!< CLK_T::APBCLK: FDIV_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1281 | |
AnnaBridge | 174:b96e65c34a4d | 1282 | #define CLK_APBCLK_SC2_EN_Pos (7) /*!< CLK_T::APBCLK: SC2_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1283 | #define CLK_APBCLK_SC2_EN_Msk (0x1ul << CLK_APBCLK_SC2_EN_Pos) /*!< CLK_T::APBCLK: SC2_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1284 | |
AnnaBridge | 174:b96e65c34a4d | 1285 | #define CLK_APBCLK_I2C0_EN_Pos (8) /*!< CLK_T::APBCLK: I2C0_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1286 | #define CLK_APBCLK_I2C0_EN_Msk (0x1ul << CLK_APBCLK_I2C0_EN_Pos) /*!< CLK_T::APBCLK: I2C0_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1287 | |
AnnaBridge | 174:b96e65c34a4d | 1288 | #define CLK_APBCLK_I2C1_EN_Pos (9) /*!< CLK_T::APBCLK: I2C1_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1289 | #define CLK_APBCLK_I2C1_EN_Msk (0x1ul << CLK_APBCLK_I2C1_EN_Pos) /*!< CLK_T::APBCLK: I2C1_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1290 | |
AnnaBridge | 174:b96e65c34a4d | 1291 | #define CLK_APBCLK_SPI0_EN_Pos (12) /*!< CLK_T::APBCLK: SPI0_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1292 | #define CLK_APBCLK_SPI0_EN_Msk (0x1ul << CLK_APBCLK_SPI0_EN_Pos) /*!< CLK_T::APBCLK: SPI0_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1293 | |
AnnaBridge | 174:b96e65c34a4d | 1294 | #define CLK_APBCLK_SPI1_EN_Pos (13) /*!< CLK_T::APBCLK: SPI1_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1295 | #define CLK_APBCLK_SPI1_EN_Msk (0x1ul << CLK_APBCLK_SPI1_EN_Pos) /*!< CLK_T::APBCLK: SPI1_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1296 | |
AnnaBridge | 174:b96e65c34a4d | 1297 | #define CLK_APBCLK_SPI2_EN_Pos (14) /*!< CLK_T::APBCLK: SPI2_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1298 | #define CLK_APBCLK_SPI2_EN_Msk (0x1ul << CLK_APBCLK_SPI2_EN_Pos) /*!< CLK_T::APBCLK: SPI2_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1299 | |
AnnaBridge | 174:b96e65c34a4d | 1300 | #define CLK_APBCLK_UART0_EN_Pos (16) /*!< CLK_T::APBCLK: UART0_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1301 | #define CLK_APBCLK_UART0_EN_Msk (0x1ul << CLK_APBCLK_UART0_EN_Pos) /*!< CLK_T::APBCLK: UART0_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1302 | |
AnnaBridge | 174:b96e65c34a4d | 1303 | #define CLK_APBCLK_UART1_EN_Pos (17) /*!< CLK_T::APBCLK: UART1_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1304 | #define CLK_APBCLK_UART1_EN_Msk (0x1ul << CLK_APBCLK_UART1_EN_Pos) /*!< CLK_T::APBCLK: UART1_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1305 | |
AnnaBridge | 174:b96e65c34a4d | 1306 | #define CLK_APBCLK_PWM0_CH01_EN_Pos (20) /*!< CLK_T::APBCLK: PWM0_CH01_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1307 | #define CLK_APBCLK_PWM0_CH01_EN_Msk (0x1ul << CLK_APBCLK_PWM0_CH01_EN_Pos) /*!< CLK_T::APBCLK: PWM0_CH01_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1308 | |
AnnaBridge | 174:b96e65c34a4d | 1309 | #define CLK_APBCLK_PWM0_CH23_EN_Pos (21) /*!< CLK_T::APBCLK: PWM0_CH23_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1310 | #define CLK_APBCLK_PWM0_CH23_EN_Msk (0x1ul << CLK_APBCLK_PWM0_CH23_EN_Pos) /*!< CLK_T::APBCLK: PWM0_CH23_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1311 | |
AnnaBridge | 174:b96e65c34a4d | 1312 | #define CLK_APBCLK_PWM1_CH01_EN_Pos (22) /*!< CLK_T::APBCLK: PWM1_CH01_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1313 | #define CLK_APBCLK_PWM1_CH01_EN_Msk (0x1ul << CLK_APBCLK_PWM1_CH01_EN_Pos) /*!< CLK_T::APBCLK: PWM1_CH01_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1314 | |
AnnaBridge | 174:b96e65c34a4d | 1315 | #define CLK_APBCLK_PWM1_CH23_EN_Pos (23) /*!< CLK_T::APBCLK: PWM1_CH23_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1316 | #define CLK_APBCLK_PWM1_CH23_EN_Msk (0x1ul << CLK_APBCLK_PWM1_CH23_EN_Pos) /*!< CLK_T::APBCLK: PWM1_CH23_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1317 | |
AnnaBridge | 174:b96e65c34a4d | 1318 | #define CLK_APBCLK_DAC_EN_Pos (25) /*!< CLK_T::APBCLK: DAC_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1319 | #define CLK_APBCLK_DAC_EN_Msk (0x1ul << CLK_APBCLK_DAC_EN_Pos) /*!< CLK_T::APBCLK: DAC_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1320 | |
AnnaBridge | 174:b96e65c34a4d | 1321 | #define CLK_APBCLK_LCD_EN_Pos (26) /*!< CLK_T::APBCLK: LCD_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1322 | #define CLK_APBCLK_LCD_EN_Msk (0x1ul << CLK_APBCLK_LCD_EN_Pos) /*!< CLK_T::APBCLK: LCD_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1323 | |
AnnaBridge | 174:b96e65c34a4d | 1324 | #define CLK_APBCLK_USBD_EN_Pos (27) /*!< CLK_T::APBCLK: USBD_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1325 | #define CLK_APBCLK_USBD_EN_Msk (0x1ul << CLK_APBCLK_USBD_EN_Pos) /*!< CLK_T::APBCLK: USBD_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1326 | |
AnnaBridge | 174:b96e65c34a4d | 1327 | #define CLK_APBCLK_ADC_EN_Pos (28) /*!< CLK_T::APBCLK: ADC_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1328 | #define CLK_APBCLK_ADC_EN_Msk (0x1ul << CLK_APBCLK_ADC_EN_Pos) /*!< CLK_T::APBCLK: ADC_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1329 | |
AnnaBridge | 174:b96e65c34a4d | 1330 | #define CLK_APBCLK_I2S_EN_Pos (29) /*!< CLK_T::APBCLK: I2S_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1331 | #define CLK_APBCLK_I2S_EN_Msk (0x1ul << CLK_APBCLK_I2S_EN_Pos) /*!< CLK_T::APBCLK: I2S_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1332 | |
AnnaBridge | 174:b96e65c34a4d | 1333 | #define CLK_APBCLK_SC0_EN_Pos (30) /*!< CLK_T::APBCLK: SC0_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1334 | #define CLK_APBCLK_SC0_EN_Msk (0x1ul << CLK_APBCLK_SC0_EN_Pos) /*!< CLK_T::APBCLK: SC0_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1335 | |
AnnaBridge | 174:b96e65c34a4d | 1336 | #define CLK_APBCLK_SC1_EN_Pos (31) /*!< CLK_T::APBCLK: SC1_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1337 | #define CLK_APBCLK_SC1_EN_Msk (0x1ul << CLK_APBCLK_SC1_EN_Pos) /*!< CLK_T::APBCLK: SC1_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1338 | |
AnnaBridge | 174:b96e65c34a4d | 1339 | #define CLK_CLKSTATUS_HXT_STB_Pos (0) /*!< CLK_T::CLKSTATUS: HXT_STB Position */ |
AnnaBridge | 174:b96e65c34a4d | 1340 | #define CLK_CLKSTATUS_HXT_STB_Msk (0x1ul << CLK_CLKSTATUS_HXT_STB_Pos) /*!< CLK_T::CLKSTATUS: HXT_STB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1341 | |
AnnaBridge | 174:b96e65c34a4d | 1342 | #define CLK_CLKSTATUS_LXT_STB_Pos (1) /*!< CLK_T::CLKSTATUS: LXT_STB Position */ |
AnnaBridge | 174:b96e65c34a4d | 1343 | #define CLK_CLKSTATUS_LXT_STB_Msk (0x1ul << CLK_CLKSTATUS_LXT_STB_Pos) /*!< CLK_T::CLKSTATUS: LXT_STB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1344 | |
AnnaBridge | 174:b96e65c34a4d | 1345 | #define CLK_CLKSTATUS_PLL_STB_Pos (2) /*!< CLK_T::CLKSTATUS: PLL_STB Position */ |
AnnaBridge | 174:b96e65c34a4d | 1346 | #define CLK_CLKSTATUS_PLL_STB_Msk (0x1ul << CLK_CLKSTATUS_PLL_STB_Pos) /*!< CLK_T::CLKSTATUS: PLL_STB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1347 | |
AnnaBridge | 174:b96e65c34a4d | 1348 | #define CLK_CLKSTATUS_LIRC_STB_Pos (3) /*!< CLK_T::CLKSTATUS: LIRC_STB Position */ |
AnnaBridge | 174:b96e65c34a4d | 1349 | #define CLK_CLKSTATUS_LIRC_STB_Msk (0x1ul << CLK_CLKSTATUS_LIRC_STB_Pos) /*!< CLK_T::CLKSTATUS: LIRC_STB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1350 | |
AnnaBridge | 174:b96e65c34a4d | 1351 | #define CLK_CLKSTATUS_HIRC_STB_Pos (4) /*!< CLK_T::CLKSTATUS: HIRC_STB Position */ |
AnnaBridge | 174:b96e65c34a4d | 1352 | #define CLK_CLKSTATUS_HIRC_STB_Msk (0x1ul << CLK_CLKSTATUS_HIRC_STB_Pos) /*!< CLK_T::CLKSTATUS: HIRC_STB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1353 | |
AnnaBridge | 174:b96e65c34a4d | 1354 | #define CLK_CLKSTATUS_CLK_SW_FAIL_Pos (7) /*!< CLK_T::CLKSTATUS: CLK_SW_FAIL Position */ |
AnnaBridge | 174:b96e65c34a4d | 1355 | #define CLK_CLKSTATUS_CLK_SW_FAIL_Msk (0x1ul << CLK_CLKSTATUS_CLK_SW_FAIL_Pos) /*!< CLK_T::CLKSTATUS: CLK_SW_FAIL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1356 | |
AnnaBridge | 174:b96e65c34a4d | 1357 | #define CLK_CLKSEL0_HCLK_S_Pos (0) /*!< CLK_T::CLKSEL0: HCLK_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1358 | #define CLK_CLKSEL0_HCLK_S_Msk (0x7ul << CLK_CLKSEL0_HCLK_S_Pos) /*!< CLK_T::CLKSEL0: HCLK_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1359 | |
AnnaBridge | 174:b96e65c34a4d | 1360 | #define CLK_CLKSEL1_UART_S_Pos (0) /*!< CLK_T::CLKSEL1: UART_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1361 | #define CLK_CLKSEL1_UART_S_Msk (0x3ul << CLK_CLKSEL1_UART_S_Pos) /*!< CLK_T::CLKSEL1: UART_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1362 | |
AnnaBridge | 174:b96e65c34a4d | 1363 | #define CLK_CLKSEL1_ADC_S_Pos (2) /*!< CLK_T::CLKSEL1: ADC_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1364 | #define CLK_CLKSEL1_ADC_S_Msk (0x3ul << CLK_CLKSEL1_ADC_S_Pos) /*!< CLK_T::CLKSEL1: ADC_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1365 | |
AnnaBridge | 174:b96e65c34a4d | 1366 | #define CLK_CLKSEL1_PWM0_CH01_S_Pos (4) /*!< CLK_T::CLKSEL1: PWM0_CH01_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1367 | #define CLK_CLKSEL1_PWM0_CH01_S_Msk (0x3ul << CLK_CLKSEL1_PWM0_CH01_S_Pos) /*!< CLK_T::CLKSEL1: PWM0_CH01_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1368 | |
AnnaBridge | 174:b96e65c34a4d | 1369 | #define CLK_CLKSEL1_PWM0_CH23_S_Pos (6) /*!< CLK_T::CLKSEL1: PWM0_CH23_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1370 | #define CLK_CLKSEL1_PWM0_CH23_S_Msk (0x3ul << CLK_CLKSEL1_PWM0_CH23_S_Pos) /*!< CLK_T::CLKSEL1: PWM0_CH23_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1371 | |
AnnaBridge | 174:b96e65c34a4d | 1372 | #define CLK_CLKSEL1_TMR0_S_Pos (8) /*!< CLK_T::CLKSEL1: TMR0_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1373 | #define CLK_CLKSEL1_TMR0_S_Msk (0x7ul << CLK_CLKSEL1_TMR0_S_Pos) /*!< CLK_T::CLKSEL1: TMR0_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1374 | |
AnnaBridge | 174:b96e65c34a4d | 1375 | #define CLK_CLKSEL1_TMR1_S_Pos (12) /*!< CLK_T::CLKSEL1: TMR1_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1376 | #define CLK_CLKSEL1_TMR1_S_Msk (0x7ul << CLK_CLKSEL1_TMR1_S_Pos) /*!< CLK_T::CLKSEL1: TMR1_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1377 | |
AnnaBridge | 174:b96e65c34a4d | 1378 | #define CLK_CLKSEL1_LCD_S_Pos (18) /*!< CLK_T::CLKSEL1: LCD_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1379 | #define CLK_CLKSEL1_LCD_S_Msk (0x1ul << CLK_CLKSEL1_LCD_S_Pos) /*!< CLK_T::CLKSEL1: LCD_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1380 | |
AnnaBridge | 174:b96e65c34a4d | 1381 | #define CLK_CLKSEL2_FRQDIV_S_Pos (2) /*!< CLK_T::CLKSEL2: FRQDIV_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1382 | #define CLK_CLKSEL2_FRQDIV_S_Msk (0x3ul << CLK_CLKSEL2_FRQDIV_S_Pos) /*!< CLK_T::CLKSEL2: FRQDIV_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1383 | |
AnnaBridge | 174:b96e65c34a4d | 1384 | #define CLK_CLKSEL2_PWM1_CH01_S_Pos (4) /*!< CLK_T::CLKSEL2: PWM1_CH01_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1385 | #define CLK_CLKSEL2_PWM1_CH01_S_Msk (0x3ul << CLK_CLKSEL2_PWM1_CH01_S_Pos) /*!< CLK_T::CLKSEL2: PWM1_CH01_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1386 | |
AnnaBridge | 174:b96e65c34a4d | 1387 | #define CLK_CLKSEL2_PWM1_CH23_S_Pos (6) /*!< CLK_T::CLKSEL2: PWM1_CH23_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1388 | #define CLK_CLKSEL2_PWM1_CH23_S_Msk (0x3ul << CLK_CLKSEL2_PWM1_CH23_S_Pos) /*!< CLK_T::CLKSEL2: PWM1_CH23_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1389 | |
AnnaBridge | 174:b96e65c34a4d | 1390 | #define CLK_CLKSEL2_TMR2_S_Pos (8) /*!< CLK_T::CLKSEL2: TMR2_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1391 | #define CLK_CLKSEL2_TMR2_S_Msk (0x7ul << CLK_CLKSEL2_TMR2_S_Pos) /*!< CLK_T::CLKSEL2: TMR2_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1392 | |
AnnaBridge | 174:b96e65c34a4d | 1393 | #define CLK_CLKSEL2_TMR3_S_Pos (12) /*!< CLK_T::CLKSEL2: TMR3_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1394 | #define CLK_CLKSEL2_TMR3_S_Msk (0x7ul << CLK_CLKSEL2_TMR3_S_Pos) /*!< CLK_T::CLKSEL2: TMR3_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1395 | |
AnnaBridge | 174:b96e65c34a4d | 1396 | #define CLK_CLKSEL2_I2S_S_Pos (16) /*!< CLK_T::CLKSEL2: I2S_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1397 | #define CLK_CLKSEL2_I2S_S_Msk (0x3ul << CLK_CLKSEL2_I2S_S_Pos) /*!< CLK_T::CLKSEL2: I2S_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1398 | |
AnnaBridge | 174:b96e65c34a4d | 1399 | #define CLK_CLKSEL2_SC_S_Pos (18) /*!< CLK_T::CLKSEL2: SC_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1400 | #define CLK_CLKSEL2_SC_S_Msk (0x3ul << CLK_CLKSEL2_SC_S_Pos) /*!< CLK_T::CLKSEL2: SC_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1401 | |
AnnaBridge | 174:b96e65c34a4d | 1402 | #define CLK_CLKSEL2_SPI0_S_Pos (20) /*!< CLK_T::CLKSEL2: SPI0_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1403 | #define CLK_CLKSEL2_SPI0_S_Msk (0x1ul << CLK_CLKSEL2_SPI0_S_Pos) /*!< CLK_T::CLKSEL2: SPI0_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1404 | |
AnnaBridge | 174:b96e65c34a4d | 1405 | #define CLK_CLKSEL2_SPI1_S_Pos (21) /*!< CLK_T::CLKSEL2: SPI1_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1406 | #define CLK_CLKSEL2_SPI1_S_Msk (0x1ul << CLK_CLKSEL2_SPI1_S_Pos) /*!< CLK_T::CLKSEL2: SPI1_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1407 | |
AnnaBridge | 174:b96e65c34a4d | 1408 | #define CLK_CLKSEL2_SPI2_S_Pos (22) /*!< CLK_T::CLKSEL2: SPI2_S Position */ |
AnnaBridge | 174:b96e65c34a4d | 1409 | #define CLK_CLKSEL2_SPI2_S_Msk (0x1ul << CLK_CLKSEL2_SPI2_S_Pos) /*!< CLK_T::CLKSEL2: SPI2_S Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1410 | |
AnnaBridge | 174:b96e65c34a4d | 1411 | #define CLK_CLKDIV0_HCLK_N_Pos (0) /*!< CLK_T::CLKDIV0: HCLK_N Position */ |
AnnaBridge | 174:b96e65c34a4d | 1412 | #define CLK_CLKDIV0_HCLK_N_Msk (0xful << CLK_CLKDIV0_HCLK_N_Pos) /*!< CLK_T::CLKDIV0: HCLK_N Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1413 | |
AnnaBridge | 174:b96e65c34a4d | 1414 | #define CLK_CLKDIV0_USB_N_Pos (4) /*!< CLK_T::CLKDIV0: USB_N Position */ |
AnnaBridge | 174:b96e65c34a4d | 1415 | #define CLK_CLKDIV0_USB_N_Msk (0xful << CLK_CLKDIV0_USB_N_Pos) /*!< CLK_T::CLKDIV0: USB_N Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1416 | |
AnnaBridge | 174:b96e65c34a4d | 1417 | #define CLK_CLKDIV0_UART_N_Pos (8) /*!< CLK_T::CLKDIV0: UART_N Position */ |
AnnaBridge | 174:b96e65c34a4d | 1418 | #define CLK_CLKDIV0_UART_N_Msk (0xful << CLK_CLKDIV0_UART_N_Pos) /*!< CLK_T::CLKDIV0: UART_N Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1419 | |
AnnaBridge | 174:b96e65c34a4d | 1420 | #define CLK_CLKDIV0_I2S_N_Pos (12) /*!< CLK_T::CLKDIV0: I2S_N Position */ |
AnnaBridge | 174:b96e65c34a4d | 1421 | #define CLK_CLKDIV0_I2S_N_Msk (0xful << CLK_CLKDIV0_I2S_N_Pos) /*!< CLK_T::CLKDIV0: I2S_N Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1422 | |
AnnaBridge | 174:b96e65c34a4d | 1423 | #define CLK_CLKDIV0_ADC_N_Pos (16) /*!< CLK_T::CLKDIV0: ADC_N Position */ |
AnnaBridge | 174:b96e65c34a4d | 1424 | #define CLK_CLKDIV0_ADC_N_Msk (0xfful << CLK_CLKDIV0_ADC_N_Pos) /*!< CLK_T::CLKDIV0: ADC_N Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1425 | |
AnnaBridge | 174:b96e65c34a4d | 1426 | #define CLK_CLKDIV0_SC0_N_Pos (28) /*!< CLK_T::CLKDIV0: SC0_N Position */ |
AnnaBridge | 174:b96e65c34a4d | 1427 | #define CLK_CLKDIV0_SC0_N_Msk (0xful << CLK_CLKDIV0_SC0_N_Pos) /*!< CLK_T::CLKDIV0: SC0_N Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1428 | |
AnnaBridge | 174:b96e65c34a4d | 1429 | #define CLK_CLKDIV1_SC1_N_Pos (0) /*!< CLK_T::CLKDIV1: SC1_N Position */ |
AnnaBridge | 174:b96e65c34a4d | 1430 | #define CLK_CLKDIV1_SC1_N_Msk (0xful << CLK_CLKDIV1_SC1_N_Pos) /*!< CLK_T::CLKDIV1: SC1_N Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1431 | |
AnnaBridge | 174:b96e65c34a4d | 1432 | #define CLK_CLKDIV1_SC2_N_Pos (4) /*!< CLK_T::CLKDIV1: SC2_N Position */ |
AnnaBridge | 174:b96e65c34a4d | 1433 | #define CLK_CLKDIV1_SC2_N_Msk (0xful << CLK_CLKDIV1_SC2_N_Pos) /*!< CLK_T::CLKDIV1: SC2_N Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1434 | |
AnnaBridge | 174:b96e65c34a4d | 1435 | #define CLK_PLLCTL_FB_DV_Pos (0) /*!< CLK_T::PLLCTL: FB_DV Position */ |
AnnaBridge | 174:b96e65c34a4d | 1436 | #define CLK_PLLCTL_FB_DV_Msk (0x3ful << CLK_PLLCTL_FB_DV_Pos) /*!< CLK_T::PLLCTL: FB_DV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1437 | |
AnnaBridge | 174:b96e65c34a4d | 1438 | #define CLK_PLLCTL_IN_DV_Pos (8) /*!< CLK_T::PLLCTL: IN_DV Position */ |
AnnaBridge | 174:b96e65c34a4d | 1439 | #define CLK_PLLCTL_IN_DV_Msk (0x3ul << CLK_PLLCTL_IN_DV_Pos) /*!< CLK_T::PLLCTL: IN_DV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1440 | |
AnnaBridge | 174:b96e65c34a4d | 1441 | #define CLK_PLLCTL_OUT_DV_Pos (12) /*!< CLK_T::PLLCTL: OUT_DV Position */ |
AnnaBridge | 174:b96e65c34a4d | 1442 | #define CLK_PLLCTL_OUT_DV_Msk (0x1ul << CLK_PLLCTL_OUT_DV_Pos) /*!< CLK_T::PLLCTL: OUT_DV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1443 | |
AnnaBridge | 174:b96e65c34a4d | 1444 | #define CLK_PLLCTL_PD_Pos (16) /*!< CLK_T::PLLCTL: PD Position */ |
AnnaBridge | 174:b96e65c34a4d | 1445 | #define CLK_PLLCTL_PD_Msk (0x1ul << CLK_PLLCTL_PD_Pos) /*!< CLK_T::PLLCTL: PD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1446 | |
AnnaBridge | 174:b96e65c34a4d | 1447 | #define CLK_PLLCTL_PLL_SRC_Pos (17) /*!< CLK_T::PLLCTL: PLL_SRC Position */ |
AnnaBridge | 174:b96e65c34a4d | 1448 | #define CLK_PLLCTL_PLL_SRC_Msk (0x1ul << CLK_PLLCTL_PLL_SRC_Pos) /*!< CLK_T::PLLCTL: PLL_SRC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1449 | |
AnnaBridge | 174:b96e65c34a4d | 1450 | #define CLK_FRQDIV_FSEL_Pos (0) /*!< CLK_T::FRQDIV: FSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 1451 | #define CLK_FRQDIV_FSEL_Msk (0xful << CLK_FRQDIV_FSEL_Pos) /*!< CLK_T::FRQDIV: FSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1452 | |
AnnaBridge | 174:b96e65c34a4d | 1453 | #define CLK_FRQDIV_FDIV_EN_Pos (4) /*!< CLK_T::FRQDIV: FDIV_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1454 | #define CLK_FRQDIV_FDIV_EN_Msk (0x1ul << CLK_FRQDIV_FDIV_EN_Pos) /*!< CLK_T::FRQDIV: FDIV_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1455 | |
AnnaBridge | 174:b96e65c34a4d | 1456 | #define CLK_MCLKO_MCLK_SEL_Pos (0) /*!< CLK_T::MCLKO: MCLK_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 1457 | #define CLK_MCLKO_MCLK_SEL_Msk (0x3ful << CLK_MCLKO_MCLK_SEL_Pos) /*!< CLK_T::MCLKO: MCLK_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1458 | |
AnnaBridge | 174:b96e65c34a4d | 1459 | #define CLK_MCLKO_MCLK_EN_Pos (7) /*!< CLK_T::MCLKO: MCLK_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1460 | #define CLK_MCLKO_MCLK_EN_Msk (0x1ul << CLK_MCLKO_MCLK_EN_Pos) /*!< CLK_T::MCLKO: MCLK_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1461 | |
AnnaBridge | 174:b96e65c34a4d | 1462 | #define CLK_WK_INTSTS_PD_WK_IS_Pos (0) /*!< CLK_T::WK_INTSTS: PD_WK_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 1463 | #define CLK_WK_INTSTS_PD_WK_IS_Msk (0x1ul << CLK_WK_INTSTS_PD_WK_IS_Pos) /*!< CLK_T::WK_INTSTS: PD_WK_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1464 | |
AnnaBridge | 174:b96e65c34a4d | 1465 | /**@}*/ /* CLK_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 1466 | /**@}*/ /* end of CLK register group */ |
AnnaBridge | 174:b96e65c34a4d | 1467 | |
AnnaBridge | 174:b96e65c34a4d | 1468 | |
AnnaBridge | 174:b96e65c34a4d | 1469 | /*---------------------- Digital to Analog Converter -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 1470 | /** |
AnnaBridge | 174:b96e65c34a4d | 1471 | @addtogroup DAC Digital to Analog Converter(DAC) |
AnnaBridge | 174:b96e65c34a4d | 1472 | Memory Mapped Structure for DAC Controller |
AnnaBridge | 174:b96e65c34a4d | 1473 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 1474 | |
AnnaBridge | 174:b96e65c34a4d | 1475 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 1476 | |
AnnaBridge | 174:b96e65c34a4d | 1477 | |
AnnaBridge | 174:b96e65c34a4d | 1478 | /** |
AnnaBridge | 174:b96e65c34a4d | 1479 | * CTL0 |
AnnaBridge | 174:b96e65c34a4d | 1480 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1481 | * Offset: 0x00 DAC0 Control Register |
AnnaBridge | 174:b96e65c34a4d | 1482 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1483 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1484 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1485 | * |[0] |DACEN |DAC Enable |
AnnaBridge | 174:b96e65c34a4d | 1486 | * | | |0 = Power down DAC. |
AnnaBridge | 174:b96e65c34a4d | 1487 | * | | |1 = Power on DAC. |
AnnaBridge | 174:b96e65c34a4d | 1488 | * | | |Note: When DAC is powered on, DAC will automatically start conversion after waiting for DACPWONSTBCNT+1 PCLK cycle |
AnnaBridge | 174:b96e65c34a4d | 1489 | * |[1] |DACIE |DAC Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 1490 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 1491 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 1492 | * |[6:4] |DACLSEL |DAC Load Selection |
AnnaBridge | 174:b96e65c34a4d | 1493 | * | | |Select the load trigger for the DAC latch. |
AnnaBridge | 174:b96e65c34a4d | 1494 | * | | |000 = DAC latch loads when DACx_DAT written |
AnnaBridge | 174:b96e65c34a4d | 1495 | * | | |001 = PDMA ACK |
AnnaBridge | 174:b96e65c34a4d | 1496 | * | | |010 = Rising edge of TMR0 |
AnnaBridge | 174:b96e65c34a4d | 1497 | * | | |011 = Rising edge of TMR1 |
AnnaBridge | 174:b96e65c34a4d | 1498 | * | | |100 = Rising edge of TMR2 |
AnnaBridge | 174:b96e65c34a4d | 1499 | * | | |101 = Rising edge of TMR3 |
AnnaBridge | 174:b96e65c34a4d | 1500 | * | | |Others = Reserved |
AnnaBridge | 174:b96e65c34a4d | 1501 | * |[21:8] |DACPWONSTBCNT|DACPWONSTBCNT |
AnnaBridge | 174:b96e65c34a4d | 1502 | * | | |DAC need 6 us to be stable after DAC is power on from power down state. |
AnnaBridge | 174:b96e65c34a4d | 1503 | * | | |This field controls a internal counter (in PCLK unit) to guarantee DAC stable time requirement. |
AnnaBridge | 174:b96e65c34a4d | 1504 | */ |
AnnaBridge | 174:b96e65c34a4d | 1505 | __IO uint32_t CTL0; |
AnnaBridge | 174:b96e65c34a4d | 1506 | |
AnnaBridge | 174:b96e65c34a4d | 1507 | /** |
AnnaBridge | 174:b96e65c34a4d | 1508 | * DATA0 |
AnnaBridge | 174:b96e65c34a4d | 1509 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1510 | * Offset: 0x04 DAC0 Data Register |
AnnaBridge | 174:b96e65c34a4d | 1511 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1512 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1513 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1514 | * |[11:0] |DACData |DAC data |
AnnaBridge | 174:b96e65c34a4d | 1515 | */ |
AnnaBridge | 174:b96e65c34a4d | 1516 | __IO uint32_t DATA0; |
AnnaBridge | 174:b96e65c34a4d | 1517 | |
AnnaBridge | 174:b96e65c34a4d | 1518 | /** |
AnnaBridge | 174:b96e65c34a4d | 1519 | * STS0 |
AnnaBridge | 174:b96e65c34a4d | 1520 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1521 | * Offset: 0x08 DAC0 Status Register |
AnnaBridge | 174:b96e65c34a4d | 1522 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1523 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1524 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1525 | * |[0] |DACIFG |DAC Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 1526 | * | | |0 = No interrupt pending. |
AnnaBridge | 174:b96e65c34a4d | 1527 | * | | |1 = Interrupt pending. |
AnnaBridge | 174:b96e65c34a4d | 1528 | * | | |Note: This bit is read only. |
AnnaBridge | 174:b96e65c34a4d | 1529 | * |[1] |DACSTFG |DAC Start Flag |
AnnaBridge | 174:b96e65c34a4d | 1530 | * | | |0 = DAC is not start yet. |
AnnaBridge | 174:b96e65c34a4d | 1531 | * | | |1 = DAC has been started. |
AnnaBridge | 174:b96e65c34a4d | 1532 | * | | |Note: this bit is read only. |
AnnaBridge | 174:b96e65c34a4d | 1533 | * |[2] |BUSY |BUSY Bit |
AnnaBridge | 174:b96e65c34a4d | 1534 | * | | |0 = DAC is not busy. |
AnnaBridge | 174:b96e65c34a4d | 1535 | * | | |1 = DAC is busy. |
AnnaBridge | 174:b96e65c34a4d | 1536 | */ |
AnnaBridge | 174:b96e65c34a4d | 1537 | __IO uint32_t STS0; |
AnnaBridge | 174:b96e65c34a4d | 1538 | uint32_t RESERVE0[1]; |
AnnaBridge | 174:b96e65c34a4d | 1539 | |
AnnaBridge | 174:b96e65c34a4d | 1540 | |
AnnaBridge | 174:b96e65c34a4d | 1541 | /** |
AnnaBridge | 174:b96e65c34a4d | 1542 | * CTL1 |
AnnaBridge | 174:b96e65c34a4d | 1543 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1544 | * Offset: 0x10 DAC1 Control Register |
AnnaBridge | 174:b96e65c34a4d | 1545 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1546 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1547 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1548 | * |[0] |DACEN |DAC Enable |
AnnaBridge | 174:b96e65c34a4d | 1549 | * | | |0 = Power down DAC. |
AnnaBridge | 174:b96e65c34a4d | 1550 | * | | |1 = Power on DAC. |
AnnaBridge | 174:b96e65c34a4d | 1551 | * | | |Note: When DAC is powered on, DAC will automatically start conversion after waiting for DACPWONSTBCNT+1 PCLK cycle |
AnnaBridge | 174:b96e65c34a4d | 1552 | * |[1] |DACIE |DAC Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 1553 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 1554 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 1555 | * |[6:4] |DACLSEL |DAC Load Selection |
AnnaBridge | 174:b96e65c34a4d | 1556 | * | | |Select the load trigger for the DAC latch. |
AnnaBridge | 174:b96e65c34a4d | 1557 | * | | |000 = DAC latch loads when DACx_DAT written |
AnnaBridge | 174:b96e65c34a4d | 1558 | * | | |001 = PDMA ACK |
AnnaBridge | 174:b96e65c34a4d | 1559 | * | | |010 = Rising edge of TMR0 |
AnnaBridge | 174:b96e65c34a4d | 1560 | * | | |011 = Rising edge of TMR1 |
AnnaBridge | 174:b96e65c34a4d | 1561 | * | | |100 = Rising edge of TMR2 |
AnnaBridge | 174:b96e65c34a4d | 1562 | * | | |101 = Rising edge of TMR3 |
AnnaBridge | 174:b96e65c34a4d | 1563 | * | | |Others = Reserved |
AnnaBridge | 174:b96e65c34a4d | 1564 | * |[21:8] |DACPWONSTBCNT|DACPWONSTBCNT |
AnnaBridge | 174:b96e65c34a4d | 1565 | * | | |DAC need 6 us to be stable after DAC is power on from power down state. |
AnnaBridge | 174:b96e65c34a4d | 1566 | * | | |This field controls a internal counter (in PCLK unit) to guarantee DAC stable time requirement. |
AnnaBridge | 174:b96e65c34a4d | 1567 | */ |
AnnaBridge | 174:b96e65c34a4d | 1568 | __IO uint32_t CTL1; |
AnnaBridge | 174:b96e65c34a4d | 1569 | |
AnnaBridge | 174:b96e65c34a4d | 1570 | /** |
AnnaBridge | 174:b96e65c34a4d | 1571 | * DATA1 |
AnnaBridge | 174:b96e65c34a4d | 1572 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1573 | * Offset: 0x14 DAC1 Data Register |
AnnaBridge | 174:b96e65c34a4d | 1574 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1575 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1576 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1577 | * |[11:0] |DACData |DAC data |
AnnaBridge | 174:b96e65c34a4d | 1578 | */ |
AnnaBridge | 174:b96e65c34a4d | 1579 | __IO uint32_t DATA1; |
AnnaBridge | 174:b96e65c34a4d | 1580 | |
AnnaBridge | 174:b96e65c34a4d | 1581 | /** |
AnnaBridge | 174:b96e65c34a4d | 1582 | * STS1 |
AnnaBridge | 174:b96e65c34a4d | 1583 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1584 | * Offset: 0x18 DAC1 Status Register |
AnnaBridge | 174:b96e65c34a4d | 1585 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1586 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1587 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1588 | * |[0] |DACIFG |DAC Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 1589 | * | | |0 = No interrupt pending. |
AnnaBridge | 174:b96e65c34a4d | 1590 | * | | |1 = Interrupt pending. |
AnnaBridge | 174:b96e65c34a4d | 1591 | * | | |Note: This bit is read only. |
AnnaBridge | 174:b96e65c34a4d | 1592 | * |[1] |DACSTFG |DAC Start Flag |
AnnaBridge | 174:b96e65c34a4d | 1593 | * | | |0 = DAC is not start yet. |
AnnaBridge | 174:b96e65c34a4d | 1594 | * | | |1 = DAC has been started. |
AnnaBridge | 174:b96e65c34a4d | 1595 | * | | |Note: this bit is read only. |
AnnaBridge | 174:b96e65c34a4d | 1596 | * |[2] |BUSY |BUSY Bit |
AnnaBridge | 174:b96e65c34a4d | 1597 | * | | |0 = DAC is not busy. |
AnnaBridge | 174:b96e65c34a4d | 1598 | * | | |1 = DAC is busy. |
AnnaBridge | 174:b96e65c34a4d | 1599 | */ |
AnnaBridge | 174:b96e65c34a4d | 1600 | __IO uint32_t STS1; |
AnnaBridge | 174:b96e65c34a4d | 1601 | uint32_t RESERVE1[1]; |
AnnaBridge | 174:b96e65c34a4d | 1602 | |
AnnaBridge | 174:b96e65c34a4d | 1603 | |
AnnaBridge | 174:b96e65c34a4d | 1604 | /** |
AnnaBridge | 174:b96e65c34a4d | 1605 | * COMCTL |
AnnaBridge | 174:b96e65c34a4d | 1606 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1607 | * Offset: 0x20 DAC01 Common Control Register |
AnnaBridge | 174:b96e65c34a4d | 1608 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1609 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1610 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1611 | * |[7:0] |WAITDACCONV|Wait DAC Conversion Complete |
AnnaBridge | 174:b96e65c34a4d | 1612 | * | | |The DAC needs at least 2 us to settle down every time when each data deliver to DAC, which means user cannot update each DACx_data register faster than 2 us; otherwise data will lost. |
AnnaBridge | 174:b96e65c34a4d | 1613 | * | | |Setting this register can adjust the time interval in PCLK unit between each DACx_data into DAC in order to meet the 2 us requirement. |
AnnaBridge | 174:b96e65c34a4d | 1614 | * |[8] |DAC01GRP |Group DAC0 And DAC1 |
AnnaBridge | 174:b96e65c34a4d | 1615 | * | | |0 = Not grouped. |
AnnaBridge | 174:b96e65c34a4d | 1616 | * | | |1 = Grouped. |
AnnaBridge | 174:b96e65c34a4d | 1617 | * |[10:9] |REFSEL |Reference Voltage Selection |
AnnaBridge | 174:b96e65c34a4d | 1618 | * | | |00 = AVDD |
AnnaBridge | 174:b96e65c34a4d | 1619 | * | | |01 = Internal reference voltage |
AnnaBridge | 174:b96e65c34a4d | 1620 | * | | |10 = External reference voltage |
AnnaBridge | 174:b96e65c34a4d | 1621 | * | | |11= Reserved |
AnnaBridge | 174:b96e65c34a4d | 1622 | */ |
AnnaBridge | 174:b96e65c34a4d | 1623 | __IO uint32_t COMCTL; |
AnnaBridge | 174:b96e65c34a4d | 1624 | |
AnnaBridge | 174:b96e65c34a4d | 1625 | } DAC_T; |
AnnaBridge | 174:b96e65c34a4d | 1626 | |
AnnaBridge | 174:b96e65c34a4d | 1627 | /** |
AnnaBridge | 174:b96e65c34a4d | 1628 | @addtogroup DAC_CONST DAC Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 1629 | Constant Definitions for DAC Controller |
AnnaBridge | 174:b96e65c34a4d | 1630 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 1631 | |
AnnaBridge | 174:b96e65c34a4d | 1632 | #define DAC_CTL_DACEN_Pos (0) /*!< DAC_T::CTL: DACEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1633 | #define DAC_CTL_DACEN_Msk (0x1ul << DAC_CTL_DACEN_Pos) /*!< DAC_T::CTL: DACEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1634 | |
AnnaBridge | 174:b96e65c34a4d | 1635 | #define DAC_CTL_DACIE_Pos (1) /*!< DAC_T::CTL: DACIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 1636 | #define DAC_CTL_DACIE_Msk (0x1ul << DAC_CTL_DACIE_Pos) /*!< DAC_T::CTL: DACIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1637 | |
AnnaBridge | 174:b96e65c34a4d | 1638 | #define DAC_CTL_DACLSEL_Pos (4) /*!< DAC_T::CTL: DACLSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 1639 | #define DAC_CTL_DACLSEL_Msk (0x7ul << DAC_CTL_DACLSEL_Pos) /*!< DAC_T::CTL: DACLSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1640 | |
AnnaBridge | 174:b96e65c34a4d | 1641 | #define DAC_CTL_DACPWONSTBCNT_Pos (8) /*!< DAC_T::CTL: DACPWONSTBCNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 1642 | #define DAC_CTL_DACPWONSTBCNT_Msk (0x3ffful << DAC_CTL_DACPWONSTBCNT_Pos) /*!< DAC_T::CTL: DACPWONSTBCNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1643 | |
AnnaBridge | 174:b96e65c34a4d | 1644 | #define DAC_DATA_DACData_Pos (0) /*!< DAC_T::DATA: DACData Position */ |
AnnaBridge | 174:b96e65c34a4d | 1645 | #define DAC_DATA_DACData_Msk (0xffful << DAC_DATA_DACData_Pos) /*!< DAC_T::DATA: DACData Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1646 | |
AnnaBridge | 174:b96e65c34a4d | 1647 | #define DAC_STS_DACIFG_Pos (0) /*!< DAC_T::STS: DACIFG Position */ |
AnnaBridge | 174:b96e65c34a4d | 1648 | #define DAC_STS_DACIFG_Msk (0x1ul << DAC_STS_DACIFG_Pos) /*!< DAC_T::STS: DACIFG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1649 | |
AnnaBridge | 174:b96e65c34a4d | 1650 | #define DAC_STS_DACSTFG_Pos (1) /*!< DAC_T::STS: DACSTFG Position */ |
AnnaBridge | 174:b96e65c34a4d | 1651 | #define DAC_STS_DACSTFG_Msk (0x1ul << DAC_STS_DACSTFG_Pos) /*!< DAC_T::STS: DACSTFG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1652 | |
AnnaBridge | 174:b96e65c34a4d | 1653 | #define DAC_STS_BUSY_Pos (2) /*!< DAC_T::STS: BUSY Position */ |
AnnaBridge | 174:b96e65c34a4d | 1654 | #define DAC_STS_BUSY_Msk (0x1ul << DAC_STS_BUSY_Pos) /*!< DAC_T::STS: BUSY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1655 | |
AnnaBridge | 174:b96e65c34a4d | 1656 | #define DAC_COMCTL_WAITDACCONV_Pos (0) /*!< DAC_T::COMCTL: WAITDACCONV Position */ |
AnnaBridge | 174:b96e65c34a4d | 1657 | #define DAC_COMCTL_WAITDACCONV_Msk (0xfful << DAC_COMCTL_WAITDACCONV_Pos) /*!< DAC_T::COMCTL: WAITDACCONV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1658 | |
AnnaBridge | 174:b96e65c34a4d | 1659 | #define DAC_COMCTL_DAC01GRP_Pos (8) /*!< DAC_T::COMCTL: DAC01GRP Position */ |
AnnaBridge | 174:b96e65c34a4d | 1660 | #define DAC_COMCTL_DAC01GRP_Msk (0x1ul << DAC_COMCTL_DAC01GRP_Pos) /*!< DAC_T::COMCTL: DAC01GRP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1661 | |
AnnaBridge | 174:b96e65c34a4d | 1662 | #define DAC_COMCTL_REFSEL_Pos (9) /*!< DAC_T::COMCTL: REFSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 1663 | #define DAC_COMCTL_REFSEL_Msk (0x3ul << DAC_COMCTL_REFSEL_Pos) /*!< DAC_T::COMCTL: REFSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1664 | |
AnnaBridge | 174:b96e65c34a4d | 1665 | /**@}*/ /* DAC_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 1666 | /**@}*/ /* end of DAC register group */ |
AnnaBridge | 174:b96e65c34a4d | 1667 | |
AnnaBridge | 174:b96e65c34a4d | 1668 | |
AnnaBridge | 174:b96e65c34a4d | 1669 | /*---------------------- External Bus Interface Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 1670 | /** |
AnnaBridge | 174:b96e65c34a4d | 1671 | @addtogroup EBI External Bus Interface Controller(EBI) |
AnnaBridge | 174:b96e65c34a4d | 1672 | Memory Mapped Structure for EBI Controller |
AnnaBridge | 174:b96e65c34a4d | 1673 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 1674 | |
AnnaBridge | 174:b96e65c34a4d | 1675 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 1676 | |
AnnaBridge | 174:b96e65c34a4d | 1677 | |
AnnaBridge | 174:b96e65c34a4d | 1678 | /** |
AnnaBridge | 174:b96e65c34a4d | 1679 | * EBICON |
AnnaBridge | 174:b96e65c34a4d | 1680 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1681 | * Offset: 0x00 External Bus Interface General Control Register |
AnnaBridge | 174:b96e65c34a4d | 1682 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1683 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1684 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1685 | * |[0] |ExtEN |EBI Enable |
AnnaBridge | 174:b96e65c34a4d | 1686 | * | | |This bit is the functional enable bit for EBI. |
AnnaBridge | 174:b96e65c34a4d | 1687 | * | | |0 = EBI function is disabled. |
AnnaBridge | 174:b96e65c34a4d | 1688 | * | | |1 = EBI function is enabled. |
AnnaBridge | 174:b96e65c34a4d | 1689 | * |[1] |ExtBW16 |EBI Data Width 16-Bit |
AnnaBridge | 174:b96e65c34a4d | 1690 | * | | |This bit defines if the data bus is 8-bit or 16-bit. |
AnnaBridge | 174:b96e65c34a4d | 1691 | * | | |0 = EBI data width is 8-bit. |
AnnaBridge | 174:b96e65c34a4d | 1692 | * | | |1 = EBI data width is 16-bit. |
AnnaBridge | 174:b96e65c34a4d | 1693 | * |[10:8] |MCLKDIV |External Output Clock Divider |
AnnaBridge | 174:b96e65c34a4d | 1694 | * | | |The frequency of EBI output clock is controlled by MCLKDIV as shown in the following table. |
AnnaBridge | 174:b96e65c34a4d | 1695 | * | | |000 = HCLK/1. |
AnnaBridge | 174:b96e65c34a4d | 1696 | * | | |001 = HCLK/2. |
AnnaBridge | 174:b96e65c34a4d | 1697 | * | | |010 = HCLK/4. |
AnnaBridge | 174:b96e65c34a4d | 1698 | * | | |011 = HCLK/8. |
AnnaBridge | 174:b96e65c34a4d | 1699 | * | | |100 = HCLK/16. |
AnnaBridge | 174:b96e65c34a4d | 1700 | * | | |101 = HCLK/32. |
AnnaBridge | 174:b96e65c34a4d | 1701 | * | | |110 = Default. |
AnnaBridge | 174:b96e65c34a4d | 1702 | * | | |111 = Default. |
AnnaBridge | 174:b96e65c34a4d | 1703 | * | | |Notice: Default value of output clock is HCLK/1 |
AnnaBridge | 174:b96e65c34a4d | 1704 | * |[11] |MCLKEN |External Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 1705 | * | | |This bit control if EBI generates the clock to external device. |
AnnaBridge | 174:b96e65c34a4d | 1706 | * | | |If external device is a synchronous device, it's necessary to set this bit high to enable EBI generating clock to external device. |
AnnaBridge | 174:b96e65c34a4d | 1707 | * | | |If the external device is an asynchronous device, keep this bit low is recommended to save power consumption. |
AnnaBridge | 174:b96e65c34a4d | 1708 | * | | |0 = EBI Disabled to generate clock to external device. |
AnnaBridge | 174:b96e65c34a4d | 1709 | * | | |1 = EBI Enabled to generate clock to external device. |
AnnaBridge | 174:b96e65c34a4d | 1710 | * |[18:16] |ExttALE |Expand Time Of ALE |
AnnaBridge | 174:b96e65c34a4d | 1711 | * | | |The ALE width (tALE) to latch the address can be controlled by ExttALE. |
AnnaBridge | 174:b96e65c34a4d | 1712 | * | | |tALE = (ExttALE+1)*MCLK. |
AnnaBridge | 174:b96e65c34a4d | 1713 | */ |
AnnaBridge | 174:b96e65c34a4d | 1714 | __IO uint32_t EBICON; |
AnnaBridge | 174:b96e65c34a4d | 1715 | |
AnnaBridge | 174:b96e65c34a4d | 1716 | /** |
AnnaBridge | 174:b96e65c34a4d | 1717 | * EXTIME |
AnnaBridge | 174:b96e65c34a4d | 1718 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1719 | * Offset: 0x04 External Bus Interface Timing Control Register |
AnnaBridge | 174:b96e65c34a4d | 1720 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1721 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1722 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1723 | * |[4:0] |ExttACC |EBI Data Access Time |
AnnaBridge | 174:b96e65c34a4d | 1724 | * | | |ExttACC define data access time (tACC). |
AnnaBridge | 174:b96e65c34a4d | 1725 | * | | |tACC = (ExttACC +1) * MCLK. |
AnnaBridge | 174:b96e65c34a4d | 1726 | * |[10:8] |ExttAHD |EBI Data Access Hold Time |
AnnaBridge | 174:b96e65c34a4d | 1727 | * | | |ExttAHD define data access hold time (tAHD). |
AnnaBridge | 174:b96e65c34a4d | 1728 | * | | |tAHD = (ExttAHD +1) * MCLK. |
AnnaBridge | 174:b96e65c34a4d | 1729 | * |[15:12] |ExtIW2X |Idle State Cycle After Write |
AnnaBridge | 174:b96e65c34a4d | 1730 | * | | |When write action is finish, idle state is inserted and nCS return to high if ExtIW2X is not zero. |
AnnaBridge | 174:b96e65c34a4d | 1731 | * | | |Idle state cycle = (ExtIW2X*MCLK). |
AnnaBridge | 174:b96e65c34a4d | 1732 | * |[19:16] |ExtIR2W |Idle State Cycle Between Read-Write |
AnnaBridge | 174:b96e65c34a4d | 1733 | * | | |When read action is finish and next action is going to write, idle state is inserted and nCS return to high if ExtIR2W is not zero. |
AnnaBridge | 174:b96e65c34a4d | 1734 | * | | |Idle state cycle = (ExtIR2W*MCLK). |
AnnaBridge | 174:b96e65c34a4d | 1735 | * |[27:24] |ExtIR2R |Idle State Cycle Between Read-Read |
AnnaBridge | 174:b96e65c34a4d | 1736 | * | | |When read action is finish and next action is going to read, idle state is inserted and nCS return to high if ExtIR2R is not zero. |
AnnaBridge | 174:b96e65c34a4d | 1737 | * | | |Idle state cycle = (ExtIR2R*MCLK). |
AnnaBridge | 174:b96e65c34a4d | 1738 | */ |
AnnaBridge | 174:b96e65c34a4d | 1739 | __IO uint32_t EXTIME; |
AnnaBridge | 174:b96e65c34a4d | 1740 | |
AnnaBridge | 174:b96e65c34a4d | 1741 | } EBI_T; |
AnnaBridge | 174:b96e65c34a4d | 1742 | |
AnnaBridge | 174:b96e65c34a4d | 1743 | /** |
AnnaBridge | 174:b96e65c34a4d | 1744 | @addtogroup EBI_CONST EBI Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 1745 | Constant Definitions for EBI Controller |
AnnaBridge | 174:b96e65c34a4d | 1746 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 1747 | |
AnnaBridge | 174:b96e65c34a4d | 1748 | #define EBI_EBICON_ExtEN_Pos (0) /*!< EBI_T::EBICON: ExtEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1749 | #define EBI_EBICON_ExtEN_Msk (0x1ul << EBI_EBICON_ExtEN_Pos) /*!< EBI_T::EBICON: ExtEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1750 | |
AnnaBridge | 174:b96e65c34a4d | 1751 | #define EBI_EBICON_ExtBW16_Pos (1) /*!< EBI_T::EBICON: ExtBW16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 1752 | #define EBI_EBICON_ExtBW16_Msk (0x1ul << EBI_EBICON_ExtBW16_Pos) /*!< EBI_T::EBICON: ExtBW16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1753 | |
AnnaBridge | 174:b96e65c34a4d | 1754 | #define EBI_EBICON_MCLKDIV_Pos (8) /*!< EBI_T::EBICON: MCLKDIV Position */ |
AnnaBridge | 174:b96e65c34a4d | 1755 | #define EBI_EBICON_MCLKDIV_Msk (0x7ul << EBI_EBICON_MCLKDIV_Pos) /*!< EBI_T::EBICON: MCLKDIV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1756 | |
AnnaBridge | 174:b96e65c34a4d | 1757 | #define EBI_EBICON_MCLKEN_Pos (11) /*!< EBI_T::EBICON: MCLKEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1758 | #define EBI_EBICON_MCLKEN_Msk (0x1ul << EBI_EBICON_MCLKEN_Pos) /*!< EBI_T::EBICON: MCLKEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1759 | |
AnnaBridge | 174:b96e65c34a4d | 1760 | #define EBI_EBICON_ExttALE_Pos (16) /*!< EBI_T::EBICON: ExttALE Position */ |
AnnaBridge | 174:b96e65c34a4d | 1761 | #define EBI_EBICON_ExttALE_Msk (0x7ul << EBI_EBICON_ExttALE_Pos) /*!< EBI_T::EBICON: ExttALE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1762 | |
AnnaBridge | 174:b96e65c34a4d | 1763 | #define EBI_EXTIME_ExttACC_Pos (0) /*!< EBI_T::EXTIME: ExttACC Position */ |
AnnaBridge | 174:b96e65c34a4d | 1764 | #define EBI_EXTIME_ExttACC_Msk (0x1ful << EBI_EXTIME_ExttACC_Pos) /*!< EBI_T::EXTIME: ExttACC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1765 | |
AnnaBridge | 174:b96e65c34a4d | 1766 | #define EBI_EXTIME_ExttAHD_Pos (8) /*!< EBI_T::EXTIME: ExttAHD Position */ |
AnnaBridge | 174:b96e65c34a4d | 1767 | #define EBI_EXTIME_ExttAHD_Msk (0x7ul << EBI_EXTIME_ExttAHD_Pos) /*!< EBI_T::EXTIME: ExttAHD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1768 | |
AnnaBridge | 174:b96e65c34a4d | 1769 | #define EBI_EXTIME_ExtIW2X_Pos (12) /*!< EBI_T::EXTIME: ExtIW2X Position */ |
AnnaBridge | 174:b96e65c34a4d | 1770 | #define EBI_EXTIME_ExtIW2X_Msk (0xful << EBI_EXTIME_ExtIW2X_Pos) /*!< EBI_T::EXTIME: ExtIW2X Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1771 | |
AnnaBridge | 174:b96e65c34a4d | 1772 | #define EBI_EXTIME_ExtIR2W_Pos (16) /*!< EBI_T::EXTIME: ExtIR2W Position */ |
AnnaBridge | 174:b96e65c34a4d | 1773 | #define EBI_EXTIME_ExtIR2W_Msk (0xful << EBI_EXTIME_ExtIR2W_Pos) /*!< EBI_T::EXTIME: ExtIR2W Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1774 | |
AnnaBridge | 174:b96e65c34a4d | 1775 | #define EBI_EXTIME_ExtIR2R_Pos (24) /*!< EBI_T::EXTIME: ExtIR2R Position */ |
AnnaBridge | 174:b96e65c34a4d | 1776 | #define EBI_EXTIME_ExtIR2R_Msk (0xful << EBI_EXTIME_ExtIR2R_Pos) /*!< EBI_T::EXTIME: ExtIR2R Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1777 | |
AnnaBridge | 174:b96e65c34a4d | 1778 | /**@}*/ /* EBI_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 1779 | /**@}*/ /* end of EBI register group */ |
AnnaBridge | 174:b96e65c34a4d | 1780 | |
AnnaBridge | 174:b96e65c34a4d | 1781 | |
AnnaBridge | 174:b96e65c34a4d | 1782 | /*---------------------- Flash Memory Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 1783 | /** |
AnnaBridge | 174:b96e65c34a4d | 1784 | @addtogroup FMC Flash Memory Controller(FMC) |
AnnaBridge | 174:b96e65c34a4d | 1785 | Memory Mapped Structure for FMC Controller |
AnnaBridge | 174:b96e65c34a4d | 1786 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 1787 | |
AnnaBridge | 174:b96e65c34a4d | 1788 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 1789 | |
AnnaBridge | 174:b96e65c34a4d | 1790 | |
AnnaBridge | 174:b96e65c34a4d | 1791 | /** |
AnnaBridge | 174:b96e65c34a4d | 1792 | * ISPCON |
AnnaBridge | 174:b96e65c34a4d | 1793 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1794 | * Offset: 0x00 ISP Control Register |
AnnaBridge | 174:b96e65c34a4d | 1795 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1796 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1797 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1798 | * |[0] |ISPEN |ISP Enable (Write-Protection Bit) |
AnnaBridge | 174:b96e65c34a4d | 1799 | * | | |ISP function enable bit. Set this bit to enable ISP function. |
AnnaBridge | 174:b96e65c34a4d | 1800 | * | | |0 = ISP function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 1801 | * | | |1 = ISP function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 1802 | * |[1] |BS |Boot Select (Write-Protection Bit) |
AnnaBridge | 174:b96e65c34a4d | 1803 | * | | |Set/clear this bit to select next booting from LDROM/APROM, respectively. |
AnnaBridge | 174:b96e65c34a4d | 1804 | * | | |This bit also functions as chip booting status flag, which can be used to check where chip booted from. |
AnnaBridge | 174:b96e65c34a4d | 1805 | * | | |This bit is initiated with the inversed value of CBS in Config0 after power-on reset; It keeps the same value at other reset. |
AnnaBridge | 174:b96e65c34a4d | 1806 | * | | |0 = boot from APROM. |
AnnaBridge | 174:b96e65c34a4d | 1807 | * | | |1 = boot from LDROM. |
AnnaBridge | 174:b96e65c34a4d | 1808 | * |[3] |APUEN |APROM Update Enable (Write-Protection Bit) |
AnnaBridge | 174:b96e65c34a4d | 1809 | * | | |APROM update enable bit. |
AnnaBridge | 174:b96e65c34a4d | 1810 | * | | |0 = APROM can not be updated. |
AnnaBridge | 174:b96e65c34a4d | 1811 | * | | |1 = APROM can be updated when the MCU runs in APROM. |
AnnaBridge | 174:b96e65c34a4d | 1812 | * |[4] |CFGUEN |Enable Config-Bits Update By ISP (Write-Protection Bit) |
AnnaBridge | 174:b96e65c34a4d | 1813 | * | | |0 = Disabling ISP can update config-bits. |
AnnaBridge | 174:b96e65c34a4d | 1814 | * | | |1 = Enabling ISP can update config-bits. |
AnnaBridge | 174:b96e65c34a4d | 1815 | * |[5] |LDUEN |LDROM Update Enable (Write-Protection Bit) |
AnnaBridge | 174:b96e65c34a4d | 1816 | * | | |LDROM update enable bit. |
AnnaBridge | 174:b96e65c34a4d | 1817 | * | | |0 = LDROM cannot be updated. |
AnnaBridge | 174:b96e65c34a4d | 1818 | * | | |1 = LDROM can be updated when the chip runs in APROM. |
AnnaBridge | 174:b96e65c34a4d | 1819 | * |[6] |ISPFF |ISP Fail Flag (Write-Protection Bit) |
AnnaBridge | 174:b96e65c34a4d | 1820 | * | | |This bit is set by hardware when a triggered ISP meets any of the following conditions: |
AnnaBridge | 174:b96e65c34a4d | 1821 | * | | |(1) APROM writes to itself |
AnnaBridge | 174:b96e65c34a4d | 1822 | * | | |(2) LDROM writes to itself |
AnnaBridge | 174:b96e65c34a4d | 1823 | * | | |(3) CONFIG is erased/programmed if CFGUEN is set to 0 |
AnnaBridge | 174:b96e65c34a4d | 1824 | * | | |(4) Destination address is illegal, such as over an available range |
AnnaBridge | 174:b96e65c34a4d | 1825 | * | | |Write 1 to clear. |
AnnaBridge | 174:b96e65c34a4d | 1826 | */ |
AnnaBridge | 174:b96e65c34a4d | 1827 | __IO uint32_t ISPCON; |
AnnaBridge | 174:b96e65c34a4d | 1828 | |
AnnaBridge | 174:b96e65c34a4d | 1829 | /** |
AnnaBridge | 174:b96e65c34a4d | 1830 | * ISPADR |
AnnaBridge | 174:b96e65c34a4d | 1831 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1832 | * Offset: 0x04 ISP Address Register |
AnnaBridge | 174:b96e65c34a4d | 1833 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1834 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1835 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1836 | * |[31:0] |ISPADR |ISP Address |
AnnaBridge | 174:b96e65c34a4d | 1837 | * | | |This chip supports word program only. |
AnnaBridge | 174:b96e65c34a4d | 1838 | * | | |ISPADR[1:0] must be kept 00b for ISP operation, and ISPADR[8:0] must be kept 0_0000_0000b for Vector Page Re-map Command. |
AnnaBridge | 174:b96e65c34a4d | 1839 | */ |
AnnaBridge | 174:b96e65c34a4d | 1840 | __IO uint32_t ISPADR; |
AnnaBridge | 174:b96e65c34a4d | 1841 | |
AnnaBridge | 174:b96e65c34a4d | 1842 | /** |
AnnaBridge | 174:b96e65c34a4d | 1843 | * ISPDAT |
AnnaBridge | 174:b96e65c34a4d | 1844 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1845 | * Offset: 0x08 ISP Data Register |
AnnaBridge | 174:b96e65c34a4d | 1846 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1847 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1848 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1849 | * |[31:0] |ISPDAT |ISP Data |
AnnaBridge | 174:b96e65c34a4d | 1850 | * | | |Write data to this register before ISP program operation |
AnnaBridge | 174:b96e65c34a4d | 1851 | * | | |Read data from this register after ISP read operation |
AnnaBridge | 174:b96e65c34a4d | 1852 | */ |
AnnaBridge | 174:b96e65c34a4d | 1853 | __IO uint32_t ISPDAT; |
AnnaBridge | 174:b96e65c34a4d | 1854 | |
AnnaBridge | 174:b96e65c34a4d | 1855 | /** |
AnnaBridge | 174:b96e65c34a4d | 1856 | * ISPCMD |
AnnaBridge | 174:b96e65c34a4d | 1857 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1858 | * Offset: 0x0C ISP Command Register |
AnnaBridge | 174:b96e65c34a4d | 1859 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1860 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1861 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1862 | * |[3:0] |FCTRL |ISP Command |
AnnaBridge | 174:b96e65c34a4d | 1863 | * | | |The ISP command table is shown as follows. |
AnnaBridge | 174:b96e65c34a4d | 1864 | * |[4] |FCEN |ISP Command |
AnnaBridge | 174:b96e65c34a4d | 1865 | * | | |The ISP command table is shown as follows. |
AnnaBridge | 174:b96e65c34a4d | 1866 | * |[5] |FOEN |ISP Command |
AnnaBridge | 174:b96e65c34a4d | 1867 | * | | |The ISP command table is shown as follows. |
AnnaBridge | 174:b96e65c34a4d | 1868 | */ |
AnnaBridge | 174:b96e65c34a4d | 1869 | __IO uint32_t ISPCMD; |
AnnaBridge | 174:b96e65c34a4d | 1870 | |
AnnaBridge | 174:b96e65c34a4d | 1871 | /** |
AnnaBridge | 174:b96e65c34a4d | 1872 | * ISPTRG |
AnnaBridge | 174:b96e65c34a4d | 1873 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1874 | * Offset: 0x10 ISP Trigger Register |
AnnaBridge | 174:b96e65c34a4d | 1875 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1876 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1877 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1878 | * |[0] |ISPGO |ISP Start Trigger |
AnnaBridge | 174:b96e65c34a4d | 1879 | * | | |Write 1 to start ISP operation and this bit will be cleared to 0 by hardware automatically when ISP operation is finished. |
AnnaBridge | 174:b96e65c34a4d | 1880 | * | | |0 = ISP operation is finished. |
AnnaBridge | 174:b96e65c34a4d | 1881 | * | | |1 = ISP is progressing. |
AnnaBridge | 174:b96e65c34a4d | 1882 | */ |
AnnaBridge | 174:b96e65c34a4d | 1883 | __IO uint32_t ISPTRG; |
AnnaBridge | 174:b96e65c34a4d | 1884 | |
AnnaBridge | 174:b96e65c34a4d | 1885 | /** |
AnnaBridge | 174:b96e65c34a4d | 1886 | * DFBADR |
AnnaBridge | 174:b96e65c34a4d | 1887 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1888 | * Offset: 0x14 Data Flash Base Address |
AnnaBridge | 174:b96e65c34a4d | 1889 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1890 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1891 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1892 | * |[31:0] |DFBA |Data Flash Base Address |
AnnaBridge | 174:b96e65c34a4d | 1893 | * | | |This register indicates data flash start address. It is a read only register. |
AnnaBridge | 174:b96e65c34a4d | 1894 | * | | |The data flash start address is defined by user. |
AnnaBridge | 174:b96e65c34a4d | 1895 | * | | |Since on chip flash erase unit is 512 bytes, it is mandatory to keep bit 8-0 as 0. |
AnnaBridge | 174:b96e65c34a4d | 1896 | */ |
AnnaBridge | 174:b96e65c34a4d | 1897 | __I uint32_t DFBADR; |
AnnaBridge | 174:b96e65c34a4d | 1898 | uint32_t RESERVE0[10]; |
AnnaBridge | 174:b96e65c34a4d | 1899 | |
AnnaBridge | 174:b96e65c34a4d | 1900 | |
AnnaBridge | 174:b96e65c34a4d | 1901 | /** |
AnnaBridge | 174:b96e65c34a4d | 1902 | * ISPSTA |
AnnaBridge | 174:b96e65c34a4d | 1903 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1904 | * Offset: 0x40 ISP Status Register |
AnnaBridge | 174:b96e65c34a4d | 1905 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1906 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1907 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1908 | * |[0] |ISPBUSY |ISP BUSY |
AnnaBridge | 174:b96e65c34a4d | 1909 | * | | |0 = ISP operation is finished. |
AnnaBridge | 174:b96e65c34a4d | 1910 | * | | |1 = ISP operation is busy. |
AnnaBridge | 174:b96e65c34a4d | 1911 | * | | |Read Only |
AnnaBridge | 174:b96e65c34a4d | 1912 | * |[2:1] |CBS |Config Boot Selection Status |
AnnaBridge | 174:b96e65c34a4d | 1913 | * |[6] |ISPFF |ISP Fail Flag |
AnnaBridge | 174:b96e65c34a4d | 1914 | * | | |This bit is set by hardware when a triggered ISP meets any of the following conditions: |
AnnaBridge | 174:b96e65c34a4d | 1915 | * | | |(1) APROM writes to itself. |
AnnaBridge | 174:b96e65c34a4d | 1916 | * | | |(2) LDROM writes to itself. |
AnnaBridge | 174:b96e65c34a4d | 1917 | * | | |(3) CONFIG is erased/programmed when the MCU is running in APROM. |
AnnaBridge | 174:b96e65c34a4d | 1918 | * | | |(4) Destination address is illegal, such as over an available range. |
AnnaBridge | 174:b96e65c34a4d | 1919 | * | | |Write 1 to clear. |
AnnaBridge | 174:b96e65c34a4d | 1920 | */ |
AnnaBridge | 174:b96e65c34a4d | 1921 | __IO uint32_t ISPSTA; |
AnnaBridge | 174:b96e65c34a4d | 1922 | |
AnnaBridge | 174:b96e65c34a4d | 1923 | } FMC_T; |
AnnaBridge | 174:b96e65c34a4d | 1924 | |
AnnaBridge | 174:b96e65c34a4d | 1925 | /** |
AnnaBridge | 174:b96e65c34a4d | 1926 | @addtogroup FMC_CONST FMC Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 1927 | Constant Definitions for FMC Controller |
AnnaBridge | 174:b96e65c34a4d | 1928 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 1929 | |
AnnaBridge | 174:b96e65c34a4d | 1930 | #define FMC_ISPCON_ISPEN_Pos (0) /*!< FMC_T::ISPCON: ISPEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1931 | #define FMC_ISPCON_ISPEN_Msk (0x1ul << FMC_ISPCON_ISPEN_Pos) /*!< FMC_T::ISPCON: ISPEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1932 | |
AnnaBridge | 174:b96e65c34a4d | 1933 | #define FMC_ISPCON_BS_Pos (1) /*!< FMC_T::ISPCON: BS Position */ |
AnnaBridge | 174:b96e65c34a4d | 1934 | #define FMC_ISPCON_BS_Msk (0x1ul << FMC_ISPCON_BS_Pos) /*!< FMC_T::ISPCON: BS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1935 | |
AnnaBridge | 174:b96e65c34a4d | 1936 | #define FMC_ISPCON_APUEN_Pos (3) /*!< FMC_T::ISPCON: APUEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1937 | #define FMC_ISPCON_APUEN_Msk (0x1ul << FMC_ISPCON_APUEN_Pos) /*!< FMC_T::ISPCON: APUEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1938 | |
AnnaBridge | 174:b96e65c34a4d | 1939 | #define FMC_ISPCON_CFGUEN_Pos (4) /*!< FMC_T::ISPCON: CFGUEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1940 | #define FMC_ISPCON_CFGUEN_Msk (0x1ul << FMC_ISPCON_CFGUEN_Pos) /*!< FMC_T::ISPCON: CFGUEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1941 | |
AnnaBridge | 174:b96e65c34a4d | 1942 | #define FMC_ISPCON_LDUEN_Pos (5) /*!< FMC_T::ISPCON: LDUEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1943 | #define FMC_ISPCON_LDUEN_Msk (0x1ul << FMC_ISPCON_LDUEN_Pos) /*!< FMC_T::ISPCON: LDUEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1944 | |
AnnaBridge | 174:b96e65c34a4d | 1945 | #define FMC_ISPCON_ISPFF_Pos (6) /*!< FMC_T::ISPCON: ISPFF Position */ |
AnnaBridge | 174:b96e65c34a4d | 1946 | #define FMC_ISPCON_ISPFF_Msk (0x1ul << FMC_ISPCON_ISPFF_Pos) /*!< FMC_T::ISPCON: ISPFF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1947 | |
AnnaBridge | 174:b96e65c34a4d | 1948 | #define FMC_ISPADR_ISPADR_Pos (0) /*!< FMC_T::ISPADR: ISPADR Position */ |
AnnaBridge | 174:b96e65c34a4d | 1949 | #define FMC_ISPADR_ISPADR_Msk (0xfffffffful << FMC_ISPADR_ISPADR_Pos) /*!< FMC_T::ISPADR: ISPADR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1950 | |
AnnaBridge | 174:b96e65c34a4d | 1951 | #define FMC_ISPDAT_ISPDAT_Pos (0) /*!< FMC_T::ISPDAT: ISPDAT Position */ |
AnnaBridge | 174:b96e65c34a4d | 1952 | #define FMC_ISPDAT_ISPDAT_Msk (0xfffffffful << FMC_ISPDAT_ISPDAT_Pos) /*!< FMC_T::ISPDAT: ISPDAT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1953 | |
AnnaBridge | 174:b96e65c34a4d | 1954 | #define FMC_ISPCMD_FCTRL_Pos (0) /*!< FMC_T::ISPCMD: FCTRL Position */ |
AnnaBridge | 174:b96e65c34a4d | 1955 | #define FMC_ISPCMD_FCTRL_Msk (0xful << FMC_ISPCMD_FCTRL_Pos) /*!< FMC_T::ISPCMD: FCTRL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1956 | |
AnnaBridge | 174:b96e65c34a4d | 1957 | #define FMC_ISPCMD_FCEN_Pos (4) /*!< FMC_T::ISPCMD: FCEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1958 | #define FMC_ISPCMD_FCEN_Msk (0x1ul << FMC_ISPCMD_FCEN_Pos) /*!< FMC_T::ISPCMD: FCEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1959 | |
AnnaBridge | 174:b96e65c34a4d | 1960 | #define FMC_ISPCMD_FOEN_Pos (5) /*!< FMC_T::ISPCMD: FOEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 1961 | #define FMC_ISPCMD_FOEN_Msk (0x1ul << FMC_ISPCMD_FOEN_Pos) /*!< FMC_T::ISPCMD: FOEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1962 | |
AnnaBridge | 174:b96e65c34a4d | 1963 | #define FMC_ISPTRG_ISPGO_Pos (0) /*!< FMC_T::ISPTRG: ISPGO Position */ |
AnnaBridge | 174:b96e65c34a4d | 1964 | #define FMC_ISPTRG_ISPGO_Msk (0x1ul << FMC_ISPTRG_ISPGO_Pos) /*!< FMC_T::ISPTRG: ISPGO Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1965 | |
AnnaBridge | 174:b96e65c34a4d | 1966 | #define FMC_DFBADR_DFBA_Pos (0) /*!< FMC_T::DFBADR: DFBA Position */ |
AnnaBridge | 174:b96e65c34a4d | 1967 | #define FMC_DFBADR_DFBA_Msk (0xfffffffful << FMC_DFBADR_DFBA_Pos) /*!< FMC_T::DFBADR: DFBA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1968 | |
AnnaBridge | 174:b96e65c34a4d | 1969 | #define FMC_ISPSTA_ISPBUSY_Pos (0) /*!< FMC_T::ISPSTA: ISPBUSY Position */ |
AnnaBridge | 174:b96e65c34a4d | 1970 | #define FMC_ISPSTA_ISPBUSY_Msk (0x1ul << FMC_ISPSTA_ISPBUSY_Pos) /*!< FMC_T::ISPSTA: ISPBUSY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1971 | |
AnnaBridge | 174:b96e65c34a4d | 1972 | #define FMC_ISPSTA_CBS_Pos (1) /*!< FMC_T::ISPSTA: CBS Position */ |
AnnaBridge | 174:b96e65c34a4d | 1973 | #define FMC_ISPSTA_CBS_Msk (0x3ul << FMC_ISPSTA_CBS_Pos) /*!< FMC_T::ISPSTA: CBS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1974 | |
AnnaBridge | 174:b96e65c34a4d | 1975 | #define FMC_ISPSTA_ISPFF_Pos (6) /*!< FMC_T::ISPSTA: ISPFF Position */ |
AnnaBridge | 174:b96e65c34a4d | 1976 | #define FMC_ISPSTA_ISPFF_Msk (0x1ul << FMC_ISPSTA_ISPFF_Pos) /*!< FMC_T::ISPSTA: ISPFF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 1977 | |
AnnaBridge | 174:b96e65c34a4d | 1978 | /**@}*/ /* FMC_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 1979 | /**@}*/ /* end of FMC register group */ |
AnnaBridge | 174:b96e65c34a4d | 1980 | |
AnnaBridge | 174:b96e65c34a4d | 1981 | |
AnnaBridge | 174:b96e65c34a4d | 1982 | /*---------------------- System Global Control Registers -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 1983 | /** |
AnnaBridge | 174:b96e65c34a4d | 1984 | @addtogroup System Global Control Registers(SYS) |
AnnaBridge | 174:b96e65c34a4d | 1985 | Memory Mapped Structure for SYS Controller |
AnnaBridge | 174:b96e65c34a4d | 1986 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 1987 | |
AnnaBridge | 174:b96e65c34a4d | 1988 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 1989 | |
AnnaBridge | 174:b96e65c34a4d | 1990 | |
AnnaBridge | 174:b96e65c34a4d | 1991 | /** |
AnnaBridge | 174:b96e65c34a4d | 1992 | * PDID |
AnnaBridge | 174:b96e65c34a4d | 1993 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 1994 | * Offset: 0x00 Part Device Identification number Register |
AnnaBridge | 174:b96e65c34a4d | 1995 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 1996 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 1997 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 1998 | * |[31:0] |PDID |Part Device ID |
AnnaBridge | 174:b96e65c34a4d | 1999 | * | | |This register reflects device part number code. |
AnnaBridge | 174:b96e65c34a4d | 2000 | * | | |Software can read this register to identify which device is used. |
AnnaBridge | 174:b96e65c34a4d | 2001 | */ |
AnnaBridge | 174:b96e65c34a4d | 2002 | __I uint32_t PDID; |
AnnaBridge | 174:b96e65c34a4d | 2003 | |
AnnaBridge | 174:b96e65c34a4d | 2004 | /** |
AnnaBridge | 174:b96e65c34a4d | 2005 | * RST_SRC |
AnnaBridge | 174:b96e65c34a4d | 2006 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2007 | * Offset: 0x04 System Reset Source Register |
AnnaBridge | 174:b96e65c34a4d | 2008 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2009 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2010 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2011 | * |[0] |RSTS_POR |The RSTS_POR Flag Is Set By The "Reset Signal" From The Power-On Reset (POR) Module Or Bit CHIP_RST (IPRSTC1[0]) To Indicate The Previous Reset Source |
AnnaBridge | 174:b96e65c34a4d | 2012 | * | | |0 = No reset from POR or CHIP_RST. |
AnnaBridge | 174:b96e65c34a4d | 2013 | * | | |1 = Power-on Reset (POR) or CHIP_RST had issued the reset signal to reset the system. |
AnnaBridge | 174:b96e65c34a4d | 2014 | * | | |This bit is cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 2015 | * |[1] |RSTS_PAD |The RSTS_PAD Flag Is Set By The "Reset Signal" From The /RESET Pin To Indicate The Previous Reset Source |
AnnaBridge | 174:b96e65c34a4d | 2016 | * | | |0 = No reset from /RESET pin. |
AnnaBridge | 174:b96e65c34a4d | 2017 | * | | |1 = The /RESET pin had issued the reset signal to reset the system. |
AnnaBridge | 174:b96e65c34a4d | 2018 | * | | |This bit is cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 2019 | * |[2] |RSTS_WDT |The RSTS_WDT Flag Is Set By The "Reset Signal" From The Watchdog Timer Module To Indicate The Previous Reset Source |
AnnaBridge | 174:b96e65c34a4d | 2020 | * | | |0 = No reset from Watchdog Timer. |
AnnaBridge | 174:b96e65c34a4d | 2021 | * | | |1 = The Watchdog Timer module had issued the reset signal to reset the system. |
AnnaBridge | 174:b96e65c34a4d | 2022 | * | | |This bit is cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 2023 | * |[4] |RSTS_BOD |The RSTS_BOD Flag Is Set By The "Reset Signal" From The Brown-Out-Detected Module To Indicate The Previous Reset Source |
AnnaBridge | 174:b96e65c34a4d | 2024 | * | | |0 = No reset from BOD. |
AnnaBridge | 174:b96e65c34a4d | 2025 | * | | |1 = Brown-out-Detected module had issued the reset signal to reset the system. |
AnnaBridge | 174:b96e65c34a4d | 2026 | * | | |This bit is cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 2027 | * |[5] |RSTS_SYS |The RSTS_SYS Flag Is Set By The "Reset Signal" From The Cortex_M0 Kernel To Indicate The Previous Reset Source |
AnnaBridge | 174:b96e65c34a4d | 2028 | * | | |0 = No reset from Cortex_M0. |
AnnaBridge | 174:b96e65c34a4d | 2029 | * | | |1 = Cortex_M0 had issued the reset signal to reset the system by writing 1 to the bit SYSRESTREQ(AIRCR[2], Application Interrupt and Reset Control Register) in system control registers of Cortex_M0 kernel. |
AnnaBridge | 174:b96e65c34a4d | 2030 | * | | |This bit is cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 2031 | * |[7] |RSTS_CPU |The RSTS_CPU Flag Is Set By Hardware If Software Writes CPU_RST (IPRST_CTL1[1]) "1" To Rest Cortex-M0 CPU Kernel And Flash Memory Controller (FMC) |
AnnaBridge | 174:b96e65c34a4d | 2032 | * | | |0 = No reset from CPU. |
AnnaBridge | 174:b96e65c34a4d | 2033 | * | | |1 = Cortex-M0 CPU kernel and FMC are reset by software setting CPU_RST to 1. |
AnnaBridge | 174:b96e65c34a4d | 2034 | * | | |This bit is cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 2035 | */ |
AnnaBridge | 174:b96e65c34a4d | 2036 | __IO uint32_t RST_SRC; |
AnnaBridge | 174:b96e65c34a4d | 2037 | |
AnnaBridge | 174:b96e65c34a4d | 2038 | /** |
AnnaBridge | 174:b96e65c34a4d | 2039 | * IPRST_CTL1 |
AnnaBridge | 174:b96e65c34a4d | 2040 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2041 | * Offset: 0x08 IP Reset Control Resister1 |
AnnaBridge | 174:b96e65c34a4d | 2042 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2043 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2044 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2045 | * |[0] |CHIP_RST |CHIP One Shot Reset |
AnnaBridge | 174:b96e65c34a4d | 2046 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2047 | * | | |Setting this bit will reset the whole chip, including CPU kernel and all peripherals like power-on reset and this bit will automatically return to "0" after the 2 clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 2048 | * | | |The chip setting from flash will be also reloaded when chip one shot reset. |
AnnaBridge | 174:b96e65c34a4d | 2049 | * | | |0 = Normal. |
AnnaBridge | 174:b96e65c34a4d | 2050 | * | | |1 = Reset CHIP. |
AnnaBridge | 174:b96e65c34a4d | 2051 | * | | |Note: In the following conditions, chip setting from flash will be reloaded. |
AnnaBridge | 174:b96e65c34a4d | 2052 | * | | |Power-on Reset |
AnnaBridge | 174:b96e65c34a4d | 2053 | * | | |Brown-out-Detected Reset |
AnnaBridge | 174:b96e65c34a4d | 2054 | * | | |Low level on the /RESET pin |
AnnaBridge | 174:b96e65c34a4d | 2055 | * | | |Set IPRST_CTL1[CHIP_RST] |
AnnaBridge | 174:b96e65c34a4d | 2056 | * |[1] |CPU_RST |CPU Kernel One Shot Reset |
AnnaBridge | 174:b96e65c34a4d | 2057 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2058 | * | | |Setting this bit will only reset the CPU kernel and Flash Memory Controller(FMC), and this bit will automatically return to "0" after the 2 clock cycles |
AnnaBridge | 174:b96e65c34a4d | 2059 | * | | |0 = Normal. |
AnnaBridge | 174:b96e65c34a4d | 2060 | * | | |1 = Reset CPU. |
AnnaBridge | 174:b96e65c34a4d | 2061 | * |[2] |DMA_RST |DMA Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2062 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2063 | * | | |Set this bit "1" will generate a reset signal to the DMA. |
AnnaBridge | 174:b96e65c34a4d | 2064 | * | | |SW needs to set this bit to low to release reset signal. |
AnnaBridge | 174:b96e65c34a4d | 2065 | * | | |0 = Normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2066 | * | | |1 = DMA IP reset. |
AnnaBridge | 174:b96e65c34a4d | 2067 | * |[3] |EBI_RST |EBI Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2068 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2069 | * | | |Set this bit "1" will generate a reset signal to the EBI. |
AnnaBridge | 174:b96e65c34a4d | 2070 | * | | |SW needs to set this bit to low to release reset signal. |
AnnaBridge | 174:b96e65c34a4d | 2071 | * | | |0 = Normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2072 | * | | |1 = EBI IP reset. |
AnnaBridge | 174:b96e65c34a4d | 2073 | */ |
AnnaBridge | 174:b96e65c34a4d | 2074 | __IO uint32_t IPRST_CTL1; |
AnnaBridge | 174:b96e65c34a4d | 2075 | |
AnnaBridge | 174:b96e65c34a4d | 2076 | /** |
AnnaBridge | 174:b96e65c34a4d | 2077 | * IPRST_CTL2 |
AnnaBridge | 174:b96e65c34a4d | 2078 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2079 | * Offset: 0x0C IP Reset Control Resister2 |
AnnaBridge | 174:b96e65c34a4d | 2080 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2081 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2082 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2083 | * |[1] |GPIO_RST |GPIO Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2084 | * | | |0 = GPIO normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2085 | * | | |1 = GPIO reset. |
AnnaBridge | 174:b96e65c34a4d | 2086 | * |[2] |TMR0_RST |Timer0 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2087 | * | | |0 = Timer0 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2088 | * | | |1 = Timer0 reset. |
AnnaBridge | 174:b96e65c34a4d | 2089 | * |[3] |TMR1_RST |Timer1 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2090 | * | | |0 = Timer1 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2091 | * | | |1 = Timer1 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2092 | * |[4] |TMR2_RST |Timer2 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2093 | * | | |0 = Timer2 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2094 | * | | |1 = Timer2 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2095 | * |[5] |TMR3_RST |Timer3 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2096 | * | | |0 = Timer3 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2097 | * | | |1 = Timer3 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2098 | * |[7] |SC2_RST |SmartCard 2 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2099 | * | | |0 = SmartCard 2 block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2100 | * | | |1 = SmartCard 2 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2101 | * |[8] |I2C0_RST |I2C0 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2102 | * | | |0 = I2C0 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2103 | * | | |1 = I2C0 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2104 | * |[9] |I2C1_RST |I2C1 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2105 | * | | |0 = I2C1 block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2106 | * | | |1 = I2C1 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2107 | * |[12] |SPI0_RST |SPI0 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2108 | * | | |0 = SPI0 block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2109 | * | | |1 = SPI0 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2110 | * |[13] |SPI1_RST |SPI1 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2111 | * | | |0 = SPI1 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2112 | * | | |1 = SPI1 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2113 | * |[14] |SPI2_RST |SPI2 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2114 | * | | |0 = SPI2 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2115 | * | | |1 = SPI2 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2116 | * |[16] |UART0_RST |UART0 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2117 | * | | |0 = UART0 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2118 | * | | |1 = UART0 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2119 | * |[17] |UART1_RST |UART1 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2120 | * | | |0 = UART1 normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2121 | * | | |1 = UART1 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2122 | * |[20] |PWM0_RST |PWM0 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2123 | * | | |0 = PWM0 block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2124 | * | | |1 = PWM0 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2125 | * |[21] |PWM1_RST |PWM1 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2126 | * | | |0 = PWM1 block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2127 | * | | |1 = PWM1 block reset. |
AnnaBridge | 174:b96e65c34a4d | 2128 | * |[25] |DAC_RST |DAC Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2129 | * | | |0 = DAC block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2130 | * | | |1 = DAC block reset. |
AnnaBridge | 174:b96e65c34a4d | 2131 | * |[26] |LCD_RST |LCD Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2132 | * | | |0 = LCD block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2133 | * | | |1 = LCD block reset. |
AnnaBridge | 174:b96e65c34a4d | 2134 | * |[27] |USBD_RST |USB Device Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2135 | * | | |0 = USB block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2136 | * | | |1 = USB block reset. |
AnnaBridge | 174:b96e65c34a4d | 2137 | * |[28] |ADC_RST |ADC Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2138 | * | | |0 = ADC block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2139 | * | | |1 = ADC block reset. |
AnnaBridge | 174:b96e65c34a4d | 2140 | * |[29] |I2S_RST |I2S Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2141 | * | | |0 = I2S block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2142 | * | | |1 = I2S block reset. |
AnnaBridge | 174:b96e65c34a4d | 2143 | * |[30] |SC0_RST |SmartCard 0 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2144 | * | | |0 = SmartCard block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2145 | * | | |1 = SmartCard block reset. |
AnnaBridge | 174:b96e65c34a4d | 2146 | * |[31] |SC1_RST |SmartCard1 Controller Reset |
AnnaBridge | 174:b96e65c34a4d | 2147 | * | | |0 = SmartCard block normal operation. |
AnnaBridge | 174:b96e65c34a4d | 2148 | * | | |1 = SmartCard block reset. |
AnnaBridge | 174:b96e65c34a4d | 2149 | */ |
AnnaBridge | 174:b96e65c34a4d | 2150 | __IO uint32_t IPRST_CTL2; |
AnnaBridge | 174:b96e65c34a4d | 2151 | uint32_t RESERVE0[4]; |
AnnaBridge | 174:b96e65c34a4d | 2152 | |
AnnaBridge | 174:b96e65c34a4d | 2153 | |
AnnaBridge | 174:b96e65c34a4d | 2154 | /** |
AnnaBridge | 174:b96e65c34a4d | 2155 | * TEMPCTL |
AnnaBridge | 174:b96e65c34a4d | 2156 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2157 | * Offset: 0x20 Temperature Sensor Control Register |
AnnaBridge | 174:b96e65c34a4d | 2158 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2159 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2160 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2161 | * |[0] |VTEMP_EN |Temperature Sensor Enable |
AnnaBridge | 174:b96e65c34a4d | 2162 | * | | |0 = Temperature sensor function Disabled (default). |
AnnaBridge | 174:b96e65c34a4d | 2163 | * | | |1 = Temperature sensor function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 2164 | */ |
AnnaBridge | 174:b96e65c34a4d | 2165 | __IO uint32_t TEMPCTL; |
AnnaBridge | 174:b96e65c34a4d | 2166 | uint32_t RESERVE1[3]; |
AnnaBridge | 174:b96e65c34a4d | 2167 | |
AnnaBridge | 174:b96e65c34a4d | 2168 | |
AnnaBridge | 174:b96e65c34a4d | 2169 | /** |
AnnaBridge | 174:b96e65c34a4d | 2170 | * PA_L_MFP |
AnnaBridge | 174:b96e65c34a4d | 2171 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2172 | * Offset: 0x30 Port A low byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2173 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2174 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2175 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2176 | * |[2:0] |PA0_MFP |PA.0 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2177 | * | | |001 = ADC input channel 0 |
AnnaBridge | 174:b96e65c34a4d | 2178 | * | | |100 = SmartCard 2 card detect |
AnnaBridge | 174:b96e65c34a4d | 2179 | * | | |Others = GPIOA[0] |
AnnaBridge | 174:b96e65c34a4d | 2180 | * |[6:4] |PA1_MFP |PA.1 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2181 | * | | |001 = ADC input channel 1 |
AnnaBridge | 174:b96e65c34a4d | 2182 | * | | |010 = EBI AD[12] |
AnnaBridge | 174:b96e65c34a4d | 2183 | * | | |Others = GPIOA[1] |
AnnaBridge | 174:b96e65c34a4d | 2184 | * |[10:8] |PA2_MFP |PA.2 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2185 | * | | |001 = ADC input channel 2 |
AnnaBridge | 174:b96e65c34a4d | 2186 | * | | |010 = EBI AD[11] |
AnnaBridge | 174:b96e65c34a4d | 2187 | * | | |101 = UART1_RXD |
AnnaBridge | 174:b96e65c34a4d | 2188 | * | | |Others = GPIOA[2] |
AnnaBridge | 174:b96e65c34a4d | 2189 | * |[14:12] |PA3_MFP |PA.3 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2190 | * | | |001 = ADC input channel 3 |
AnnaBridge | 174:b96e65c34a4d | 2191 | * | | |010 = EBI AD[10] |
AnnaBridge | 174:b96e65c34a4d | 2192 | * | | |101 = UART1_TXD |
AnnaBridge | 174:b96e65c34a4d | 2193 | * | | |Others = GPIOA[3] |
AnnaBridge | 174:b96e65c34a4d | 2194 | * |[18:16] |PA4_MFP |PA.4 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2195 | * | | |001 = ADC input channel 4 |
AnnaBridge | 174:b96e65c34a4d | 2196 | * | | |010 = EBI AD[9] |
AnnaBridge | 174:b96e65c34a4d | 2197 | * | | |100 = SmartCard 2 power |
AnnaBridge | 174:b96e65c34a4d | 2198 | * | | |101 = I2C0 SDA |
AnnaBridge | 174:b96e65c34a4d | 2199 | * | | |111 = LCD SEG 39 |
AnnaBridge | 174:b96e65c34a4d | 2200 | * | | |Others = GPIOA[4] |
AnnaBridge | 174:b96e65c34a4d | 2201 | * |[22:20] |PA5_MFP |PA.5 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2202 | * | | |001 = ADC input channel 5 |
AnnaBridge | 174:b96e65c34a4d | 2203 | * | | |010 = EBI AD[8] |
AnnaBridge | 174:b96e65c34a4d | 2204 | * | | |100 = SmartCard2 RST |
AnnaBridge | 174:b96e65c34a4d | 2205 | * | | |101 = I2C0 SCL |
AnnaBridge | 174:b96e65c34a4d | 2206 | * | | |111 = LCD SEG 38 |
AnnaBridge | 174:b96e65c34a4d | 2207 | * | | |Others = GPIOA[5] |
AnnaBridge | 174:b96e65c34a4d | 2208 | * |[26:24] |PA6_MFP |PA.6 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2209 | * | | |001 = ADC input channel 6 |
AnnaBridge | 174:b96e65c34a4d | 2210 | * | | |010 = EBI AD[7] |
AnnaBridge | 174:b96e65c34a4d | 2211 | * | | |011 = Timer 3 Capture event |
AnnaBridge | 174:b96e65c34a4d | 2212 | * | | |100 = SmartCard 2 clock |
AnnaBridge | 174:b96e65c34a4d | 2213 | * | | |101 = PWM0 Channel 3 |
AnnaBridge | 174:b96e65c34a4d | 2214 | * | | |111 = LCD SEG 37 |
AnnaBridge | 174:b96e65c34a4d | 2215 | * | | |Others = GPIOA[6] |
AnnaBridge | 174:b96e65c34a4d | 2216 | * |[30:28] |PA7_MFP |PA.7 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2217 | * | | |001 = ADC input channel 7 |
AnnaBridge | 174:b96e65c34a4d | 2218 | * | | |010 = EBI AD[6] |
AnnaBridge | 174:b96e65c34a4d | 2219 | * | | |011 = Timer 2 capture event |
AnnaBridge | 174:b96e65c34a4d | 2220 | * | | |100 = SmartCard 2 data pin |
AnnaBridge | 174:b96e65c34a4d | 2221 | * | | |101 = PWM0 Channel 2 |
AnnaBridge | 174:b96e65c34a4d | 2222 | * | | |111 = LCD SEG 36 |
AnnaBridge | 174:b96e65c34a4d | 2223 | * | | |Others = GPIOA[7] |
AnnaBridge | 174:b96e65c34a4d | 2224 | */ |
AnnaBridge | 174:b96e65c34a4d | 2225 | __IO uint32_t PA_L_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2226 | |
AnnaBridge | 174:b96e65c34a4d | 2227 | /** |
AnnaBridge | 174:b96e65c34a4d | 2228 | * PA_H_MFP |
AnnaBridge | 174:b96e65c34a4d | 2229 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2230 | * Offset: 0x34 Port A high byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2231 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2232 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2233 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2234 | * |[2:0] |PA8_MFP |PA.8 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2235 | * | | |001 = I2C0 SDA |
AnnaBridge | 174:b96e65c34a4d | 2236 | * | | |011 = SmartCard0 clock |
AnnaBridge | 174:b96e65c34a4d | 2237 | * | | |100 = SPI2 1st slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2238 | * | | |111 = LCD SEG 20 |
AnnaBridge | 174:b96e65c34a4d | 2239 | * | | |Others = GPIOA[8] |
AnnaBridge | 174:b96e65c34a4d | 2240 | * |[6:4] |PA9_MFP |PA.9 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2241 | * | | |001 = I2C0 SCL |
AnnaBridge | 174:b96e65c34a4d | 2242 | * | | |011 = SmartCard0 DATA |
AnnaBridge | 174:b96e65c34a4d | 2243 | * | | |100 = SPI2 SCLK |
AnnaBridge | 174:b96e65c34a4d | 2244 | * | | |111 = LCD SEG 21 |
AnnaBridge | 174:b96e65c34a4d | 2245 | * | | |Others = GPIOA[9] |
AnnaBridge | 174:b96e65c34a4d | 2246 | * |[10:8] |PA10_MFP |PA.10 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2247 | * | | |001 = I2C1 SDA |
AnnaBridge | 174:b96e65c34a4d | 2248 | * | | |010 = EBI nWR |
AnnaBridge | 174:b96e65c34a4d | 2249 | * | | |011 = SmartCard0 Power |
AnnaBridge | 174:b96e65c34a4d | 2250 | * | | |100 = SPI2 MISO0 |
AnnaBridge | 174:b96e65c34a4d | 2251 | * | | |111 = LCD SEG 22 |
AnnaBridge | 174:b96e65c34a4d | 2252 | * | | |Others = GPIOA[10] |
AnnaBridge | 174:b96e65c34a4d | 2253 | * |[14:12] |PA11_MFP |PA.11 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2254 | * | | |001 = I2C1 SCL |
AnnaBridge | 174:b96e65c34a4d | 2255 | * | | |010 = EBI nRE |
AnnaBridge | 174:b96e65c34a4d | 2256 | * | | |011 = SmartCard0 RST |
AnnaBridge | 174:b96e65c34a4d | 2257 | * | | |100 = SPI2 MOSI0 |
AnnaBridge | 174:b96e65c34a4d | 2258 | * | | |111 = LCD SEG 23 |
AnnaBridge | 174:b96e65c34a4d | 2259 | * | | |Others = GPIOA[11] |
AnnaBridge | 174:b96e65c34a4d | 2260 | * |[18:16] |PA12_MFP |PA.12 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2261 | * | | |001 = PWM0 Channel 0 |
AnnaBridge | 174:b96e65c34a4d | 2262 | * | | |010 = EBI AD[13] |
AnnaBridge | 174:b96e65c34a4d | 2263 | * | | |011 = Timer0 capture event |
AnnaBridge | 174:b96e65c34a4d | 2264 | * | | |101 = I2C0 SDA |
AnnaBridge | 174:b96e65c34a4d | 2265 | * | | |Others = GPIOA[12] |
AnnaBridge | 174:b96e65c34a4d | 2266 | * |[22:20] |PA13_MFP |PA.13 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2267 | * | | |001 = PWM0 Channel 1 |
AnnaBridge | 174:b96e65c34a4d | 2268 | * | | |010 = EBI AD[14] |
AnnaBridge | 174:b96e65c34a4d | 2269 | * | | |011 = Timer1 capture event |
AnnaBridge | 174:b96e65c34a4d | 2270 | * | | |101 = I2C0 SCL |
AnnaBridge | 174:b96e65c34a4d | 2271 | * | | |Others = GPIOA[13] |
AnnaBridge | 174:b96e65c34a4d | 2272 | * |[26:24] |PA14_MFP |PA.14 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2273 | * | | |001 = PWM0 Channel 2 |
AnnaBridge | 174:b96e65c34a4d | 2274 | * | | |010 = EBI AD[15] |
AnnaBridge | 174:b96e65c34a4d | 2275 | * | | |011 = Timer2 capture event |
AnnaBridge | 174:b96e65c34a4d | 2276 | * | | |110 = UART0 RX |
AnnaBridge | 174:b96e65c34a4d | 2277 | * | | |Others = GPIOA[14] |
AnnaBridge | 174:b96e65c34a4d | 2278 | * |[30:28] |PA15_MFP |PA.15 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2279 | * | | |001 = PWM0 Channel 3 |
AnnaBridge | 174:b96e65c34a4d | 2280 | * | | |010 = I2S MCLK |
AnnaBridge | 174:b96e65c34a4d | 2281 | * | | |011 = Timer3 capture event |
AnnaBridge | 174:b96e65c34a4d | 2282 | * | | |100 = SmartCard 0 power |
AnnaBridge | 174:b96e65c34a4d | 2283 | * | | |110 = UART0 TX |
AnnaBridge | 174:b96e65c34a4d | 2284 | * | | |Others = GPIOA[15] |
AnnaBridge | 174:b96e65c34a4d | 2285 | */ |
AnnaBridge | 174:b96e65c34a4d | 2286 | __IO uint32_t PA_H_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2287 | |
AnnaBridge | 174:b96e65c34a4d | 2288 | /** |
AnnaBridge | 174:b96e65c34a4d | 2289 | * PB_L_MFP |
AnnaBridge | 174:b96e65c34a4d | 2290 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2291 | * Offset: 0x38 Port B low byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2292 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2293 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2294 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2295 | * |[2:0] |PB0_MFP |PB.0 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2296 | * | | |001 = UART0 RX |
AnnaBridge | 174:b96e65c34a4d | 2297 | * | | |011 = SPI1 MOSI0 |
AnnaBridge | 174:b96e65c34a4d | 2298 | * | | |111 = LCD SEG 7 |
AnnaBridge | 174:b96e65c34a4d | 2299 | * | | |Others = GPIOB[0] |
AnnaBridge | 174:b96e65c34a4d | 2300 | * |[6:4] |PB1_MFP |PB.1 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2301 | * | | |001 = UART0 TX |
AnnaBridge | 174:b96e65c34a4d | 2302 | * | | |011 = SPI1 MISO0 |
AnnaBridge | 174:b96e65c34a4d | 2303 | * | | |111 = LCD SEG 6 |
AnnaBridge | 174:b96e65c34a4d | 2304 | * | | |Others = GPIOB[1] |
AnnaBridge | 174:b96e65c34a4d | 2305 | * |[10:8] |PB2_MFP |PB.2 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2306 | * | | |001 = UART0 RTSn |
AnnaBridge | 174:b96e65c34a4d | 2307 | * | | |010 = EBI nWRL |
AnnaBridge | 174:b96e65c34a4d | 2308 | * | | |011 = SPI1 SCLK |
AnnaBridge | 174:b96e65c34a4d | 2309 | * | | |111 = LCD SEG 5 |
AnnaBridge | 174:b96e65c34a4d | 2310 | * | | |Others = GPIOB[2] |
AnnaBridge | 174:b96e65c34a4d | 2311 | * |[14:12] |PB3_MFP |PB.3 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2312 | * | | |001 = UART0 CTSn |
AnnaBridge | 174:b96e65c34a4d | 2313 | * | | |010 = EBI nWRH |
AnnaBridge | 174:b96e65c34a4d | 2314 | * | | |011 = SPI1 1st slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2315 | * | | |111 = LCD SEG 4 |
AnnaBridge | 174:b96e65c34a4d | 2316 | * | | |Others = GPIOB[3] |
AnnaBridge | 174:b96e65c34a4d | 2317 | * |[18:16] |PB4_MFP |PB.4 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2318 | * | | |001 = UART1 RX |
AnnaBridge | 174:b96e65c34a4d | 2319 | * | | |011 = SmartCard0 card detection |
AnnaBridge | 174:b96e65c34a4d | 2320 | * | | |100 = SPI2 1st slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2321 | * | | |111 = LCD SEG 13 |
AnnaBridge | 174:b96e65c34a4d | 2322 | * | | |Others = GPIOB[4] |
AnnaBridge | 174:b96e65c34a4d | 2323 | * |[22:20] |PB5_MFP |PB.5 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2324 | * | | |001 = UART1 TX |
AnnaBridge | 174:b96e65c34a4d | 2325 | * | | |011 = SmartCard0 RST |
AnnaBridge | 174:b96e65c34a4d | 2326 | * | | |100 = SPI2 SCLK |
AnnaBridge | 174:b96e65c34a4d | 2327 | * | | |111 = LCD SEG 12 |
AnnaBridge | 174:b96e65c34a4d | 2328 | * | | |Others = GPIOB[5] |
AnnaBridge | 174:b96e65c34a4d | 2329 | * |[26:24] |PB6_MFP |PB.6 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2330 | * | | |001 = UART1 RTSn |
AnnaBridge | 174:b96e65c34a4d | 2331 | * | | |010 = EBI ALE |
AnnaBridge | 174:b96e65c34a4d | 2332 | * | | |100 = SPI2 MISO0 |
AnnaBridge | 174:b96e65c34a4d | 2333 | * | | |111 = LCD SEG 11 |
AnnaBridge | 174:b96e65c34a4d | 2334 | * | | |Others = GPIOB[6] |
AnnaBridge | 174:b96e65c34a4d | 2335 | * |[30:28] |PB7_MFP |PB.7 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2336 | * | | |001 = UART1 CTSn |
AnnaBridge | 174:b96e65c34a4d | 2337 | * | | |010 = EBI nCS |
AnnaBridge | 174:b96e65c34a4d | 2338 | * | | |100 = SPI2 MOSI0 |
AnnaBridge | 174:b96e65c34a4d | 2339 | * | | |111 = LCD SEG 10 |
AnnaBridge | 174:b96e65c34a4d | 2340 | * | | |Others = GPIOB[7] |
AnnaBridge | 174:b96e65c34a4d | 2341 | */ |
AnnaBridge | 174:b96e65c34a4d | 2342 | __IO uint32_t PB_L_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2343 | |
AnnaBridge | 174:b96e65c34a4d | 2344 | /** |
AnnaBridge | 174:b96e65c34a4d | 2345 | * PB_H_MFP |
AnnaBridge | 174:b96e65c34a4d | 2346 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2347 | * Offset: 0x3C Port B high byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2348 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2349 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2350 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2351 | * |[2:0] |PB8_MFP |PB.8 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2352 | * | | |001 = ADC external trigger |
AnnaBridge | 174:b96e65c34a4d | 2353 | * | | |010 = Timer0 external event input or Timer0 toggle output |
AnnaBridge | 174:b96e65c34a4d | 2354 | * | | |011 = External interrupt 0 |
AnnaBridge | 174:b96e65c34a4d | 2355 | * | | |100 = SmartCard 2 power |
AnnaBridge | 174:b96e65c34a4d | 2356 | * | | |111 = LCD SEG 30 |
AnnaBridge | 174:b96e65c34a4d | 2357 | * | | |Others = GPIOB[8] |
AnnaBridge | 174:b96e65c34a4d | 2358 | * |[6:4] |PB9_MFP |PB.9 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2359 | * | | |001 = SPI1 2nd slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2360 | * | | |010 = Timer1 external event input or Timer1 toggle output |
AnnaBridge | 174:b96e65c34a4d | 2361 | * | | |100 = SmartCard 2 RST |
AnnaBridge | 174:b96e65c34a4d | 2362 | * | | |101 = External interrupt 0 |
AnnaBridge | 174:b96e65c34a4d | 2363 | * | | |111 = LCD V1 |
AnnaBridge | 174:b96e65c34a4d | 2364 | * | | |Others = GPIOB[9] |
AnnaBridge | 174:b96e65c34a4d | 2365 | * |[10:8] |PB10_MFP |PB.10 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2366 | * | | |001 = SPI0 2nd slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2367 | * | | |010 = Timer2 external event input or Timer2 toggle output |
AnnaBridge | 174:b96e65c34a4d | 2368 | * | | |100 = SmartCard 2 clock |
AnnaBridge | 174:b96e65c34a4d | 2369 | * | | |101 = SPI0 MOSI0 |
AnnaBridge | 174:b96e65c34a4d | 2370 | * | | |111 = LCD V2 |
AnnaBridge | 174:b96e65c34a4d | 2371 | * | | |Others = GPIOB[10] |
AnnaBridge | 174:b96e65c34a4d | 2372 | * |[14:12] |PB11_MFP |PB.11 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2373 | * | | |001 = PWM1 Channel 0 |
AnnaBridge | 174:b96e65c34a4d | 2374 | * | | |010 = Timer3 external event input or Timer3 toggle output |
AnnaBridge | 174:b96e65c34a4d | 2375 | * | | |100 = SmartCard 2 DATA |
AnnaBridge | 174:b96e65c34a4d | 2376 | * | | |101 = SPI0 MISO0 |
AnnaBridge | 174:b96e65c34a4d | 2377 | * | | |111 = LCD V3 |
AnnaBridge | 174:b96e65c34a4d | 2378 | * | | |Others = GPIOB[11] |
AnnaBridge | 174:b96e65c34a4d | 2379 | * |[18:16] |PB12_MFP |PB.12 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2380 | * | | |010 = EBI AD[0] |
AnnaBridge | 174:b96e65c34a4d | 2381 | * | | |100 = FRQDIV_CLK |
AnnaBridge | 174:b96e65c34a4d | 2382 | * | | |111 = LCD SEG 24 |
AnnaBridge | 174:b96e65c34a4d | 2383 | * | | |Others = GPIOB[12] |
AnnaBridge | 174:b96e65c34a4d | 2384 | * |[22:20] |PB13_MFP |PB.13 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2385 | * | | |010 = EBI AD[1] |
AnnaBridge | 174:b96e65c34a4d | 2386 | * | | |111 = LCD SEG 25 |
AnnaBridge | 174:b96e65c34a4d | 2387 | * | | |Others = GPIOB[13] |
AnnaBridge | 174:b96e65c34a4d | 2388 | * |[26:24] |PB14_MFP |PB.14 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2389 | * | | |001 = External interrupt 0 |
AnnaBridge | 174:b96e65c34a4d | 2390 | * | | |011 = SmartCard 2 card detect |
AnnaBridge | 174:b96e65c34a4d | 2391 | * | | |100 = SPI2 2nd slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2392 | * | | |111 = LCD SEG 26 |
AnnaBridge | 174:b96e65c34a4d | 2393 | * | | |Others = GPIOB[14] |
AnnaBridge | 174:b96e65c34a4d | 2394 | * |[30:28] |PB15_MFP |PB.15 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2395 | * | | |001 = External interrupt 1 |
AnnaBridge | 174:b96e65c34a4d | 2396 | * | | |011 = Snooper pin |
AnnaBridge | 174:b96e65c34a4d | 2397 | * | | |100 = SmartCard1 card detect |
AnnaBridge | 174:b96e65c34a4d | 2398 | * | | |111 = LCD SEG 31 |
AnnaBridge | 174:b96e65c34a4d | 2399 | * | | |Others = GPIOB[15] |
AnnaBridge | 174:b96e65c34a4d | 2400 | */ |
AnnaBridge | 174:b96e65c34a4d | 2401 | __IO uint32_t PB_H_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2402 | |
AnnaBridge | 174:b96e65c34a4d | 2403 | /** |
AnnaBridge | 174:b96e65c34a4d | 2404 | * PC_L_MFP |
AnnaBridge | 174:b96e65c34a4d | 2405 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2406 | * Offset: 0x40 Port C low byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2407 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2408 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2409 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2410 | * |[2:0] |PC0_MFP |PC.0 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2411 | * | | |001 = SPI0 1st slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2412 | * | | |010 = I2S WS |
AnnaBridge | 174:b96e65c34a4d | 2413 | * | | |100 = SmartCard1 clock |
AnnaBridge | 174:b96e65c34a4d | 2414 | * | | |111 = LCD DH1 |
AnnaBridge | 174:b96e65c34a4d | 2415 | * | | |Others = GPIOC[0] |
AnnaBridge | 174:b96e65c34a4d | 2416 | * |[6:4] |PC1_MFP |PC.1 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2417 | * | | |001 = SPI0 SCLK |
AnnaBridge | 174:b96e65c34a4d | 2418 | * | | |010 = I2S BCLK |
AnnaBridge | 174:b96e65c34a4d | 2419 | * | | |100 = SmartCard1 DATA |
AnnaBridge | 174:b96e65c34a4d | 2420 | * | | |111 = LCD DH2 |
AnnaBridge | 174:b96e65c34a4d | 2421 | * | | |Others = GPIOC[1] |
AnnaBridge | 174:b96e65c34a4d | 2422 | * |[10:8] |PC2_MFP |PC.2 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2423 | * | | |001 = SPI0 MISO0 |
AnnaBridge | 174:b96e65c34a4d | 2424 | * | | |010 = I2S Din |
AnnaBridge | 174:b96e65c34a4d | 2425 | * | | |100 = SmartCard1 Power |
AnnaBridge | 174:b96e65c34a4d | 2426 | * | | |111 = LCD COM 0 |
AnnaBridge | 174:b96e65c34a4d | 2427 | * | | |Others = GPIOC[2] |
AnnaBridge | 174:b96e65c34a4d | 2428 | * |[14:12] |PC3_MFP |PC.3 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2429 | * | | |001 = SPI0 MOSI1 |
AnnaBridge | 174:b96e65c34a4d | 2430 | * | | |010 = I2S Dout |
AnnaBridge | 174:b96e65c34a4d | 2431 | * | | |100 = SmartCard1 RST |
AnnaBridge | 174:b96e65c34a4d | 2432 | * | | |111 = LCD COM 1 |
AnnaBridge | 174:b96e65c34a4d | 2433 | * | | |Others = GPIOC[3] |
AnnaBridge | 174:b96e65c34a4d | 2434 | * |[18:16] |PC4_MFP |PC.4 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2435 | * | | |001 = SPI0 MISO1 |
AnnaBridge | 174:b96e65c34a4d | 2436 | * | | |111 = LCD COM 2 |
AnnaBridge | 174:b96e65c34a4d | 2437 | * | | |Others = GPIOC[4] |
AnnaBridge | 174:b96e65c34a4d | 2438 | * |[22:20] |PC5_MFP |PC.5 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2439 | * | | |001 = SPI0 MOSI1 |
AnnaBridge | 174:b96e65c34a4d | 2440 | * | | |111 = LCD COM 3 |
AnnaBridge | 174:b96e65c34a4d | 2441 | * | | |Others = GPIOC[5] |
AnnaBridge | 174:b96e65c34a4d | 2442 | * |[26:24] |PC6_MFP |PC.6 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2443 | * | | |001 = DA out0 |
AnnaBridge | 174:b96e65c34a4d | 2444 | * | | |010 = EBI AD[4] |
AnnaBridge | 174:b96e65c34a4d | 2445 | * | | |011 = Timer0 capture event |
AnnaBridge | 174:b96e65c34a4d | 2446 | * | | |100 = SmartCard1 card detection |
AnnaBridge | 174:b96e65c34a4d | 2447 | * | | |101 = PWM0 Channel 0 |
AnnaBridge | 174:b96e65c34a4d | 2448 | * | | |Others = GPIOC[6] |
AnnaBridge | 174:b96e65c34a4d | 2449 | * |[30:28] |PC7_MFP |PC.7 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2450 | * | | |001 = DA out1 |
AnnaBridge | 174:b96e65c34a4d | 2451 | * | | |010 = EBI AD[5] |
AnnaBridge | 174:b96e65c34a4d | 2452 | * | | |011 = Timer1 capture event |
AnnaBridge | 174:b96e65c34a4d | 2453 | * | | |101 = PWM0 Channel 1 |
AnnaBridge | 174:b96e65c34a4d | 2454 | * | | |Others = GPIOC[7] |
AnnaBridge | 174:b96e65c34a4d | 2455 | */ |
AnnaBridge | 174:b96e65c34a4d | 2456 | __IO uint32_t PC_L_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2457 | |
AnnaBridge | 174:b96e65c34a4d | 2458 | /** |
AnnaBridge | 174:b96e65c34a4d | 2459 | * PC_H_MFP |
AnnaBridge | 174:b96e65c34a4d | 2460 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2461 | * Offset: 0x44 Port C high byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2462 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2463 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2464 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2465 | * |[2:0] |PC8_MFP |PC.8 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2466 | * | | |001 = SPI1 1st slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2467 | * | | |010 = EBI MCLK |
AnnaBridge | 174:b96e65c34a4d | 2468 | * | | |101 = I2C1 SDA |
AnnaBridge | 174:b96e65c34a4d | 2469 | * | | |Others = GPIOC[8] |
AnnaBridge | 174:b96e65c34a4d | 2470 | * |[6:4] |PC9_MFP |PC.9 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2471 | * | | |001 = SPI1 SCLK |
AnnaBridge | 174:b96e65c34a4d | 2472 | * | | |101 = I2C1 SCL |
AnnaBridge | 174:b96e65c34a4d | 2473 | * | | |Others = GPIOC[9] |
AnnaBridge | 174:b96e65c34a4d | 2474 | * |[10:8] |PC10_MFP |PC.10 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2475 | * | | |001 = SPI1 MISO0 |
AnnaBridge | 174:b96e65c34a4d | 2476 | * | | |101 = UART1 RX |
AnnaBridge | 174:b96e65c34a4d | 2477 | * | | |Others = GPIOC[10] |
AnnaBridge | 174:b96e65c34a4d | 2478 | * |[14:12] |PC11_MFP |PC.11 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2479 | * | | |001 = SPI1 MOSI0 |
AnnaBridge | 174:b96e65c34a4d | 2480 | * | | |101 = UART1 TX |
AnnaBridge | 174:b96e65c34a4d | 2481 | * | | |Others = GPIOC[11] |
AnnaBridge | 174:b96e65c34a4d | 2482 | * |[18:16] |PC12_MFP |PC.12 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2483 | * | | |001 = SPI1 MISO1 |
AnnaBridge | 174:b96e65c34a4d | 2484 | * | | |010 = PWM1 Channel 0 |
AnnaBridge | 174:b96e65c34a4d | 2485 | * | | |101 = External interrupt 0 |
AnnaBridge | 174:b96e65c34a4d | 2486 | * | | |110 = I2C0 SDA |
AnnaBridge | 174:b96e65c34a4d | 2487 | * | | |Others = GPIOC[12] |
AnnaBridge | 174:b96e65c34a4d | 2488 | * |[22:20] |PC13_MFP |PC.13 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2489 | * | | |001 = SPI1 MOSI1 |
AnnaBridge | 174:b96e65c34a4d | 2490 | * | | |010 = PWM1 Channel 1 |
AnnaBridge | 174:b96e65c34a4d | 2491 | * | | |100 = Snooper pin |
AnnaBridge | 174:b96e65c34a4d | 2492 | * | | |101 = External interrupt 1 |
AnnaBridge | 174:b96e65c34a4d | 2493 | * | | |110 = I2C0 SCL |
AnnaBridge | 174:b96e65c34a4d | 2494 | * | | |Others = GPIOC[13] |
AnnaBridge | 174:b96e65c34a4d | 2495 | * |[26:24] |PC14_MFP |PC.14 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2496 | * | | |010 = EBI AD[2] |
AnnaBridge | 174:b96e65c34a4d | 2497 | * | | |100 = PWM1 Channel 3 |
AnnaBridge | 174:b96e65c34a4d | 2498 | * | | |111 = LCD SEG 32 |
AnnaBridge | 174:b96e65c34a4d | 2499 | * | | |Others = GPIOC[14] |
AnnaBridge | 174:b96e65c34a4d | 2500 | * |[30:28] |PC15_MFP |PC.15 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2501 | * | | |010 = EBI AD[3] |
AnnaBridge | 174:b96e65c34a4d | 2502 | * | | |011 = Timer0 capture event |
AnnaBridge | 174:b96e65c34a4d | 2503 | * | | |100 = PWM1 Channel 2 |
AnnaBridge | 174:b96e65c34a4d | 2504 | * | | |111 = LCD SEG 33 |
AnnaBridge | 174:b96e65c34a4d | 2505 | * | | |Others = GPIOC[15] |
AnnaBridge | 174:b96e65c34a4d | 2506 | */ |
AnnaBridge | 174:b96e65c34a4d | 2507 | __IO uint32_t PC_H_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2508 | |
AnnaBridge | 174:b96e65c34a4d | 2509 | /** |
AnnaBridge | 174:b96e65c34a4d | 2510 | * PD_L_MFP |
AnnaBridge | 174:b96e65c34a4d | 2511 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2512 | * Offset: 0x48 Port D low byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2513 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2514 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2515 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2516 | * |[2:0] |PD0_MFP |PD.0 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2517 | * | | |001 = UART1 RX |
AnnaBridge | 174:b96e65c34a4d | 2518 | * | | |011 = SPI2 1st slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2519 | * | | |100 = SmartCard1 clock |
AnnaBridge | 174:b96e65c34a4d | 2520 | * | | |101 = ADC input channel8 |
AnnaBridge | 174:b96e65c34a4d | 2521 | * | | |Others = GPIOD[0] |
AnnaBridge | 174:b96e65c34a4d | 2522 | * |[6:4] |PD1_MFP |PD.1 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2523 | * | | |001 = UART1 TX |
AnnaBridge | 174:b96e65c34a4d | 2524 | * | | |011 = SPI2 SCLK |
AnnaBridge | 174:b96e65c34a4d | 2525 | * | | |100 = SmartCard1 DATA |
AnnaBridge | 174:b96e65c34a4d | 2526 | * | | |101 = ADC input channel9 |
AnnaBridge | 174:b96e65c34a4d | 2527 | * | | |Others = GPIOD[1] |
AnnaBridge | 174:b96e65c34a4d | 2528 | * |[10:8] |PD2_MFP |PD.2 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2529 | * | | |001 = UART1 RTSn |
AnnaBridge | 174:b96e65c34a4d | 2530 | * | | |010 = I2S WS |
AnnaBridge | 174:b96e65c34a4d | 2531 | * | | |011 = SPI2 MISO0 |
AnnaBridge | 174:b96e65c34a4d | 2532 | * | | |100 = SmartCard1 power |
AnnaBridge | 174:b96e65c34a4d | 2533 | * | | |101 = ADC input channel10 |
AnnaBridge | 174:b96e65c34a4d | 2534 | * | | |Others = GPIOD[2] |
AnnaBridge | 174:b96e65c34a4d | 2535 | * |[14:12] |PD3_MFP |PD.3 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2536 | * | | |001 = UART1 CTSn |
AnnaBridge | 174:b96e65c34a4d | 2537 | * | | |010 = I2S BCLK |
AnnaBridge | 174:b96e65c34a4d | 2538 | * | | |011 = SPI2 MOSI0 |
AnnaBridge | 174:b96e65c34a4d | 2539 | * | | |100 = SmartCard1 reset |
AnnaBridge | 174:b96e65c34a4d | 2540 | * | | |101 = ADC input channel11 |
AnnaBridge | 174:b96e65c34a4d | 2541 | * | | |Others = GPIOD[3] |
AnnaBridge | 174:b96e65c34a4d | 2542 | * |[18:16] |PD4_MFP |PD.4 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2543 | * | | |010 = I2S Din |
AnnaBridge | 174:b96e65c34a4d | 2544 | * | | |011 = SPI2 MISO1 |
AnnaBridge | 174:b96e65c34a4d | 2545 | * | | |100 = SmartCard1 card detection |
AnnaBridge | 174:b96e65c34a4d | 2546 | * | | |111 = LCD SEG 35 |
AnnaBridge | 174:b96e65c34a4d | 2547 | * | | |Others = GPIOD[4] |
AnnaBridge | 174:b96e65c34a4d | 2548 | * |[22:20] |PD5_MFP |PD.5 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2549 | * | | |010 = I2S Dout |
AnnaBridge | 174:b96e65c34a4d | 2550 | * | | |011 = SPI2 MOSI1 |
AnnaBridge | 174:b96e65c34a4d | 2551 | * | | |111 = LCD SEG 34 |
AnnaBridge | 174:b96e65c34a4d | 2552 | * | | |Others = GPIOD[5] |
AnnaBridge | 174:b96e65c34a4d | 2553 | * |[26:24] |PD6_MFP |PD.6 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2554 | * | | |111 = LCD SEG 3 |
AnnaBridge | 174:b96e65c34a4d | 2555 | * | | |Others = GPIOD[6] |
AnnaBridge | 174:b96e65c34a4d | 2556 | * |[30:28] |PD7_MFP |PD.7 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2557 | * | | |111 = LCD SEG 2 |
AnnaBridge | 174:b96e65c34a4d | 2558 | * | | |Others = GPIOD[7] |
AnnaBridge | 174:b96e65c34a4d | 2559 | */ |
AnnaBridge | 174:b96e65c34a4d | 2560 | __IO uint32_t PD_L_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2561 | |
AnnaBridge | 174:b96e65c34a4d | 2562 | /** |
AnnaBridge | 174:b96e65c34a4d | 2563 | * PD_H_MFP |
AnnaBridge | 174:b96e65c34a4d | 2564 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2565 | * Offset: 0x4C Port D high byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2566 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2567 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2568 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2569 | * |[2:0] |PD8_MFP |PD.8 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2570 | * | | |111 = LCD SEG 19 |
AnnaBridge | 174:b96e65c34a4d | 2571 | * | | |Others = GPIOD[8] |
AnnaBridge | 174:b96e65c34a4d | 2572 | * |[6:4] |PD9_MFP |PD.9 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2573 | * | | |111 = LCD SEG 18 |
AnnaBridge | 174:b96e65c34a4d | 2574 | * | | |Others = GPIOD[9] |
AnnaBridge | 174:b96e65c34a4d | 2575 | * |[10:8] |PD10_MFP |PD.10 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2576 | * | | |111 = LCD SEG 17 |
AnnaBridge | 174:b96e65c34a4d | 2577 | * | | |Others = GPIOD[10] |
AnnaBridge | 174:b96e65c34a4d | 2578 | * |[14:12] |PD11_MFP |PD.11 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2579 | * | | |111 = LCD SEG 16 |
AnnaBridge | 174:b96e65c34a4d | 2580 | * | | |Others = GPIOD[11] |
AnnaBridge | 174:b96e65c34a4d | 2581 | * |[18:16] |PD12_MFP |PD.12 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2582 | * | | |111 = LCD SEG 15 |
AnnaBridge | 174:b96e65c34a4d | 2583 | * | | |Others = GPIOD[12] |
AnnaBridge | 174:b96e65c34a4d | 2584 | * |[22:20] |PD13_MFP |PD.13 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2585 | * | | |111 = LCD SEG 14 |
AnnaBridge | 174:b96e65c34a4d | 2586 | * | | |Others = GPIOD[13] |
AnnaBridge | 174:b96e65c34a4d | 2587 | * |[26:24] |PD14_MFP |PD.14 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2588 | * | | |111 = LCD SEG 1 |
AnnaBridge | 174:b96e65c34a4d | 2589 | * | | |Others = GPIOD[14] |
AnnaBridge | 174:b96e65c34a4d | 2590 | * |[30:28] |PD15_MFP |PD.15 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2591 | * | | |111 = LCD SEG 0 |
AnnaBridge | 174:b96e65c34a4d | 2592 | * | | |Others = GPIOD[15] |
AnnaBridge | 174:b96e65c34a4d | 2593 | */ |
AnnaBridge | 174:b96e65c34a4d | 2594 | __IO uint32_t PD_H_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2595 | |
AnnaBridge | 174:b96e65c34a4d | 2596 | /** |
AnnaBridge | 174:b96e65c34a4d | 2597 | * PE_L_MFP |
AnnaBridge | 174:b96e65c34a4d | 2598 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2599 | * Offset: 0x50 Port E low byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2600 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2601 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2602 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2603 | * |[2:0] |PE0_MFP |PE.0 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2604 | * | | |001 = PWM1 Channel 2 |
AnnaBridge | 174:b96e65c34a4d | 2605 | * | | |010 = I2S MCLK |
AnnaBridge | 174:b96e65c34a4d | 2606 | * | | |Others = GPIOE[0] |
AnnaBridge | 174:b96e65c34a4d | 2607 | * |[6:4] |PE1_MFP |PE.1 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2608 | * | | |001 = PWM1 Channel 3 |
AnnaBridge | 174:b96e65c34a4d | 2609 | * | | |110 = SPI0 1st slave select pin |
AnnaBridge | 174:b96e65c34a4d | 2610 | * | | |Others = GPIOE[1] |
AnnaBridge | 174:b96e65c34a4d | 2611 | * |[10:8] |PE2_MFP |PE.2 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2612 | * | | |110 = SPI0 SCLK |
AnnaBridge | 174:b96e65c34a4d | 2613 | * | | |Others = GPIOE[2] |
AnnaBridge | 174:b96e65c34a4d | 2614 | * |[14:12] |PE3_MFP |PE.3 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2615 | * | | |110 = SPI0 MISO0 |
AnnaBridge | 174:b96e65c34a4d | 2616 | * | | |Others = GPIOE[3] |
AnnaBridge | 174:b96e65c34a4d | 2617 | * |[18:16] |PE4_MFP |PE.4 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2618 | * | | |110 = SPI0 MOSI0 |
AnnaBridge | 174:b96e65c34a4d | 2619 | * | | |Others = GPIOE[4] |
AnnaBridge | 174:b96e65c34a4d | 2620 | * |[22:20] |PE5_MFP |PE.5 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2621 | * | | |001 = PWM1 Channel 1 |
AnnaBridge | 174:b96e65c34a4d | 2622 | * | | |Others = GPIOE[5] |
AnnaBridge | 174:b96e65c34a4d | 2623 | * |[26:24] |PE6_MFP |PE.6 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2624 | * | | |GPIOE[6] |
AnnaBridge | 174:b96e65c34a4d | 2625 | * |[30:28] |PE7_MFP |PE.7 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2626 | * | | |111 = LCD SEG 8 |
AnnaBridge | 174:b96e65c34a4d | 2627 | * | | |Others = GPIOE[7] |
AnnaBridge | 174:b96e65c34a4d | 2628 | */ |
AnnaBridge | 174:b96e65c34a4d | 2629 | __IO uint32_t PE_L_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2630 | |
AnnaBridge | 174:b96e65c34a4d | 2631 | /** |
AnnaBridge | 174:b96e65c34a4d | 2632 | * PE_H_MFP |
AnnaBridge | 174:b96e65c34a4d | 2633 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2634 | * Offset: 0x54 Port E high byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2635 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2636 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2637 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2638 | * |[2:0] |PE8_MFP |PE.8 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2639 | * | | |111 = LCD SEG 9 |
AnnaBridge | 174:b96e65c34a4d | 2640 | * | | |Others = GPIOE[8] |
AnnaBridge | 174:b96e65c34a4d | 2641 | * |[6:4] |PE9_MFP |PE.9 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2642 | * | | |111 = UART1 RX |
AnnaBridge | 174:b96e65c34a4d | 2643 | * | | |Others = GPIOE[9] |
AnnaBridge | 174:b96e65c34a4d | 2644 | * |[10:8] |PE10_MFP |PE.10 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2645 | * | | |111 = UART1 TX |
AnnaBridge | 174:b96e65c34a4d | 2646 | * | | |Others = GPIOE[10] |
AnnaBridge | 174:b96e65c34a4d | 2647 | * |[14:12] |PE11_MFP |PE.11 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2648 | * | | |111 = UART1 RTSn |
AnnaBridge | 174:b96e65c34a4d | 2649 | * | | |Others = GPIOE[11] |
AnnaBridge | 174:b96e65c34a4d | 2650 | * |[18:16] |PE12_MFP |PE.12 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2651 | * | | |111 = UART1 CTSn |
AnnaBridge | 174:b96e65c34a4d | 2652 | * | | |Others = GPIOE[12] |
AnnaBridge | 174:b96e65c34a4d | 2653 | * |[22:20] |PE13_MFP |PE.13 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2654 | * | | |111 = LCD SEG 27 |
AnnaBridge | 174:b96e65c34a4d | 2655 | * | | |Others = GPIOE[13] |
AnnaBridge | 174:b96e65c34a4d | 2656 | * |[26:24] |PE14_MFP |PE.14 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2657 | * | | |111 = LCD SEG 28 |
AnnaBridge | 174:b96e65c34a4d | 2658 | * | | |Others = GPIOE[14] |
AnnaBridge | 174:b96e65c34a4d | 2659 | * |[30:28] |PE15_MFP |PE.15 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2660 | * | | |111 = LCD SEG 2 |
AnnaBridge | 174:b96e65c34a4d | 2661 | * | | |Others = GPIOE[15] |
AnnaBridge | 174:b96e65c34a4d | 2662 | */ |
AnnaBridge | 174:b96e65c34a4d | 2663 | __IO uint32_t PE_H_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2664 | |
AnnaBridge | 174:b96e65c34a4d | 2665 | /** |
AnnaBridge | 174:b96e65c34a4d | 2666 | * PF_L_MFP |
AnnaBridge | 174:b96e65c34a4d | 2667 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2668 | * Offset: 0x58 Port F low byte multiple function control register |
AnnaBridge | 174:b96e65c34a4d | 2669 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2670 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2671 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2672 | * |[2:0] |PF0_MFP |PF.0 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2673 | * | | |101 = External interrupt 0 |
AnnaBridge | 174:b96e65c34a4d | 2674 | * | | |111 = ICE DATA |
AnnaBridge | 174:b96e65c34a4d | 2675 | * | | |Others = GPIOF[1] |
AnnaBridge | 174:b96e65c34a4d | 2676 | * |[6:4] |PF1_MFP |PF.1 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2677 | * | | |100 = FRQDIV_CLK |
AnnaBridge | 174:b96e65c34a4d | 2678 | * | | |101 = External interrupt 1 |
AnnaBridge | 174:b96e65c34a4d | 2679 | * | | |111 = ICE CLOCK |
AnnaBridge | 174:b96e65c34a4d | 2680 | * | | |Others = GPIOF[1] |
AnnaBridge | 174:b96e65c34a4d | 2681 | * |[10:8] |PF2_MFP |PF.2 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2682 | * | | |111 = HXT OUT |
AnnaBridge | 174:b96e65c34a4d | 2683 | * | | |Others = GPIOF[2] |
AnnaBridge | 174:b96e65c34a4d | 2684 | * |[14:12] |PF3_MFP |PF.3 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2685 | * | | |111 = HXT IN |
AnnaBridge | 174:b96e65c34a4d | 2686 | * | | |Others = GPIOF[3] |
AnnaBridge | 174:b96e65c34a4d | 2687 | * |[18:16] |PF4_MFP |PF.4 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2688 | * | | |001 = I2C0 SDA |
AnnaBridge | 174:b96e65c34a4d | 2689 | * | | |Others = GPIOF[4] |
AnnaBridge | 174:b96e65c34a4d | 2690 | * |[22:20] |PF5_MFP |PF.5 Pin Function Selection |
AnnaBridge | 174:b96e65c34a4d | 2691 | * | | |001 = I2C0 SCL |
AnnaBridge | 174:b96e65c34a4d | 2692 | * | | |Others = GPIOF[5] |
AnnaBridge | 174:b96e65c34a4d | 2693 | */ |
AnnaBridge | 174:b96e65c34a4d | 2694 | __IO uint32_t PF_L_MFP; |
AnnaBridge | 174:b96e65c34a4d | 2695 | uint32_t RESERVE2[1]; |
AnnaBridge | 174:b96e65c34a4d | 2696 | |
AnnaBridge | 174:b96e65c34a4d | 2697 | |
AnnaBridge | 174:b96e65c34a4d | 2698 | /** |
AnnaBridge | 174:b96e65c34a4d | 2699 | * PORCTL |
AnnaBridge | 174:b96e65c34a4d | 2700 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2701 | * Offset: 0x60 Power-On-Reset Controller Register |
AnnaBridge | 174:b96e65c34a4d | 2702 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2703 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2704 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2705 | * |[15:0] |POR_DIS_CODE|Power-On Reset Enable Control |
AnnaBridge | 174:b96e65c34a4d | 2706 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2707 | * | | |When powered on, the POR circuit generates a reset signal to reset the whole chip function, but noise on the power may cause the POR active again. |
AnnaBridge | 174:b96e65c34a4d | 2708 | * | | |If setting the POR_DIS_CODE to 0x5AA5, the POR reset function will be disabled and the POR function will be active again when POR_DIS_CODE is set to another value or POR_DIS_CODE is reset by chip other reset functions, including: /RESET, Watchdog Timer reset, BOD reset, ICE reset command and the software-chip reset function. |
AnnaBridge | 174:b96e65c34a4d | 2709 | */ |
AnnaBridge | 174:b96e65c34a4d | 2710 | __IO uint32_t PORCTL; |
AnnaBridge | 174:b96e65c34a4d | 2711 | |
AnnaBridge | 174:b96e65c34a4d | 2712 | /** |
AnnaBridge | 174:b96e65c34a4d | 2713 | * BODCTL |
AnnaBridge | 174:b96e65c34a4d | 2714 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2715 | * Offset: 0x64 Brown-out Detector Controller Register |
AnnaBridge | 174:b96e65c34a4d | 2716 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2717 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2718 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2719 | * |[0] |BOD17_EN |Brown-Out Detector 1.7V Function Enable |
AnnaBridge | 174:b96e65c34a4d | 2720 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2721 | * | | |The default value is set by flash controller user configuration register config0 bit[20:19] |
AnnaBridge | 174:b96e65c34a4d | 2722 | * | | |Users can disable BOD17_EN but it takes effective (disabled) only in Power-down mode. |
AnnaBridge | 174:b96e65c34a4d | 2723 | * | | |Once existing Power-down mode, BOD17 will be enabled by HW automatically. |
AnnaBridge | 174:b96e65c34a4d | 2724 | * | | |When CPU reads this bit, CPU will read whether BOD17 function enabled or not. |
AnnaBridge | 174:b96e65c34a4d | 2725 | * | | |In other words,CPU will always read high. |
AnnaBridge | 174:b96e65c34a4d | 2726 | * | | |0 = Brown-out Detector 1.7V function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 2727 | * | | |1 = Brown-out Detector 1.7V function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 2728 | * |[1] |BOD20_EN |Brown-Out Detector 2.0 V Function Enable |
AnnaBridge | 174:b96e65c34a4d | 2729 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2730 | * | | |0 = Brown-out Detector 2.0 V function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 2731 | * | | |1 = Brown-out Detector 2.0 V function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 2732 | * | | |BOD20_EN is default on. |
AnnaBridge | 174:b96e65c34a4d | 2733 | * | | |If SW disables it, Brown-out Detector 2.0 V function is not disabled until chip enters power-down mode. |
AnnaBridge | 174:b96e65c34a4d | 2734 | * | | |If system is not in power-down mode, BOD20_EN will be enabled by hardware automatically. |
AnnaBridge | 174:b96e65c34a4d | 2735 | * |[2] |BOD25_EN |Brown-Out Detector 2.5 V Function Enable |
AnnaBridge | 174:b96e65c34a4d | 2736 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2737 | * | | |0 = Brown-out Detector 2.5 V function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 2738 | * | | |1 = Brown-out Detector 2.5 V function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 2739 | * |[4] |BOD17_RST_EN|BOD 1.7 V Reset Enable |
AnnaBridge | 174:b96e65c34a4d | 2740 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2741 | * | | |0 = Reset does not issue when BOD17 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2742 | * | | |1 = Reset issues when BOD17 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2743 | * | | |The default value is set by flash controller user configuration register config0 bit[20:19] |
AnnaBridge | 174:b96e65c34a4d | 2744 | * | | |BOD17_RST_EN can be controlled (enable or disable) only when BOD17_EN is high. |
AnnaBridge | 174:b96e65c34a4d | 2745 | * |[5] |BOD20_RST_EN|BOD 2.0 V Reset Enable |
AnnaBridge | 174:b96e65c34a4d | 2746 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2747 | * | | |0 = Reset does not issue when BOD20 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2748 | * | | |1 = Reset issues when BOD20 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2749 | * | | |The default value is set by flash controller user configuration register config0 bit[20:19] |
AnnaBridge | 174:b96e65c34a4d | 2750 | * |[6] |BOD25_RST_EN|BOD 2.5 V Reset Enable |
AnnaBridge | 174:b96e65c34a4d | 2751 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2752 | * | | |0 = Reset does not issue when BOD25 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2753 | * | | |1 = Reset issues when BOD25 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2754 | * | | |The default value is set by flash controller user configuration register config0 bit[20:19] |
AnnaBridge | 174:b96e65c34a4d | 2755 | * |[8] |BOD17_INT_EN|BOD 1.7 V Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 2756 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2757 | * | | |0 = Interrupt does not issue when BOD17 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2758 | * | | |1 = Interrupt issues when BOD17 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2759 | * |[9] |BOD20_INT_EN|BOD 2.0 V Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 2760 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2761 | * | | |0 = Interrupt does not issue when BOD20 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2762 | * | | |1 = Interrupt issues when BOD20 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2763 | * |[10] |BOD25_INT_EN|BOD 2.5 V Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 2764 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2765 | * | | |0 = Interrupt does not issue when BOD25 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2766 | * | | |1 = Interrupt issues when BOD25 occurs. |
AnnaBridge | 174:b96e65c34a4d | 2767 | */ |
AnnaBridge | 174:b96e65c34a4d | 2768 | __IO uint32_t BODCTL; |
AnnaBridge | 174:b96e65c34a4d | 2769 | |
AnnaBridge | 174:b96e65c34a4d | 2770 | /** |
AnnaBridge | 174:b96e65c34a4d | 2771 | * BODSTS |
AnnaBridge | 174:b96e65c34a4d | 2772 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2773 | * Offset: 0x68 Brown-out Detector Status Register |
AnnaBridge | 174:b96e65c34a4d | 2774 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2775 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2776 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2777 | * |[0] |BOD_INT |Brown-Out Detector Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 2778 | * | | |1 = When Brown-out Detector detects the VDD is dropped down through the target detected voltage or the VDD is raised up through the target detected voltage and Brown-out interrupt is enabled, this bit will be set to 1. |
AnnaBridge | 174:b96e65c34a4d | 2779 | * | | |0 = Brown-out Detector does not detect any voltage drift at VDD down through or up through the target detected voltage after interrupt is enabled. |
AnnaBridge | 174:b96e65c34a4d | 2780 | * | | |This bit is cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 2781 | * |[1] |BOD17_drop|Brown-Out Detector Lower Than 1.7V Status |
AnnaBridge | 174:b96e65c34a4d | 2782 | * | | |Setting BOD17_drop high means once the detected voltage is lower than target detected voltage setting (1.7V). |
AnnaBridge | 174:b96e65c34a4d | 2783 | * | | |Software can write 1 to clear BOD17_drop. |
AnnaBridge | 174:b96e65c34a4d | 2784 | * |[2] |BOD20_drop|Brown-Out Detector Lower Than 2.0V Status |
AnnaBridge | 174:b96e65c34a4d | 2785 | * | | |Setting BOD20_drop high means once the detected voltage is lower than target detected voltage setting (2.0V). |
AnnaBridge | 174:b96e65c34a4d | 2786 | * | | |Software can write 1 to clear BOD20_drop. |
AnnaBridge | 174:b96e65c34a4d | 2787 | * |[3] |BOD25_drop|Brown-Out Detector Lower Than 2.5V Status |
AnnaBridge | 174:b96e65c34a4d | 2788 | * | | |Setting BOD25_drop high means once the detected voltage is lower than target detected voltage setting (2.5V). |
AnnaBridge | 174:b96e65c34a4d | 2789 | * | | |Software can write 1 to clear BOD25_drop. |
AnnaBridge | 174:b96e65c34a4d | 2790 | * |[4] |BOD17_rise|Brown-Out Detector Higher Than 1.7V Status |
AnnaBridge | 174:b96e65c34a4d | 2791 | * | | |Setting BOD17_rise high means once the detected voltage is higher than target detected voltage setting (1.7V). |
AnnaBridge | 174:b96e65c34a4d | 2792 | * | | |Software can write 1 to clear BOD17_rise. |
AnnaBridge | 174:b96e65c34a4d | 2793 | * |[5] |BOD20_rise|Brown-Out Detector Higher Than 2.0V Status |
AnnaBridge | 174:b96e65c34a4d | 2794 | * | | |Setting BOD20_rise high means once the detected voltage is higher than target detected voltage setting (2.0V). |
AnnaBridge | 174:b96e65c34a4d | 2795 | * | | |Software can write 1 to clear BOD20_rise. |
AnnaBridge | 174:b96e65c34a4d | 2796 | * |[6] |BOD25_rise|Brown-Out Detector Higher Than 2.5V Status |
AnnaBridge | 174:b96e65c34a4d | 2797 | * | | |Setting BOD25_rise high means once the detected voltage is higher than target detected voltage setting (2.5V). |
AnnaBridge | 174:b96e65c34a4d | 2798 | * | | |Software can write 1 to clear BOD25_rise. |
AnnaBridge | 174:b96e65c34a4d | 2799 | */ |
AnnaBridge | 174:b96e65c34a4d | 2800 | __IO uint32_t BODSTS; |
AnnaBridge | 174:b96e65c34a4d | 2801 | |
AnnaBridge | 174:b96e65c34a4d | 2802 | /** |
AnnaBridge | 174:b96e65c34a4d | 2803 | * Int_VREFCTL |
AnnaBridge | 174:b96e65c34a4d | 2804 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2805 | * Offset: 0x6C Voltage reference Control register |
AnnaBridge | 174:b96e65c34a4d | 2806 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2807 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2808 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2809 | * |[0] |BGP_EN |Band-Gap Enable |
AnnaBridge | 174:b96e65c34a4d | 2810 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2811 | * | | |Band-gap is the reference voltage of internal reference voltage. |
AnnaBridge | 174:b96e65c34a4d | 2812 | * | | |User must enable band-gap if want to enable internal 1.8V or 2.5V reference voltage. |
AnnaBridge | 174:b96e65c34a4d | 2813 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 2814 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 2815 | * |[1] |REG_EN |Regulator Enable |
AnnaBridge | 174:b96e65c34a4d | 2816 | * | | |Enable internal 1.8V or 2.5V reference voltage. |
AnnaBridge | 174:b96e65c34a4d | 2817 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2818 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 2819 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 2820 | * |[2] |SEL25 |Regulator Output Voltage Selection |
AnnaBridge | 174:b96e65c34a4d | 2821 | * | | |Select internal reference voltage level. |
AnnaBridge | 174:b96e65c34a4d | 2822 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2823 | * | | |0 = 1.8V. |
AnnaBridge | 174:b96e65c34a4d | 2824 | * | | |1 = 2.5V. |
AnnaBridge | 174:b96e65c34a4d | 2825 | * |[3] |EXT_MODE |Regulator External Mode |
AnnaBridge | 174:b96e65c34a4d | 2826 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 2827 | * | | |Users can output regulator output voltage in VREF pin if EXT_MODE is high. |
AnnaBridge | 174:b96e65c34a4d | 2828 | * | | |0 = No connection with external VREF pin. |
AnnaBridge | 174:b96e65c34a4d | 2829 | * | | |1 = Connect to external VREF pin. |
AnnaBridge | 174:b96e65c34a4d | 2830 | * | | |Connect a 1uF to 10uF capacitor to AVSS will let internal voltage reference be more stable. |
AnnaBridge | 174:b96e65c34a4d | 2831 | */ |
AnnaBridge | 174:b96e65c34a4d | 2832 | __IO uint32_t Int_VREFCTL; |
AnnaBridge | 174:b96e65c34a4d | 2833 | uint32_t RESERVE3[4]; |
AnnaBridge | 174:b96e65c34a4d | 2834 | |
AnnaBridge | 174:b96e65c34a4d | 2835 | |
AnnaBridge | 174:b96e65c34a4d | 2836 | /** |
AnnaBridge | 174:b96e65c34a4d | 2837 | * IRCTRIMCTL |
AnnaBridge | 174:b96e65c34a4d | 2838 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2839 | * Offset: 0x80 HIRC Trim Control Register |
AnnaBridge | 174:b96e65c34a4d | 2840 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2841 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2842 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2843 | * |[1:0] |TRIM_SEL |Trim Frequency Selection |
AnnaBridge | 174:b96e65c34a4d | 2844 | * | | |This field indicates the target frequency of HIRC auto trim. |
AnnaBridge | 174:b96e65c34a4d | 2845 | * | | |If no any target frequency is selected (TRIM_SEL is 00), the HIRC auto trim function is disabled. |
AnnaBridge | 174:b96e65c34a4d | 2846 | * | | |During auto trim operation, if 32.768 kHz clock error detected or trim retry limitation count reached, this field will be cleared to 00 automatically. |
AnnaBridge | 174:b96e65c34a4d | 2847 | * | | |00 = Disable HIRC auto trim function |
AnnaBridge | 174:b96e65c34a4d | 2848 | * | | |01 = Enable HIRC auto trim function and trim HIRC to 11.0592 MHz |
AnnaBridge | 174:b96e65c34a4d | 2849 | * | | |10 = Enable HIRC auto trim function and trim HIRC to 12 MHz |
AnnaBridge | 174:b96e65c34a4d | 2850 | * | | |11 = Enable HIRC auto trim function and trim HIRC to 12.288 MHz |
AnnaBridge | 174:b96e65c34a4d | 2851 | * |[5:4] |TRIM_LOOP |Trim Calculation Loop |
AnnaBridge | 174:b96e65c34a4d | 2852 | * | | |This field defines that trim value calculation is based on how many 32.768 kHz clock. |
AnnaBridge | 174:b96e65c34a4d | 2853 | * | | |For example, if TRIM_LOOP is set as 00, auto trim circuit will calculate trim value based on the average frequency difference in 4 32.768 kHz clock. |
AnnaBridge | 174:b96e65c34a4d | 2854 | * | | |00 = 4 32.768 kHz clock |
AnnaBridge | 174:b96e65c34a4d | 2855 | * | | |01 = 8 32.768 kHz clock |
AnnaBridge | 174:b96e65c34a4d | 2856 | * | | |10 = 16 32.768 kHz clock |
AnnaBridge | 174:b96e65c34a4d | 2857 | * | | |11 = 32 32.768 kHz clock |
AnnaBridge | 174:b96e65c34a4d | 2858 | * |[7:6] |TRIM_RETRY_CNT|Trim Value Update Limitation Count |
AnnaBridge | 174:b96e65c34a4d | 2859 | * | | |This field defines that how many times the auto trim circuit will try to update the HIRC trim value before the frequency of HIRC locked. |
AnnaBridge | 174:b96e65c34a4d | 2860 | * | | |Once the HIRC locked, the internal trim value update counter will be reset. |
AnnaBridge | 174:b96e65c34a4d | 2861 | * | | |If the trim value update counter reached this limitation value and frequency of HIRC still doesn't lock, the auto trim operation will be disabled and TRIM_SEL will be cleared to 00. |
AnnaBridge | 174:b96e65c34a4d | 2862 | * | | |00 = Trim retry count limitation is 64 |
AnnaBridge | 174:b96e65c34a4d | 2863 | * | | |01 = Trim retry count limitation is 128 |
AnnaBridge | 174:b96e65c34a4d | 2864 | * | | |10 = Trim retry count limitation is 256 |
AnnaBridge | 174:b96e65c34a4d | 2865 | * | | |11 = Trim retry count limitation is 512 |
AnnaBridge | 174:b96e65c34a4d | 2866 | * |[8] |ERR_STOP |Trim Stop When 32.768 KHz Error Detected |
AnnaBridge | 174:b96e65c34a4d | 2867 | * | | |This bit is used to control if stop the HIRC trim operation when 32.768 kHz clock error is detected. |
AnnaBridge | 174:b96e65c34a4d | 2868 | * | | |If set this bit high and 32.768 kHz clock error detected, the status 32K_ERR_INT would be set high and HIRC trim operation was stopped. |
AnnaBridge | 174:b96e65c34a4d | 2869 | * | | |If this bit is low and 32.768 kHz clock error detected, the status 23K_ERR_INT would be set high and HIRC trim operation is continuously. |
AnnaBridge | 174:b96e65c34a4d | 2870 | * | | |0 = Continue the HIRC trim operation even if 32.768 kHz clock error detected. |
AnnaBridge | 174:b96e65c34a4d | 2871 | * | | |1 = Stop the HIRC trim operation if 32.768 kHz clock error detected. |
AnnaBridge | 174:b96e65c34a4d | 2872 | */ |
AnnaBridge | 174:b96e65c34a4d | 2873 | __IO uint32_t IRCTRIMCTL; |
AnnaBridge | 174:b96e65c34a4d | 2874 | |
AnnaBridge | 174:b96e65c34a4d | 2875 | /** |
AnnaBridge | 174:b96e65c34a4d | 2876 | * IRCTRIMIEN |
AnnaBridge | 174:b96e65c34a4d | 2877 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2878 | * Offset: 0x84 HIRC Trim Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 2879 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2880 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2881 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2882 | * |[1] |TRIM_FAIL_IEN|Trim Failure Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 2883 | * | | |This bit controls if an interrupt will be triggered while HIRC trim value update limitation count reached and HIRC frequency still not locked on target frequency set by TRIM_SEL. |
AnnaBridge | 174:b96e65c34a4d | 2884 | * | | |If this bit is high and TRIM_FAIL_INT is set during auto trim operation, an interrupt will be triggered to notify that HIRC trim value update limitation count was reached. |
AnnaBridge | 174:b96e65c34a4d | 2885 | * | | |0 = TRIM_FAIL_INT status Disabled to trigger an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 2886 | * | | |1 = TRIM_FAIL_INT status Enabled to trigger an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 2887 | * |[2] |32K_ERR_IEN|32.768 KHz Clock Error Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 2888 | * | | |This bit controls if CPU would get an interrupt while 32.768 kHz clock is inaccuracy during auto trim operation. |
AnnaBridge | 174:b96e65c34a4d | 2889 | * | | |If this bit is high, and 32K_ERR_INT is set during auto trim operation, an interrupt will be triggered to notify the 32.768 kHz clock frequency is inaccuracy. |
AnnaBridge | 174:b96e65c34a4d | 2890 | * | | |0 = 32K_ERR_INT status Disabled to trigger an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 2891 | * | | |1 = 32K_ERR_INT status Enabled to trigger an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 2892 | */ |
AnnaBridge | 174:b96e65c34a4d | 2893 | __IO uint32_t IRCTRIMIEN; |
AnnaBridge | 174:b96e65c34a4d | 2894 | |
AnnaBridge | 174:b96e65c34a4d | 2895 | /** |
AnnaBridge | 174:b96e65c34a4d | 2896 | * IRCTRIMINT |
AnnaBridge | 174:b96e65c34a4d | 2897 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2898 | * Offset: 0x88 HIRC Trim Interrupt Status Register |
AnnaBridge | 174:b96e65c34a4d | 2899 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2900 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2901 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2902 | * |[0] |FREQ_LOCK |HIRC Frequency Lock Status |
AnnaBridge | 174:b96e65c34a4d | 2903 | * | | |This bit indicates the HIRC frequency lock. |
AnnaBridge | 174:b96e65c34a4d | 2904 | * | | |This is a status bit and doesn't trigger any interrupt. |
AnnaBridge | 174:b96e65c34a4d | 2905 | * |[1] |TRIM_FAIL_INT|Trim Failure Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 2906 | * | | |This bit indicates that HIRC trim value update limitation count reached and HIRC clock frequency still doesn't lock. |
AnnaBridge | 174:b96e65c34a4d | 2907 | * | | |Once this bit is set, the auto trim operation stopped and TRIM_SEL will be cleared to 00 by hardware automatically. |
AnnaBridge | 174:b96e65c34a4d | 2908 | * | | |If this bit is set and TRIM_FAIL_IEN is high, an interrupt will be triggered to notify that HIRC trim value update limitation count was reached. |
AnnaBridge | 174:b96e65c34a4d | 2909 | * | | |Write 1 to clear this to zero. |
AnnaBridge | 174:b96e65c34a4d | 2910 | * | | |0 = Trim value update limitation count doesn't reach. |
AnnaBridge | 174:b96e65c34a4d | 2911 | * | | |1 = Trim value update limitation count reached and HIRC frequency still doesn't lock. |
AnnaBridge | 174:b96e65c34a4d | 2912 | * |[2] |32K_ERR_INT|32.768 KHz Clock Error Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 2913 | * | | |This bit indicates that 32.768 kHz clock frequency is inaccuracy. |
AnnaBridge | 174:b96e65c34a4d | 2914 | * | | |Once this bit is set, the auto trim operation stopped and TRIM_SEL will be cleared to 00 by hardware automatically. |
AnnaBridge | 174:b96e65c34a4d | 2915 | * | | |If this bit is set and 32K_ERR_IEN is high, an interrupt will be triggered to notify the 32.768 kHz clock frequency is inaccuracy. |
AnnaBridge | 174:b96e65c34a4d | 2916 | * | | |Write 1 to clear this to zero. |
AnnaBridge | 174:b96e65c34a4d | 2917 | * | | |0 = 32.768 kHz clock frequency is accuracy. |
AnnaBridge | 174:b96e65c34a4d | 2918 | * | | |1 = 32.768 kHz clock frequency is inaccuracy. |
AnnaBridge | 174:b96e65c34a4d | 2919 | */ |
AnnaBridge | 174:b96e65c34a4d | 2920 | __IO uint32_t IRCTRIMINT; |
AnnaBridge | 174:b96e65c34a4d | 2921 | uint32_t RESERVE4[29]; |
AnnaBridge | 174:b96e65c34a4d | 2922 | |
AnnaBridge | 174:b96e65c34a4d | 2923 | |
AnnaBridge | 174:b96e65c34a4d | 2924 | /** |
AnnaBridge | 174:b96e65c34a4d | 2925 | * RegLockAddr |
AnnaBridge | 174:b96e65c34a4d | 2926 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 2927 | * Offset: 0x100 Register Lock Key address |
AnnaBridge | 174:b96e65c34a4d | 2928 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 2929 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 2930 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 2931 | * |[0] |RegUnLock |Register unlock bit |
AnnaBridge | 174:b96e65c34a4d | 2932 | * | | |0 = Protected register are Locked. Any write to the target register is ignored. |
AnnaBridge | 174:b96e65c34a4d | 2933 | * | | |1 = Protected registers are Unlocked. |
AnnaBridge | 174:b96e65c34a4d | 2934 | */ |
AnnaBridge | 174:b96e65c34a4d | 2935 | __IO uint32_t RegLockAddr; |
AnnaBridge | 174:b96e65c34a4d | 2936 | |
AnnaBridge | 174:b96e65c34a4d | 2937 | } SYS_T; |
AnnaBridge | 174:b96e65c34a4d | 2938 | |
AnnaBridge | 174:b96e65c34a4d | 2939 | /** |
AnnaBridge | 174:b96e65c34a4d | 2940 | @addtogroup SYS_CONST SYS Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 2941 | Constant Definitions for SYS Controller |
AnnaBridge | 174:b96e65c34a4d | 2942 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 2943 | |
AnnaBridge | 174:b96e65c34a4d | 2944 | #define SYS_PDID_PDID_Pos (0) /*!< SYS_T::PDID: PDID Position */ |
AnnaBridge | 174:b96e65c34a4d | 2945 | #define SYS_PDID_PDID_Msk (0xfffffffful << SYS_PDID_PDID_Pos) /*!< SYS_T::PDID: PDID Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2946 | |
AnnaBridge | 174:b96e65c34a4d | 2947 | #define SYS_RST_SRC_RSTS_POR_Pos (0) /*!< SYS_T::RST_SRC: RSTS_POR Position */ |
AnnaBridge | 174:b96e65c34a4d | 2948 | #define SYS_RST_SRC_RSTS_POR_Msk (0x1ul << SYS_RST_SRC_RSTS_POR_Pos) /*!< SYS_T::RST_SRC: RSTS_POR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2949 | |
AnnaBridge | 174:b96e65c34a4d | 2950 | #define SYS_RST_SRC_RSTS_PAD_Pos (1) /*!< SYS_T::RST_SRC: RSTS_PAD Position */ |
AnnaBridge | 174:b96e65c34a4d | 2951 | #define SYS_RST_SRC_RSTS_PAD_Msk (0x1ul << SYS_RST_SRC_RSTS_PAD_Pos) /*!< SYS_T::RST_SRC: RSTS_PAD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2952 | |
AnnaBridge | 174:b96e65c34a4d | 2953 | #define SYS_RST_SRC_RSTS_WDT_Pos (2) /*!< SYS_T::RST_SRC: RSTS_WDT Position */ |
AnnaBridge | 174:b96e65c34a4d | 2954 | #define SYS_RST_SRC_RSTS_WDT_Msk (0x1ul << SYS_RST_SRC_RSTS_WDT_Pos) /*!< SYS_T::RST_SRC: RSTS_WDT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2955 | |
AnnaBridge | 174:b96e65c34a4d | 2956 | #define SYS_RST_SRC_RSTS_BOD_Pos (4) /*!< SYS_T::RST_SRC: RSTS_BOD Position */ |
AnnaBridge | 174:b96e65c34a4d | 2957 | #define SYS_RST_SRC_RSTS_BOD_Msk (0x1ul << SYS_RST_SRC_RSTS_BOD_Pos) /*!< SYS_T::RST_SRC: RSTS_BOD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2958 | |
AnnaBridge | 174:b96e65c34a4d | 2959 | #define SYS_RST_SRC_RSTS_SYS_Pos (5) /*!< SYS_T::RST_SRC: RSTS_SYS_T::Position */ |
AnnaBridge | 174:b96e65c34a4d | 2960 | #define SYS_RST_SRC_RSTS_SYS_Msk (0x1ul << SYS_RST_SRC_RSTS_SYS_Pos) /*!< SYS_T::RST_SRC: RSTS_SYS_T::Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2961 | |
AnnaBridge | 174:b96e65c34a4d | 2962 | #define SYS_RST_SRC_RSTS_CPU_Pos (7) /*!< SYS_T::RST_SRC: RSTS_CPU Position */ |
AnnaBridge | 174:b96e65c34a4d | 2963 | #define SYS_RST_SRC_RSTS_CPU_Msk (0x1ul << SYS_RST_SRC_RSTS_CPU_Pos) /*!< SYS_T::RST_SRC: RSTS_CPU Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2964 | |
AnnaBridge | 174:b96e65c34a4d | 2965 | #define SYS_IPRST_CTL1_CHIP_RST_Pos (0) /*!< SYS_T::IPRST_CTL1: CHIP_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2966 | #define SYS_IPRST_CTL1_CHIP_RST_Msk (0x1ul << SYS_IPRST_CTL1_CHIP_RST_Pos) /*!< SYS_T::IPRST_CTL1: CHIP_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2967 | |
AnnaBridge | 174:b96e65c34a4d | 2968 | #define SYS_IPRST_CTL1_CPU_RST_Pos (1) /*!< SYS_T::IPRST_CTL1: CPU_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2969 | #define SYS_IPRST_CTL1_CPU_RST_Msk (0x1ul << SYS_IPRST_CTL1_CPU_RST_Pos) /*!< SYS_T::IPRST_CTL1: CPU_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2970 | |
AnnaBridge | 174:b96e65c34a4d | 2971 | #define SYS_IPRST_CTL1_DMA_RST_Pos (2) /*!< SYS_T::IPRST_CTL1: DMA_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2972 | #define SYS_IPRST_CTL1_DMA_RST_Msk (0x1ul << SYS_IPRST_CTL1_DMA_RST_Pos) /*!< SYS_T::IPRST_CTL1: DMA_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2973 | |
AnnaBridge | 174:b96e65c34a4d | 2974 | #define SYS_IPRST_CTL1_EBI_RST_Pos (3) /*!< SYS_T::IPRST_CTL1: EBI_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2975 | #define SYS_IPRST_CTL1_EBI_RST_Msk (0x1ul << SYS_IPRST_CTL1_EBI_RST_Pos) /*!< SYS_T::IPRST_CTL1: EBI_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2976 | |
AnnaBridge | 174:b96e65c34a4d | 2977 | #define SYS_IPRST_CTL2_GPIO_RST_Pos (1) /*!< SYS_T::IPRST_CTL2: GPIO_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2978 | #define SYS_IPRST_CTL2_GPIO_RST_Msk (0x1ul << SYS_IPRST_CTL2_GPIO_RST_Pos) /*!< SYS_T::IPRST_CTL2: GPIO_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2979 | |
AnnaBridge | 174:b96e65c34a4d | 2980 | #define SYS_IPRST_CTL2_TMR0_RST_Pos (2) /*!< SYS_T::IPRST_CTL2: TMR0_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2981 | #define SYS_IPRST_CTL2_TMR0_RST_Msk (0x1ul << SYS_IPRST_CTL2_TMR0_RST_Pos) /*!< SYS_T::IPRST_CTL2: TMR0_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2982 | |
AnnaBridge | 174:b96e65c34a4d | 2983 | #define SYS_IPRST_CTL2_TMR1_RST_Pos (3) /*!< SYS_T::IPRST_CTL2: TMR1_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2984 | #define SYS_IPRST_CTL2_TMR1_RST_Msk (0x1ul << SYS_IPRST_CTL2_TMR1_RST_Pos) /*!< SYS_T::IPRST_CTL2: TMR1_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2985 | |
AnnaBridge | 174:b96e65c34a4d | 2986 | #define SYS_IPRST_CTL2_TMR2_RST_Pos (4) /*!< SYS_T::IPRST_CTL2: TMR2_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2987 | #define SYS_IPRST_CTL2_TMR2_RST_Msk (0x1ul << SYS_IPRST_CTL2_TMR2_RST_Pos) /*!< SYS_T::IPRST_CTL2: TMR2_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2988 | |
AnnaBridge | 174:b96e65c34a4d | 2989 | #define SYS_IPRST_CTL2_TMR3_RST_Pos (5) /*!< SYS_T::IPRST_CTL2: TMR3_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2990 | #define SYS_IPRST_CTL2_TMR3_RST_Msk (0x1ul << SYS_IPRST_CTL2_TMR3_RST_Pos) /*!< SYS_T::IPRST_CTL2: TMR3_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2991 | |
AnnaBridge | 174:b96e65c34a4d | 2992 | #define SYS_IPRST_CTL2_SC2_RST_Pos (7) /*!< SYS_T::IPRST_CTL2: SC2_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2993 | #define SYS_IPRST_CTL2_SC2_RST_Msk (0x1ul << SYS_IPRST_CTL2_SC2_RST_Pos) /*!< SYS_T::IPRST_CTL2: SC2_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2994 | |
AnnaBridge | 174:b96e65c34a4d | 2995 | #define SYS_IPRST_CTL2_I2C0_RST_Pos (8) /*!< SYS_T::IPRST_CTL2: I2C0_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2996 | #define SYS_IPRST_CTL2_I2C0_RST_Msk (0x1ul << SYS_IPRST_CTL2_I2C0_RST_Pos) /*!< SYS_T::IPRST_CTL2: I2C0_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 2997 | |
AnnaBridge | 174:b96e65c34a4d | 2998 | #define SYS_IPRST_CTL2_I2C1_RST_Pos (9) /*!< SYS_T::IPRST_CTL2: I2C1_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 2999 | #define SYS_IPRST_CTL2_I2C1_RST_Msk (0x1ul << SYS_IPRST_CTL2_I2C1_RST_Pos) /*!< SYS_T::IPRST_CTL2: I2C1_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3000 | |
AnnaBridge | 174:b96e65c34a4d | 3001 | #define SYS_IPRST_CTL2_SPI0_RST_Pos (12) /*!< SYS_T::IPRST_CTL2: SPI0_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3002 | #define SYS_IPRST_CTL2_SPI0_RST_Msk (0x1ul << SYS_IPRST_CTL2_SPI0_RST_Pos) /*!< SYS_T::IPRST_CTL2: SPI0_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3003 | |
AnnaBridge | 174:b96e65c34a4d | 3004 | #define SYS_IPRST_CTL2_SPI1_RST_Pos (13) /*!< SYS_T::IPRST_CTL2: SPI1_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3005 | #define SYS_IPRST_CTL2_SPI1_RST_Msk (0x1ul << SYS_IPRST_CTL2_SPI1_RST_Pos) /*!< SYS_T::IPRST_CTL2: SPI1_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3006 | |
AnnaBridge | 174:b96e65c34a4d | 3007 | #define SYS_IPRST_CTL2_SPI2_RST_Pos (14) /*!< SYS_T::IPRST_CTL2: SPI2_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3008 | #define SYS_IPRST_CTL2_SPI2_RST_Msk (0x1ul << SYS_IPRST_CTL2_SPI2_RST_Pos) /*!< SYS_T::IPRST_CTL2: SPI2_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3009 | |
AnnaBridge | 174:b96e65c34a4d | 3010 | #define SYS_IPRST_CTL2_UART0_RST_Pos (16) /*!< SYS_T::IPRST_CTL2: UART0_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3011 | #define SYS_IPRST_CTL2_UART0_RST_Msk (0x1ul << SYS_IPRST_CTL2_UART0_RST_Pos) /*!< SYS_T::IPRST_CTL2: UART0_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3012 | |
AnnaBridge | 174:b96e65c34a4d | 3013 | #define SYS_IPRST_CTL2_UART1_RST_Pos (17) /*!< SYS_T::IPRST_CTL2: UART1_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3014 | #define SYS_IPRST_CTL2_UART1_RST_Msk (0x1ul << SYS_IPRST_CTL2_UART1_RST_Pos) /*!< SYS_T::IPRST_CTL2: UART1_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3015 | |
AnnaBridge | 174:b96e65c34a4d | 3016 | #define SYS_IPRST_CTL2_PWM0_RST_Pos (20) /*!< SYS_T::IPRST_CTL2: PWM0_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3017 | #define SYS_IPRST_CTL2_PWM0_RST_Msk (0x1ul << SYS_IPRST_CTL2_PWM0_RST_Pos) /*!< SYS_T::IPRST_CTL2: PWM0_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3018 | |
AnnaBridge | 174:b96e65c34a4d | 3019 | #define SYS_IPRST_CTL2_PWM1_RST_Pos (21) /*!< SYS_T::IPRST_CTL2: PWM1_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3020 | #define SYS_IPRST_CTL2_PWM1_RST_Msk (0x1ul << SYS_IPRST_CTL2_PWM1_RST_Pos) /*!< SYS_T::IPRST_CTL2: PWM1_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3021 | |
AnnaBridge | 174:b96e65c34a4d | 3022 | #define SYS_IPRST_CTL2_DAC_RST_Pos (25) /*!< SYS_T::IPRST_CTL2: DAC_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3023 | #define SYS_IPRST_CTL2_DAC_RST_Msk (0x1ul << SYS_IPRST_CTL2_DAC_RST_Pos) /*!< SYS_T::IPRST_CTL2: DAC_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3024 | |
AnnaBridge | 174:b96e65c34a4d | 3025 | #define SYS_IPRST_CTL2_LCD_RST_Pos (26) /*!< SYS_T::IPRST_CTL2: LCD_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3026 | #define SYS_IPRST_CTL2_LCD_RST_Msk (0x1ul << SYS_IPRST_CTL2_LCD_RST_Pos) /*!< SYS_T::IPRST_CTL2: LCD_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3027 | |
AnnaBridge | 174:b96e65c34a4d | 3028 | #define SYS_IPRST_CTL2_USBD_RST_Pos (27) /*!< SYS_T::IPRST_CTL2: USBD_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3029 | #define SYS_IPRST_CTL2_USBD_RST_Msk (0x1ul << SYS_IPRST_CTL2_USBD_RST_Pos) /*!< SYS_T::IPRST_CTL2: USBD_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3030 | |
AnnaBridge | 174:b96e65c34a4d | 3031 | #define SYS_IPRST_CTL2_ADC_RST_Pos (28) /*!< SYS_T::IPRST_CTL2: ADC_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3032 | #define SYS_IPRST_CTL2_ADC_RST_Msk (0x1ul << SYS_IPRST_CTL2_ADC_RST_Pos) /*!< SYS_T::IPRST_CTL2: ADC_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3033 | |
AnnaBridge | 174:b96e65c34a4d | 3034 | #define SYS_IPRST_CTL2_I2S_RST_Pos (29) /*!< SYS_T::IPRST_CTL2: I2S_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3035 | #define SYS_IPRST_CTL2_I2S_RST_Msk (0x1ul << SYS_IPRST_CTL2_I2S_RST_Pos) /*!< SYS_T::IPRST_CTL2: I2S_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3036 | |
AnnaBridge | 174:b96e65c34a4d | 3037 | #define SYS_IPRST_CTL2_SC0_RST_Pos (30) /*!< SYS_T::IPRST_CTL2: SC0_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3038 | #define SYS_IPRST_CTL2_SC0_RST_Msk (0x1ul << SYS_IPRST_CTL2_SC0_RST_Pos) /*!< SYS_T::IPRST_CTL2: SC0_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3039 | |
AnnaBridge | 174:b96e65c34a4d | 3040 | #define SYS_IPRST_CTL2_SC1_RST_Pos (31) /*!< SYS_T::IPRST_CTL2: SC1_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 3041 | #define SYS_IPRST_CTL2_SC1_RST_Msk (0x1ul << SYS_IPRST_CTL2_SC1_RST_Pos) /*!< SYS_T::IPRST_CTL2: SC1_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3042 | |
AnnaBridge | 174:b96e65c34a4d | 3043 | #define SYS_TEMPCTL_VTEMP_EN_Pos (0) /*!< SYS_T::TEMPCTL: VTEMP_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3044 | #define SYS_TEMPCTL_VTEMP_EN_Msk (0x1ul << SYS_TEMPCTL_VTEMP_EN_Pos) /*!< SYS_T::TEMPCTL: VTEMP_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3045 | |
AnnaBridge | 174:b96e65c34a4d | 3046 | #define SYS_PA_L_MFP_PA0_MFP_Pos (0) /*!< SYS_T::PA_L_MFP: PA0_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3047 | #define SYS_PA_L_MFP_PA0_MFP_Msk (0x7ul << SYS_PA_L_MFP_PA0_MFP_Pos) /*!< SYS_T::PA_L_MFP: PA0_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3048 | |
AnnaBridge | 174:b96e65c34a4d | 3049 | #define SYS_PA_L_MFP_PA1_MFP_Pos (4) /*!< SYS_T::PA_L_MFP: PA1_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3050 | #define SYS_PA_L_MFP_PA1_MFP_Msk (0x7ul << SYS_PA_L_MFP_PA1_MFP_Pos) /*!< SYS_T::PA_L_MFP: PA1_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3051 | |
AnnaBridge | 174:b96e65c34a4d | 3052 | #define SYS_PA_L_MFP_PA2_MFP_Pos (8) /*!< SYS_T::PA_L_MFP: PA2_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3053 | #define SYS_PA_L_MFP_PA2_MFP_Msk (0x7ul << SYS_PA_L_MFP_PA2_MFP_Pos) /*!< SYS_T::PA_L_MFP: PA2_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3054 | |
AnnaBridge | 174:b96e65c34a4d | 3055 | #define SYS_PA_L_MFP_PA3_MFP_Pos (12) /*!< SYS_T::PA_L_MFP: PA3_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3056 | #define SYS_PA_L_MFP_PA3_MFP_Msk (0x7ul << SYS_PA_L_MFP_PA3_MFP_Pos) /*!< SYS_T::PA_L_MFP: PA3_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3057 | |
AnnaBridge | 174:b96e65c34a4d | 3058 | #define SYS_PA_L_MFP_PA4_MFP_Pos (16) /*!< SYS_T::PA_L_MFP: PA4_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3059 | #define SYS_PA_L_MFP_PA4_MFP_Msk (0x7ul << SYS_PA_L_MFP_PA4_MFP_Pos) /*!< SYS_T::PA_L_MFP: PA4_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3060 | |
AnnaBridge | 174:b96e65c34a4d | 3061 | #define SYS_PA_L_MFP_PA5_MFP_Pos (20) /*!< SYS_T::PA_L_MFP: PA5_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3062 | #define SYS_PA_L_MFP_PA5_MFP_Msk (0x7ul << SYS_PA_L_MFP_PA5_MFP_Pos) /*!< SYS_T::PA_L_MFP: PA5_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3063 | |
AnnaBridge | 174:b96e65c34a4d | 3064 | #define SYS_PA_L_MFP_PA6_MFP_Pos (24) /*!< SYS_T::PA_L_MFP: PA6_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3065 | #define SYS_PA_L_MFP_PA6_MFP_Msk (0x7ul << SYS_PA_L_MFP_PA6_MFP_Pos) /*!< SYS_T::PA_L_MFP: PA6_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3066 | |
AnnaBridge | 174:b96e65c34a4d | 3067 | #define SYS_PA_L_MFP_PA7_MFP_Pos (28) /*!< SYS_T::PA_L_MFP: PA7_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3068 | #define SYS_PA_L_MFP_PA7_MFP_Msk (0x7ul << SYS_PA_L_MFP_PA7_MFP_Pos) /*!< SYS_T::PA_L_MFP: PA7_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3069 | |
AnnaBridge | 174:b96e65c34a4d | 3070 | #define SYS_PA_H_MFP_PA8_MFP_Pos (0) /*!< SYS_T::PA_H_MFP: PA8_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3071 | #define SYS_PA_H_MFP_PA8_MFP_Msk (0x7ul << SYS_PA_H_MFP_PA8_MFP_Pos) /*!< SYS_T::PA_H_MFP: PA8_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3072 | |
AnnaBridge | 174:b96e65c34a4d | 3073 | #define SYS_PA_H_MFP_PA9_MFP_Pos (4) /*!< SYS_T::PA_H_MFP: PA9_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3074 | #define SYS_PA_H_MFP_PA9_MFP_Msk (0x7ul << SYS_PA_H_MFP_PA9_MFP_Pos) /*!< SYS_T::PA_H_MFP: PA9_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3075 | |
AnnaBridge | 174:b96e65c34a4d | 3076 | #define SYS_PA_H_MFP_PA10_MFP_Pos (8) /*!< SYS_T::PA_H_MFP: PA10_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3077 | #define SYS_PA_H_MFP_PA10_MFP_Msk (0x7ul << SYS_PA_H_MFP_PA10_MFP_Pos) /*!< SYS_T::PA_H_MFP: PA10_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3078 | |
AnnaBridge | 174:b96e65c34a4d | 3079 | #define SYS_PA_H_MFP_PA11_MFP_Pos (12) /*!< SYS_T::PA_H_MFP: PA11_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3080 | #define SYS_PA_H_MFP_PA11_MFP_Msk (0x7ul << SYS_PA_H_MFP_PA11_MFP_Pos) /*!< SYS_T::PA_H_MFP: PA11_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3081 | |
AnnaBridge | 174:b96e65c34a4d | 3082 | #define SYS_PA_H_MFP_PA12_MFP_Pos (16) /*!< SYS_T::PA_H_MFP: PA12_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3083 | #define SYS_PA_H_MFP_PA12_MFP_Msk (0x7ul << SYS_PA_H_MFP_PA12_MFP_Pos) /*!< SYS_T::PA_H_MFP: PA12_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3084 | |
AnnaBridge | 174:b96e65c34a4d | 3085 | #define SYS_PA_H_MFP_PA13_MFP_Pos (20) /*!< SYS_T::PA_H_MFP: PA13_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3086 | #define SYS_PA_H_MFP_PA13_MFP_Msk (0x7ul << SYS_PA_H_MFP_PA13_MFP_Pos) /*!< SYS_T::PA_H_MFP: PA13_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3087 | |
AnnaBridge | 174:b96e65c34a4d | 3088 | #define SYS_PA_H_MFP_PA14_MFP_Pos (24) /*!< SYS_T::PA_H_MFP: PA14_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3089 | #define SYS_PA_H_MFP_PA14_MFP_Msk (0x7ul << SYS_PA_H_MFP_PA14_MFP_Pos) /*!< SYS_T::PA_H_MFP: PA14_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3090 | |
AnnaBridge | 174:b96e65c34a4d | 3091 | #define SYS_PA_H_MFP_PA15_MFP_Pos (28) /*!< SYS_T::PA_H_MFP: PA15_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3092 | #define SYS_PA_H_MFP_PA15_MFP_Msk (0x7ul << SYS_PA_H_MFP_PA15_MFP_Pos) /*!< SYS_T::PA_H_MFP: PA15_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3093 | |
AnnaBridge | 174:b96e65c34a4d | 3094 | #define SYS_PB_L_MFP_PB0_MFP_Pos (0) /*!< SYS_T::PB_L_MFP: PB0_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3095 | #define SYS_PB_L_MFP_PB0_MFP_Msk (0x7ul << SYS_PB_L_MFP_PB0_MFP_Pos) /*!< SYS_T::PB_L_MFP: PB0_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3096 | |
AnnaBridge | 174:b96e65c34a4d | 3097 | #define SYS_PB_L_MFP_PB1_MFP_Pos (4) /*!< SYS_T::PB_L_MFP: PB1_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3098 | #define SYS_PB_L_MFP_PB1_MFP_Msk (0x7ul << SYS_PB_L_MFP_PB1_MFP_Pos) /*!< SYS_T::PB_L_MFP: PB1_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3099 | |
AnnaBridge | 174:b96e65c34a4d | 3100 | #define SYS_PB_L_MFP_PB2_MFP_Pos (8) /*!< SYS_T::PB_L_MFP: PB2_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3101 | #define SYS_PB_L_MFP_PB2_MFP_Msk (0x7ul << SYS_PB_L_MFP_PB2_MFP_Pos) /*!< SYS_T::PB_L_MFP: PB2_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3102 | |
AnnaBridge | 174:b96e65c34a4d | 3103 | #define SYS_PB_L_MFP_PB3_MFP_Pos (12) /*!< SYS_T::PB_L_MFP: PB3_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3104 | #define SYS_PB_L_MFP_PB3_MFP_Msk (0x7ul << SYS_PB_L_MFP_PB3_MFP_Pos) /*!< SYS_T::PB_L_MFP: PB3_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3105 | |
AnnaBridge | 174:b96e65c34a4d | 3106 | #define SYS_PB_L_MFP_PB4_MFP_Pos (16) /*!< SYS_T::PB_L_MFP: PB4_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3107 | #define SYS_PB_L_MFP_PB4_MFP_Msk (0x7ul << SYS_PB_L_MFP_PB4_MFP_Pos) /*!< SYS_T::PB_L_MFP: PB4_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3108 | |
AnnaBridge | 174:b96e65c34a4d | 3109 | #define SYS_PB_L_MFP_PB5_MFP_Pos (20) /*!< SYS_T::PB_L_MFP: PB5_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3110 | #define SYS_PB_L_MFP_PB5_MFP_Msk (0x7ul << SYS_PB_L_MFP_PB5_MFP_Pos) /*!< SYS_T::PB_L_MFP: PB5_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3111 | |
AnnaBridge | 174:b96e65c34a4d | 3112 | #define SYS_PB_L_MFP_PB6_MFP_Pos (24) /*!< SYS_T::PB_L_MFP: PB6_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3113 | #define SYS_PB_L_MFP_PB6_MFP_Msk (0x7ul << SYS_PB_L_MFP_PB6_MFP_Pos) /*!< SYS_T::PB_L_MFP: PB6_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3114 | |
AnnaBridge | 174:b96e65c34a4d | 3115 | #define SYS_PB_L_MFP_PB7_MFP_Pos (28) /*!< SYS_T::PB_L_MFP: PB7_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3116 | #define SYS_PB_L_MFP_PB7_MFP_Msk (0x7ul << SYS_PB_L_MFP_PB7_MFP_Pos) /*!< SYS_T::PB_L_MFP: PB7_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3117 | |
AnnaBridge | 174:b96e65c34a4d | 3118 | #define SYS_PB_H_MFP_PB8_MFP_Pos (0) /*!< SYS_T::PB_H_MFP: PB8_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3119 | #define SYS_PB_H_MFP_PB8_MFP_Msk (0x7ul << SYS_PB_H_MFP_PB8_MFP_Pos) /*!< SYS_T::PB_H_MFP: PB8_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3120 | |
AnnaBridge | 174:b96e65c34a4d | 3121 | #define SYS_PB_H_MFP_PB9_MFP_Pos (4) /*!< SYS_T::PB_H_MFP: PB9_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3122 | #define SYS_PB_H_MFP_PB9_MFP_Msk (0x7ul << SYS_PB_H_MFP_PB9_MFP_Pos) /*!< SYS_T::PB_H_MFP: PB9_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3123 | |
AnnaBridge | 174:b96e65c34a4d | 3124 | #define SYS_PB_H_MFP_PB10_MFP_Pos (8) /*!< SYS_T::PB_H_MFP: PB10_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3125 | #define SYS_PB_H_MFP_PB10_MFP_Msk (0x7ul << SYS_PB_H_MFP_PB10_MFP_Pos) /*!< SYS_T::PB_H_MFP: PB10_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3126 | |
AnnaBridge | 174:b96e65c34a4d | 3127 | #define SYS_PB_H_MFP_PB11_MFP_Pos (12) /*!< SYS_T::PB_H_MFP: PB11_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3128 | #define SYS_PB_H_MFP_PB11_MFP_Msk (0x7ul << SYS_PB_H_MFP_PB11_MFP_Pos) /*!< SYS_T::PB_H_MFP: PB11_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3129 | |
AnnaBridge | 174:b96e65c34a4d | 3130 | #define SYS_PB_H_MFP_PB12_MFP_Pos (16) /*!< SYS_T::PB_H_MFP: PB12_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3131 | #define SYS_PB_H_MFP_PB12_MFP_Msk (0x7ul << SYS_PB_H_MFP_PB12_MFP_Pos) /*!< SYS_T::PB_H_MFP: PB12_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3132 | |
AnnaBridge | 174:b96e65c34a4d | 3133 | #define SYS_PB_H_MFP_PB13_MFP_Pos (20) /*!< SYS_T::PB_H_MFP: PB13_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3134 | #define SYS_PB_H_MFP_PB13_MFP_Msk (0x7ul << SYS_PB_H_MFP_PB13_MFP_Pos) /*!< SYS_T::PB_H_MFP: PB13_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3135 | |
AnnaBridge | 174:b96e65c34a4d | 3136 | #define SYS_PB_H_MFP_PB14_MFP_Pos (24) /*!< SYS_T::PB_H_MFP: PB14_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3137 | #define SYS_PB_H_MFP_PB14_MFP_Msk (0x7ul << SYS_PB_H_MFP_PB14_MFP_Pos) /*!< SYS_T::PB_H_MFP: PB14_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3138 | |
AnnaBridge | 174:b96e65c34a4d | 3139 | #define SYS_PB_H_MFP_PB15_MFP_Pos (28) /*!< SYS_T::PB_H_MFP: PB15_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3140 | #define SYS_PB_H_MFP_PB15_MFP_Msk (0x7ul << SYS_PB_H_MFP_PB15_MFP_Pos) /*!< SYS_T::PB_H_MFP: PB15_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3141 | |
AnnaBridge | 174:b96e65c34a4d | 3142 | #define SYS_PC_L_MFP_PC0_MFP_Pos (0) /*!< SYS_T::PC_L_MFP: PC0_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3143 | #define SYS_PC_L_MFP_PC0_MFP_Msk (0x7ul << SYS_PC_L_MFP_PC0_MFP_Pos) /*!< SYS_T::PC_L_MFP: PC0_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3144 | |
AnnaBridge | 174:b96e65c34a4d | 3145 | #define SYS_PC_L_MFP_PC1_MFP_Pos (4) /*!< SYS_T::PC_L_MFP: PC1_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3146 | #define SYS_PC_L_MFP_PC1_MFP_Msk (0x7ul << SYS_PC_L_MFP_PC1_MFP_Pos) /*!< SYS_T::PC_L_MFP: PC1_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3147 | |
AnnaBridge | 174:b96e65c34a4d | 3148 | #define SYS_PC_L_MFP_PC2_MFP_Pos (8) /*!< SYS_T::PC_L_MFP: PC2_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3149 | #define SYS_PC_L_MFP_PC2_MFP_Msk (0x7ul << SYS_PC_L_MFP_PC2_MFP_Pos) /*!< SYS_T::PC_L_MFP: PC2_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3150 | |
AnnaBridge | 174:b96e65c34a4d | 3151 | #define SYS_PC_L_MFP_PC3_MFP_Pos (12) /*!< SYS_T::PC_L_MFP: PC3_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3152 | #define SYS_PC_L_MFP_PC3_MFP_Msk (0x7ul << SYS_PC_L_MFP_PC3_MFP_Pos) /*!< SYS_T::PC_L_MFP: PC3_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3153 | |
AnnaBridge | 174:b96e65c34a4d | 3154 | #define SYS_PC_L_MFP_PC4_MFP_Pos (16) /*!< SYS_T::PC_L_MFP: PC4_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3155 | #define SYS_PC_L_MFP_PC4_MFP_Msk (0x7ul << SYS_PC_L_MFP_PC4_MFP_Pos) /*!< SYS_T::PC_L_MFP: PC4_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3156 | |
AnnaBridge | 174:b96e65c34a4d | 3157 | #define SYS_PC_L_MFP_PC5_MFP_Pos (20) /*!< SYS_T::PC_L_MFP: PC5_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3158 | #define SYS_PC_L_MFP_PC5_MFP_Msk (0x7ul << SYS_PC_L_MFP_PC5_MFP_Pos) /*!< SYS_T::PC_L_MFP: PC5_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3159 | |
AnnaBridge | 174:b96e65c34a4d | 3160 | #define SYS_PC_L_MFP_PC6_MFP_Pos (24) /*!< SYS_T::PC_L_MFP: PC6_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3161 | #define SYS_PC_L_MFP_PC6_MFP_Msk (0x7ul << SYS_PC_L_MFP_PC6_MFP_Pos) /*!< SYS_T::PC_L_MFP: PC6_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3162 | |
AnnaBridge | 174:b96e65c34a4d | 3163 | #define SYS_PC_L_MFP_PC7_MFP_Pos (28) /*!< SYS_T::PC_L_MFP: PC7_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3164 | #define SYS_PC_L_MFP_PC7_MFP_Msk (0x7ul << SYS_PC_L_MFP_PC7_MFP_Pos) /*!< SYS_T::PC_L_MFP: PC7_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3165 | |
AnnaBridge | 174:b96e65c34a4d | 3166 | #define SYS_PC_H_MFP_PC8_MFP_Pos (0) /*!< SYS_T::PC_H_MFP: PC8_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3167 | #define SYS_PC_H_MFP_PC8_MFP_Msk (0x7ul << SYS_PC_H_MFP_PC8_MFP_Pos) /*!< SYS_T::PC_H_MFP: PC8_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3168 | |
AnnaBridge | 174:b96e65c34a4d | 3169 | #define SYS_PC_H_MFP_PC9_MFP_Pos (4) /*!< SYS_T::PC_H_MFP: PC9_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3170 | #define SYS_PC_H_MFP_PC9_MFP_Msk (0x7ul << SYS_PC_H_MFP_PC9_MFP_Pos) /*!< SYS_T::PC_H_MFP: PC9_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3171 | |
AnnaBridge | 174:b96e65c34a4d | 3172 | #define SYS_PC_H_MFP_PC10_MFP_Pos (8) /*!< SYS_T::PC_H_MFP: PC10_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3173 | #define SYS_PC_H_MFP_PC10_MFP_Msk (0x7ul << SYS_PC_H_MFP_PC10_MFP_Pos) /*!< SYS_T::PC_H_MFP: PC10_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3174 | |
AnnaBridge | 174:b96e65c34a4d | 3175 | #define SYS_PC_H_MFP_PC11_MFP_Pos (12) /*!< SYS_T::PC_H_MFP: PC11_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3176 | #define SYS_PC_H_MFP_PC11_MFP_Msk (0x7ul << SYS_PC_H_MFP_PC11_MFP_Pos) /*!< SYS_T::PC_H_MFP: PC11_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3177 | |
AnnaBridge | 174:b96e65c34a4d | 3178 | #define SYS_PC_H_MFP_PC12_MFP_Pos (16) /*!< SYS_T::PC_H_MFP: PC12_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3179 | #define SYS_PC_H_MFP_PC12_MFP_Msk (0x7ul << SYS_PC_H_MFP_PC12_MFP_Pos) /*!< SYS_T::PC_H_MFP: PC12_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3180 | |
AnnaBridge | 174:b96e65c34a4d | 3181 | #define SYS_PC_H_MFP_PC13_MFP_Pos (20) /*!< SYS_T::PC_H_MFP: PC13_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3182 | #define SYS_PC_H_MFP_PC13_MFP_Msk (0x7ul << SYS_PC_H_MFP_PC13_MFP_Pos) /*!< SYS_T::PC_H_MFP: PC13_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3183 | |
AnnaBridge | 174:b96e65c34a4d | 3184 | #define SYS_PC_H_MFP_PC14_MFP_Pos (24) /*!< SYS_T::PC_H_MFP: PC14_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3185 | #define SYS_PC_H_MFP_PC14_MFP_Msk (0x7ul << SYS_PC_H_MFP_PC14_MFP_Pos) /*!< SYS_T::PC_H_MFP: PC14_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3186 | |
AnnaBridge | 174:b96e65c34a4d | 3187 | #define SYS_PC_H_MFP_PC15_MFP_Pos (28) /*!< SYS_T::PC_H_MFP: PC15_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3188 | #define SYS_PC_H_MFP_PC15_MFP_Msk (0x7ul << SYS_PC_H_MFP_PC15_MFP_Pos) /*!< SYS_T::PC_H_MFP: PC15_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3189 | |
AnnaBridge | 174:b96e65c34a4d | 3190 | #define SYS_PD_L_MFP_PD0_MFP_Pos (0) /*!< SYS_T::PD_L_MFP: PD0_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3191 | #define SYS_PD_L_MFP_PD0_MFP_Msk (0x7ul << SYS_PD_L_MFP_PD0_MFP_Pos) /*!< SYS_T::PD_L_MFP: PD0_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3192 | |
AnnaBridge | 174:b96e65c34a4d | 3193 | #define SYS_PD_L_MFP_PD1_MFP_Pos (4) /*!< SYS_T::PD_L_MFP: PD1_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3194 | #define SYS_PD_L_MFP_PD1_MFP_Msk (0x7ul << SYS_PD_L_MFP_PD1_MFP_Pos) /*!< SYS_T::PD_L_MFP: PD1_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3195 | |
AnnaBridge | 174:b96e65c34a4d | 3196 | #define SYS_PD_L_MFP_PD2_MFP_Pos (8) /*!< SYS_T::PD_L_MFP: PD2_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3197 | #define SYS_PD_L_MFP_PD2_MFP_Msk (0x7ul << SYS_PD_L_MFP_PD2_MFP_Pos) /*!< SYS_T::PD_L_MFP: PD2_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3198 | |
AnnaBridge | 174:b96e65c34a4d | 3199 | #define SYS_PD_L_MFP_PD3_MFP_Pos (12) /*!< SYS_T::PD_L_MFP: PD3_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3200 | #define SYS_PD_L_MFP_PD3_MFP_Msk (0x7ul << SYS_PD_L_MFP_PD3_MFP_Pos) /*!< SYS_T::PD_L_MFP: PD3_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3201 | |
AnnaBridge | 174:b96e65c34a4d | 3202 | #define SYS_PD_L_MFP_PD4_MFP_Pos (16) /*!< SYS_T::PD_L_MFP: PD4_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3203 | #define SYS_PD_L_MFP_PD4_MFP_Msk (0x7ul << SYS_PD_L_MFP_PD4_MFP_Pos) /*!< SYS_T::PD_L_MFP: PD4_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3204 | |
AnnaBridge | 174:b96e65c34a4d | 3205 | #define SYS_PD_L_MFP_PD5_MFP_Pos (20) /*!< SYS_T::PD_L_MFP: PD5_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3206 | #define SYS_PD_L_MFP_PD5_MFP_Msk (0x7ul << SYS_PD_L_MFP_PD5_MFP_Pos) /*!< SYS_T::PD_L_MFP: PD5_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3207 | |
AnnaBridge | 174:b96e65c34a4d | 3208 | #define SYS_PD_L_MFP_PD6_MFP_Pos (24) /*!< SYS_T::PD_L_MFP: PD6_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3209 | #define SYS_PD_L_MFP_PD6_MFP_Msk (0x7ul << SYS_PD_L_MFP_PD6_MFP_Pos) /*!< SYS_T::PD_L_MFP: PD6_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3210 | |
AnnaBridge | 174:b96e65c34a4d | 3211 | #define SYS_PD_L_MFP_PD7_MFP_Pos (28) /*!< SYS_T::PD_L_MFP: PD7_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3212 | #define SYS_PD_L_MFP_PD7_MFP_Msk (0x7ul << SYS_PD_L_MFP_PD7_MFP_Pos) /*!< SYS_T::PD_L_MFP: PD7_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3213 | |
AnnaBridge | 174:b96e65c34a4d | 3214 | #define SYS_PD_H_MFP_PD8_MFP_Pos (0) /*!< SYS_T::PD_H_MFP: PD8_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3215 | #define SYS_PD_H_MFP_PD8_MFP_Msk (0x7ul << SYS_PD_H_MFP_PD8_MFP_Pos) /*!< SYS_T::PD_H_MFP: PD8_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3216 | |
AnnaBridge | 174:b96e65c34a4d | 3217 | #define SYS_PD_H_MFP_PD9_MFP_Pos (4) /*!< SYS_T::PD_H_MFP: PD9_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3218 | #define SYS_PD_H_MFP_PD9_MFP_Msk (0x7ul << SYS_PD_H_MFP_PD9_MFP_Pos) /*!< SYS_T::PD_H_MFP: PD9_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3219 | |
AnnaBridge | 174:b96e65c34a4d | 3220 | #define SYS_PD_H_MFP_PD10_MFP_Pos (8) /*!< SYS_T::PD_H_MFP: PD10_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3221 | #define SYS_PD_H_MFP_PD10_MFP_Msk (0x7ul << SYS_PD_H_MFP_PD10_MFP_Pos) /*!< SYS_T::PD_H_MFP: PD10_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3222 | |
AnnaBridge | 174:b96e65c34a4d | 3223 | #define SYS_PD_H_MFP_PD11_MFP_Pos (12) /*!< SYS_T::PD_H_MFP: PD11_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3224 | #define SYS_PD_H_MFP_PD11_MFP_Msk (0x7ul << SYS_PD_H_MFP_PD11_MFP_Pos) /*!< SYS_T::PD_H_MFP: PD11_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3225 | |
AnnaBridge | 174:b96e65c34a4d | 3226 | #define SYS_PD_H_MFP_PD12_MFP_Pos (16) /*!< SYS_T::PD_H_MFP: PD12_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3227 | #define SYS_PD_H_MFP_PD12_MFP_Msk (0x7ul << SYS_PD_H_MFP_PD12_MFP_Pos) /*!< SYS_T::PD_H_MFP: PD12_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3228 | |
AnnaBridge | 174:b96e65c34a4d | 3229 | #define SYS_PD_H_MFP_PD13_MFP_Pos (20) /*!< SYS_T::PD_H_MFP: PD13_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3230 | #define SYS_PD_H_MFP_PD13_MFP_Msk (0x7ul << SYS_PD_H_MFP_PD13_MFP_Pos) /*!< SYS_T::PD_H_MFP: PD13_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3231 | |
AnnaBridge | 174:b96e65c34a4d | 3232 | #define SYS_PD_H_MFP_PD14_MFP_Pos (24) /*!< SYS_T::PD_H_MFP: PD14_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3233 | #define SYS_PD_H_MFP_PD14_MFP_Msk (0x7ul << SYS_PD_H_MFP_PD14_MFP_Pos) /*!< SYS_T::PD_H_MFP: PD14_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3234 | |
AnnaBridge | 174:b96e65c34a4d | 3235 | #define SYS_PD_H_MFP_PD15_MFP_Pos (28) /*!< SYS_T::PD_H_MFP: PD15_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3236 | #define SYS_PD_H_MFP_PD15_MFP_Msk (0x7ul << SYS_PD_H_MFP_PD15_MFP_Pos) /*!< SYS_T::PD_H_MFP: PD15_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3237 | |
AnnaBridge | 174:b96e65c34a4d | 3238 | #define SYS_PE_L_MFP_PE0_MFP_Pos (0) /*!< SYS_T::PE_L_MFP: PE0_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3239 | #define SYS_PE_L_MFP_PE0_MFP_Msk (0x7ul << SYS_PE_L_MFP_PE0_MFP_Pos) /*!< SYS_T::PE_L_MFP: PE0_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3240 | |
AnnaBridge | 174:b96e65c34a4d | 3241 | #define SYS_PE_L_MFP_PE1_MFP_Pos (4) /*!< SYS_T::PE_L_MFP: PE1_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3242 | #define SYS_PE_L_MFP_PE1_MFP_Msk (0x7ul << SYS_PE_L_MFP_PE1_MFP_Pos) /*!< SYS_T::PE_L_MFP: PE1_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3243 | |
AnnaBridge | 174:b96e65c34a4d | 3244 | #define SYS_PE_L_MFP_PE2_MFP_Pos (8) /*!< SYS_T::PE_L_MFP: PE2_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3245 | #define SYS_PE_L_MFP_PE2_MFP_Msk (0x7ul << SYS_PE_L_MFP_PE2_MFP_Pos) /*!< SYS_T::PE_L_MFP: PE2_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3246 | |
AnnaBridge | 174:b96e65c34a4d | 3247 | #define SYS_PE_L_MFP_PE3_MFP_Pos (12) /*!< SYS_T::PE_L_MFP: PE3_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3248 | #define SYS_PE_L_MFP_PE3_MFP_Msk (0x7ul << SYS_PE_L_MFP_PE3_MFP_Pos) /*!< SYS_T::PE_L_MFP: PE3_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3249 | |
AnnaBridge | 174:b96e65c34a4d | 3250 | #define SYS_PE_L_MFP_PE4_MFP_Pos (16) /*!< SYS_T::PE_L_MFP: PE4_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3251 | #define SYS_PE_L_MFP_PE4_MFP_Msk (0x7ul << SYS_PE_L_MFP_PE4_MFP_Pos) /*!< SYS_T::PE_L_MFP: PE4_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3252 | |
AnnaBridge | 174:b96e65c34a4d | 3253 | #define SYS_PE_L_MFP_PE5_MFP_Pos (20) /*!< SYS_T::PE_L_MFP: PE5_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3254 | #define SYS_PE_L_MFP_PE5_MFP_Msk (0x7ul << SYS_PE_L_MFP_PE5_MFP_Pos) /*!< SYS_T::PE_L_MFP: PE5_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3255 | |
AnnaBridge | 174:b96e65c34a4d | 3256 | #define SYS_PE_L_MFP_PE6_MFP_Pos (24) /*!< SYS_T::PE_L_MFP: PE6_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3257 | #define SYS_PE_L_MFP_PE6_MFP_Msk (0x7ul << SYS_PE_L_MFP_PE6_MFP_Pos) /*!< SYS_T::PE_L_MFP: PE6_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3258 | |
AnnaBridge | 174:b96e65c34a4d | 3259 | #define SYS_PE_L_MFP_PE7_MFP_Pos (28) /*!< SYS_T::PE_L_MFP: PE7_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3260 | #define SYS_PE_L_MFP_PE7_MFP_Msk (0x7ul << SYS_PE_L_MFP_PE7_MFP_Pos) /*!< SYS_T::PE_L_MFP: PE7_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3261 | |
AnnaBridge | 174:b96e65c34a4d | 3262 | #define SYS_PE_H_MFP_PE8_MFP_Pos (0) /*!< SYS_T::PE_H_MFP: PE8_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3263 | #define SYS_PE_H_MFP_PE8_MFP_Msk (0x7ul << SYS_PE_H_MFP_PE8_MFP_Pos) /*!< SYS_T::PE_H_MFP: PE8_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3264 | |
AnnaBridge | 174:b96e65c34a4d | 3265 | #define SYS_PE_H_MFP_PE9_MFP_Pos (4) /*!< SYS_T::PE_H_MFP: PE9_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3266 | #define SYS_PE_H_MFP_PE9_MFP_Msk (0x7ul << SYS_PE_H_MFP_PE9_MFP_Pos) /*!< SYS_T::PE_H_MFP: PE9_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3267 | |
AnnaBridge | 174:b96e65c34a4d | 3268 | #define SYS_PE_H_MFP_PE10_MFP_Pos (8) /*!< SYS_T::PE_H_MFP: PE10_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3269 | #define SYS_PE_H_MFP_PE10_MFP_Msk (0x7ul << SYS_PE_H_MFP_PE10_MFP_Pos) /*!< SYS_T::PE_H_MFP: PE10_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3270 | |
AnnaBridge | 174:b96e65c34a4d | 3271 | #define SYS_PE_H_MFP_PE11_MFP_Pos (12) /*!< SYS_T::PE_H_MFP: PE11_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3272 | #define SYS_PE_H_MFP_PE11_MFP_Msk (0x7ul << SYS_PE_H_MFP_PE11_MFP_Pos) /*!< SYS_T::PE_H_MFP: PE11_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3273 | |
AnnaBridge | 174:b96e65c34a4d | 3274 | #define SYS_PE_H_MFP_PE12_MFP_Pos (16) /*!< SYS_T::PE_H_MFP: PE12_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3275 | #define SYS_PE_H_MFP_PE12_MFP_Msk (0x7ul << SYS_PE_H_MFP_PE12_MFP_Pos) /*!< SYS_T::PE_H_MFP: PE12_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3276 | |
AnnaBridge | 174:b96e65c34a4d | 3277 | #define SYS_PE_H_MFP_PE13_MFP_Pos (20) /*!< SYS_T::PE_H_MFP: PE13_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3278 | #define SYS_PE_H_MFP_PE13_MFP_Msk (0x7ul << SYS_PE_H_MFP_PE13_MFP_Pos) /*!< SYS_T::PE_H_MFP: PE13_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3279 | |
AnnaBridge | 174:b96e65c34a4d | 3280 | #define SYS_PE_H_MFP_PE14_MFP_Pos (24) /*!< SYS_T::PE_H_MFP: PE14_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3281 | #define SYS_PE_H_MFP_PE14_MFP_Msk (0x7ul << SYS_PE_H_MFP_PE14_MFP_Pos) /*!< SYS_T::PE_H_MFP: PE14_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3282 | |
AnnaBridge | 174:b96e65c34a4d | 3283 | #define SYS_PE_H_MFP_PE15_MFP_Pos (28) /*!< SYS_T::PE_H_MFP: PE15_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3284 | #define SYS_PE_H_MFP_PE15_MFP_Msk (0x7ul << SYS_PE_H_MFP_PE15_MFP_Pos) /*!< SYS_T::PE_H_MFP: PE15_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3285 | |
AnnaBridge | 174:b96e65c34a4d | 3286 | #define SYS_PF_L_MFP_PF0_MFP_Pos (0) /*!< SYS_T::PF_L_MFP: PF0_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3287 | #define SYS_PF_L_MFP_PF0_MFP_Msk (0x7ul << SYS_PF_L_MFP_PF0_MFP_Pos) /*!< SYS_T::PF_L_MFP: PF0_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3288 | |
AnnaBridge | 174:b96e65c34a4d | 3289 | #define SYS_PF_L_MFP_PF1_MFP_Pos (4) /*!< SYS_T::PF_L_MFP: PF1_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3290 | #define SYS_PF_L_MFP_PF1_MFP_Msk (0x7ul << SYS_PF_L_MFP_PF1_MFP_Pos) /*!< SYS_T::PF_L_MFP: PF1_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3291 | |
AnnaBridge | 174:b96e65c34a4d | 3292 | #define SYS_PF_L_MFP_PF2_MFP_Pos (8) /*!< SYS_T::PF_L_MFP: PF2_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3293 | #define SYS_PF_L_MFP_PF2_MFP_Msk (0x7ul << SYS_PF_L_MFP_PF2_MFP_Pos) /*!< SYS_T::PF_L_MFP: PF2_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3294 | |
AnnaBridge | 174:b96e65c34a4d | 3295 | #define SYS_PF_L_MFP_PF3_MFP_Pos (12) /*!< SYS_T::PF_L_MFP: PF3_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3296 | #define SYS_PF_L_MFP_PF3_MFP_Msk (0x7ul << SYS_PF_L_MFP_PF3_MFP_Pos) /*!< SYS_T::PF_L_MFP: PF3_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3297 | |
AnnaBridge | 174:b96e65c34a4d | 3298 | #define SYS_PF_L_MFP_PF4_MFP_Pos (16) /*!< SYS_T::PF_L_MFP: PF4_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3299 | #define SYS_PF_L_MFP_PF4_MFP_Msk (0x7ul << SYS_PF_L_MFP_PF4_MFP_Pos) /*!< SYS_T::PF_L_MFP: PF4_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3300 | |
AnnaBridge | 174:b96e65c34a4d | 3301 | #define SYS_PF_L_MFP_PF5_MFP_Pos (20) /*!< SYS_T::PF_L_MFP: PF5_MFP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3302 | #define SYS_PF_L_MFP_PF5_MFP_Msk (0x7ul << SYS_PF_L_MFP_PF5_MFP_Pos) /*!< SYS_T::PF_L_MFP: PF5_MFP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3303 | |
AnnaBridge | 174:b96e65c34a4d | 3304 | #define SYS_PORCTL_POR_DIS_CODE_Pos (0) /*!< SYS_T::PORCTL: POR_DIS_CODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 3305 | #define SYS_PORCTL_POR_DIS_CODE_Msk (0xfffful << SYS_PORCTL_POR_DIS_CODE_Pos) /*!< SYS_T::PORCTL: POR_DIS_CODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3306 | |
AnnaBridge | 174:b96e65c34a4d | 3307 | #define SYS_BODCTL_BOD17_EN_Pos (0) /*!< SYS_T::BODCTL: BOD17_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3308 | #define SYS_BODCTL_BOD17_EN_Msk (0x1ul << SYS_BODCTL_BOD17_EN_Pos) /*!< SYS_T::BODCTL: BOD17_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3309 | |
AnnaBridge | 174:b96e65c34a4d | 3310 | #define SYS_BODCTL_BOD20_EN_Pos (1) /*!< SYS_T::BODCTL: BOD20_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3311 | #define SYS_BODCTL_BOD20_EN_Msk (0x1ul << SYS_BODCTL_BOD20_EN_Pos) /*!< SYS_T::BODCTL: BOD20_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3312 | |
AnnaBridge | 174:b96e65c34a4d | 3313 | #define SYS_BODCTL_BOD25_EN_Pos (2) /*!< SYS_T::BODCTL: BOD25_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3314 | #define SYS_BODCTL_BOD25_EN_Msk (0x1ul << SYS_BODCTL_BOD25_EN_Pos) /*!< SYS_T::BODCTL: BOD25_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3315 | |
AnnaBridge | 174:b96e65c34a4d | 3316 | #define SYS_BODCTL_BOD17_RST_EN_Pos (4) /*!< SYS_T::BODCTL: BOD17_RST_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3317 | #define SYS_BODCTL_BOD17_RST_EN_Msk (0x1ul << SYS_BODCTL_BOD17_RST_EN_Pos) /*!< SYS_T::BODCTL: BOD17_RST_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3318 | |
AnnaBridge | 174:b96e65c34a4d | 3319 | #define SYS_BODCTL_BOD20_RST_EN_Pos (5) /*!< SYS_T::BODCTL: BOD20_RST_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3320 | #define SYS_BODCTL_BOD20_RST_EN_Msk (0x1ul << SYS_BODCTL_BOD20_RST_EN_Pos) /*!< SYS_T::BODCTL: BOD20_RST_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3321 | |
AnnaBridge | 174:b96e65c34a4d | 3322 | #define SYS_BODCTL_BOD25_RST_EN_Pos (6) /*!< SYS_T::BODCTL: BOD25_RST_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3323 | #define SYS_BODCTL_BOD25_RST_EN_Msk (0x1ul << SYS_BODCTL_BOD25_RST_EN_Pos) /*!< SYS_T::BODCTL: BOD25_RST_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3324 | |
AnnaBridge | 174:b96e65c34a4d | 3325 | #define SYS_BODCTL_BOD17_INT_EN_Pos (8) /*!< SYS_T::BODCTL: BOD17_INT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3326 | #define SYS_BODCTL_BOD17_INT_EN_Msk (0x1ul << SYS_BODCTL_BOD17_INT_EN_Pos) /*!< SYS_T::BODCTL: BOD17_INT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3327 | |
AnnaBridge | 174:b96e65c34a4d | 3328 | #define SYS_BODCTL_BOD20_INT_EN_Pos (9) /*!< SYS_T::BODCTL: BOD20_INT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3329 | #define SYS_BODCTL_BOD20_INT_EN_Msk (0x1ul << SYS_BODCTL_BOD20_INT_EN_Pos) /*!< SYS_T::BODCTL: BOD20_INT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3330 | |
AnnaBridge | 174:b96e65c34a4d | 3331 | #define SYS_BODCTL_BOD25_INT_EN_Pos (10) /*!< SYS_T::BODCTL: BOD25_INT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3332 | #define SYS_BODCTL_BOD25_INT_EN_Msk (0x1ul << SYS_BODCTL_BOD25_INT_EN_Pos) /*!< SYS_T::BODCTL: BOD25_INT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3333 | |
AnnaBridge | 174:b96e65c34a4d | 3334 | #define SYS_BODSTS_BOD_INT_Pos (0) /*!< SYS_T::BODSTS: BOD_INT Position */ |
AnnaBridge | 174:b96e65c34a4d | 3335 | #define SYS_BODSTS_BOD_INT_Msk (0x1ul << SYS_BODSTS_BOD_INT_Pos) /*!< SYS_T::BODSTS: BOD_INT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3336 | |
AnnaBridge | 174:b96e65c34a4d | 3337 | #define SYS_BODSTS_BOD17_drop_Pos (1) /*!< SYS_T::BODSTS: BOD17_drop Position */ |
AnnaBridge | 174:b96e65c34a4d | 3338 | #define SYS_BODSTS_BOD17_drop_Msk (0x1ul << SYS_BODSTS_BOD17_drop_Pos) /*!< SYS_T::BODSTS: BOD17_drop Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3339 | |
AnnaBridge | 174:b96e65c34a4d | 3340 | #define SYS_BODSTS_BOD20_drop_Pos (2) /*!< SYS_T::BODSTS: BOD20_drop Position */ |
AnnaBridge | 174:b96e65c34a4d | 3341 | #define SYS_BODSTS_BOD20_drop_Msk (0x1ul << SYS_BODSTS_BOD20_drop_Pos) /*!< SYS_T::BODSTS: BOD20_drop Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3342 | |
AnnaBridge | 174:b96e65c34a4d | 3343 | #define SYS_BODSTS_BOD25_drop_Pos (3) /*!< SYS_T::BODSTS: BOD25_drop Position */ |
AnnaBridge | 174:b96e65c34a4d | 3344 | #define SYS_BODSTS_BOD25_drop_Msk (0x1ul << SYS_BODSTS_BOD25_drop_Pos) /*!< SYS_T::BODSTS: BOD25_drop Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3345 | |
AnnaBridge | 174:b96e65c34a4d | 3346 | #define SYS_BODSTS_BOD17_rise_Pos (4) /*!< SYS_T::BODSTS: BOD17_rise Position */ |
AnnaBridge | 174:b96e65c34a4d | 3347 | #define SYS_BODSTS_BOD17_rise_Msk (0x1ul << SYS_BODSTS_BOD17_rise_Pos) /*!< SYS_T::BODSTS: BOD17_rise Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3348 | |
AnnaBridge | 174:b96e65c34a4d | 3349 | #define SYS_BODSTS_BOD20_rise_Pos (5) /*!< SYS_T::BODSTS: BOD20_rise Position */ |
AnnaBridge | 174:b96e65c34a4d | 3350 | #define SYS_BODSTS_BOD20_rise_Msk (0x1ul << SYS_BODSTS_BOD20_rise_Pos) /*!< SYS_T::BODSTS: BOD20_rise Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3351 | |
AnnaBridge | 174:b96e65c34a4d | 3352 | #define SYS_BODSTS_BOD25_rise_Pos (6) /*!< SYS_T::BODSTS: BOD25_rise Position */ |
AnnaBridge | 174:b96e65c34a4d | 3353 | #define SYS_BODSTS_BOD25_rise_Msk (0x1ul << SYS_BODSTS_BOD25_rise_Pos) /*!< SYS_T::BODSTS: BOD25_rise Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3354 | |
AnnaBridge | 174:b96e65c34a4d | 3355 | #define SYS_VREFCTL_BGP_EN_Pos (0) /*!< SYS_T::VREFCTL: BGP_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3356 | #define SYS_VREFCTL_BGP_EN_Msk (0x1ul << SYS_VREFCTL_BGP_EN_Pos) /*!< SYS_T::VREFCTL: BGP_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3357 | |
AnnaBridge | 174:b96e65c34a4d | 3358 | #define SYS_VREFCTL_REG_EN_Pos (1) /*!< SYS_T::VREFCTL: REG_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3359 | #define SYS_VREFCTL_REG_EN_Msk (0x1ul << SYS_VREFCTL_REG_EN_Pos) /*!< SYS_T::VREFCTL: REG_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3360 | |
AnnaBridge | 174:b96e65c34a4d | 3361 | #define SYS_VREFCTL_SEL25_Pos (2) /*!< SYS_T::VREFCTL: SEL25 Position */ |
AnnaBridge | 174:b96e65c34a4d | 3362 | #define SYS_VREFCTL_SEL25_Msk (0x1ul << SYS_VREFCTL_SEL25_Pos) /*!< SYS_T::VREFCTL: SEL25 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3363 | |
AnnaBridge | 174:b96e65c34a4d | 3364 | #define SYS_VREFCTL_EXT_MODE_Pos (3) /*!< SYS_T::VREFCTL: EXT_MODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 3365 | #define SYS_VREFCTL_EXT_MODE_Msk (0x1ul << SYS_VREFCTL_EXT_MODE_Pos) /*!< SYS_T::VREFCTL: EXT_MODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3366 | |
AnnaBridge | 174:b96e65c34a4d | 3367 | #define SYS_IRCTRIMCTL_TRIM_SEL_Pos (0) /*!< SYS_T::IRCTRIMCTL: TRIM_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 3368 | #define SYS_IRCTRIMCTL_TRIM_SEL_Msk (0x3ul << SYS_IRCTRIMCTL_TRIM_SEL_Pos) /*!< SYS_T::IRCTRIMCTL: TRIM_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3369 | |
AnnaBridge | 174:b96e65c34a4d | 3370 | #define SYS_IRCTRIMCTL_TRIM_LOOP_Pos (4) /*!< SYS_T::IRCTRIMCTL: TRIM_LOOP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3371 | #define SYS_IRCTRIMCTL_TRIM_LOOP_Msk (0x3ul << SYS_IRCTRIMCTL_TRIM_LOOP_Pos) /*!< SYS_T::IRCTRIMCTL: TRIM_LOOP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3372 | |
AnnaBridge | 174:b96e65c34a4d | 3373 | #define SYS_IRCTRIMCTL_TRIM_RETRY_CNT_Pos (6) /*!< SYS_T::IRCTRIMCTL: TRIM_RETRY_CNT Position*/ |
AnnaBridge | 174:b96e65c34a4d | 3374 | #define SYS_IRCTRIMCTL_TRIM_RETRY_CNT_Msk (0x3ul << SYS_IRCTRIMCTL_TRIM_RETRY_CNT_Pos) /*!< SYS_T::IRCTRIMCTL: TRIM_RETRY_CNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3375 | |
AnnaBridge | 174:b96e65c34a4d | 3376 | #define SYS_IRCTRIMCTL_ERR_STOP_Pos (8) /*!< SYS_T::IRCTRIMCTL: ERR_STOP Position */ |
AnnaBridge | 174:b96e65c34a4d | 3377 | #define SYS_IRCTRIMCTL_ERR_STOP_Msk (0x1ul << SYS_IRCTRIMCTL_ERR_STOP_Pos) /*!< SYS_T::IRCTRIMCTL: ERR_STOP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3378 | |
AnnaBridge | 174:b96e65c34a4d | 3379 | #define SYS_IRCTRIMIEN_TRIM_FAIL_IEN_Pos (1) /*!< SYS_T::IRCTRIMIEN: TRIM_FAIL_IEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3380 | #define SYS_IRCTRIMIEN_TRIM_FAIL_IEN_Msk (0x1ul << SYS_IRCTRIMIEN_TRIM_FAIL_IEN_Pos) /*!< SYS_T::IRCTRIMIEN: TRIM_FAIL_IEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3381 | |
AnnaBridge | 174:b96e65c34a4d | 3382 | #define SYS_IRCTRIMIEN_32K_ERR_IEN_Pos (2) /*!< SYS_T::IRCTRIMIEN: 32K_ERR_IEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 3383 | #define SYS_IRCTRIMIEN_32K_ERR_IEN_Msk (0x1ul << SYS_IRCTRIMIEN_32K_ERR_IEN_Pos) /*!< SYS_T::IRCTRIMIEN: 32K_ERR_IEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3384 | |
AnnaBridge | 174:b96e65c34a4d | 3385 | #define SYS_IRCTRIMINT_FREQ_LOCK_Pos (0) /*!< SYS_T::IRCTRIMINT: FREQ_LOCK Position */ |
AnnaBridge | 174:b96e65c34a4d | 3386 | #define SYS_IRCTRIMINT_FREQ_LOCK_Msk (0x1ul << SYS_IRCTRIMINT_FREQ_LOCK_Pos) /*!< SYS_T::IRCTRIMINT: FREQ_LOCK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3387 | |
AnnaBridge | 174:b96e65c34a4d | 3388 | #define SYS_IRCTRIMINT_TRIM_FAIL_INT_Pos (1) /*!< SYS_T::IRCTRIMINT: TRIM_FAIL_INT Position */ |
AnnaBridge | 174:b96e65c34a4d | 3389 | #define SYS_IRCTRIMINT_TRIM_FAIL_INT_Msk (0x1ul << SYS_IRCTRIMINT_TRIM_FAIL_INT_Pos) /*!< SYS_T::IRCTRIMINT: TRIM_FAIL_INT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3390 | |
AnnaBridge | 174:b96e65c34a4d | 3391 | #define SYS_IRCTRIMINT_32K_ERR_INT_Pos (2) /*!< SYS_T::IRCTRIMINT: 32K_ERR_INT Position */ |
AnnaBridge | 174:b96e65c34a4d | 3392 | #define SYS_IRCTRIMINT_32K_ERR_INT_Msk (0x1ul << SYS_IRCTRIMINT_32K_ERR_INT_Pos) /*!< SYS_T::IRCTRIMINT: 32K_ERR_INT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3393 | |
AnnaBridge | 174:b96e65c34a4d | 3394 | #define SYS_RegLockAddr_RegUnLock_Pos (0) /*!< SYS_T::RegLockAddr: RegUnLock Position */ |
AnnaBridge | 174:b96e65c34a4d | 3395 | #define SYS_RegLockAddr_RegUnLock_Msk (0x1ul << SYS_RegLockAddr_RegUnLock_Pos) /*!< SYS_T::RegLockAddr: RegUnLock Mask */ |
AnnaBridge | 174:b96e65c34a4d | 3396 | |
AnnaBridge | 174:b96e65c34a4d | 3397 | /**@}*/ /* SYS_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 3398 | /**@}*/ /* end of SYS register group */ |
AnnaBridge | 174:b96e65c34a4d | 3399 | |
AnnaBridge | 174:b96e65c34a4d | 3400 | |
AnnaBridge | 174:b96e65c34a4d | 3401 | /*---------------------- General Purpose Input/Output Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 3402 | /** |
AnnaBridge | 174:b96e65c34a4d | 3403 | @addtogroup GPIO General Purpose Input/Output Controller(GPIO) |
AnnaBridge | 174:b96e65c34a4d | 3404 | Memory Mapped Structure for GPIO Controller |
AnnaBridge | 174:b96e65c34a4d | 3405 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 3406 | |
AnnaBridge | 174:b96e65c34a4d | 3407 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 3408 | |
AnnaBridge | 174:b96e65c34a4d | 3409 | |
AnnaBridge | 174:b96e65c34a4d | 3410 | /** |
AnnaBridge | 174:b96e65c34a4d | 3411 | * PMD |
AnnaBridge | 174:b96e65c34a4d | 3412 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3413 | * Offset: 0x00 GPIO Port Pin I/O Mode Control Register |
AnnaBridge | 174:b96e65c34a4d | 3414 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3415 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3416 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3417 | * |[1:0] |PMD0 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3418 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3419 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3420 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3421 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3422 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3423 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3424 | * |[3:2] |PMD1 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3425 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3426 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3427 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3428 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3429 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3430 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3431 | * |[5:4] |PMD2 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3432 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3433 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3434 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3435 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3436 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3437 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3438 | * |[7:6] |PMD3 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3439 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3440 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3441 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3442 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3443 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3444 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3445 | * |[9:8] |PMD4 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3446 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3447 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3448 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3449 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3450 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3451 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3452 | * |[11:10] |PMD5 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3453 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3454 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3455 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3456 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3457 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3458 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3459 | * |[13:12] |PMD6 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3460 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3461 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3462 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3463 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3464 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3465 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3466 | * |[15:14] |PMD7 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3467 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3468 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3469 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3470 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3471 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3472 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3473 | * |[17:16] |PMD8 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3474 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3475 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3476 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3477 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3478 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3479 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3480 | * |[19:18] |PMD9 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3481 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3482 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3483 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3484 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3485 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3486 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3487 | * |[21:20] |PMD10 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3488 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3489 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3490 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3491 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3492 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3493 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3494 | * |[23:22] |PMD11 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3495 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3496 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3497 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3498 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3499 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3500 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3501 | * |[25:24] |PMD12 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3502 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3503 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3504 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3505 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3506 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3507 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3508 | * |[27:26] |PMD13 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3509 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3510 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3511 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3512 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3513 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3514 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3515 | * |[29:28] |PMD14 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3516 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3517 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3518 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3519 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3520 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3521 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3522 | * |[31:30] |PMD15 |GPIO Port [X] Pin [N] Mode Control |
AnnaBridge | 174:b96e65c34a4d | 3523 | * | | |Determine the I/O type of GPIO port [x] pin [n] |
AnnaBridge | 174:b96e65c34a4d | 3524 | * | | |00 = GPIO port [x] pin [n] is in INPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3525 | * | | |01 = GPIO port [x] pin [n] is in OUTPUT mode. |
AnnaBridge | 174:b96e65c34a4d | 3526 | * | | |10 = GPIO port [x] pin [n] is in Open-Drain mode. |
AnnaBridge | 174:b96e65c34a4d | 3527 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 3528 | * | | |Note: For GPIOF_PMD, PMD6 ~ PMD15 are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3529 | */ |
AnnaBridge | 174:b96e65c34a4d | 3530 | __IO uint32_t PMD; |
AnnaBridge | 174:b96e65c34a4d | 3531 | |
AnnaBridge | 174:b96e65c34a4d | 3532 | /** |
AnnaBridge | 174:b96e65c34a4d | 3533 | * OFFD |
AnnaBridge | 174:b96e65c34a4d | 3534 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3535 | * Offset: 0x04 GPIO Port Pin OFF Digital Enable Register |
AnnaBridge | 174:b96e65c34a4d | 3536 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3537 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3538 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3539 | * |[31:16] |OFFD |GPIO Port [X] Pin [N] Digital Input Path Disable |
AnnaBridge | 174:b96e65c34a4d | 3540 | * | | |Determine if the digital input path of GPIO port [x] pin [n] is disabled. |
AnnaBridge | 174:b96e65c34a4d | 3541 | * | | |0 = Digital input path of GPIO port [x] pin [n] Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3542 | * | | |1 = Digital input path of GPIO port [x] pin [n] Disabled (tied digital input to low). |
AnnaBridge | 174:b96e65c34a4d | 3543 | * | | |Note: For GPIOF_OFFD, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3544 | */ |
AnnaBridge | 174:b96e65c34a4d | 3545 | __IO uint32_t OFFD; |
AnnaBridge | 174:b96e65c34a4d | 3546 | |
AnnaBridge | 174:b96e65c34a4d | 3547 | /** |
AnnaBridge | 174:b96e65c34a4d | 3548 | * DOUT |
AnnaBridge | 174:b96e65c34a4d | 3549 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3550 | * Offset: 0x08 GPIO Port Data Output Value Register |
AnnaBridge | 174:b96e65c34a4d | 3551 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3552 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3553 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3554 | * |[15:0] |DOUT |GPIO Port [X] Pin [N] Output Value |
AnnaBridge | 174:b96e65c34a4d | 3555 | * | | |Each of these bits controls the status of a GPIO port [x] pin [n] when the GPI/O pin is configures as output or open-drain mode |
AnnaBridge | 174:b96e65c34a4d | 3556 | * | | |0 = GPIO port [x] Pin [n] will drive Low if the corresponding output mode enabling bit is set. |
AnnaBridge | 174:b96e65c34a4d | 3557 | * | | |1 = GPIO port [x] Pin [n] will drive High if the corresponding output mode enabling bit is set. |
AnnaBridge | 174:b96e65c34a4d | 3558 | * | | |Note: For GPIOF_DOUT, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3559 | */ |
AnnaBridge | 174:b96e65c34a4d | 3560 | __IO uint32_t DOUT; |
AnnaBridge | 174:b96e65c34a4d | 3561 | |
AnnaBridge | 174:b96e65c34a4d | 3562 | /** |
AnnaBridge | 174:b96e65c34a4d | 3563 | * DMASK |
AnnaBridge | 174:b96e65c34a4d | 3564 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3565 | * Offset: 0x0C GPIO Port Data Output Write Mask Register |
AnnaBridge | 174:b96e65c34a4d | 3566 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3567 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3568 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3569 | * |[15:0] |DMASK |GPIO Port [X] Pin [N] Data Output Write Mask |
AnnaBridge | 174:b96e65c34a4d | 3570 | * | | |These bits are used to protect the corresponding register of GPIOx_DOUT bit [n]. |
AnnaBridge | 174:b96e65c34a4d | 3571 | * | | |When set the DMASK[n] to "1", the corresponding DOUT[n] bit is protected. |
AnnaBridge | 174:b96e65c34a4d | 3572 | * | | |The write signal is masked, write data to the protect bit is ignored. |
AnnaBridge | 174:b96e65c34a4d | 3573 | * | | |0 = The corresponding GPIO_DOUT bit [n] can be updated. |
AnnaBridge | 174:b96e65c34a4d | 3574 | * | | |1 = The corresponding GPIO_DOUT bit [n] is protected. |
AnnaBridge | 174:b96e65c34a4d | 3575 | * | | |Note: For GPIOF_DMASK, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3576 | * | | |Note: These mask bits only take effect while CPU is doing write operation to register GPIOx_DOUT. |
AnnaBridge | 174:b96e65c34a4d | 3577 | * | | |If CPU is doing write operation to register GPIO[x][n], these mask bits will not take effect. |
AnnaBridge | 174:b96e65c34a4d | 3578 | */ |
AnnaBridge | 174:b96e65c34a4d | 3579 | __IO uint32_t DMASK; |
AnnaBridge | 174:b96e65c34a4d | 3580 | |
AnnaBridge | 174:b96e65c34a4d | 3581 | /** |
AnnaBridge | 174:b96e65c34a4d | 3582 | * PIN |
AnnaBridge | 174:b96e65c34a4d | 3583 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3584 | * Offset: 0x10 GPIO Port Pin Value Register |
AnnaBridge | 174:b96e65c34a4d | 3585 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3586 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3587 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3588 | * |[15:0] |PIN |GPIO Port [X] Pin [N] Value |
AnnaBridge | 174:b96e65c34a4d | 3589 | * | | |The value read from each of these bit reflects the actual status of the respective GPI/O pin |
AnnaBridge | 174:b96e65c34a4d | 3590 | * | | |Note: For GPIOF_PIN, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3591 | */ |
AnnaBridge | 174:b96e65c34a4d | 3592 | __I uint32_t PIN; |
AnnaBridge | 174:b96e65c34a4d | 3593 | |
AnnaBridge | 174:b96e65c34a4d | 3594 | /** |
AnnaBridge | 174:b96e65c34a4d | 3595 | * DBEN |
AnnaBridge | 174:b96e65c34a4d | 3596 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3597 | * Offset: 0x14 GPIO Port De-bounce Enable Register |
AnnaBridge | 174:b96e65c34a4d | 3598 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3599 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3600 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3601 | * |[15:0] |DBEN |GPIO Port [X] Pin [N] Input Signal De-Bounce Enable |
AnnaBridge | 174:b96e65c34a4d | 3602 | * | | |DBEN[n] used to enable the de-bounce function for each corresponding bit. |
AnnaBridge | 174:b96e65c34a4d | 3603 | * | | |If the input signal pulse width cannot be sampled by continuous two de-bounce sample cycle the input signal transition is seen as the signal bounce and will not trigger the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3604 | * | | |DBEN[n] is used for "edge-trigger" interrupt only, and ignored for "level trigger" interrupt |
AnnaBridge | 174:b96e65c34a4d | 3605 | * | | |0 = The GPIO port [x] Pin [n] input signal de-bounce function is disabled. |
AnnaBridge | 174:b96e65c34a4d | 3606 | * | | |1 = The GPIO port [x] Pin [n] input signal de-bounce function is enabled. |
AnnaBridge | 174:b96e65c34a4d | 3607 | * | | |The de-bounce function is valid for edge triggered interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3608 | * | | |If the interrupt mode is level triggered, the de-bounce enable bit is ignored. |
AnnaBridge | 174:b96e65c34a4d | 3609 | * | | |Note: For GPIOF_DBEN, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3610 | */ |
AnnaBridge | 174:b96e65c34a4d | 3611 | __IO uint32_t DBEN; |
AnnaBridge | 174:b96e65c34a4d | 3612 | |
AnnaBridge | 174:b96e65c34a4d | 3613 | /** |
AnnaBridge | 174:b96e65c34a4d | 3614 | * IMD |
AnnaBridge | 174:b96e65c34a4d | 3615 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3616 | * Offset: 0x18 GPIO Port Interrupt Mode Control Register |
AnnaBridge | 174:b96e65c34a4d | 3617 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3618 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3619 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3620 | * |[15:0] |IMD |GPIO Port [X] Pin [N] Edge Or Level Detection Interrupt Control |
AnnaBridge | 174:b96e65c34a4d | 3621 | * | | |IMD[n] used to control the interrupt is by level trigger or by edge trigger. |
AnnaBridge | 174:b96e65c34a4d | 3622 | * | | |If the interrupt is by edge trigger, the trigger source is control de-bounce. |
AnnaBridge | 174:b96e65c34a4d | 3623 | * | | |If the interrupt is by level trigger, the input source is sampled by one clock and the generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3624 | * | | |0 = Edge trigger interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3625 | * | | |1 = Level trigger interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3626 | * | | |If set pin as the level trigger interrupt, then only one level can be set on the registers GPIOX_IER. |
AnnaBridge | 174:b96e65c34a4d | 3627 | * | | |If set both the level to trigger interrupt, the setting is ignored and no interrupt will occur. |
AnnaBridge | 174:b96e65c34a4d | 3628 | * | | |The de-bounce function is valid for edge triggered interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3629 | * | | |If the interrupt mode is level triggered, the de-bounce enable bit is ignored. |
AnnaBridge | 174:b96e65c34a4d | 3630 | * | | |Note: For GPIOF_IMD, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3631 | */ |
AnnaBridge | 174:b96e65c34a4d | 3632 | __IO uint32_t IMD; |
AnnaBridge | 174:b96e65c34a4d | 3633 | |
AnnaBridge | 174:b96e65c34a4d | 3634 | /** |
AnnaBridge | 174:b96e65c34a4d | 3635 | * IER |
AnnaBridge | 174:b96e65c34a4d | 3636 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3637 | * Offset: 0x1C GPIO Port Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 3638 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3639 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3640 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3641 | * |[0] |FIER0 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3642 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3643 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3644 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3645 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3646 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3647 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3648 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3649 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3650 | * |[1] |FIER1 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3651 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3652 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3653 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3654 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3655 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3656 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3657 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3658 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3659 | * |[2] |FIER2 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3660 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3661 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3662 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3663 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3664 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3665 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3666 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3667 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3668 | * |[3] |FIER3 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3669 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3670 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3671 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3672 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3673 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3674 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3675 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3676 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3677 | * |[4] |FIER4 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3678 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3679 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3680 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3681 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3682 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3683 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3684 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3685 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3686 | * |[5] |FIER5 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3687 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3688 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3689 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3690 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3691 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3692 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3693 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3694 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3695 | * |[6] |FIER6 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3696 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3697 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3698 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3699 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3700 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3701 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3702 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3703 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3704 | * |[7] |FIER7 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3705 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3706 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3707 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3708 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3709 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3710 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3711 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3712 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3713 | * |[8] |FIER8 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3714 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3715 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3716 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3717 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3718 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3719 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3720 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3721 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3722 | * |[9] |FIER9 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3723 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3724 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3725 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3726 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3727 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3728 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3729 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3730 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3731 | * |[10] |FIER10 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3732 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3733 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3734 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3735 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3736 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3737 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3738 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3739 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3740 | * |[11] |FIER11 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3741 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3742 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3743 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3744 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3745 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3746 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3747 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3748 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3749 | * |[12] |FIER12 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3750 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3751 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3752 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3753 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3754 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3755 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3756 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3757 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3758 | * |[13] |FIER13 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3759 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3760 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3761 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3762 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3763 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3764 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3765 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3766 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3767 | * |[14] |FIER14 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3768 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3769 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3770 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3771 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3772 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3773 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3774 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3775 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3776 | * |[15] |FIER15 |GPIO Port [X] Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low |
AnnaBridge | 174:b96e65c34a4d | 3777 | * | | |FIER[n] used to enable the interrupt for each of the corresponding input GPIO_PIN[n]. |
AnnaBridge | 174:b96e65c34a4d | 3778 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3779 | * | | |When set the FIER[n] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3780 | * | | |If the interrupt is level mode trigger, the input PIN[n] state at level "low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3781 | * | | |If the interrupt is edge mode trigger, the input PIN[n] state change from "high-to-low" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3782 | * | | |1 = PIN[n] state low-level or high-to-low change interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3783 | * | | |0 = PIN[n] state low-level or high-to-low change interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3784 | * | | |Note: For GPIOF_IER, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3785 | * |[16] |RIER0 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3786 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3787 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3788 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3789 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3790 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3791 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3792 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3793 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3794 | * |[17] |RIER1 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3795 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3796 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3797 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3798 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3799 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3800 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3801 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3802 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3803 | * |[18] |RIER2 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3804 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3805 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3806 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3807 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3808 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3809 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3810 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3811 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3812 | * |[19] |RIER3 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3813 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3814 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3815 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3816 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3817 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3818 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3819 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3820 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3821 | * |[20] |RIER4 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3822 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3823 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3824 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3825 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3826 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3827 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3828 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3829 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3830 | * |[21] |RIER5 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3831 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3832 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3833 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3834 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3835 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3836 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3837 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3838 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3839 | * |[22] |RIER6 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3840 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3841 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3842 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3843 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3844 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3845 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3846 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3847 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3848 | * |[23] |RIER7 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3849 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3850 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3851 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3852 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3853 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3854 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3855 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3856 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3857 | * |[24] |RIER8 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3858 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3859 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3860 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3861 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3862 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3863 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3864 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3865 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3866 | * |[25] |RIER9 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3867 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3868 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3869 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3870 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3871 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3872 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3873 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3874 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3875 | * |[26] |RIER10 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3876 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3877 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3878 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3879 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3880 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3881 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3882 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3883 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3884 | * |[27] |RIER11 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3885 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3886 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3887 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3888 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3889 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3890 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3891 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3892 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3893 | * |[28] |RIER12 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3894 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3895 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3896 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3897 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3898 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3899 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3900 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3901 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3902 | * |[29] |RIER13 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3903 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3904 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3905 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3906 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3907 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3908 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3909 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3910 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3911 | * |[30] |RIER14 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3912 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3913 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3914 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3915 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3916 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3917 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3918 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3919 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3920 | * |[31] |RIER15 |GPIO Port [X] Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High |
AnnaBridge | 174:b96e65c34a4d | 3921 | * | | |RIER[x] used to enable the interrupt for each of the corresponding input GPIO_PIN[x]. |
AnnaBridge | 174:b96e65c34a4d | 3922 | * | | |Set bit "1" also enable the pin wake-up function. |
AnnaBridge | 174:b96e65c34a4d | 3923 | * | | |When set the RIER[x] bit "1": |
AnnaBridge | 174:b96e65c34a4d | 3924 | * | | |If the interrupt is level mode trigger, the input PIN[x] state at level "high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3925 | * | | |If the interrupt is edge mode trigger, the input PIN[x] state change from "low-to-high" will generate the interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3926 | * | | |1 = PIN[x] level-high or low-to-high interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3927 | * | | |0 = PIN[x] level-high or low-to-high interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3928 | * | | |Note: For GPIOF_IE, bits [31:22] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3929 | */ |
AnnaBridge | 174:b96e65c34a4d | 3930 | __IO uint32_t IER; |
AnnaBridge | 174:b96e65c34a4d | 3931 | |
AnnaBridge | 174:b96e65c34a4d | 3932 | /** |
AnnaBridge | 174:b96e65c34a4d | 3933 | * ISRC |
AnnaBridge | 174:b96e65c34a4d | 3934 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3935 | * Offset: 0x20 GPIO Port Interrupt Trigger Source Status Register |
AnnaBridge | 174:b96e65c34a4d | 3936 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3937 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3938 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3939 | * |[15:0] |ISRC |GPIO Port [X] Pin [N] Interrupt Trigger Source Indicator |
AnnaBridge | 174:b96e65c34a4d | 3940 | * | | |Read : |
AnnaBridge | 174:b96e65c34a4d | 3941 | * | | |1 = Port x[n] generate an interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3942 | * | | |0 = No interrupt at Port x[n]. |
AnnaBridge | 174:b96e65c34a4d | 3943 | * | | |Write: |
AnnaBridge | 174:b96e65c34a4d | 3944 | * | | |1 = Clear the correspond pending interrupt. |
AnnaBridge | 174:b96e65c34a4d | 3945 | * | | |0 = No action. |
AnnaBridge | 174:b96e65c34a4d | 3946 | * | | |Note: For GPIOF_ISRC, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3947 | */ |
AnnaBridge | 174:b96e65c34a4d | 3948 | __IO uint32_t ISRC; |
AnnaBridge | 174:b96e65c34a4d | 3949 | |
AnnaBridge | 174:b96e65c34a4d | 3950 | /** |
AnnaBridge | 174:b96e65c34a4d | 3951 | * PUEN |
AnnaBridge | 174:b96e65c34a4d | 3952 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3953 | * Offset: 0x24 GPIO Port |
AnnaBridge | 174:b96e65c34a4d | 3954 | Pull-Up Enable Register |
AnnaBridge | 174:b96e65c34a4d | 3955 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3956 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3957 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3958 | * |[15:0] |PUEN |GPIO Port [X] Pin [N] Pull-Up Enable Register |
AnnaBridge | 174:b96e65c34a4d | 3959 | * | | |Read : |
AnnaBridge | 174:b96e65c34a4d | 3960 | * | | |1 = GPIO port [A/B/C/D/E/F] bit [n] pull-up resistor Enabled. |
AnnaBridge | 174:b96e65c34a4d | 3961 | * | | |0 = GPIO port [A/B/C/D/E/F] bit [n] pull-up resistor Disabled. |
AnnaBridge | 174:b96e65c34a4d | 3962 | * | | |Note: For GPIOF_PUEN, bits [15:6] are reserved. |
AnnaBridge | 174:b96e65c34a4d | 3963 | */ |
AnnaBridge | 174:b96e65c34a4d | 3964 | __IO uint32_t PUEN; |
AnnaBridge | 174:b96e65c34a4d | 3965 | |
AnnaBridge | 174:b96e65c34a4d | 3966 | } GPIO_T; |
AnnaBridge | 174:b96e65c34a4d | 3967 | |
AnnaBridge | 174:b96e65c34a4d | 3968 | |
AnnaBridge | 174:b96e65c34a4d | 3969 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 3970 | /** |
AnnaBridge | 174:b96e65c34a4d | 3971 | * DBNCECON |
AnnaBridge | 174:b96e65c34a4d | 3972 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 3973 | * Offset: 0x180 De-bounce Cycle Control Register |
AnnaBridge | 174:b96e65c34a4d | 3974 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 3975 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 3976 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 3977 | * |[3:0] |PUEN |De-Bounce Sampling Cycle Selection |
AnnaBridge | 174:b96e65c34a4d | 3978 | * | | |0000 = Sample interrupt input once per 1 clock. |
AnnaBridge | 174:b96e65c34a4d | 3979 | * | | |0001 = Sample interrupt input once per 2 clock. |
AnnaBridge | 174:b96e65c34a4d | 3980 | * | | |0010 = Sample interrupt input once per 4 clock. |
AnnaBridge | 174:b96e65c34a4d | 3981 | * | | |0011 = Sample interrupt input once per 8 clock. |
AnnaBridge | 174:b96e65c34a4d | 3982 | * | | |0100 = Sample interrupt input once per 16 clock. |
AnnaBridge | 174:b96e65c34a4d | 3983 | * | | |0101 = Sample interrupt input once per 32 clock. |
AnnaBridge | 174:b96e65c34a4d | 3984 | * | | |0110 = Sample interrupt input once per 64 clock. |
AnnaBridge | 174:b96e65c34a4d | 3985 | * | | |0111 = Sample interrupt input once per 128 clock. |
AnnaBridge | 174:b96e65c34a4d | 3986 | * | | |1000 = Sample interrupt input once per 256 clock. |
AnnaBridge | 174:b96e65c34a4d | 3987 | * | | |1001 = Sample interrupt input once per 512 clock. |
AnnaBridge | 174:b96e65c34a4d | 3988 | * | | |1010 = Sample interrupt input once per 1024 clock. |
AnnaBridge | 174:b96e65c34a4d | 3989 | * | | |1011 = Sample interrupt input once per 2048 clock. |
AnnaBridge | 174:b96e65c34a4d | 3990 | * | | |1100 = Sample interrupt input once per 4096 clock. |
AnnaBridge | 174:b96e65c34a4d | 3991 | * | | |1101 = Sample interrupt input once per 8192 clock. |
AnnaBridge | 174:b96e65c34a4d | 3992 | * | | |1110 = Sample interrupt input once per 16384 clock. |
AnnaBridge | 174:b96e65c34a4d | 3993 | * | | |1111 = Sample interrupt input once per 32768 clock. |
AnnaBridge | 174:b96e65c34a4d | 3994 | * |[4] |DBCLKSRC |De-Bounce Counter Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 3995 | * | | |0 = De-bounce counter Clock Source is the HCLK. |
AnnaBridge | 174:b96e65c34a4d | 3996 | * | | |1 = De-bounce counter Clock Source is the internal 10 kHz clock. |
AnnaBridge | 174:b96e65c34a4d | 3997 | * |[5] |DBCLK_ON |De-Bounce Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 3998 | * | | |This bit controls if the de-bounce clock is enabled. |
AnnaBridge | 174:b96e65c34a4d | 3999 | * | | |However, if GPI/O pin's interrupt is enabled, the de-bounce clock will be enabled automatically no matter what the DBCLK_ON value is. |
AnnaBridge | 174:b96e65c34a4d | 4000 | * | | |If CPU is in sleep mode, this bit didn't take effect. |
AnnaBridge | 174:b96e65c34a4d | 4001 | * | | |And only the GPI/O pin with interrupt enable could get de-bounce clock. |
AnnaBridge | 174:b96e65c34a4d | 4002 | * | | |0 = De-bounce clock Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4003 | * | | |1 = De-bounce clock Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4004 | */ |
AnnaBridge | 174:b96e65c34a4d | 4005 | __IO uint32_t DBNCECON; |
AnnaBridge | 174:b96e65c34a4d | 4006 | } GP_DB_T; |
AnnaBridge | 174:b96e65c34a4d | 4007 | |
AnnaBridge | 174:b96e65c34a4d | 4008 | /** |
AnnaBridge | 174:b96e65c34a4d | 4009 | @addtogroup GPIO_CONST GPIO Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 4010 | Constant Definitions for GPIO Controller |
AnnaBridge | 174:b96e65c34a4d | 4011 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 4012 | |
AnnaBridge | 174:b96e65c34a4d | 4013 | #define GP_PMD_PMD0_Pos (0) /*!< GPIO_T::PMD: PMD0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4014 | #define GP_PMD_PMD0_Msk (0x3ul << GP_PMD_PMD0_Pos) /*!< GPIO_T::PMD: PMD0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4015 | |
AnnaBridge | 174:b96e65c34a4d | 4016 | #define GP_PMD_PMD1_Pos (2) /*!< GPIO_T::PMD: PMD1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4017 | #define GP_PMD_PMD1_Msk (0x3ul << GP_PMD_PMD1_Pos) /*!< GPIO_T::PMD: PMD1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4018 | |
AnnaBridge | 174:b96e65c34a4d | 4019 | #define GP_PMD_PMD2_Pos (4) /*!< GPIO_T::PMD: PMD2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4020 | #define GP_PMD_PMD2_Msk (0x3ul << GP_PMD_PMD2_Pos) /*!< GPIO_T::PMD: PMD2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4021 | |
AnnaBridge | 174:b96e65c34a4d | 4022 | #define GP_PMD_PMD3_Pos (6) /*!< GPIO_T::PMD: PMD3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4023 | #define GP_PMD_PMD3_Msk (0x3ul << GP_PMD_PMD3_Pos) /*!< GPIO_T::PMD: PMD3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4024 | |
AnnaBridge | 174:b96e65c34a4d | 4025 | #define GP_PMD_PMD4_Pos (8) /*!< GPIO_T::PMD: PMD4 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4026 | #define GP_PMD_PMD4_Msk (0x3ul << GP_PMD_PMD4_Pos) /*!< GPIO_T::PMD: PMD4 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4027 | |
AnnaBridge | 174:b96e65c34a4d | 4028 | #define GP_PMD_PMD5_Pos (10) /*!< GPIO_T::PMD: PMD5 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4029 | #define GP_PMD_PMD5_Msk (0x3ul << GP_PMD_PMD5_Pos) /*!< GPIO_T::PMD: PMD5 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4030 | |
AnnaBridge | 174:b96e65c34a4d | 4031 | #define GP_PMD_PMD6_Pos (12) /*!< GPIO_T::PMD: PMD6 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4032 | #define GP_PMD_PMD6_Msk (0x3ul << GP_PMD_PMD6_Pos) /*!< GPIO_T::PMD: PMD6 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4033 | |
AnnaBridge | 174:b96e65c34a4d | 4034 | #define GP_PMD_PMD7_Pos (14) /*!< GPIO_T::PMD: PMD7 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4035 | #define GP_PMD_PMD7_Msk (0x3ul << GP_PMD_PMD7_Pos) /*!< GPIO_T::PMD: PMD7 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4036 | |
AnnaBridge | 174:b96e65c34a4d | 4037 | #define GP_PMD_PMD8_Pos (16) /*!< GPIO_T::PMD: PMD8 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4038 | #define GP_PMD_PMD8_Msk (0x3ul << GP_PMD_PMD8_Pos) /*!< GPIO_T::PMD: PMD8 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4039 | |
AnnaBridge | 174:b96e65c34a4d | 4040 | #define GP_PMD_PMD9_Pos (18) /*!< GPIO_T::PMD: PMD9 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4041 | #define GP_PMD_PMD9_Msk (0x3ul << GP_PMD_PMD9_Pos) /*!< GPIO_T::PMD: PMD9 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4042 | |
AnnaBridge | 174:b96e65c34a4d | 4043 | #define GP_PMD_PMD10_Pos (20) /*!< GPIO_T::PMD: PMD10 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4044 | #define GP_PMD_PMD10_Msk (0x3ul << GP_PMD_PMD10_Pos) /*!< GPIO_T::PMD: PMD10 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4045 | |
AnnaBridge | 174:b96e65c34a4d | 4046 | #define GP_PMD_PMD11_Pos (22) /*!< GPIO_T::PMD: PMD11 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4047 | #define GP_PMD_PMD11_Msk (0x3ul << GP_PMD_PMD11_Pos) /*!< GPIO_T::PMD: PMD11 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4048 | |
AnnaBridge | 174:b96e65c34a4d | 4049 | #define GP_PMD_PMD12_Pos (24) /*!< GPIO_T::PMD: PMD12 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4050 | #define GP_PMD_PMD12_Msk (0x3ul << GP_PMD_PMD12_Pos) /*!< GPIO_T::PMD: PMD12 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4051 | |
AnnaBridge | 174:b96e65c34a4d | 4052 | #define GP_PMD_PMD13_Pos (26) /*!< GPIO_T::PMD: PMD13 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4053 | #define GP_PMD_PMD13_Msk (0x3ul << GP_PMD_PMD13_Pos) /*!< GPIO_T::PMD: PMD13 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4054 | |
AnnaBridge | 174:b96e65c34a4d | 4055 | #define GP_PMD_PMD14_Pos (28) /*!< GPIO_T::PMD: PMD14 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4056 | #define GP_PMD_PMD14_Msk (0x3ul << GP_PMD_PMD14_Pos) /*!< GPIO_T::PMD: PMD14 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4057 | |
AnnaBridge | 174:b96e65c34a4d | 4058 | #define GP_PMD_PMD15_Pos (30) /*!< GPIO_T::PMD: PMD15 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4059 | #define GP_PMD_PMD15_Msk (0x3ul << GP_PMD_PMD15_Pos) /*!< GPIO_T::PMD: PMD15 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4060 | |
AnnaBridge | 174:b96e65c34a4d | 4061 | #define GP_OFFD_OFFD_Pos (16) /*!< GPIO_T::OFFD: OFFD Position */ |
AnnaBridge | 174:b96e65c34a4d | 4062 | #define GP_OFFD_OFFD_Msk (0xfffful << GP_OFFD_OFFD_Pos) /*!< GPIO_T::OFFD: OFFD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4063 | |
AnnaBridge | 174:b96e65c34a4d | 4064 | #define GP_DOUT_DOUT_Pos (0) /*!< GPIO_T::DOUT: DOUT Position */ |
AnnaBridge | 174:b96e65c34a4d | 4065 | #define GP_DOUT_DOUT_Msk (0xfffful << GP_DOUT_DOUT_Pos) /*!< GPIO_T::DOUT: DOUT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4066 | |
AnnaBridge | 174:b96e65c34a4d | 4067 | #define GP_DMASK_DMASK_Pos (0) /*!< GPIO_T::DMASK: DMASK Position */ |
AnnaBridge | 174:b96e65c34a4d | 4068 | #define GP_DMASK_DMASK_Msk (0xfffful << GP_DMASK_DMASK_Pos) /*!< GPIO_T::DMASK: DMASK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4069 | |
AnnaBridge | 174:b96e65c34a4d | 4070 | #define GP_PIN_PIN_Pos (0) /*!< GPIO_T::PIN: PIN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4071 | #define GP_PIN_PIN_Msk (0xfffful << GP_PIN_PIN_Pos) /*!< GPIO_T::PIN: PIN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4072 | |
AnnaBridge | 174:b96e65c34a4d | 4073 | #define GP_DBEN_DBEN_Pos (0) /*!< GPIO_T::DBEN: DBEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4074 | #define GP_DBEN_DBEN_Msk (0xfffful << GP_DBEN_DBEN_Pos) /*!< GPIO_T::DBEN: DBEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4075 | |
AnnaBridge | 174:b96e65c34a4d | 4076 | #define GP_IMD_IMD_Pos (0) /*!< GPIO_T::IMD: IMD Position */ |
AnnaBridge | 174:b96e65c34a4d | 4077 | #define GP_IMD_IMD_Msk (0xfffful << GP_IMD_IMD_Pos) /*!< GPIO_T::IMD: IMD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4078 | |
AnnaBridge | 174:b96e65c34a4d | 4079 | #define GP_IER_FIER0_Pos (0) /*!< GPIO_T::IER: FIER0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4080 | #define GP_IER_FIER0_Msk (0x1ul << GP_IER_FIER0_Pos) /*!< GPIO_T::IER: FIER0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4081 | |
AnnaBridge | 174:b96e65c34a4d | 4082 | #define GP_IER_FIER1_Pos (1) /*!< GPIO_T::IER: FIER1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4083 | #define GP_IER_FIER1_Msk (0x1ul << GP_IER_FIER1_Pos) /*!< GPIO_T::IER: FIER1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4084 | |
AnnaBridge | 174:b96e65c34a4d | 4085 | #define GP_IER_FIER2_Pos (2) /*!< GPIO_T::IER: FIER2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4086 | #define GP_IER_FIER2_Msk (0x1ul << GP_IER_FIER2_Pos) /*!< GPIO_T::IER: FIER2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4087 | |
AnnaBridge | 174:b96e65c34a4d | 4088 | #define GP_IER_FIER3_Pos (3) /*!< GPIO_T::IER: FIER3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4089 | #define GP_IER_FIER3_Msk (0x1ul << GP_IER_FIER3_Pos) /*!< GPIO_T::IER: FIER3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4090 | |
AnnaBridge | 174:b96e65c34a4d | 4091 | #define GP_IER_FIER4_Pos (4) /*!< GPIO_T::IER: FIER4 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4092 | #define GP_IER_FIER4_Msk (0x1ul << GP_IER_FIER4_Pos) /*!< GPIO_T::IER: FIER4 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4093 | |
AnnaBridge | 174:b96e65c34a4d | 4094 | #define GP_IER_FIER5_Pos (5) /*!< GPIO_T::IER: FIER5 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4095 | #define GP_IER_FIER5_Msk (0x1ul << GP_IER_FIER5_Pos) /*!< GPIO_T::IER: FIER5 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4096 | |
AnnaBridge | 174:b96e65c34a4d | 4097 | #define GP_IER_FIER6_Pos (6) /*!< GPIO_T::IER: FIER6 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4098 | #define GP_IER_FIER6_Msk (0x1ul << GP_IER_FIER6_Pos) /*!< GPIO_T::IER: FIER6 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4099 | |
AnnaBridge | 174:b96e65c34a4d | 4100 | #define GP_IER_FIER7_Pos (7) /*!< GPIO_T::IER: FIER7 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4101 | #define GP_IER_FIER7_Msk (0x1ul << GP_IER_FIER7_Pos) /*!< GPIO_T::IER: FIER7 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4102 | |
AnnaBridge | 174:b96e65c34a4d | 4103 | #define GP_IER_FIER8_Pos (8) /*!< GPIO_T::IER: FIER8 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4104 | #define GP_IER_FIER8_Msk (0x1ul << GP_IER_FIER8_Pos) /*!< GPIO_T::IER: FIER8 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4105 | |
AnnaBridge | 174:b96e65c34a4d | 4106 | #define GP_IER_FIER9_Pos (9) /*!< GPIO_T::IER: FIER9 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4107 | #define GP_IER_FIER9_Msk (0x1ul << GP_IER_FIER9_Pos) /*!< GPIO_T::IER: FIER9 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4108 | |
AnnaBridge | 174:b96e65c34a4d | 4109 | #define GP_IER_FIER10_Pos (10) /*!< GPIO_T::IER: FIER10 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4110 | #define GP_IER_FIER10_Msk (0x1ul << GP_IER_FIER10_Pos) /*!< GPIO_T::IER: FIER10 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4111 | |
AnnaBridge | 174:b96e65c34a4d | 4112 | #define GP_IER_FIER11_Pos (11) /*!< GPIO_T::IER: FIER11 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4113 | #define GP_IER_FIER11_Msk (0x1ul << GP_IER_FIER11_Pos) /*!< GPIO_T::IER: FIER11 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4114 | |
AnnaBridge | 174:b96e65c34a4d | 4115 | #define GP_IER_FIER12_Pos (12) /*!< GPIO_T::IER: FIER12 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4116 | #define GP_IER_FIER12_Msk (0x1ul << GP_IER_FIER12_Pos) /*!< GPIO_T::IER: FIER12 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4117 | |
AnnaBridge | 174:b96e65c34a4d | 4118 | #define GP_IER_FIER13_Pos (13) /*!< GPIO_T::IER: FIER13 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4119 | #define GP_IER_FIER13_Msk (0x1ul << GP_IER_FIER13_Pos) /*!< GPIO_T::IER: FIER13 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4120 | |
AnnaBridge | 174:b96e65c34a4d | 4121 | #define GP_IER_FIER14_Pos (14) /*!< GPIO_T::IER: FIER14 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4122 | #define GP_IER_FIER14_Msk (0x1ul << GP_IER_FIER14_Pos) /*!< GPIO_T::IER: FIER14 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4123 | |
AnnaBridge | 174:b96e65c34a4d | 4124 | #define GP_IER_FIER15_Pos (15) /*!< GPIO_T::IER: FIER15 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4125 | #define GP_IER_FIER15_Msk (0x1ul << GP_IER_FIER15_Pos) /*!< GPIO_T::IER: FIER15 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4126 | |
AnnaBridge | 174:b96e65c34a4d | 4127 | #define GP_IER_RIER0_Pos (16) /*!< GPIO_T::IER: RIER0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4128 | #define GP_IER_RIER0_Msk (0x1ul << GP_IER_RIER0_Pos) /*!< GPIO_T::IER: RIER0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4129 | |
AnnaBridge | 174:b96e65c34a4d | 4130 | #define GP_IER_RIER1_Pos (17) /*!< GPIO_T::IER: RIER1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4131 | #define GP_IER_RIER1_Msk (0x1ul << GP_IER_RIER1_Pos) /*!< GPIO_T::IER: RIER1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4132 | |
AnnaBridge | 174:b96e65c34a4d | 4133 | #define GP_IER_RIER2_Pos (18) /*!< GPIO_T::IER: RIER2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4134 | #define GP_IER_RIER2_Msk (0x1ul << GP_IER_RIER2_Pos) /*!< GPIO_T::IER: RIER2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4135 | |
AnnaBridge | 174:b96e65c34a4d | 4136 | #define GP_IER_RIER3_Pos (19) /*!< GPIO_T::IER: RIER3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4137 | #define GP_IER_RIER3_Msk (0x1ul << GP_IER_RIER3_Pos) /*!< GPIO_T::IER: RIER3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4138 | |
AnnaBridge | 174:b96e65c34a4d | 4139 | #define GP_IER_RIER4_Pos (20) /*!< GPIO_T::IER: RIER4 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4140 | #define GP_IER_RIER4_Msk (0x1ul << GP_IER_RIER4_Pos) /*!< GPIO_T::IER: RIER4 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4141 | |
AnnaBridge | 174:b96e65c34a4d | 4142 | #define GP_IER_RIER5_Pos (21) /*!< GPIO_T::IER: RIER5 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4143 | #define GP_IER_RIER5_Msk (0x1ul << GP_IER_RIER5_Pos) /*!< GPIO_T::IER: RIER5 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4144 | |
AnnaBridge | 174:b96e65c34a4d | 4145 | #define GP_IER_RIER6_Pos (22) /*!< GPIO_T::IER: RIER6 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4146 | #define GP_IER_RIER6_Msk (0x1ul << GP_IER_RIER6_Pos) /*!< GPIO_T::IER: RIER6 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4147 | |
AnnaBridge | 174:b96e65c34a4d | 4148 | #define GP_IER_RIER7_Pos (23) /*!< GPIO_T::IER: RIER7 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4149 | #define GP_IER_RIER7_Msk (0x1ul << GP_IER_RIER7_Pos) /*!< GPIO_T::IER: RIER7 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4150 | |
AnnaBridge | 174:b96e65c34a4d | 4151 | #define GP_IER_RIER8_Pos (24) /*!< GPIO_T::IER: RIER8 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4152 | #define GP_IER_RIER8_Msk (0x1ul << GP_IER_RIER8_Pos) /*!< GPIO_T::IER: RIER8 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4153 | |
AnnaBridge | 174:b96e65c34a4d | 4154 | #define GP_IER_RIER9_Pos (25) /*!< GPIO_T::IER: RIER9 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4155 | #define GP_IER_RIER9_Msk (0x1ul << GP_IER_RIER9_Pos) /*!< GPIO_T::IER: RIER9 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4156 | |
AnnaBridge | 174:b96e65c34a4d | 4157 | #define GP_IER_RIER10_Pos (26) /*!< GPIO_T::IER: RIER10 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4158 | #define GP_IER_RIER10_Msk (0x1ul << GP_IER_RIER10_Pos) /*!< GPIO_T::IER: RIER10 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4159 | |
AnnaBridge | 174:b96e65c34a4d | 4160 | #define GP_IER_RIER11_Pos (27) /*!< GPIO_T::IER: RIER11 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4161 | #define GP_IER_RIER11_Msk (0x1ul << GP_IER_RIER11_Pos) /*!< GPIO_T::IER: RIER11 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4162 | |
AnnaBridge | 174:b96e65c34a4d | 4163 | #define GP_IER_RIER12_Pos (28) /*!< GPIO_T::IER: RIER12 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4164 | #define GP_IER_RIER12_Msk (0x1ul << GP_IER_RIER12_Pos) /*!< GPIO_T::IER: RIER12 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4165 | |
AnnaBridge | 174:b96e65c34a4d | 4166 | #define GP_IER_RIER13_Pos (29) /*!< GPIO_T::IER: RIER13 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4167 | #define GP_IER_RIER13_Msk (0x1ul << GP_IER_RIER13_Pos) /*!< GPIO_T::IER: RIER13 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4168 | |
AnnaBridge | 174:b96e65c34a4d | 4169 | #define GP_IER_RIER14_Pos (30) /*!< GPIO_T::IER: RIER14 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4170 | #define GP_IER_RIER14_Msk (0x1ul << GP_IER_RIER14_Pos) /*!< GPIO_T::IER: RIER14 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4171 | |
AnnaBridge | 174:b96e65c34a4d | 4172 | #define GP_IER_RIER15_Pos (31) /*!< GPIO_T::IER: RIER15 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4173 | #define GP_IER_RIER15_Msk (0x1ul << GP_IER_RIER15_Pos) /*!< GPIO_T::IER: RIER15 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4174 | |
AnnaBridge | 174:b96e65c34a4d | 4175 | #define GP_ISRC_ISRC_Pos (0) /*!< GPIO_T::ISRC: ISRC Position */ |
AnnaBridge | 174:b96e65c34a4d | 4176 | #define GP_ISRC_ISRC_Msk (0xfffful << GP_ISRC_ISRC_Pos) /*!< GPIO_T::ISRC: ISRC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4177 | |
AnnaBridge | 174:b96e65c34a4d | 4178 | #define GP_PUEN_PUEN_Pos (0) /*!< GPIO_T::PUEN: PUEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4179 | #define GP_PUEN_PUEN_Msk (0xfffful << GP_PUEN_PUEN_Pos) /*!< GPIO_T::PUEN: PUEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4180 | /**@}*/ /* GPIO_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 4181 | |
AnnaBridge | 174:b96e65c34a4d | 4182 | /** |
AnnaBridge | 174:b96e65c34a4d | 4183 | @addtogroup GP_DB_CONST GP_DB Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 4184 | Constant Definitions for GP_DB Controller |
AnnaBridge | 174:b96e65c34a4d | 4185 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 4186 | #define GP_DBNCECON_DBCLKSEL_Pos (0) /*!< GP_DB_T::DBNCECON: DBCLKSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 4187 | #define GP_DBNCECON_DBCLKSEL_Msk (0xful << GP_DBNCECON_DBCLKSEL_Pos) /*!< GP_DB_T::DBNCECON: DBCLKSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4188 | |
AnnaBridge | 174:b96e65c34a4d | 4189 | #define GP_DBNCECON_DBCLKSRC_Pos (4) /*!< GP_DB_T::DBNCECON: DBCLKSRC Position */ |
AnnaBridge | 174:b96e65c34a4d | 4190 | #define GP_DBNCECON_DBCLKSRC_Msk (0x1ul << GP_DBNCECON_DBCLKSRC_Pos) /*!< GP_DB_T::DBNCECON: DBCLKSRC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4191 | |
AnnaBridge | 174:b96e65c34a4d | 4192 | #define GP_DBNCECON_DBCLK_ON_Pos (5) /*!< GP_DB_T::DBNCECON: DBCLK_ON Position */ |
AnnaBridge | 174:b96e65c34a4d | 4193 | #define GP_DBNCECON_DBCLK_ON_Msk (0x1ul << GP_DBNCECON_DBCLK_ON_Pos) /*!< GP_DB_T::DBNCECON: DBCLK_ON Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4194 | |
AnnaBridge | 174:b96e65c34a4d | 4195 | |
AnnaBridge | 174:b96e65c34a4d | 4196 | /**@}*/ /* GP_DB_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 4197 | /**@}*/ /* end of GP register group */ |
AnnaBridge | 174:b96e65c34a4d | 4198 | |
AnnaBridge | 174:b96e65c34a4d | 4199 | |
AnnaBridge | 174:b96e65c34a4d | 4200 | /*---------------------- Inter-IC Bus Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 4201 | /** |
AnnaBridge | 174:b96e65c34a4d | 4202 | @addtogroup I2C Inter-IC Bus Controller(I2C) |
AnnaBridge | 174:b96e65c34a4d | 4203 | Memory Mapped Structure for I2C Controller |
AnnaBridge | 174:b96e65c34a4d | 4204 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 4205 | |
AnnaBridge | 174:b96e65c34a4d | 4206 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 4207 | |
AnnaBridge | 174:b96e65c34a4d | 4208 | |
AnnaBridge | 174:b96e65c34a4d | 4209 | /** |
AnnaBridge | 174:b96e65c34a4d | 4210 | * CON |
AnnaBridge | 174:b96e65c34a4d | 4211 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4212 | * Offset: 0x00 I2C Control Register |
AnnaBridge | 174:b96e65c34a4d | 4213 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4214 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4215 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4216 | * |[0] |IPEN |I2C Function Enable |
AnnaBridge | 174:b96e65c34a4d | 4217 | * | | |When this bit is set to 1, the I2C serial function is enabled. |
AnnaBridge | 174:b96e65c34a4d | 4218 | * | | |0 = I2C function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4219 | * | | |1 = I2C function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4220 | * |[1] |ACK |Assert Acknowledge Control Bit |
AnnaBridge | 174:b96e65c34a4d | 4221 | * | | |0 =: When this bit is set to 0 prior to address or data received, a Not acknowledged (high level to SDA) will be returned during the acknowledge clock pulse. |
AnnaBridge | 174:b96e65c34a4d | 4222 | * | | |1 = When this bit is set to 1 prior to address or data received, an acknowledged will be returned during the acknowledge clock pulse on the SCL line when. |
AnnaBridge | 174:b96e65c34a4d | 4223 | * | | |a. A slave is acknowledging the address sent from master |
AnnaBridge | 174:b96e65c34a4d | 4224 | * | | |b. The receiver devices are acknowledging the data sent by transmitter. |
AnnaBridge | 174:b96e65c34a4d | 4225 | * |[2] |STOP |I2C STOP Control Bit |
AnnaBridge | 174:b96e65c34a4d | 4226 | * | | |In Master mode, set this bit to 1 to transmit a STOP condition to bus then the controller will check the bus condition if a STOP condition is detected and this bit will be cleared by hardware automatically. |
AnnaBridge | 174:b96e65c34a4d | 4227 | * | | |In Slave mode, set this bit to 1 to reset the controller to the defined "not addressed" Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 4228 | * | | |This means it is NO LONGER in the slave receiver mode to receive data from the master transmit device. |
AnnaBridge | 174:b96e65c34a4d | 4229 | * | | |0 = Will be cleared by hardware automatically if a STOP condition is detected. |
AnnaBridge | 174:b96e65c34a4d | 4230 | * | | |1 = Sends a STOP condition to bus in Master mode or reset the controller to "not addressed" in Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 4231 | * |[3] |START |I2C START Command |
AnnaBridge | 174:b96e65c34a4d | 4232 | * | | |Setting this bit to 1 to enter Master mode, the device sends a START or repeat START condition to bus when the bus is free and it will be cleared to 0 after the START command is active and the STATUS has been updated. |
AnnaBridge | 174:b96e65c34a4d | 4233 | * | | |0 = After START or repeat START is active. |
AnnaBridge | 174:b96e65c34a4d | 4234 | * | | |1 = Sends a START or repeat START condition to bus. |
AnnaBridge | 174:b96e65c34a4d | 4235 | * |[4] |I2C_STS |I2C Status |
AnnaBridge | 174:b96e65c34a4d | 4236 | * | | |When a new state is present in the I2CSTATUS register, this bit will be set automatically, and if the INTEN bit is set, the I2C interrupt is requested. |
AnnaBridge | 174:b96e65c34a4d | 4237 | * | | |It must be cleared by software by writing one to this bit and the I2C protocol function will go ahead until the STOP is active or the IPEN is disabled. |
AnnaBridge | 174:b96e65c34a4d | 4238 | * | | |0 = I2C's Status disabled and the I2C protocol function will go ahead. |
AnnaBridge | 174:b96e65c34a4d | 4239 | * | | |1 = I2C's Status active. |
AnnaBridge | 174:b96e65c34a4d | 4240 | * |[7] |INTEN |Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4241 | * | | |0 = I2C interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4242 | * | | |1 = I2C interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4243 | */ |
AnnaBridge | 174:b96e65c34a4d | 4244 | __IO uint32_t CON; |
AnnaBridge | 174:b96e65c34a4d | 4245 | |
AnnaBridge | 174:b96e65c34a4d | 4246 | /** |
AnnaBridge | 174:b96e65c34a4d | 4247 | * INTSTS |
AnnaBridge | 174:b96e65c34a4d | 4248 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4249 | * Offset: 0x04 I2C Interrupt Status Register |
AnnaBridge | 174:b96e65c34a4d | 4250 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4251 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4252 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4253 | * |[0] |INTSTS |I2C STATUS's Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 4254 | * | | |When a new state is present in the I2CSTATUS register, this bit will be set automatically, and if INTEN bit is set, the I2C interrupt is requested. |
AnnaBridge | 174:b96e65c34a4d | 4255 | * | | |Software can write 1 to cleat this bit. |
AnnaBridge | 174:b96e65c34a4d | 4256 | * |[1] |TIF |Time-Out Status |
AnnaBridge | 174:b96e65c34a4d | 4257 | * | | |0 = No Time-out flag. Software can cleat this flag. |
AnnaBridge | 174:b96e65c34a4d | 4258 | * | | |1 = Time-Out flag active and it is set by hardware. It can interrupt CPU when INTEN bit is set. |
AnnaBridge | 174:b96e65c34a4d | 4259 | */ |
AnnaBridge | 174:b96e65c34a4d | 4260 | __IO uint32_t INTSTS; |
AnnaBridge | 174:b96e65c34a4d | 4261 | |
AnnaBridge | 174:b96e65c34a4d | 4262 | /** |
AnnaBridge | 174:b96e65c34a4d | 4263 | * STATUS |
AnnaBridge | 174:b96e65c34a4d | 4264 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4265 | * Offset: 0x08 I2C Status Register |
AnnaBridge | 174:b96e65c34a4d | 4266 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4267 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4268 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4269 | * |[7:0] |STATUS |I2C Status Register |
AnnaBridge | 174:b96e65c34a4d | 4270 | * | | |This is a read only register. |
AnnaBridge | 174:b96e65c34a4d | 4271 | * | | |The three least significant bits are always 0. |
AnnaBridge | 174:b96e65c34a4d | 4272 | * | | |The five most significant bits contain the status code. |
AnnaBridge | 174:b96e65c34a4d | 4273 | * | | |When each of these states is entered, a status interrupt and I2C_STS are requested (I2C_STS = 1 and STAINTSTS = 1). |
AnnaBridge | 174:b96e65c34a4d | 4274 | * | | |A valid status code is present in STATUS one machine cycle after I2C_STS is set by hardware and is still present one machine cycle after I2C_STS has been reset by software. |
AnnaBridge | 174:b96e65c34a4d | 4275 | * | | |In addition, states 00H stands for a 'Bus Error'. |
AnnaBridge | 174:b96e65c34a4d | 4276 | * | | |A 'Bus Error' occurs when a START or STOP condition is present at an illegal position in the formation frame. |
AnnaBridge | 174:b96e65c34a4d | 4277 | * | | |Example of illegal position: a data byte or an acknowledge bit is present during the serial transfer of an address byte. |
AnnaBridge | 174:b96e65c34a4d | 4278 | * | | |To recover I2C from bus error, STOP should be set and I2C_STS should be cleared to enter not addressed Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 4279 | * | | |Then clear STOP to release the bus and to wait new communication. |
AnnaBridge | 174:b96e65c34a4d | 4280 | * | | |I2C bus can not recognize stop condition during this action when bus error occurs. |
AnnaBridge | 174:b96e65c34a4d | 4281 | */ |
AnnaBridge | 174:b96e65c34a4d | 4282 | __I uint32_t STATUS; |
AnnaBridge | 174:b96e65c34a4d | 4283 | |
AnnaBridge | 174:b96e65c34a4d | 4284 | /** |
AnnaBridge | 174:b96e65c34a4d | 4285 | * DIV |
AnnaBridge | 174:b96e65c34a4d | 4286 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4287 | * Offset: 0x0C I2C clock divided Register |
AnnaBridge | 174:b96e65c34a4d | 4288 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4289 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4290 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4291 | * |[7:0] |CLK_DIV |I2C Clock Divider Control Register |
AnnaBridge | 174:b96e65c34a4d | 4292 | * | | |The I2C clock rate bits: Data Baud Rate of I2C = PCLK /( 4 x ( CLK_DIV + 1)). |
AnnaBridge | 174:b96e65c34a4d | 4293 | * | | |Note: the minimum value of CLK_DIV is 4. |
AnnaBridge | 174:b96e65c34a4d | 4294 | */ |
AnnaBridge | 174:b96e65c34a4d | 4295 | __IO uint32_t DIV; |
AnnaBridge | 174:b96e65c34a4d | 4296 | |
AnnaBridge | 174:b96e65c34a4d | 4297 | /** |
AnnaBridge | 174:b96e65c34a4d | 4298 | * TOUT |
AnnaBridge | 174:b96e65c34a4d | 4299 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4300 | * Offset: 0x10 I2C Time-out control Register |
AnnaBridge | 174:b96e65c34a4d | 4301 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4302 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4303 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4304 | * |[0] |TOUTEN |Time-Out Counter Enable/Disable |
AnnaBridge | 174:b96e65c34a4d | 4305 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4306 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4307 | * | | |When set this bit to enable, the 14 bits time-out counter will start counting when STAINTSTS is cleared. |
AnnaBridge | 174:b96e65c34a4d | 4308 | * | | |Setting flag STAINTSTS to high or the falling edge of I2C clock or stop signal will reset counter and re-start up counting after STAINTSTS is cleared. |
AnnaBridge | 174:b96e65c34a4d | 4309 | * |[1] |DIV4 |Time-Out Counter Input Clock Divider By 4 |
AnnaBridge | 174:b96e65c34a4d | 4310 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4311 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4312 | * | | |When this bit is set enabled, the Time-Out period is prolonging 4 times. |
AnnaBridge | 174:b96e65c34a4d | 4313 | */ |
AnnaBridge | 174:b96e65c34a4d | 4314 | __IO uint32_t TOUT; |
AnnaBridge | 174:b96e65c34a4d | 4315 | |
AnnaBridge | 174:b96e65c34a4d | 4316 | /** |
AnnaBridge | 174:b96e65c34a4d | 4317 | * DATA |
AnnaBridge | 174:b96e65c34a4d | 4318 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4319 | * Offset: 0x14 I2C DATA Register |
AnnaBridge | 174:b96e65c34a4d | 4320 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4321 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4322 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4323 | * |[7:0] |DATA |I2C Data Register |
AnnaBridge | 174:b96e65c34a4d | 4324 | * | | |The DATA contains a byte of serial data to be transmitted or a byte which has just been received. |
AnnaBridge | 174:b96e65c34a4d | 4325 | * | | |The user can read from or write to this 8-bit I2CDATA register directly while it is not in the process of shifting a byte. |
AnnaBridge | 174:b96e65c34a4d | 4326 | * | | |This occurs when the serial interrupt flag is set. |
AnnaBridge | 174:b96e65c34a4d | 4327 | * | | |Data in DATA remains stable as long as I2C_STS bit is set. |
AnnaBridge | 174:b96e65c34a4d | 4328 | * | | |While data is being shifted out, data on the bus is simultaneously being shifted in; The DATA always contains the last data byte present on the bus. |
AnnaBridge | 174:b96e65c34a4d | 4329 | * | | |Thus, in the event of arbitration lost, the transition from master transmitter to slave receiver is made with the correct data in DATA. |
AnnaBridge | 174:b96e65c34a4d | 4330 | * | | |DATA and the acknowledge bit form a 9-bit shift register, the acknowledge bit is controlled by the device hardware and cannot be accessed by the user. |
AnnaBridge | 174:b96e65c34a4d | 4331 | * | | |Serial data is shifted through the acknowledge bit into DATA on the rising edges of serial clock pulses on the SCL line. |
AnnaBridge | 174:b96e65c34a4d | 4332 | * | | |When a byte has been shifted into DATA, the serial data is available in DATA, and the acknowledge bit (ACK or NACK) is returned by the control logic during the ninth clock pulse. |
AnnaBridge | 174:b96e65c34a4d | 4333 | */ |
AnnaBridge | 174:b96e65c34a4d | 4334 | __IO uint32_t DATA; |
AnnaBridge | 174:b96e65c34a4d | 4335 | |
AnnaBridge | 174:b96e65c34a4d | 4336 | /** |
AnnaBridge | 174:b96e65c34a4d | 4337 | * SADDR0 |
AnnaBridge | 174:b96e65c34a4d | 4338 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4339 | * Offset: 0x18 I2C Slave address Register0 |
AnnaBridge | 174:b96e65c34a4d | 4340 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4341 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4342 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4343 | * |[0] |GCALL |General Call Function |
AnnaBridge | 174:b96e65c34a4d | 4344 | * | | |The I2C controller supports the "General Call" function. |
AnnaBridge | 174:b96e65c34a4d | 4345 | * | | |If the GCALL bit is set, the controller will respond to General Call address (00H). |
AnnaBridge | 174:b96e65c34a4d | 4346 | * | | |When GCALL bit is set, the controller is in Slave mode, it can receive the general call address by 00H after Master send general call address to the I2C bus, then it will follow status of GCALL mode. |
AnnaBridge | 174:b96e65c34a4d | 4347 | * | | |If it is in Master mode, the ACK bit must be cleared when it will send general call address of 00H to I2C bus. |
AnnaBridge | 174:b96e65c34a4d | 4348 | * | | |0 = General Call Function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4349 | * | | |1 = General Call Function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4350 | * |[7:1] |SADDR |I2C Salve Address Register |
AnnaBridge | 174:b96e65c34a4d | 4351 | * | | |The content of this register is irrelevant when the device is in Master mode. |
AnnaBridge | 174:b96e65c34a4d | 4352 | * | | |In the Slave mode, the seven most significant bits must be loaded with the device's own address. |
AnnaBridge | 174:b96e65c34a4d | 4353 | * | | |The device will react if either of the address is matched. |
AnnaBridge | 174:b96e65c34a4d | 4354 | */ |
AnnaBridge | 174:b96e65c34a4d | 4355 | __IO uint32_t SADDR0; |
AnnaBridge | 174:b96e65c34a4d | 4356 | |
AnnaBridge | 174:b96e65c34a4d | 4357 | /** |
AnnaBridge | 174:b96e65c34a4d | 4358 | * SADDR1 |
AnnaBridge | 174:b96e65c34a4d | 4359 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4360 | * Offset: 0x1C I2C Slave address Register1 |
AnnaBridge | 174:b96e65c34a4d | 4361 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4362 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4363 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4364 | * |[0] |GCALL |General Call Function |
AnnaBridge | 174:b96e65c34a4d | 4365 | * | | |The I2C controller supports the "General Call" function. |
AnnaBridge | 174:b96e65c34a4d | 4366 | * | | |If the GCALL bit is set, the controller will respond to General Call address (00H). |
AnnaBridge | 174:b96e65c34a4d | 4367 | * | | |When GCALL bit is set, the controller is in Slave mode, it can receive the general call address by 00H after Master send general call address to the I2C bus, then it will follow status of GCALL mode. |
AnnaBridge | 174:b96e65c34a4d | 4368 | * | | |If it is in Master mode, the ACK bit must be cleared when it will send general call address of 00H to I2C bus. |
AnnaBridge | 174:b96e65c34a4d | 4369 | * | | |0 = General Call Function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4370 | * | | |1 = General Call Function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4371 | * |[7:1] |SADDR |I2C Salve Address Register |
AnnaBridge | 174:b96e65c34a4d | 4372 | * | | |The content of this register is irrelevant when the device is in Master mode. |
AnnaBridge | 174:b96e65c34a4d | 4373 | * | | |In the Slave mode, the seven most significant bits must be loaded with the device's own address. |
AnnaBridge | 174:b96e65c34a4d | 4374 | * | | |The device will react if either of the address is matched. |
AnnaBridge | 174:b96e65c34a4d | 4375 | */ |
AnnaBridge | 174:b96e65c34a4d | 4376 | __IO uint32_t SADDR1; |
AnnaBridge | 174:b96e65c34a4d | 4377 | uint32_t RESERVE0[2]; |
AnnaBridge | 174:b96e65c34a4d | 4378 | |
AnnaBridge | 174:b96e65c34a4d | 4379 | |
AnnaBridge | 174:b96e65c34a4d | 4380 | /** |
AnnaBridge | 174:b96e65c34a4d | 4381 | * SAMASK0 |
AnnaBridge | 174:b96e65c34a4d | 4382 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4383 | * Offset: 0x28 I2C Slave address Mask Register0 |
AnnaBridge | 174:b96e65c34a4d | 4384 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4385 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4386 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4387 | * |[7:1] |SAMASK |I2C Slave Address Mask Register |
AnnaBridge | 174:b96e65c34a4d | 4388 | * | | |0 = Mask disable (the received corresponding register bit should be exact the same as address register.). |
AnnaBridge | 174:b96e65c34a4d | 4389 | * | | |1 = Mask enable (the received corresponding address bit is don't care.). |
AnnaBridge | 174:b96e65c34a4d | 4390 | * | | |I2C bus controllers support multiple address recognition with two address mask registers. |
AnnaBridge | 174:b96e65c34a4d | 4391 | * | | |When the bit in the address mask register is set to b'1, it means the received corresponding address bit is don't-care. |
AnnaBridge | 174:b96e65c34a4d | 4392 | * | | |If the bit is set to b'0, that means the received corresponding register bit should be exact the same as address register. |
AnnaBridge | 174:b96e65c34a4d | 4393 | */ |
AnnaBridge | 174:b96e65c34a4d | 4394 | __IO uint32_t SAMASK0; |
AnnaBridge | 174:b96e65c34a4d | 4395 | |
AnnaBridge | 174:b96e65c34a4d | 4396 | /** |
AnnaBridge | 174:b96e65c34a4d | 4397 | * SAMASK1 |
AnnaBridge | 174:b96e65c34a4d | 4398 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4399 | * Offset: 0x2C I2C Slave address Mask Register1 |
AnnaBridge | 174:b96e65c34a4d | 4400 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4401 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4402 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4403 | * |[7:1] |SAMASK |I2C Slave Address Mask Register |
AnnaBridge | 174:b96e65c34a4d | 4404 | * | | |0 = Mask disable (the received corresponding register bit should be exact the same as address register.). |
AnnaBridge | 174:b96e65c34a4d | 4405 | * | | |1 = Mask enable (the received corresponding address bit is don't care.). |
AnnaBridge | 174:b96e65c34a4d | 4406 | * | | |I2C bus controllers support multiple address recognition with two address mask registers. |
AnnaBridge | 174:b96e65c34a4d | 4407 | * | | |When the bit in the address mask register is set to b'1, it means the received corresponding address bit is don't-care. |
AnnaBridge | 174:b96e65c34a4d | 4408 | * | | |If the bit is set to b'0, that means the received corresponding register bit should be exact the same as address register. |
AnnaBridge | 174:b96e65c34a4d | 4409 | */ |
AnnaBridge | 174:b96e65c34a4d | 4410 | __IO uint32_t SAMASK1; |
AnnaBridge | 174:b96e65c34a4d | 4411 | uint32_t RESERVE1[4]; |
AnnaBridge | 174:b96e65c34a4d | 4412 | |
AnnaBridge | 174:b96e65c34a4d | 4413 | |
AnnaBridge | 174:b96e65c34a4d | 4414 | /** |
AnnaBridge | 174:b96e65c34a4d | 4415 | * WKUPCON |
AnnaBridge | 174:b96e65c34a4d | 4416 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4417 | * Offset: 0x40 I2C Wake-up Control Register |
AnnaBridge | 174:b96e65c34a4d | 4418 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4419 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4420 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4421 | * |[0] |WKUPEN |I2C Wake-Up Function Enable |
AnnaBridge | 174:b96e65c34a4d | 4422 | * | | |0 = I2C wake-up function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4423 | * | | |1 = I2C wake-up function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4424 | */ |
AnnaBridge | 174:b96e65c34a4d | 4425 | __IO uint32_t WKUPCON; |
AnnaBridge | 174:b96e65c34a4d | 4426 | |
AnnaBridge | 174:b96e65c34a4d | 4427 | /** |
AnnaBridge | 174:b96e65c34a4d | 4428 | * WKUPSTS |
AnnaBridge | 174:b96e65c34a4d | 4429 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4430 | * Offset: 0x44 I2C Wake-up Status Register |
AnnaBridge | 174:b96e65c34a4d | 4431 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4432 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4433 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4434 | * |[0] |WKUPIF |Wake-Up Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 4435 | * | | |0 = Wake-up flag inactive. |
AnnaBridge | 174:b96e65c34a4d | 4436 | * | | |1 = Wake-up flag active. |
AnnaBridge | 174:b96e65c34a4d | 4437 | * | | |Software can write 1 to clear this flag |
AnnaBridge | 174:b96e65c34a4d | 4438 | */ |
AnnaBridge | 174:b96e65c34a4d | 4439 | __IO uint32_t WKUPSTS; |
AnnaBridge | 174:b96e65c34a4d | 4440 | |
AnnaBridge | 174:b96e65c34a4d | 4441 | } I2C_T; |
AnnaBridge | 174:b96e65c34a4d | 4442 | |
AnnaBridge | 174:b96e65c34a4d | 4443 | /** |
AnnaBridge | 174:b96e65c34a4d | 4444 | @addtogroup I2C_CONST I2C Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 4445 | Constant Definitions for I2C Controller |
AnnaBridge | 174:b96e65c34a4d | 4446 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 4447 | |
AnnaBridge | 174:b96e65c34a4d | 4448 | #define I2C_CON_IPEN_Pos (0) /*!< I2C_T::CON: IPEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4449 | #define I2C_CON_IPEN_Msk (0x1ul << I2C_CON_IPEN_Pos) /*!< I2C_T::CON: IPEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4450 | |
AnnaBridge | 174:b96e65c34a4d | 4451 | #define I2C_CON_ACK_Pos (1) /*!< I2C_T::CON: ACK Position */ |
AnnaBridge | 174:b96e65c34a4d | 4452 | #define I2C_CON_ACK_Msk (0x1ul << I2C_CON_ACK_Pos) /*!< I2C_T::CON: ACK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4453 | |
AnnaBridge | 174:b96e65c34a4d | 4454 | #define I2C_CON_STOP_Pos (2) /*!< I2C_T::CON: STOP Position */ |
AnnaBridge | 174:b96e65c34a4d | 4455 | #define I2C_CON_STOP_Msk (0x1ul << I2C_CON_STOP_Pos) /*!< I2C_T::CON: STOP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4456 | |
AnnaBridge | 174:b96e65c34a4d | 4457 | #define I2C_CON_START_Pos (3) /*!< I2C_T::CON: START Position */ |
AnnaBridge | 174:b96e65c34a4d | 4458 | #define I2C_CON_START_Msk (0x1ul << I2C_CON_START_Pos) /*!< I2C_T::CON: START Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4459 | |
AnnaBridge | 174:b96e65c34a4d | 4460 | #define I2C_CON_I2C_STS_Pos (4) /*!< I2C_T::CON: I2C_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 4461 | #define I2C_CON_I2C_STS_Msk (0x1ul << I2C_CON_I2C_STS_Pos) /*!< I2C_T::CON: I2C_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4462 | |
AnnaBridge | 174:b96e65c34a4d | 4463 | #define I2C_CON_INTEN_Pos (7) /*!< I2C_T::CON: INTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4464 | #define I2C_CON_INTEN_Msk (0x1ul << I2C_CON_INTEN_Pos) /*!< I2C_T::CON: INTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4465 | |
AnnaBridge | 174:b96e65c34a4d | 4466 | #define I2C_INTSTS_INTSTS_Pos (0) /*!< I2C_T::INTSTS: INTSTS Position */ |
AnnaBridge | 174:b96e65c34a4d | 4467 | #define I2C_INTSTS_INTSTS_Msk (0x1ul << I2C_INTSTS_INTSTS_Pos) /*!< I2C_T::INTSTS: INTSTS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4468 | |
AnnaBridge | 174:b96e65c34a4d | 4469 | #define I2C_INTSTS_TIF_Pos (1) /*!< I2C_T::INTSTS: TIF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4470 | #define I2C_INTSTS_TIF_Msk (0x1ul << I2C_INTSTS_TIF_Pos) /*!< I2C_T::INTSTS: TIF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4471 | |
AnnaBridge | 174:b96e65c34a4d | 4472 | #define I2C_STATUS_STATUS_Pos (0) /*!< I2C_T::STATUS: STATUS Position */ |
AnnaBridge | 174:b96e65c34a4d | 4473 | #define I2C_STATUS_STATUS_Msk (0xfful << I2C_STATUS_STATUS_Pos) /*!< I2C_T::STATUS: STATUS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4474 | |
AnnaBridge | 174:b96e65c34a4d | 4475 | #define I2C_DIV_CLK_DIV_Pos (0) /*!< I2C_T::DIV: CLK_DIV Position */ |
AnnaBridge | 174:b96e65c34a4d | 4476 | #define I2C_DIV_CLK_DIV_Msk (0xfful << I2C_DIV_CLK_DIV_Pos) /*!< I2C_T::DIV: CLK_DIV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4477 | |
AnnaBridge | 174:b96e65c34a4d | 4478 | #define I2C_TOUT_TOUTEN_Pos (0) /*!< I2C_T::TOUT: TOUTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4479 | #define I2C_TOUT_TOUTEN_Msk (0x1ul << I2C_TOUT_TOUTEN_Pos) /*!< I2C_T::TOUT: TOUTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4480 | |
AnnaBridge | 174:b96e65c34a4d | 4481 | #define I2C_TOUT_DIV4_Pos (1) /*!< I2C_T::TOUT: DIV4 Position */ |
AnnaBridge | 174:b96e65c34a4d | 4482 | #define I2C_TOUT_DIV4_Msk (0x1ul << I2C_TOUT_DIV4_Pos) /*!< I2C_T::TOUT: DIV4 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4483 | |
AnnaBridge | 174:b96e65c34a4d | 4484 | #define I2C_DATA_DATA_Pos (0) /*!< I2C_T::DATA: DATA Position */ |
AnnaBridge | 174:b96e65c34a4d | 4485 | #define I2C_DATA_DATA_Msk (0xfful << I2C_DATA_DATA_Pos) /*!< I2C_T::DATA: DATA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4486 | |
AnnaBridge | 174:b96e65c34a4d | 4487 | #define I2C_SADDR0_GCALL_Pos (0) /*!< I2C_T::SADDR0: GCALL Position */ |
AnnaBridge | 174:b96e65c34a4d | 4488 | #define I2C_SADDR0_GCALL_Msk (0x1ul << I2C_SADDR0_GCALL_Pos) /*!< I2C_T::SADDR0: GCALL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4489 | |
AnnaBridge | 174:b96e65c34a4d | 4490 | #define I2C_SADDR0_SADDR_Pos (1) /*!< I2C_T::SADDR0: SADDR Position */ |
AnnaBridge | 174:b96e65c34a4d | 4491 | #define I2C_SADDR0_SADDR_Msk (0x7ful << I2C_SADDR0_SADDR_Pos) /*!< I2C_T::SADDR0: SADDR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4492 | |
AnnaBridge | 174:b96e65c34a4d | 4493 | #define I2C_SADDR1_GCALL_Pos (0) /*!< I2C_T::SADDR1: GCALL Position */ |
AnnaBridge | 174:b96e65c34a4d | 4494 | #define I2C_SADDR1_GCALL_Msk (0x1ul << I2C_SADDR1_GCALL_Pos) /*!< I2C_T::SADDR1: GCALL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4495 | |
AnnaBridge | 174:b96e65c34a4d | 4496 | #define I2C_SADDR1_SADDR_Pos (1) /*!< I2C_T::SADDR1: SADDR Position */ |
AnnaBridge | 174:b96e65c34a4d | 4497 | #define I2C_SADDR1_SADDR_Msk (0x7ful << I2C_SADDR1_SADDR_Pos) /*!< I2C_T::SADDR1: SADDR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4498 | |
AnnaBridge | 174:b96e65c34a4d | 4499 | #define I2C_SAMASK0_SAMASK_Pos (1) /*!< I2C_T::SAMASK0: SAMASK Position */ |
AnnaBridge | 174:b96e65c34a4d | 4500 | #define I2C_SAMASK0_SAMASK_Msk (0x7ful << I2C_SAMASK0_SAMASK_Pos) /*!< I2C_T::SAMASK0: SAMASK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4501 | |
AnnaBridge | 174:b96e65c34a4d | 4502 | #define I2C_SAMASK1_SAMASK_Pos (1) /*!< I2C_T::SAMASK1: SAMASK Position */ |
AnnaBridge | 174:b96e65c34a4d | 4503 | #define I2C_SAMASK1_SAMASK_Msk (0x7ful << I2C_SAMASK1_SAMASK_Pos) /*!< I2C_T::SAMASK1: SAMASK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4504 | |
AnnaBridge | 174:b96e65c34a4d | 4505 | #define I2C_WKUPCON_WKUPEN_Pos (0) /*!< I2C_T::WKUPCON: WKUPEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4506 | #define I2C_WKUPCON_WKUPEN_Msk (0x1ul << I2C_WKUPCON_WKUPEN_Pos) /*!< I2C_T::WKUPCON: WKUPEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4507 | |
AnnaBridge | 174:b96e65c34a4d | 4508 | #define I2C_WKUPSTS_WKUPIF_Pos (0) /*!< I2C_T::WKUPSTS: WKUPIF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4509 | #define I2C_WKUPSTS_WKUPIF_Msk (0x1ul << I2C_WKUPSTS_WKUPIF_Pos) /*!< I2C_T::WKUPSTS: WKUPIF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4510 | |
AnnaBridge | 174:b96e65c34a4d | 4511 | /**@}*/ /* I2C_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 4512 | /**@}*/ /* end of I2C register group */ |
AnnaBridge | 174:b96e65c34a4d | 4513 | |
AnnaBridge | 174:b96e65c34a4d | 4514 | |
AnnaBridge | 174:b96e65c34a4d | 4515 | /*---------------------- I2S Interface Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 4516 | /** |
AnnaBridge | 174:b96e65c34a4d | 4517 | @addtogroup I2S I2S Interface Controller(I2S) |
AnnaBridge | 174:b96e65c34a4d | 4518 | Memory Mapped Structure for I2S Controller |
AnnaBridge | 174:b96e65c34a4d | 4519 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 4520 | |
AnnaBridge | 174:b96e65c34a4d | 4521 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 4522 | |
AnnaBridge | 174:b96e65c34a4d | 4523 | |
AnnaBridge | 174:b96e65c34a4d | 4524 | /** |
AnnaBridge | 174:b96e65c34a4d | 4525 | * CTRL |
AnnaBridge | 174:b96e65c34a4d | 4526 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4527 | * Offset: 0x00 I2S Control Register |
AnnaBridge | 174:b96e65c34a4d | 4528 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4529 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4530 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4531 | * |[0] |I2SEN |I2S Controller Enable |
AnnaBridge | 174:b96e65c34a4d | 4532 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4533 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4534 | * |[1] |TXEN |Transmit Enable |
AnnaBridge | 174:b96e65c34a4d | 4535 | * | | |0 = Data transmitting Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4536 | * | | |1 = Data transmitting Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4537 | * |[2] |RXEN |Receive Enable |
AnnaBridge | 174:b96e65c34a4d | 4538 | * | | |0 = Data receiving Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4539 | * | | |1 = Data receiving Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4540 | * |[3] |MUTE |Transmitting Mute Enable |
AnnaBridge | 174:b96e65c34a4d | 4541 | * | | |0 = Transmit data in buffer to channel. |
AnnaBridge | 174:b96e65c34a4d | 4542 | * | | |1 = Transmit '0' to channel. |
AnnaBridge | 174:b96e65c34a4d | 4543 | * |[5:4] |WORDWIDTH |Word Width |
AnnaBridge | 174:b96e65c34a4d | 4544 | * | | |00 = Data is 8 bit. |
AnnaBridge | 174:b96e65c34a4d | 4545 | * | | |01 = Data is 16 bit. |
AnnaBridge | 174:b96e65c34a4d | 4546 | * | | |10 = Data is 24 bit. |
AnnaBridge | 174:b96e65c34a4d | 4547 | * | | |11 = Data is 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 4548 | * |[6] |MONO |Monaural Data |
AnnaBridge | 174:b96e65c34a4d | 4549 | * | | |0 = Data is stereo format. |
AnnaBridge | 174:b96e65c34a4d | 4550 | * | | |1 = Data is monaural format and gets the right channel data from I2S bus when this mode is enabled. |
AnnaBridge | 174:b96e65c34a4d | 4551 | * |[7] |FORMAT |Data Format |
AnnaBridge | 174:b96e65c34a4d | 4552 | * | | |0 = I2S data format. |
AnnaBridge | 174:b96e65c34a4d | 4553 | * | | |1 = MSB justified data format. |
AnnaBridge | 174:b96e65c34a4d | 4554 | * |[8] |SLAVE |Slave Mode |
AnnaBridge | 174:b96e65c34a4d | 4555 | * | | |I2S can operate as master or Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 4556 | * | | |For Master mode, I2S_BCLK and I2S_LRCLK pins are output mode and also outputs I2S_BCLK and I2S_LRCLK signals to the audio CODEC. |
AnnaBridge | 174:b96e65c34a4d | 4557 | * | | |When act as Slave mode, I2S_BCLK and I2S_LRCLK pins are input mode and I2S_BCLK and I2S_LRCLK signals are received from the outer audio CODEC chip. |
AnnaBridge | 174:b96e65c34a4d | 4558 | * | | |0 = Master mode. |
AnnaBridge | 174:b96e65c34a4d | 4559 | * | | |1 = Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 4560 | * |[11:9] |TXTH |Transmit FIFO Threshold Level |
AnnaBridge | 174:b96e65c34a4d | 4561 | * | | |If remain data word (32 bits) in transmitting FIFO is the same or less than threshold level then TXTHF flag is set. |
AnnaBridge | 174:b96e65c34a4d | 4562 | * | | |000 = 1 word data in transmitting FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4563 | * | | |001 = 2 word data in transmitting FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4564 | * | | |010 = 3 word data in transmitting FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4565 | * | | |011 = 4 word data in transmitting FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4566 | * | | |100 = 5 word data in transmitting FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4567 | * | | |101 = 6 word data in transmitting FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4568 | * | | |110 = 7 word data in transmitting FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4569 | * | | |111 = 8 word data in transmitting FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4570 | * |[14:12] |RXTH |Receiving FIFO Threshold Level |
AnnaBridge | 174:b96e65c34a4d | 4571 | * | | |When received data word(s) in buffer is equal to or higher than threshold level, the RXTHF flag is set. |
AnnaBridge | 174:b96e65c34a4d | 4572 | * | | |000 = 1 word data in receiving FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4573 | * | | |001 = 2 word data in receiving FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4574 | * | | |010 = 3 word data in receiving FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4575 | * | | |011 = 4 word data in receiving FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4576 | * | | |100 = 5 word data in receiving FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4577 | * | | |101 = 6 word data in receiving FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4578 | * | | |110 = 7 word data in receiving FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4579 | * | | |111 = 8 word data in receiving FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4580 | * |[15] |MCLKEN |Master Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 4581 | * | | |Enable master MCLK timing output to the external audio codec device. |
AnnaBridge | 174:b96e65c34a4d | 4582 | * | | |The output frequency is according to MCLK_DIV[2:0] in the I2S_CLKDIV register. |
AnnaBridge | 174:b96e65c34a4d | 4583 | * | | |0 = Master Clock Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4584 | * | | |1 = Master Clock Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4585 | * |[16] |RCHZCEN |Right Channel Zero Cross Detect Enable |
AnnaBridge | 174:b96e65c34a4d | 4586 | * | | |If this bit is set to "1", when right channel data sign bit is changed or next shift data bits are all zero then RZCF flag in I2S_STATUS register is set to "1". |
AnnaBridge | 174:b96e65c34a4d | 4587 | * | | |It works on transmitting mode only. |
AnnaBridge | 174:b96e65c34a4d | 4588 | * | | |0 = Right channel zero cross detection Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4589 | * | | |1 = Right channel zero cross detection Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4590 | * |[17] |LCHZCEN |Left Channel Zero Cross Detect Enable |
AnnaBridge | 174:b96e65c34a4d | 4591 | * | | |If this bit is set to "1", when left channel data sign bit is changed or next shift data bits are all zero then LZCF flag in I2S_STATUS register is set to "1". |
AnnaBridge | 174:b96e65c34a4d | 4592 | * | | |It works on transmitting mode only. |
AnnaBridge | 174:b96e65c34a4d | 4593 | * | | |0 = Left channel zero cross detection Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4594 | * | | |1 = Left channel zero cross detection Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4595 | * |[18] |CLR_TXFIFO|Clear Transmit FIFO |
AnnaBridge | 174:b96e65c34a4d | 4596 | * | | |Write "1" to clear transmitting FIFO, internal pointer is reset to FIFO start point, TX_LEVEL[3:0] returns to zero and transmitting FIFO becomes empty but data in transmit FIFO is not changed. |
AnnaBridge | 174:b96e65c34a4d | 4597 | * | | |This bit is cleared by hardware automatically, read it to return zero. |
AnnaBridge | 174:b96e65c34a4d | 4598 | * |[19] |CLR_RXFIFO|Clear Receiving FIFO |
AnnaBridge | 174:b96e65c34a4d | 4599 | * | | |Write "1" to clear receiving FIFO, internal pointer is reset to FIFO start point, and RX_LEVEL[3:0] returns to zero and receiving FIFO becomes empty. |
AnnaBridge | 174:b96e65c34a4d | 4600 | * | | |This bit is cleared by hardware automatically, and read it return zero. |
AnnaBridge | 174:b96e65c34a4d | 4601 | * |[20] |TXDMA |Enable Transmit DMA |
AnnaBridge | 174:b96e65c34a4d | 4602 | * | | |When TX DMA is enabled, I2S requests PDMA to transfer data from memory to transmitting FIFO if FIFO is not full |
AnnaBridge | 174:b96e65c34a4d | 4603 | * | | |0 = TX DMA Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4604 | * | | |1 = TX DMA Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4605 | * |[21] |RXDMA |Enable Receive DMA |
AnnaBridge | 174:b96e65c34a4d | 4606 | * | | |When RX DMA is enabled, I2S requests PDMA to transfer data from receiving FIFO to memory if FIFO is not empty. |
AnnaBridge | 174:b96e65c34a4d | 4607 | * | | |0 = RX DMA Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4608 | * | | |1 = RX DMA Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4609 | * |[23] |RXLCH |Receive Left Channel Enable |
AnnaBridge | 174:b96e65c34a4d | 4610 | * | | |When monaural format is selected (MONO = 1), I2S will receive right channel data if RXLCH is set to 0, and receive left channel data if RXLCH is set to 1. |
AnnaBridge | 174:b96e65c34a4d | 4611 | * | | |0 = Receives right channel data when monaural format is selected. |
AnnaBridge | 174:b96e65c34a4d | 4612 | * | | |1 = Receives left channel data when monaural format is selected. |
AnnaBridge | 174:b96e65c34a4d | 4613 | */ |
AnnaBridge | 174:b96e65c34a4d | 4614 | __IO uint32_t CTRL; |
AnnaBridge | 174:b96e65c34a4d | 4615 | |
AnnaBridge | 174:b96e65c34a4d | 4616 | /** |
AnnaBridge | 174:b96e65c34a4d | 4617 | * CLKDIV |
AnnaBridge | 174:b96e65c34a4d | 4618 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4619 | * Offset: 0x04 I2S Clock Divider Register |
AnnaBridge | 174:b96e65c34a4d | 4620 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4621 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4622 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4623 | * |[2:0] |MCLK_DIV |Master Clock Divider |
AnnaBridge | 174:b96e65c34a4d | 4624 | * | | |If the external crystal frequency is (2xMCLK_DIV)*256fs then software can program these bits to generate 256fs clock frequency to audio CODEC chip. |
AnnaBridge | 174:b96e65c34a4d | 4625 | * | | |If MCLK_DIV is set to "0", MCLK is the same as external clock input. |
AnnaBridge | 174:b96e65c34a4d | 4626 | * | | |For example, sampling rate is 48 kHz and the external crystal clock is 12.288 MHz, set MCLK_DIV=0. |
AnnaBridge | 174:b96e65c34a4d | 4627 | * | | |MCLK = I2SCLK/(2x(MCLK_DIV)). |
AnnaBridge | 174:b96e65c34a4d | 4628 | * |[15:8] |BCLK_DIV |Bit Clock Divider |
AnnaBridge | 174:b96e65c34a4d | 4629 | * | | |If I2S is operated in Master mode, bit clock is provided by this chip. |
AnnaBridge | 174:b96e65c34a4d | 4630 | * | | |Software can program these bits to generate sampling rate clock frequency. |
AnnaBridge | 174:b96e65c34a4d | 4631 | * | | |BCLK = I2SCLK /(2x(BCLK_DIV + 1)). |
AnnaBridge | 174:b96e65c34a4d | 4632 | */ |
AnnaBridge | 174:b96e65c34a4d | 4633 | __IO uint32_t CLKDIV; |
AnnaBridge | 174:b96e65c34a4d | 4634 | |
AnnaBridge | 174:b96e65c34a4d | 4635 | /** |
AnnaBridge | 174:b96e65c34a4d | 4636 | * INTEN |
AnnaBridge | 174:b96e65c34a4d | 4637 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4638 | * Offset: 0x08 I2S Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 4639 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4640 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4641 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4642 | * |[0] |RXUDFIE |Receiving FIFO Underflow Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4643 | * | | |Interrupt occurs if this bit is set to "1" and receiving FIFO underflow flag is set to "1". |
AnnaBridge | 174:b96e65c34a4d | 4644 | * | | |0 = Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4645 | * | | |1 = Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4646 | * |[1] |RXOVFIE |Receiving FIFO Overflow Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4647 | * | | |Interrupt occurs if this bit is set to "1" and receiving FIFO overflow flag is set to "1" |
AnnaBridge | 174:b96e65c34a4d | 4648 | * | | |0 = Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4649 | * | | |1 = Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4650 | * |[2] |RXTHIE |Receiving FIFO Threshold Level Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4651 | * | | |Interrupt occurs if this bit is set to "1" and data words in receiving FIFO is less than RXTH[2:0]. |
AnnaBridge | 174:b96e65c34a4d | 4652 | * | | |0 = Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4653 | * | | |1 = Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4654 | * |[8] |TXUDFIE |Transmitting FIFO Underflow Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4655 | * | | |Interrupt occurs if this bit is set to "1" and transmitting FIFO underflow flag is set to "1". |
AnnaBridge | 174:b96e65c34a4d | 4656 | * | | |0 = Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4657 | * | | |1 = Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4658 | * |[9] |TXOVFIE |Transmitting FIFO Overflow Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4659 | * | | |Interrupt occurs if this bit is set to "1" and transmitting FIFO overflow flag is set to "1" |
AnnaBridge | 174:b96e65c34a4d | 4660 | * | | |0 = Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4661 | * | | |1 = Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4662 | * |[10] |TXTHIE |Transmitting FIFO Threshold Level Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4663 | * | | |Interrupt occurs if this bit is set to "1" and data words in transmitting FIFO is less than TXTH[2:0]. |
AnnaBridge | 174:b96e65c34a4d | 4664 | * | | |0 = Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4665 | * | | |1 = Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4666 | * |[11] |RZCIE |Right Channel Zero Cross Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4667 | * | | |Interrupt occurs if this bit is set to "1" and right channel is zero crossing. |
AnnaBridge | 174:b96e65c34a4d | 4668 | * | | |0 = Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4669 | * | | |1 = Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4670 | * |[12] |LZCIE |Left Channel Zero Cross Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 4671 | * | | |Interrupt occurs if this bit is set to "1" and left channel is zero crossing. |
AnnaBridge | 174:b96e65c34a4d | 4672 | * | | |0 = Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 4673 | * | | |1 = Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 4674 | */ |
AnnaBridge | 174:b96e65c34a4d | 4675 | __IO uint32_t INTEN; |
AnnaBridge | 174:b96e65c34a4d | 4676 | |
AnnaBridge | 174:b96e65c34a4d | 4677 | /** |
AnnaBridge | 174:b96e65c34a4d | 4678 | * STATUS |
AnnaBridge | 174:b96e65c34a4d | 4679 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4680 | * Offset: 0x0C I2S Status Register |
AnnaBridge | 174:b96e65c34a4d | 4681 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4682 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4683 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4684 | * |[0] |I2SINT |I2S Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 4685 | * | | |0 = No I2S interrupt. |
AnnaBridge | 174:b96e65c34a4d | 4686 | * | | |1 = I2S interrupt occurred. |
AnnaBridge | 174:b96e65c34a4d | 4687 | * | | |It is wire-OR of I2STXINT and I2SRXINT bits. |
AnnaBridge | 174:b96e65c34a4d | 4688 | * | | |This bit is read only. |
AnnaBridge | 174:b96e65c34a4d | 4689 | * |[1] |I2SRXINT |I2S Receiving Interrupt |
AnnaBridge | 174:b96e65c34a4d | 4690 | * | | |0 = No receiving interrupt occurred. |
AnnaBridge | 174:b96e65c34a4d | 4691 | * | | |1 = Receiving interrupt occurred. |
AnnaBridge | 174:b96e65c34a4d | 4692 | * | | |This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 4693 | * |[2] |I2STXINT |I2S Transmit Interrupt |
AnnaBridge | 174:b96e65c34a4d | 4694 | * | | |0 = No transmit interrupt occurred. |
AnnaBridge | 174:b96e65c34a4d | 4695 | * | | |1 = Transmit interrupt occurred. |
AnnaBridge | 174:b96e65c34a4d | 4696 | * | | |This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 4697 | * |[3] |RIGHT |Right Channel |
AnnaBridge | 174:b96e65c34a4d | 4698 | * | | |This bit indicates the current transmitting data is belong to right channel |
AnnaBridge | 174:b96e65c34a4d | 4699 | * | | |0 = Left channel. |
AnnaBridge | 174:b96e65c34a4d | 4700 | * | | |1 = Right channel. |
AnnaBridge | 174:b96e65c34a4d | 4701 | * | | |This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 4702 | * |[8] |RXUDF |Receiving FIFO Underflow Flag |
AnnaBridge | 174:b96e65c34a4d | 4703 | * | | |Read the receiving FIFO when it is empty, this bit set to "1" indicate underflow occur. |
AnnaBridge | 174:b96e65c34a4d | 4704 | * | | |0 = No underflow occurred. |
AnnaBridge | 174:b96e65c34a4d | 4705 | * | | |1 = Underflow occurred. |
AnnaBridge | 174:b96e65c34a4d | 4706 | * | | |This bit is cleared by writing 1. |
AnnaBridge | 174:b96e65c34a4d | 4707 | * |[9] |RXOVF |Receiving FIFO Overflow Flag |
AnnaBridge | 174:b96e65c34a4d | 4708 | * | | |When the receiving FIFO is full and receiving hardware attempts to write data into receiving FIFO then this bit is set to "1". |
AnnaBridge | 174:b96e65c34a4d | 4709 | * | | |Data in 1st buffer is overwritten. |
AnnaBridge | 174:b96e65c34a4d | 4710 | * | | |0 = No overflow occurred. |
AnnaBridge | 174:b96e65c34a4d | 4711 | * | | |1 = Overflow occurred. |
AnnaBridge | 174:b96e65c34a4d | 4712 | * | | |This bit is cleared by writing 1. |
AnnaBridge | 174:b96e65c34a4d | 4713 | * |[10] |RXTHF |Receiving FIFO Threshold Flag |
AnnaBridge | 174:b96e65c34a4d | 4714 | * | | |When data word(s) in the receiving FIFO is equal to or higher than threshold value set in RXTH[2:0], the RXTHF bit becomes to "1". |
AnnaBridge | 174:b96e65c34a4d | 4715 | * | | |It keeps at "1" till RX_LEVEL[3:0] less than RXTH[1:0] after software reads data from the RXFIFO register. |
AnnaBridge | 174:b96e65c34a4d | 4716 | * | | |0 = Data word(s) in receiving FIFO is lower than threshold level. |
AnnaBridge | 174:b96e65c34a4d | 4717 | * | | |1 = Data word(s) in receiving FIFO is equal to or higher than threshold level. |
AnnaBridge | 174:b96e65c34a4d | 4718 | * | | |This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 4719 | * |[11] |RXFULL |Receiving FIFO Full |
AnnaBridge | 174:b96e65c34a4d | 4720 | * | | |This bit reflect data word number in the receiving FIFO is 8 |
AnnaBridge | 174:b96e65c34a4d | 4721 | * | | |0 = Not full. |
AnnaBridge | 174:b96e65c34a4d | 4722 | * | | |1 = Full. |
AnnaBridge | 174:b96e65c34a4d | 4723 | * | | |This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 4724 | * |[12] |RXEMPTY |Receiving FIFO Empty |
AnnaBridge | 174:b96e65c34a4d | 4725 | * | | |This bit reflect data word number in the receiving FIFO is zero |
AnnaBridge | 174:b96e65c34a4d | 4726 | * | | |0 = Empty. |
AnnaBridge | 174:b96e65c34a4d | 4727 | * | | |1 = Not empty. |
AnnaBridge | 174:b96e65c34a4d | 4728 | * | | |This bit is read only. |
AnnaBridge | 174:b96e65c34a4d | 4729 | * |[16] |TXUDF |Transmitting FIFO Underflow Flag |
AnnaBridge | 174:b96e65c34a4d | 4730 | * | | |When the transmitting FIFO is empty and shift logic hardware read data from the data FIFO causes this set to "1". |
AnnaBridge | 174:b96e65c34a4d | 4731 | * | | |0 = No underflow. |
AnnaBridge | 174:b96e65c34a4d | 4732 | * | | |1 = Underflow. |
AnnaBridge | 174:b96e65c34a4d | 4733 | * | | |This bit is cleared by writing 1. |
AnnaBridge | 174:b96e65c34a4d | 4734 | * |[17] |TXOVF |Transmit FIFO Overflow Flag |
AnnaBridge | 174:b96e65c34a4d | 4735 | * | | |Write data to the transmitting FIFO when it is full and this bit will set to "1" |
AnnaBridge | 174:b96e65c34a4d | 4736 | * | | |0 = No overflow. |
AnnaBridge | 174:b96e65c34a4d | 4737 | * | | |1 = Overflow. |
AnnaBridge | 174:b96e65c34a4d | 4738 | * | | |This bit is cleared by writing 1. |
AnnaBridge | 174:b96e65c34a4d | 4739 | * |[18] |TXTHF |Transmitting FIFO Threshold Flag |
AnnaBridge | 174:b96e65c34a4d | 4740 | * | | |When data word(s) in the transmitting FIFO is equal to or lower than threshold value set in TXTH[2:0],the TXTHF bit becomes to "1". |
AnnaBridge | 174:b96e65c34a4d | 4741 | * | | |It keeps at 1 till TX_LEVEL[3:0] is higher than TXTH[1:0] after software writes data into the TXFIFO register. |
AnnaBridge | 174:b96e65c34a4d | 4742 | * | | |0 = Data word(s) in transmitting FIFO is higher than threshold level. |
AnnaBridge | 174:b96e65c34a4d | 4743 | * | | |1 = Data word(s) in transmitting FIFO is equal to or lower than threshold level. |
AnnaBridge | 174:b96e65c34a4d | 4744 | * | | |This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 4745 | * |[19] |TXFULL |Transmitting FIFO Full |
AnnaBridge | 174:b96e65c34a4d | 4746 | * | | |This bit reflect data word number in the transmitting FIFO is 8 |
AnnaBridge | 174:b96e65c34a4d | 4747 | * | | |0 = Full. |
AnnaBridge | 174:b96e65c34a4d | 4748 | * | | |1 = Not full. |
AnnaBridge | 174:b96e65c34a4d | 4749 | * | | |This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 4750 | * |[20] |TXEMPTY |Transmitting FIFO Empty |
AnnaBridge | 174:b96e65c34a4d | 4751 | * | | |This bit reflect data word number in the transmitting FIFO is zero |
AnnaBridge | 174:b96e65c34a4d | 4752 | * | | |0 = Empty. |
AnnaBridge | 174:b96e65c34a4d | 4753 | * | | |1 = Not empty. |
AnnaBridge | 174:b96e65c34a4d | 4754 | * | | |This bit is read only. |
AnnaBridge | 174:b96e65c34a4d | 4755 | * |[21] |TXBUSY |Transmitting Busy |
AnnaBridge | 174:b96e65c34a4d | 4756 | * | | |This bit is cleared to 0 when all data in the transmitting FIFO and shift buffer is shifted out. |
AnnaBridge | 174:b96e65c34a4d | 4757 | * | | |Set this bit to 1 when 1st data is loading to shift buffer. |
AnnaBridge | 174:b96e65c34a4d | 4758 | * | | |0 = Transmit shift buffer is empty. |
AnnaBridge | 174:b96e65c34a4d | 4759 | * | | |1 = Transmit shift buffer is busy. |
AnnaBridge | 174:b96e65c34a4d | 4760 | * | | |This bit is read only. |
AnnaBridge | 174:b96e65c34a4d | 4761 | * |[22] |RZCF |Right Channel Zero Cross Flag |
AnnaBridge | 174:b96e65c34a4d | 4762 | * | | |It indicates the data sign of right channel next sample data is changed or all data bits are zero. |
AnnaBridge | 174:b96e65c34a4d | 4763 | * | | |0 = No zero cross. |
AnnaBridge | 174:b96e65c34a4d | 4764 | * | | |1 = Right channel zero cross is detected. |
AnnaBridge | 174:b96e65c34a4d | 4765 | * | | |This bit is cleared by writing 1. |
AnnaBridge | 174:b96e65c34a4d | 4766 | * |[23] |LZCF |Left Channel Zero Cross Flag |
AnnaBridge | 174:b96e65c34a4d | 4767 | * | | |It indicates the next sample data sign bit of left channel is changed or all data bits are zero. |
AnnaBridge | 174:b96e65c34a4d | 4768 | * | | |0 = No zero cross. |
AnnaBridge | 174:b96e65c34a4d | 4769 | * | | |1 = Left channel zero cross is detected. |
AnnaBridge | 174:b96e65c34a4d | 4770 | * | | |This bit is cleared by writing 1. |
AnnaBridge | 174:b96e65c34a4d | 4771 | * |[27:24] |RX_LEVEL |Receive FIFO Level |
AnnaBridge | 174:b96e65c34a4d | 4772 | * | | |These bits indicate the number of word(s) in the receiving FIFO |
AnnaBridge | 174:b96e65c34a4d | 4773 | * |[31:28] |TX_LEVEL |Transmitting FIFO Level |
AnnaBridge | 174:b96e65c34a4d | 4774 | * | | |These bits indicate the number of word(s) in the transmitting FIFO |
AnnaBridge | 174:b96e65c34a4d | 4775 | */ |
AnnaBridge | 174:b96e65c34a4d | 4776 | __IO uint32_t STATUS; |
AnnaBridge | 174:b96e65c34a4d | 4777 | |
AnnaBridge | 174:b96e65c34a4d | 4778 | /** |
AnnaBridge | 174:b96e65c34a4d | 4779 | * TXFIFO |
AnnaBridge | 174:b96e65c34a4d | 4780 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4781 | * Offset: 0x10 I2S Transmit FIFO Register |
AnnaBridge | 174:b96e65c34a4d | 4782 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4783 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4784 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4785 | * |[31:0] |TXFIFO |Transmitting FIFO Register |
AnnaBridge | 174:b96e65c34a4d | 4786 | * | | |I2S contains 8 words (8x32-bit) data buffer for data transmitting. |
AnnaBridge | 174:b96e65c34a4d | 4787 | * | | |Write data to this register in order to prepare data for transmitting. |
AnnaBridge | 174:b96e65c34a4d | 4788 | * | | |The remaining word number is indicated by TX_LEVEL[3:0] in the I2S_STATUS register. |
AnnaBridge | 174:b96e65c34a4d | 4789 | * | | |This register is write only. |
AnnaBridge | 174:b96e65c34a4d | 4790 | */ |
AnnaBridge | 174:b96e65c34a4d | 4791 | __O uint32_t TXFIFO; |
AnnaBridge | 174:b96e65c34a4d | 4792 | |
AnnaBridge | 174:b96e65c34a4d | 4793 | /** |
AnnaBridge | 174:b96e65c34a4d | 4794 | * RXFIFO |
AnnaBridge | 174:b96e65c34a4d | 4795 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4796 | * Offset: 0x14 I2S Receive FIFO Register |
AnnaBridge | 174:b96e65c34a4d | 4797 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4798 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4799 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4800 | * |[31:0] |RXFIFO |Receiving FIFO Register |
AnnaBridge | 174:b96e65c34a4d | 4801 | * | | |I2S contains 8 words (8x32-bit) data buffer for data receiving. |
AnnaBridge | 174:b96e65c34a4d | 4802 | * | | |Read this register to get data in FIFO. |
AnnaBridge | 174:b96e65c34a4d | 4803 | * | | |The remaining data word number is indicated by RX_LEVEL[3:0] in the I2S_STATUS register. |
AnnaBridge | 174:b96e65c34a4d | 4804 | * | | |This register is read only. |
AnnaBridge | 174:b96e65c34a4d | 4805 | */ |
AnnaBridge | 174:b96e65c34a4d | 4806 | __I uint32_t RXFIFO; |
AnnaBridge | 174:b96e65c34a4d | 4807 | |
AnnaBridge | 174:b96e65c34a4d | 4808 | } I2S_T; |
AnnaBridge | 174:b96e65c34a4d | 4809 | |
AnnaBridge | 174:b96e65c34a4d | 4810 | /** |
AnnaBridge | 174:b96e65c34a4d | 4811 | @addtogroup I2S_CONST I2S Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 4812 | Constant Definitions for I2S Controller |
AnnaBridge | 174:b96e65c34a4d | 4813 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 4814 | |
AnnaBridge | 174:b96e65c34a4d | 4815 | #define I2S_CTRL_I2SEN_Pos (0) /*!< I2S_T::CTRL: I2SEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4816 | #define I2S_CTRL_I2SEN_Msk (0x1ul << I2S_CTRL_I2SEN_Pos) /*!< I2S_T::CTRL: I2SEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4817 | |
AnnaBridge | 174:b96e65c34a4d | 4818 | #define I2S_CTRL_TXEN_Pos (1) /*!< I2S_T::CTRL: TXEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4819 | #define I2S_CTRL_TXEN_Msk (0x1ul << I2S_CTRL_TXEN_Pos) /*!< I2S_T::CTRL: TXEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4820 | |
AnnaBridge | 174:b96e65c34a4d | 4821 | #define I2S_CTRL_RXEN_Pos (2) /*!< I2S_T::CTRL: RXEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4822 | #define I2S_CTRL_RXEN_Msk (0x1ul << I2S_CTRL_RXEN_Pos) /*!< I2S_T::CTRL: RXEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4823 | |
AnnaBridge | 174:b96e65c34a4d | 4824 | #define I2S_CTRL_MUTE_Pos (3) /*!< I2S_T::CTRL: MUTE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4825 | #define I2S_CTRL_MUTE_Msk (0x1ul << I2S_CTRL_MUTE_Pos) /*!< I2S_T::CTRL: MUTE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4826 | |
AnnaBridge | 174:b96e65c34a4d | 4827 | #define I2S_CTRL_WORDWIDTH_Pos (4) /*!< I2S_T::CTRL: WORDWIDTH Position */ |
AnnaBridge | 174:b96e65c34a4d | 4828 | #define I2S_CTRL_WORDWIDTH_Msk (0x3ul << I2S_CTRL_WORDWIDTH_Pos) /*!< I2S_T::CTRL: WORDWIDTH Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4829 | |
AnnaBridge | 174:b96e65c34a4d | 4830 | #define I2S_CTRL_MONO_Pos (6) /*!< I2S_T::CTRL: MONO Position */ |
AnnaBridge | 174:b96e65c34a4d | 4831 | #define I2S_CTRL_MONO_Msk (0x1ul << I2S_CTRL_MONO_Pos) /*!< I2S_T::CTRL: MONO Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4832 | |
AnnaBridge | 174:b96e65c34a4d | 4833 | #define I2S_CTRL_FORMAT_Pos (7) /*!< I2S_T::CTRL: FORMAT Position */ |
AnnaBridge | 174:b96e65c34a4d | 4834 | #define I2S_CTRL_FORMAT_Msk (0x1ul << I2S_CTRL_FORMAT_Pos) /*!< I2S_T::CTRL: FORMAT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4835 | |
AnnaBridge | 174:b96e65c34a4d | 4836 | #define I2S_CTRL_SLAVE_Pos (8) /*!< I2S_T::CTRL: SLAVE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4837 | #define I2S_CTRL_SLAVE_Msk (0x1ul << I2S_CTRL_SLAVE_Pos) /*!< I2S_T::CTRL: SLAVE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4838 | |
AnnaBridge | 174:b96e65c34a4d | 4839 | #define I2S_CTRL_TXTH_Pos (9) /*!< I2S_T::CTRL: TXTH Position */ |
AnnaBridge | 174:b96e65c34a4d | 4840 | #define I2S_CTRL_TXTH_Msk (0x7ul << I2S_CTRL_TXTH_Pos) /*!< I2S_T::CTRL: TXTH Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4841 | |
AnnaBridge | 174:b96e65c34a4d | 4842 | #define I2S_CTRL_RXTH_Pos (12) /*!< I2S_T::CTRL: RXTH Position */ |
AnnaBridge | 174:b96e65c34a4d | 4843 | #define I2S_CTRL_RXTH_Msk (0x7ul << I2S_CTRL_RXTH_Pos) /*!< I2S_T::CTRL: RXTH Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4844 | |
AnnaBridge | 174:b96e65c34a4d | 4845 | #define I2S_CTRL_MCLKEN_Pos (15) /*!< I2S_T::CTRL: MCLKEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4846 | #define I2S_CTRL_MCLKEN_Msk (0x1ul << I2S_CTRL_MCLKEN_Pos) /*!< I2S_T::CTRL: MCLKEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4847 | |
AnnaBridge | 174:b96e65c34a4d | 4848 | #define I2S_CTRL_RCHZCEN_Pos (16) /*!< I2S_T::CTRL: RCHZCEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4849 | #define I2S_CTRL_RCHZCEN_Msk (0x1ul << I2S_CTRL_RCHZCEN_Pos) /*!< I2S_T::CTRL: RCHZCEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4850 | |
AnnaBridge | 174:b96e65c34a4d | 4851 | #define I2S_CTRL_LCHZCEN_Pos (17) /*!< I2S_T::CTRL: LCHZCEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 4852 | #define I2S_CTRL_LCHZCEN_Msk (0x1ul << I2S_CTRL_LCHZCEN_Pos) /*!< I2S_T::CTRL: LCHZCEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4853 | |
AnnaBridge | 174:b96e65c34a4d | 4854 | #define I2S_CTRL_CLR_TXFIFO_Pos (18) /*!< I2S_T::CTRL: CLR_TXFIFO Position */ |
AnnaBridge | 174:b96e65c34a4d | 4855 | #define I2S_CTRL_CLR_TXFIFO_Msk (0x1ul << I2S_CTRL_CLR_TXFIFO_Pos) /*!< I2S_T::CTRL: CLR_TXFIFO Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4856 | |
AnnaBridge | 174:b96e65c34a4d | 4857 | #define I2S_CTRL_CLR_RXFIFO_Pos (19) /*!< I2S_T::CTRL: CLR_RXFIFO Position */ |
AnnaBridge | 174:b96e65c34a4d | 4858 | #define I2S_CTRL_CLR_RXFIFO_Msk (0x1ul << I2S_CTRL_CLR_RXFIFO_Pos) /*!< I2S_T::CTRL: CLR_RXFIFO Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4859 | |
AnnaBridge | 174:b96e65c34a4d | 4860 | #define I2S_CTRL_TXDMA_Pos (20) /*!< I2S_T::CTRL: TXDMA Position */ |
AnnaBridge | 174:b96e65c34a4d | 4861 | #define I2S_CTRL_TXDMA_Msk (0x1ul << I2S_CTRL_TXDMA_Pos) /*!< I2S_T::CTRL: TXDMA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4862 | |
AnnaBridge | 174:b96e65c34a4d | 4863 | #define I2S_CTRL_RXDMA_Pos (21) /*!< I2S_T::CTRL: RXDMA Position */ |
AnnaBridge | 174:b96e65c34a4d | 4864 | #define I2S_CTRL_RXDMA_Msk (0x1ul << I2S_CTRL_RXDMA_Pos) /*!< I2S_T::CTRL: RXDMA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4865 | |
AnnaBridge | 174:b96e65c34a4d | 4866 | #define I2S_CTRL_RXLCH_Pos (23) /*!< I2S_T::CTRL: RXLCH Position */ |
AnnaBridge | 174:b96e65c34a4d | 4867 | #define I2S_CTRL_RXLCH_Msk (0x1ul << I2S_CTRL_RXLCH_Pos) /*!< I2S_T::CTRL: RXLCH Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4868 | |
AnnaBridge | 174:b96e65c34a4d | 4869 | #define I2S_CLKDIV_MCLK_DIV_Pos (0) /*!< I2S_T::CLKDIV: MCLK_DIV Position */ |
AnnaBridge | 174:b96e65c34a4d | 4870 | #define I2S_CLKDIV_MCLK_DIV_Msk (0x7ul << I2S_CLKDIV_MCLK_DIV_Pos) /*!< I2S_T::CLKDIV: MCLK_DIV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4871 | |
AnnaBridge | 174:b96e65c34a4d | 4872 | #define I2S_CLKDIV_BCLK_DIV_Pos (8) /*!< I2S_T::CLKDIV: BCLK_DIV Position */ |
AnnaBridge | 174:b96e65c34a4d | 4873 | #define I2S_CLKDIV_BCLK_DIV_Msk (0xfful << I2S_CLKDIV_BCLK_DIV_Pos) /*!< I2S_T::CLKDIV: BCLK_DIV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4874 | |
AnnaBridge | 174:b96e65c34a4d | 4875 | #define I2S_INTEN_RXUDFIE_Pos (0) /*!< I2S_T::INTEN: RXUDFIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4876 | #define I2S_INTEN_RXUDFIE_Msk (0x1ul << I2S_INTEN_RXUDFIE_Pos) /*!< I2S_T::INTEN: RXUDFIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4877 | |
AnnaBridge | 174:b96e65c34a4d | 4878 | #define I2S_INTEN_RXOVFIE_Pos (1) /*!< I2S_T::INTEN: RXOVFIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4879 | #define I2S_INTEN_RXOVFIE_Msk (0x1ul << I2S_INTEN_RXOVFIE_Pos) /*!< I2S_T::INTEN: RXOVFIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4880 | |
AnnaBridge | 174:b96e65c34a4d | 4881 | #define I2S_INTEN_RXTHIE_Pos (2) /*!< I2S_T::INTEN: RXTHIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4882 | #define I2S_INTEN_RXTHIE_Msk (0x1ul << I2S_INTEN_RXTHIE_Pos) /*!< I2S_T::INTEN: RXTHIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4883 | |
AnnaBridge | 174:b96e65c34a4d | 4884 | #define I2S_INTEN_TXUDFIE_Pos (8) /*!< I2S_T::INTEN: TXUDFIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4885 | #define I2S_INTEN_TXUDFIE_Msk (0x1ul << I2S_INTEN_TXUDFIE_Pos) /*!< I2S_T::INTEN: TXUDFIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4886 | |
AnnaBridge | 174:b96e65c34a4d | 4887 | #define I2S_INTEN_TXOVFIE_Pos (9) /*!< I2S_T::INTEN: TXOVFIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4888 | #define I2S_INTEN_TXOVFIE_Msk (0x1ul << I2S_INTEN_TXOVFIE_Pos) /*!< I2S_T::INTEN: TXOVFIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4889 | |
AnnaBridge | 174:b96e65c34a4d | 4890 | #define I2S_INTEN_TXTHIE_Pos (10) /*!< I2S_T::INTEN: TXTHIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4891 | #define I2S_INTEN_TXTHIE_Msk (0x1ul << I2S_INTEN_TXTHIE_Pos) /*!< I2S_T::INTEN: TXTHIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4892 | |
AnnaBridge | 174:b96e65c34a4d | 4893 | #define I2S_INTEN_RZCIE_Pos (11) /*!< I2S_T::INTEN: RZCIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4894 | #define I2S_INTEN_RZCIE_Msk (0x1ul << I2S_INTEN_RZCIE_Pos) /*!< I2S_T::INTEN: RZCIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4895 | |
AnnaBridge | 174:b96e65c34a4d | 4896 | #define I2S_INTEN_LZCIE_Pos (12) /*!< I2S_T::INTEN: LZCIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 4897 | #define I2S_INTEN_LZCIE_Msk (0x1ul << I2S_INTEN_LZCIE_Pos) /*!< I2S_T::INTEN: LZCIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4898 | |
AnnaBridge | 174:b96e65c34a4d | 4899 | #define I2S_STATUS_I2SINT_Pos (0) /*!< I2S_T::STATUS: I2SINT Position */ |
AnnaBridge | 174:b96e65c34a4d | 4900 | #define I2S_STATUS_I2SINT_Msk (0x1ul << I2S_STATUS_I2SINT_Pos) /*!< I2S_T::STATUS: I2SINT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4901 | |
AnnaBridge | 174:b96e65c34a4d | 4902 | #define I2S_STATUS_I2SRXINT_Pos (1) /*!< I2S_T::STATUS: I2SRXINT Position */ |
AnnaBridge | 174:b96e65c34a4d | 4903 | #define I2S_STATUS_I2SRXINT_Msk (0x1ul << I2S_STATUS_I2SRXINT_Pos) /*!< I2S_T::STATUS: I2SRXINT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4904 | |
AnnaBridge | 174:b96e65c34a4d | 4905 | #define I2S_STATUS_I2STXINT_Pos (2) /*!< I2S_T::STATUS: I2STXINT Position */ |
AnnaBridge | 174:b96e65c34a4d | 4906 | #define I2S_STATUS_I2STXINT_Msk (0x1ul << I2S_STATUS_I2STXINT_Pos) /*!< I2S_T::STATUS: I2STXINT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4907 | |
AnnaBridge | 174:b96e65c34a4d | 4908 | #define I2S_STATUS_RIGHT_Pos (3) /*!< I2S_T::STATUS: RIGHT Position */ |
AnnaBridge | 174:b96e65c34a4d | 4909 | #define I2S_STATUS_RIGHT_Msk (0x1ul << I2S_STATUS_RIGHT_Pos) /*!< I2S_T::STATUS: RIGHT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4910 | |
AnnaBridge | 174:b96e65c34a4d | 4911 | #define I2S_STATUS_RXUDF_Pos (8) /*!< I2S_T::STATUS: RXUDF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4912 | #define I2S_STATUS_RXUDF_Msk (0x1ul << I2S_STATUS_RXUDF_Pos) /*!< I2S_T::STATUS: RXUDF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4913 | |
AnnaBridge | 174:b96e65c34a4d | 4914 | #define I2S_STATUS_RXOVF_Pos (9) /*!< I2S_T::STATUS: RXOVF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4915 | #define I2S_STATUS_RXOVF_Msk (0x1ul << I2S_STATUS_RXOVF_Pos) /*!< I2S_T::STATUS: RXOVF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4916 | |
AnnaBridge | 174:b96e65c34a4d | 4917 | #define I2S_STATUS_RXTHF_Pos (10) /*!< I2S_T::STATUS: RXTHF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4918 | #define I2S_STATUS_RXTHF_Msk (0x1ul << I2S_STATUS_RXTHF_Pos) /*!< I2S_T::STATUS: RXTHF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4919 | |
AnnaBridge | 174:b96e65c34a4d | 4920 | #define I2S_STATUS_RXFULL_Pos (11) /*!< I2S_T::STATUS: RXFULL Position */ |
AnnaBridge | 174:b96e65c34a4d | 4921 | #define I2S_STATUS_RXFULL_Msk (0x1ul << I2S_STATUS_RXFULL_Pos) /*!< I2S_T::STATUS: RXFULL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4922 | |
AnnaBridge | 174:b96e65c34a4d | 4923 | #define I2S_STATUS_RXEMPTY_Pos (12) /*!< I2S_T::STATUS: RXEMPTY Position */ |
AnnaBridge | 174:b96e65c34a4d | 4924 | #define I2S_STATUS_RXEMPTY_Msk (0x1ul << I2S_STATUS_RXEMPTY_Pos) /*!< I2S_T::STATUS: RXEMPTY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4925 | |
AnnaBridge | 174:b96e65c34a4d | 4926 | #define I2S_STATUS_TXUDF_Pos (16) /*!< I2S_T::STATUS: TXUDF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4927 | #define I2S_STATUS_TXUDF_Msk (0x1ul << I2S_STATUS_TXUDF_Pos) /*!< I2S_T::STATUS: TXUDF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4928 | |
AnnaBridge | 174:b96e65c34a4d | 4929 | #define I2S_STATUS_TXOVF_Pos (17) /*!< I2S_T::STATUS: TXOVF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4930 | #define I2S_STATUS_TXOVF_Msk (0x1ul << I2S_STATUS_TXOVF_Pos) /*!< I2S_T::STATUS: TXOVF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4931 | |
AnnaBridge | 174:b96e65c34a4d | 4932 | #define I2S_STATUS_TXTHF_Pos (18) /*!< I2S_T::STATUS: TXTHF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4933 | #define I2S_STATUS_TXTHF_Msk (0x1ul << I2S_STATUS_TXTHF_Pos) /*!< I2S_T::STATUS: TXTHF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4934 | |
AnnaBridge | 174:b96e65c34a4d | 4935 | #define I2S_STATUS_TXFULL_Pos (19) /*!< I2S_T::STATUS: TXFULL Position */ |
AnnaBridge | 174:b96e65c34a4d | 4936 | #define I2S_STATUS_TXFULL_Msk (0x1ul << I2S_STATUS_TXFULL_Pos) /*!< I2S_T::STATUS: TXFULL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4937 | |
AnnaBridge | 174:b96e65c34a4d | 4938 | #define I2S_STATUS_TXEMPTY_Pos (20) /*!< I2S_T::STATUS: TXEMPTY Position */ |
AnnaBridge | 174:b96e65c34a4d | 4939 | #define I2S_STATUS_TXEMPTY_Msk (0x1ul << I2S_STATUS_TXEMPTY_Pos) /*!< I2S_T::STATUS: TXEMPTY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4940 | |
AnnaBridge | 174:b96e65c34a4d | 4941 | #define I2S_STATUS_TXBUSY_Pos (21) /*!< I2S_T::STATUS: TXBUSY Position */ |
AnnaBridge | 174:b96e65c34a4d | 4942 | #define I2S_STATUS_TXBUSY_Msk (0x1ul << I2S_STATUS_TXBUSY_Pos) /*!< I2S_T::STATUS: TXBUSY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4943 | |
AnnaBridge | 174:b96e65c34a4d | 4944 | #define I2S_STATUS_RZCF_Pos (22) /*!< I2S_T::STATUS: RZCF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4945 | #define I2S_STATUS_RZCF_Msk (0x1ul << I2S_STATUS_RZCF_Pos) /*!< I2S_T::STATUS: RZCF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4946 | |
AnnaBridge | 174:b96e65c34a4d | 4947 | #define I2S_STATUS_LZCF_Pos (23) /*!< I2S_T::STATUS: LZCF Position */ |
AnnaBridge | 174:b96e65c34a4d | 4948 | #define I2S_STATUS_LZCF_Msk (0x1ul << I2S_STATUS_LZCF_Pos) /*!< I2S_T::STATUS: LZCF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4949 | |
AnnaBridge | 174:b96e65c34a4d | 4950 | #define I2S_STATUS_RX_LEVEL_Pos (24) /*!< I2S_T::STATUS: RX_LEVEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 4951 | #define I2S_STATUS_RX_LEVEL_Msk (0xful << I2S_STATUS_RX_LEVEL_Pos) /*!< I2S_T::STATUS: RX_LEVEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4952 | |
AnnaBridge | 174:b96e65c34a4d | 4953 | #define I2S_STATUS_TX_LEVEL_Pos (28) /*!< I2S_T::STATUS: TX_LEVEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 4954 | #define I2S_STATUS_TX_LEVEL_Msk (0xful << I2S_STATUS_TX_LEVEL_Pos) /*!< I2S_T::STATUS: TX_LEVEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4955 | |
AnnaBridge | 174:b96e65c34a4d | 4956 | #define I2S_TXFIFO_TXFIFO_Pos (0) /*!< I2S_T::TXFIFO: TXFIFO Position */ |
AnnaBridge | 174:b96e65c34a4d | 4957 | #define I2S_TXFIFO_TXFIFO_Msk (0xfffffffful << I2S_TXFIFO_TXFIFO_Pos) /*!< I2S_T::TXFIFO: TXFIFO Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4958 | |
AnnaBridge | 174:b96e65c34a4d | 4959 | #define I2S_RXFIFO_RXFIFO_Pos (0) /*!< I2S_T::RXFIFO: RXFIFO Position */ |
AnnaBridge | 174:b96e65c34a4d | 4960 | #define I2S_RXFIFO_RXFIFO_Msk (0xfffffffful << I2S_RXFIFO_RXFIFO_Pos) /*!< I2S_T::RXFIFO: RXFIFO Mask */ |
AnnaBridge | 174:b96e65c34a4d | 4961 | |
AnnaBridge | 174:b96e65c34a4d | 4962 | /**@}*/ /* I2S_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 4963 | /**@}*/ /* end of I2S register group */ |
AnnaBridge | 174:b96e65c34a4d | 4964 | |
AnnaBridge | 174:b96e65c34a4d | 4965 | |
AnnaBridge | 174:b96e65c34a4d | 4966 | /*---------------------- Interrupt Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 4967 | /** |
AnnaBridge | 174:b96e65c34a4d | 4968 | @addtogroup INT Interrupt Controller (INTR) |
AnnaBridge | 174:b96e65c34a4d | 4969 | Memory Mapped Structure for INT Controller |
AnnaBridge | 174:b96e65c34a4d | 4970 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 4971 | |
AnnaBridge | 174:b96e65c34a4d | 4972 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 4973 | |
AnnaBridge | 174:b96e65c34a4d | 4974 | |
AnnaBridge | 174:b96e65c34a4d | 4975 | /** |
AnnaBridge | 174:b96e65c34a4d | 4976 | * IRQ0SRC ~ IRQ31SRC |
AnnaBridge | 174:b96e65c34a4d | 4977 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4978 | * Offset: 0x00 ~0x7C IRQ0~IRQ31 Interrupt Source Identity |
AnnaBridge | 174:b96e65c34a4d | 4979 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4980 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4981 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4982 | * |[3:0] |INT_SRC |Interrupt Source |
AnnaBridge | 174:b96e65c34a4d | 4983 | * | | |Define the interrupt sources for interrupt event. |
AnnaBridge | 174:b96e65c34a4d | 4984 | */ |
AnnaBridge | 174:b96e65c34a4d | 4985 | __I uint32_t IRQSRC[32]; |
AnnaBridge | 174:b96e65c34a4d | 4986 | |
AnnaBridge | 174:b96e65c34a4d | 4987 | |
AnnaBridge | 174:b96e65c34a4d | 4988 | /** |
AnnaBridge | 174:b96e65c34a4d | 4989 | * NMI_SEL |
AnnaBridge | 174:b96e65c34a4d | 4990 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 4991 | * Offset: 0x80 NMI Source Interrupt Select Control Register |
AnnaBridge | 174:b96e65c34a4d | 4992 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 4993 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 4994 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 4995 | * |[4:0] |NMI_SEL |The NMI interrupt to Cortex-M0 can be selected from one of the interrupt[31:0] |
AnnaBridge | 174:b96e65c34a4d | 4996 | * | | |The NMI_SEL bit[4:0] used to select the NMI interrupt source |
AnnaBridge | 174:b96e65c34a4d | 4997 | */ |
AnnaBridge | 174:b96e65c34a4d | 4998 | __IO uint32_t NMI_SEL; |
AnnaBridge | 174:b96e65c34a4d | 4999 | |
AnnaBridge | 174:b96e65c34a4d | 5000 | /** |
AnnaBridge | 174:b96e65c34a4d | 5001 | * MCU_IRQ |
AnnaBridge | 174:b96e65c34a4d | 5002 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5003 | * Offset: 0x84 MCU IRQ Number Identity Register |
AnnaBridge | 174:b96e65c34a4d | 5004 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5005 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5006 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5007 | * |[31:0] |MCU_IRQ |MCU IRQ Source Register |
AnnaBridge | 174:b96e65c34a4d | 5008 | * | | |The IRQ collects all the interrupts from the peripherals and generates the synchronous interrupt to Cortex-M0 core. |
AnnaBridge | 174:b96e65c34a4d | 5009 | * | | |There are two modes to generate interrupt to Cortex-M0 - the normal mode and test mode. |
AnnaBridge | 174:b96e65c34a4d | 5010 | * | | |In Normal mode (control by NMI_SEL register bit [7] = 0) The MCU_IRQ collects all interrupts from each peripheral |
AnnaBridge | 174:b96e65c34a4d | 5011 | * | | |and synchronizes them and then interrupts the Cortex-M0. |
AnnaBridge | 174:b96e65c34a4d | 5012 | * | | |In Test mode, all the interrupts from peripheral are blocked, and the interrupts sent to |
AnnaBridge | 174:b96e65c34a4d | 5013 | * | | |MCU are replaced by set the bit31~bit0. |
AnnaBridge | 174:b96e65c34a4d | 5014 | * | | |When the IRQ[n] is 0, setting IRQ[n] to 1 will generate an interrupt to Cortex-M0 NVIC[n]. |
AnnaBridge | 174:b96e65c34a4d | 5015 | * | | |When the IRQ[n] is 1 (mean an interrupt is assert), setting 1 to the MCU_bit[n] will clear the interrupt and setting IRQ[n] 0 has no effect. |
AnnaBridge | 174:b96e65c34a4d | 5016 | */ |
AnnaBridge | 174:b96e65c34a4d | 5017 | __IO uint32_t MCU_IRQ; |
AnnaBridge | 174:b96e65c34a4d | 5018 | |
AnnaBridge | 174:b96e65c34a4d | 5019 | } INTR_T; |
AnnaBridge | 174:b96e65c34a4d | 5020 | |
AnnaBridge | 174:b96e65c34a4d | 5021 | /** |
AnnaBridge | 174:b96e65c34a4d | 5022 | @addtogroup INT_CONST INT Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 5023 | Constant Definitions for INT Controller |
AnnaBridge | 174:b96e65c34a4d | 5024 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 5025 | |
AnnaBridge | 174:b96e65c34a4d | 5026 | #define INTR_IRQSRC_INT_SRC_Pos (0) /*!< INTR_T::IRQSRC: INT_SRC Position */ |
AnnaBridge | 174:b96e65c34a4d | 5027 | #define INTR_IRQSRC_INT_SRC_Msk (0xful << INTR_IRQ0SRC_INT_SRC_Pos) /*!< INTR_T::IRQSRC: INT_SRC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5028 | |
AnnaBridge | 174:b96e65c34a4d | 5029 | #define INTR_NMI_SEL_NMISEL_Pos (0) /*!< INTR_T::NMI_SEL: NMISEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 5030 | #define INTR_NMI_SEL_NMISEL_Msk (0x1ful << INTR_NMI_SEL_NMISEL_Pos) /*!< INTR_T::NMI_SEL: NMISEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5031 | |
AnnaBridge | 174:b96e65c34a4d | 5032 | #define INTR_MCU_IRQ_MCU_IRQ_Pos (0) /*!< INTR_T::MCU_IRQ: MCU_IRQ Position */ |
AnnaBridge | 174:b96e65c34a4d | 5033 | #define INTR_MCU_IRQ_MCU_IRQ_Msk (0xfffffffful << INTR_MCU_IRQ_MCU_IRQ_Pos) /*!< INTR_T::MCU_IRQ: MCU_IRQ Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5034 | |
AnnaBridge | 174:b96e65c34a4d | 5035 | /**@}*/ /* INTR_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 5036 | /**@}*/ /* end of INTR register group */ |
AnnaBridge | 174:b96e65c34a4d | 5037 | |
AnnaBridge | 174:b96e65c34a4d | 5038 | |
AnnaBridge | 174:b96e65c34a4d | 5039 | /*---------------------- LCD Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 5040 | /** |
AnnaBridge | 174:b96e65c34a4d | 5041 | @addtogroup LCD LCD Controller(LCD) |
AnnaBridge | 174:b96e65c34a4d | 5042 | Memory Mapped Structure for LCD Controller |
AnnaBridge | 174:b96e65c34a4d | 5043 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 5044 | |
AnnaBridge | 174:b96e65c34a4d | 5045 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 5046 | |
AnnaBridge | 174:b96e65c34a4d | 5047 | |
AnnaBridge | 174:b96e65c34a4d | 5048 | /** |
AnnaBridge | 174:b96e65c34a4d | 5049 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 5050 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5051 | * Offset: 0x00 LCD Control Register |
AnnaBridge | 174:b96e65c34a4d | 5052 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5053 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5054 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5055 | * |[0] |EN |LCD Enable |
AnnaBridge | 174:b96e65c34a4d | 5056 | * | | |0 = LCD controller operation Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5057 | * | | |1 = LCD controller operation Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5058 | * |[3:1] |MUX |Mux Select |
AnnaBridge | 174:b96e65c34a4d | 5059 | * | | |000 = Static. |
AnnaBridge | 174:b96e65c34a4d | 5060 | * | | |001 = 1/2 duty. |
AnnaBridge | 174:b96e65c34a4d | 5061 | * | | |010 = 1/3 duty. |
AnnaBridge | 174:b96e65c34a4d | 5062 | * | | |011 = 1/4 duty. |
AnnaBridge | 174:b96e65c34a4d | 5063 | * | | |100 = 1/5 duty. |
AnnaBridge | 174:b96e65c34a4d | 5064 | * | | |101 = 1/6 duty. |
AnnaBridge | 174:b96e65c34a4d | 5065 | * | | |110 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 5066 | * | | |111 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 5067 | * | | |Note : User does not need to set PD_H_MFP bit field, but only to set the MUX bit field to switch LCD_SEG0 and LCD_SEG1 to LCD_COM4 and LCD_COM5 for Nano110 and Nano130 series. |
AnnaBridge | 174:b96e65c34a4d | 5068 | * |[6:4] |FREQ |LCD Frequency Selection |
AnnaBridge | 174:b96e65c34a4d | 5069 | * | | |000 = LCDCLK Divided by 32. |
AnnaBridge | 174:b96e65c34a4d | 5070 | * | | |001 = LCDCLK Divided by 64. |
AnnaBridge | 174:b96e65c34a4d | 5071 | * | | |010 = LCDCLK Divided by 96. |
AnnaBridge | 174:b96e65c34a4d | 5072 | * | | |011 = LCDCLK Divided by 128. |
AnnaBridge | 174:b96e65c34a4d | 5073 | * | | |100 = LCDCLK Divided by 192. |
AnnaBridge | 174:b96e65c34a4d | 5074 | * | | |101 = LCDCLK Divided by 256. |
AnnaBridge | 174:b96e65c34a4d | 5075 | * | | |110 = LCDCLK Divided by 384. |
AnnaBridge | 174:b96e65c34a4d | 5076 | * | | |111 = LCDCLK Divided by 512. |
AnnaBridge | 174:b96e65c34a4d | 5077 | * |[7] |BLINK |LCD Blinking Enable |
AnnaBridge | 174:b96e65c34a4d | 5078 | * | | |0 = Blinking Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5079 | * | | |1 = Blinking Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5080 | * |[8] |PDDISP_EN |Power Down Display Enable |
AnnaBridge | 174:b96e65c34a4d | 5081 | * | | |The LCD can be programmed to be displayed or not be displayed at power down state by PDDISP_EN setting. |
AnnaBridge | 174:b96e65c34a4d | 5082 | * | | |0 = LCD display Disabled ( LCD is put out) at power down state. |
AnnaBridge | 174:b96e65c34a4d | 5083 | * | | |1 = LCD display Enabled (LCD keeps the display) at power down state. |
AnnaBridge | 174:b96e65c34a4d | 5084 | * |[9] |PDINT_EN |Power Down Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 5085 | * | | |If the power down request is triggered from system management, LCD controller will execute the frame completely to avoid the DC component. |
AnnaBridge | 174:b96e65c34a4d | 5086 | * | | |When the frame is executed completely, the LCD power down interrupt signal is generated to inform system management that LCD controller is ready to enter power down state, if PDINT_EN is set to 1. |
AnnaBridge | 174:b96e65c34a4d | 5087 | * | | |Otherwise, if PDINT_EN is set to 0, the LCD power down interrupt signal is blocked and the interrupt is disabled to send to system management. |
AnnaBridge | 174:b96e65c34a4d | 5088 | * | | |0 = Power Down Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5089 | * | | |1 = Power Down Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5090 | */ |
AnnaBridge | 174:b96e65c34a4d | 5091 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 5092 | |
AnnaBridge | 174:b96e65c34a4d | 5093 | /** |
AnnaBridge | 174:b96e65c34a4d | 5094 | * DISPCTL |
AnnaBridge | 174:b96e65c34a4d | 5095 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5096 | * Offset: 0x04 LCD Display Control Register |
AnnaBridge | 174:b96e65c34a4d | 5097 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5098 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5099 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5100 | * |[0] |CPUMP_EN |Charge Pump Enable |
AnnaBridge | 174:b96e65c34a4d | 5101 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5102 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5103 | * |[2:1] |BIAS_SEL |Bias Selection |
AnnaBridge | 174:b96e65c34a4d | 5104 | * | | |00 = Static. |
AnnaBridge | 174:b96e65c34a4d | 5105 | * | | |01 = 1/2 Bias. |
AnnaBridge | 174:b96e65c34a4d | 5106 | * | | |10 = 1/3 Bias. |
AnnaBridge | 174:b96e65c34a4d | 5107 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 5108 | * |[4] |IBRL_EN |Internal Bias Reference Ladder Enable |
AnnaBridge | 174:b96e65c34a4d | 5109 | * | | |0 = Bias reference ladder Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5110 | * | | |1 = Bias reference ladder Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5111 | * |[6] |BV_SEL |Bias Voltage Type Selection |
AnnaBridge | 174:b96e65c34a4d | 5112 | * | | |0 = C-Type bias mode. Bias voltage source from internal bias generator. |
AnnaBridge | 174:b96e65c34a4d | 5113 | * | | |1 = R-Type bias mode. Bias voltage source from external bias generator. |
AnnaBridge | 174:b96e65c34a4d | 5114 | * | | |Note: The external resistor ladder should be connected to the V1 pin, V2 pin, V3 pin and VSS. |
AnnaBridge | 174:b96e65c34a4d | 5115 | * | | |The VLCD pin should also be connected to VDD. |
AnnaBridge | 174:b96e65c34a4d | 5116 | * |[10:8] |CPUMP_VOL_SET|Charge Pump Voltage Selection |
AnnaBridge | 174:b96e65c34a4d | 5117 | * | | |000 = 2.7V. |
AnnaBridge | 174:b96e65c34a4d | 5118 | * | | |001 = 2.8V. |
AnnaBridge | 174:b96e65c34a4d | 5119 | * | | |010 = 2.9V. |
AnnaBridge | 174:b96e65c34a4d | 5120 | * | | |011 = 3.0V. |
AnnaBridge | 174:b96e65c34a4d | 5121 | * | | |100 = 3.1V. |
AnnaBridge | 174:b96e65c34a4d | 5122 | * | | |101 = 3.2V. |
AnnaBridge | 174:b96e65c34a4d | 5123 | * | | |110 = 3.3V. |
AnnaBridge | 174:b96e65c34a4d | 5124 | * | | |111 = 3.4V. |
AnnaBridge | 174:b96e65c34a4d | 5125 | * |[13:11] |CPUMP_FREQ|Charge Pump Frequency Selection |
AnnaBridge | 174:b96e65c34a4d | 5126 | * | | |000 = LCDCLK. |
AnnaBridge | 174:b96e65c34a4d | 5127 | * | | |001 = LCDCLK/2. |
AnnaBridge | 174:b96e65c34a4d | 5128 | * | | |010 = LCDCLK/4. |
AnnaBridge | 174:b96e65c34a4d | 5129 | * | | |011 = LCDCLK/8. |
AnnaBridge | 174:b96e65c34a4d | 5130 | * | | |100 = LCDCLK/16. |
AnnaBridge | 174:b96e65c34a4d | 5131 | * | | |101 = LCDCLK/32. |
AnnaBridge | 174:b96e65c34a4d | 5132 | * | | |110 = LCDCLK/64. |
AnnaBridge | 174:b96e65c34a4d | 5133 | * | | |111 = LCDCLK/128. |
AnnaBridge | 174:b96e65c34a4d | 5134 | */ |
AnnaBridge | 174:b96e65c34a4d | 5135 | __IO uint32_t DISPCTL; |
AnnaBridge | 174:b96e65c34a4d | 5136 | |
AnnaBridge | 174:b96e65c34a4d | 5137 | /** |
AnnaBridge | 174:b96e65c34a4d | 5138 | * MEM_0 |
AnnaBridge | 174:b96e65c34a4d | 5139 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5140 | * Offset: 0x08 LCD SEG3 ~ SEG0 data |
AnnaBridge | 174:b96e65c34a4d | 5141 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5142 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5143 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5144 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5145 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5146 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5147 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5148 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5149 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5150 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5151 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5152 | */ |
AnnaBridge | 174:b96e65c34a4d | 5153 | __IO uint32_t MEM_0; |
AnnaBridge | 174:b96e65c34a4d | 5154 | |
AnnaBridge | 174:b96e65c34a4d | 5155 | /** |
AnnaBridge | 174:b96e65c34a4d | 5156 | * MEM_1 |
AnnaBridge | 174:b96e65c34a4d | 5157 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5158 | * Offset: 0x0C LCD SEG7 ~ SEG4 data |
AnnaBridge | 174:b96e65c34a4d | 5159 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5160 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5161 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5162 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5163 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5164 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5165 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5166 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5167 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5168 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5169 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5170 | */ |
AnnaBridge | 174:b96e65c34a4d | 5171 | __IO uint32_t MEM_1; |
AnnaBridge | 174:b96e65c34a4d | 5172 | |
AnnaBridge | 174:b96e65c34a4d | 5173 | /** |
AnnaBridge | 174:b96e65c34a4d | 5174 | * MEM_2 |
AnnaBridge | 174:b96e65c34a4d | 5175 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5176 | * Offset: 0x10 LCD SEG11 ~ SEG8 data |
AnnaBridge | 174:b96e65c34a4d | 5177 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5178 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5179 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5180 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5181 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5182 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5183 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5184 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5185 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5186 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5187 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5188 | */ |
AnnaBridge | 174:b96e65c34a4d | 5189 | __IO uint32_t MEM_2; |
AnnaBridge | 174:b96e65c34a4d | 5190 | |
AnnaBridge | 174:b96e65c34a4d | 5191 | /** |
AnnaBridge | 174:b96e65c34a4d | 5192 | * MEM_3 |
AnnaBridge | 174:b96e65c34a4d | 5193 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5194 | * Offset: 0x14 LCD SEG15 ~ SEG12 data |
AnnaBridge | 174:b96e65c34a4d | 5195 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5196 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5197 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5198 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5199 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5200 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5201 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5202 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5203 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5204 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5205 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5206 | */ |
AnnaBridge | 174:b96e65c34a4d | 5207 | __IO uint32_t MEM_3; |
AnnaBridge | 174:b96e65c34a4d | 5208 | |
AnnaBridge | 174:b96e65c34a4d | 5209 | /** |
AnnaBridge | 174:b96e65c34a4d | 5210 | * MEM_4 |
AnnaBridge | 174:b96e65c34a4d | 5211 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5212 | * Offset: 0x18 LCD SEG19 ~ SEG16 data |
AnnaBridge | 174:b96e65c34a4d | 5213 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5214 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5215 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5216 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5217 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5218 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5219 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5220 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5221 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5222 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5223 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5224 | */ |
AnnaBridge | 174:b96e65c34a4d | 5225 | __IO uint32_t MEM_4; |
AnnaBridge | 174:b96e65c34a4d | 5226 | |
AnnaBridge | 174:b96e65c34a4d | 5227 | /** |
AnnaBridge | 174:b96e65c34a4d | 5228 | * MEM_5 |
AnnaBridge | 174:b96e65c34a4d | 5229 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5230 | * Offset: 0x1C LCD SEG23 ~ SEG20 data |
AnnaBridge | 174:b96e65c34a4d | 5231 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5232 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5233 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5234 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5235 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5236 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5237 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5238 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5239 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5240 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5241 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5242 | */ |
AnnaBridge | 174:b96e65c34a4d | 5243 | __IO uint32_t MEM_5; |
AnnaBridge | 174:b96e65c34a4d | 5244 | |
AnnaBridge | 174:b96e65c34a4d | 5245 | /** |
AnnaBridge | 174:b96e65c34a4d | 5246 | * MEM_6 |
AnnaBridge | 174:b96e65c34a4d | 5247 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5248 | * Offset: 0x20 LCD SEG27 ~ SEG24 data |
AnnaBridge | 174:b96e65c34a4d | 5249 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5250 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5251 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5252 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5253 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5254 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5255 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5256 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5257 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5258 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5259 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5260 | */ |
AnnaBridge | 174:b96e65c34a4d | 5261 | __IO uint32_t MEM_6; |
AnnaBridge | 174:b96e65c34a4d | 5262 | |
AnnaBridge | 174:b96e65c34a4d | 5263 | /** |
AnnaBridge | 174:b96e65c34a4d | 5264 | * MEM_7 |
AnnaBridge | 174:b96e65c34a4d | 5265 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5266 | * Offset: 0x24 LCD SEG31 ~ SEG28 data |
AnnaBridge | 174:b96e65c34a4d | 5267 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5268 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5269 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5270 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5271 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5272 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5273 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5274 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5275 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5276 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5277 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5278 | */ |
AnnaBridge | 174:b96e65c34a4d | 5279 | __IO uint32_t MEM_7; |
AnnaBridge | 174:b96e65c34a4d | 5280 | |
AnnaBridge | 174:b96e65c34a4d | 5281 | /** |
AnnaBridge | 174:b96e65c34a4d | 5282 | * MEM_8 |
AnnaBridge | 174:b96e65c34a4d | 5283 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5284 | * Offset: 0x28 LCD SEG35 ~ SEG32 data |
AnnaBridge | 174:b96e65c34a4d | 5285 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5286 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5287 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5288 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5289 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5290 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5291 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5292 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5293 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5294 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5295 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5296 | */ |
AnnaBridge | 174:b96e65c34a4d | 5297 | __IO uint32_t MEM_8; |
AnnaBridge | 174:b96e65c34a4d | 5298 | |
AnnaBridge | 174:b96e65c34a4d | 5299 | /** |
AnnaBridge | 174:b96e65c34a4d | 5300 | * MEM_9 |
AnnaBridge | 174:b96e65c34a4d | 5301 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5302 | * Offset: 0x2C LCD SEG39 ~ SEG36 data |
AnnaBridge | 174:b96e65c34a4d | 5303 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5304 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5305 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5306 | * |[5:0] |SEG_0_4x |SEG_0_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5307 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5308 | * |[14:8] |SEG_1_4x |SEG_1_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5309 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5310 | * |[21:16] |SEG_2_4x |SEG_2_4x DATA for COM(x= 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5311 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5312 | * |[29:24] |SEG_3_4x |SEG_3_4x DATA for COM (x = 0 ~ 9) |
AnnaBridge | 174:b96e65c34a4d | 5313 | * | | |LCD display data |
AnnaBridge | 174:b96e65c34a4d | 5314 | */ |
AnnaBridge | 174:b96e65c34a4d | 5315 | __IO uint32_t MEM_9; |
AnnaBridge | 174:b96e65c34a4d | 5316 | |
AnnaBridge | 174:b96e65c34a4d | 5317 | /** |
AnnaBridge | 174:b96e65c34a4d | 5318 | * FCR |
AnnaBridge | 174:b96e65c34a4d | 5319 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5320 | * Offset: 0x30 LCD frame counter control register |
AnnaBridge | 174:b96e65c34a4d | 5321 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5322 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5323 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5324 | * |[0] |FCEN |LCD Frame Counter Enable |
AnnaBridge | 174:b96e65c34a4d | 5325 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5326 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5327 | * |[1] |FCINTEN |LCD Frame Counter Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 5328 | * | | |0 = Frame counter interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5329 | * | | |1 = Frame counter interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5330 | * |[3:2] |PRESCL |Frame Counter Pre-Scaler Value |
AnnaBridge | 174:b96e65c34a4d | 5331 | * | | |00 = CLKframe/1. |
AnnaBridge | 174:b96e65c34a4d | 5332 | * | | |01 = CLKframe/2. |
AnnaBridge | 174:b96e65c34a4d | 5333 | * | | |10 = CLKframe/4. |
AnnaBridge | 174:b96e65c34a4d | 5334 | * | | |11 = CLKframe/8. |
AnnaBridge | 174:b96e65c34a4d | 5335 | * |[9:4] |FCV |Frame Counter Top Value |
AnnaBridge | 174:b96e65c34a4d | 5336 | * | | |These 6 bits contain the top value of the Frame counter. |
AnnaBridge | 174:b96e65c34a4d | 5337 | */ |
AnnaBridge | 174:b96e65c34a4d | 5338 | __IO uint32_t FCR; |
AnnaBridge | 174:b96e65c34a4d | 5339 | |
AnnaBridge | 174:b96e65c34a4d | 5340 | /** |
AnnaBridge | 174:b96e65c34a4d | 5341 | * FCSTS |
AnnaBridge | 174:b96e65c34a4d | 5342 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5343 | * Offset: 0x34 LCD frame counter status |
AnnaBridge | 174:b96e65c34a4d | 5344 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5345 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5346 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5347 | * |[0] |FCSTS |LCD Frame Counter Status |
AnnaBridge | 174:b96e65c34a4d | 5348 | * | | |0 = Frame counter value does not reach FCV (Frame Count TOP value). |
AnnaBridge | 174:b96e65c34a4d | 5349 | * | | |1 = Frame counter value reaches FCV (Frame Count TOP value). |
AnnaBridge | 174:b96e65c34a4d | 5350 | * | | |If the FCINTEN is s enabled, the frame counter overflow Interrupt is generated. |
AnnaBridge | 174:b96e65c34a4d | 5351 | * |[1] |PDSTS |Power-Down Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 5352 | * | | |0 = Inform system manager that LCD controller is not ready to enter power-down state until this bit becomes 1 if power down is set and one frame is not executed completely. |
AnnaBridge | 174:b96e65c34a4d | 5353 | * | | |1 = Inform system manager that LCD controller is ready to enter power-down state if power down is set and one frame is executed completely |
AnnaBridge | 174:b96e65c34a4d | 5354 | */ |
AnnaBridge | 174:b96e65c34a4d | 5355 | __IO uint32_t FCSTS; |
AnnaBridge | 174:b96e65c34a4d | 5356 | |
AnnaBridge | 174:b96e65c34a4d | 5357 | } LCD_T; |
AnnaBridge | 174:b96e65c34a4d | 5358 | |
AnnaBridge | 174:b96e65c34a4d | 5359 | /** |
AnnaBridge | 174:b96e65c34a4d | 5360 | @addtogroup LCD_CONST LCD Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 5361 | Constant Definitions for LCD Controller |
AnnaBridge | 174:b96e65c34a4d | 5362 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 5363 | |
AnnaBridge | 174:b96e65c34a4d | 5364 | #define LCD_CTL_EN_Pos (0) /*!< LCD_T::CTL: EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 5365 | #define LCD_CTL_EN_Msk (0x1ul << LCD_CTL_EN_Pos) /*!< LCD_T::CTL: EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5366 | |
AnnaBridge | 174:b96e65c34a4d | 5367 | #define LCD_CTL_MUX_Pos (1) /*!< LCD_T::CTL: MUX Position */ |
AnnaBridge | 174:b96e65c34a4d | 5368 | #define LCD_CTL_MUX_Msk (0x7ul << LCD_CTL_MUX_Pos) /*!< LCD_T::CTL: MUX Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5369 | |
AnnaBridge | 174:b96e65c34a4d | 5370 | #define LCD_CTL_FREQ_Pos (4) /*!< LCD_T::CTL: FREQ Position */ |
AnnaBridge | 174:b96e65c34a4d | 5371 | #define LCD_CTL_FREQ_Msk (0x7ul << LCD_CTL_FREQ_Pos) /*!< LCD_T::CTL: FREQ Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5372 | |
AnnaBridge | 174:b96e65c34a4d | 5373 | #define LCD_CTL_BLINK_Pos (7) /*!< LCD_T::CTL: BLINK Position */ |
AnnaBridge | 174:b96e65c34a4d | 5374 | #define LCD_CTL_BLINK_Msk (0x1ul << LCD_CTL_BLINK_Pos) /*!< LCD_T::CTL: BLINK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5375 | |
AnnaBridge | 174:b96e65c34a4d | 5376 | #define LCD_CTL_PDDISP_EN_Pos (8) /*!< LCD_T::CTL: PDDISP_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 5377 | #define LCD_CTL_PDDISP_EN_Msk (0x1ul << LCD_CTL_PDDISP_EN_Pos) /*!< LCD_T::CTL: PDDISP_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5378 | |
AnnaBridge | 174:b96e65c34a4d | 5379 | #define LCD_CTL_PDINT_EN_Pos (9) /*!< LCD_T::CTL: PDINT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 5380 | #define LCD_CTL_PDINT_EN_Msk (0x1ul << LCD_CTL_PDINT_EN_Pos) /*!< LCD_T::CTL: PDINT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5381 | |
AnnaBridge | 174:b96e65c34a4d | 5382 | #define LCD_DISPCTL_CPUMP_EN_Pos (0) /*!< LCD_T::DISPCTL: CPUMP_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 5383 | #define LCD_DISPCTL_CPUMP_EN_Msk (0x1ul << LCD_DISPCTL_CPUMP_EN_Pos) /*!< LCD_T::DISPCTL: CPUMP_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5384 | |
AnnaBridge | 174:b96e65c34a4d | 5385 | #define LCD_DISPCTL_BIAS_SEL_Pos (1) /*!< LCD_T::DISPCTL: BIAS_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 5386 | #define LCD_DISPCTL_BIAS_SEL_Msk (0x3ul << LCD_DISPCTL_BIAS_SEL_Pos) /*!< LCD_T::DISPCTL: BIAS_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5387 | |
AnnaBridge | 174:b96e65c34a4d | 5388 | #define LCD_DISPCTL_IBRL_EN_Pos (4) /*!< LCD_T::DISPCTL: IBRL_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 5389 | #define LCD_DISPCTL_IBRL_EN_Msk (0x1ul << LCD_DISPCTL_IBRL_EN_Pos) /*!< LCD_T::DISPCTL: IBRL_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5390 | |
AnnaBridge | 174:b96e65c34a4d | 5391 | #define LCD_DISPCTL_BV_SEL_Pos (6) /*!< LCD_T::DISPCTL: BV_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 5392 | #define LCD_DISPCTL_BV_SEL_Msk (0x1ul << LCD_DISPCTL_BV_SEL_Pos) /*!< LCD_T::DISPCTL: BV_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5393 | |
AnnaBridge | 174:b96e65c34a4d | 5394 | #define LCD_DISPCTL_CPUMP_VOL_SET_Pos (8) /*!< LCD_T::DISPCTL: CPUMP_VOL_SET Position */ |
AnnaBridge | 174:b96e65c34a4d | 5395 | #define LCD_DISPCTL_CPUMP_VOL_SET_Msk (0x7ul << LCD_DISPCTL_CPUMP_VOL_SET_Pos) /*!< LCD_T::DISPCTL: CPUMP_VOL_SET Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5396 | |
AnnaBridge | 174:b96e65c34a4d | 5397 | #define LCD_DISPCTL_CPUMP_FREQ_Pos (11) /*!< LCD_T::DISPCTL: CPUMP_FREQ Position */ |
AnnaBridge | 174:b96e65c34a4d | 5398 | #define LCD_DISPCTL_CPUMP_FREQ_Msk (0x7ul << LCD_DISPCTL_CPUMP_FREQ_Pos) /*!< LCD_T::DISPCTL: CPUMP_FREQ Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5399 | |
AnnaBridge | 174:b96e65c34a4d | 5400 | #define LCD_MEM_0_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_0: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5401 | #define LCD_MEM_0_SEG_0_4x_Msk (0x3ful << LCD_MEM_0_SEG_0_4x_Pos) /*!< LCD_T::MEM_0: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5402 | |
AnnaBridge | 174:b96e65c34a4d | 5403 | #define LCD_MEM_0_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_0: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5404 | #define LCD_MEM_0_SEG_1_4x_Msk (0x7ful << LCD_MEM_0_SEG_1_4x_Pos) /*!< LCD_T::MEM_0: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5405 | |
AnnaBridge | 174:b96e65c34a4d | 5406 | #define LCD_MEM_0_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_0: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5407 | #define LCD_MEM_0_SEG_2_4x_Msk (0x3ful << LCD_MEM_0_SEG_2_4x_Pos) /*!< LCD_T::MEM_0: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5408 | |
AnnaBridge | 174:b96e65c34a4d | 5409 | #define LCD_MEM_0_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_0: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5410 | #define LCD_MEM_0_SEG_3_4x_Msk (0x3ful << LCD_MEM_0_SEG_3_4x_Pos) /*!< LCD_T::MEM_0: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5411 | |
AnnaBridge | 174:b96e65c34a4d | 5412 | #define LCD_MEM_1_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_1: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5413 | #define LCD_MEM_1_SEG_0_4x_Msk (0x3ful << LCD_MEM_1_SEG_0_4x_Pos) /*!< LCD_T::MEM_1: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5414 | |
AnnaBridge | 174:b96e65c34a4d | 5415 | #define LCD_MEM_1_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_1: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5416 | #define LCD_MEM_1_SEG_1_4x_Msk (0x7ful << LCD_MEM_1_SEG_1_4x_Pos) /*!< LCD_T::MEM_1: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5417 | |
AnnaBridge | 174:b96e65c34a4d | 5418 | #define LCD_MEM_1_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_1: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5419 | #define LCD_MEM_1_SEG_2_4x_Msk (0x3ful << LCD_MEM_1_SEG_2_4x_Pos) /*!< LCD_T::MEM_1: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5420 | |
AnnaBridge | 174:b96e65c34a4d | 5421 | #define LCD_MEM_1_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_1: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5422 | #define LCD_MEM_1_SEG_3_4x_Msk (0x3ful << LCD_MEM_1_SEG_3_4x_Pos) /*!< LCD_T::MEM_1: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5423 | |
AnnaBridge | 174:b96e65c34a4d | 5424 | #define LCD_MEM_2_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_2: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5425 | #define LCD_MEM_2_SEG_0_4x_Msk (0x3ful << LCD_MEM_2_SEG_0_4x_Pos) /*!< LCD_T::MEM_2: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5426 | |
AnnaBridge | 174:b96e65c34a4d | 5427 | #define LCD_MEM_2_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_2: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5428 | #define LCD_MEM_2_SEG_1_4x_Msk (0x7ful << LCD_MEM_2_SEG_1_4x_Pos) /*!< LCD_T::MEM_2: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5429 | |
AnnaBridge | 174:b96e65c34a4d | 5430 | #define LCD_MEM_2_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_2: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5431 | #define LCD_MEM_2_SEG_2_4x_Msk (0x3ful << LCD_MEM_2_SEG_2_4x_Pos) /*!< LCD_T::MEM_2: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5432 | |
AnnaBridge | 174:b96e65c34a4d | 5433 | #define LCD_MEM_2_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_2: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5434 | #define LCD_MEM_2_SEG_3_4x_Msk (0x3ful << LCD_MEM_2_SEG_3_4x_Pos) /*!< LCD_T::MEM_2: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5435 | |
AnnaBridge | 174:b96e65c34a4d | 5436 | #define LCD_MEM_3_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_3: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5437 | #define LCD_MEM_3_SEG_0_4x_Msk (0x3ful << LCD_MEM_3_SEG_0_4x_Pos) /*!< LCD_T::MEM_3: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5438 | |
AnnaBridge | 174:b96e65c34a4d | 5439 | #define LCD_MEM_3_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_3: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5440 | #define LCD_MEM_3_SEG_1_4x_Msk (0x7ful << LCD_MEM_3_SEG_1_4x_Pos) /*!< LCD_T::MEM_3: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5441 | |
AnnaBridge | 174:b96e65c34a4d | 5442 | #define LCD_MEM_3_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_3: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5443 | #define LCD_MEM_3_SEG_2_4x_Msk (0x3ful << LCD_MEM_3_SEG_2_4x_Pos) /*!< LCD_T::MEM_3: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5444 | |
AnnaBridge | 174:b96e65c34a4d | 5445 | #define LCD_MEM_3_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_3: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5446 | #define LCD_MEM_3_SEG_3_4x_Msk (0x3ful << LCD_MEM_3_SEG_3_4x_Pos) /*!< LCD_T::MEM_3: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5447 | |
AnnaBridge | 174:b96e65c34a4d | 5448 | #define LCD_MEM_4_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_4: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5449 | #define LCD_MEM_4_SEG_0_4x_Msk (0x3ful << LCD_MEM_4_SEG_0_4x_Pos) /*!< LCD_T::MEM_4: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5450 | |
AnnaBridge | 174:b96e65c34a4d | 5451 | #define LCD_MEM_4_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_4: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5452 | #define LCD_MEM_4_SEG_1_4x_Msk (0x7ful << LCD_MEM_4_SEG_1_4x_Pos) /*!< LCD_T::MEM_4: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5453 | |
AnnaBridge | 174:b96e65c34a4d | 5454 | #define LCD_MEM_4_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_4: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5455 | #define LCD_MEM_4_SEG_2_4x_Msk (0x3ful << LCD_MEM_4_SEG_2_4x_Pos) /*!< LCD_T::MEM_4: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5456 | |
AnnaBridge | 174:b96e65c34a4d | 5457 | #define LCD_MEM_4_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_4: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5458 | #define LCD_MEM_4_SEG_3_4x_Msk (0x3ful << LCD_MEM_4_SEG_3_4x_Pos) /*!< LCD_T::MEM_4: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5459 | |
AnnaBridge | 174:b96e65c34a4d | 5460 | #define LCD_MEM_5_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_5: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5461 | #define LCD_MEM_5_SEG_0_4x_Msk (0x3ful << LCD_MEM_5_SEG_0_4x_Pos) /*!< LCD_T::MEM_5: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5462 | |
AnnaBridge | 174:b96e65c34a4d | 5463 | #define LCD_MEM_5_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_5: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5464 | #define LCD_MEM_5_SEG_1_4x_Msk (0x7ful << LCD_MEM_5_SEG_1_4x_Pos) /*!< LCD_T::MEM_5: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5465 | |
AnnaBridge | 174:b96e65c34a4d | 5466 | #define LCD_MEM_5_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_5: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5467 | #define LCD_MEM_5_SEG_2_4x_Msk (0x3ful << LCD_MEM_5_SEG_2_4x_Pos) /*!< LCD_T::MEM_5: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5468 | |
AnnaBridge | 174:b96e65c34a4d | 5469 | #define LCD_MEM_5_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_5: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5470 | #define LCD_MEM_5_SEG_3_4x_Msk (0x3ful << LCD_MEM_5_SEG_3_4x_Pos) /*!< LCD_T::MEM_5: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5471 | |
AnnaBridge | 174:b96e65c34a4d | 5472 | #define LCD_MEM_6_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_6: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5473 | #define LCD_MEM_6_SEG_0_4x_Msk (0x3ful << LCD_MEM_6_SEG_0_4x_Pos) /*!< LCD_T::MEM_6: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5474 | |
AnnaBridge | 174:b96e65c34a4d | 5475 | #define LCD_MEM_6_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_6: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5476 | #define LCD_MEM_6_SEG_1_4x_Msk (0x7ful << LCD_MEM_6_SEG_1_4x_Pos) /*!< LCD_T::MEM_6: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5477 | |
AnnaBridge | 174:b96e65c34a4d | 5478 | #define LCD_MEM_6_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_6: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5479 | #define LCD_MEM_6_SEG_2_4x_Msk (0x3ful << LCD_MEM_6_SEG_2_4x_Pos) /*!< LCD_T::MEM_6: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5480 | |
AnnaBridge | 174:b96e65c34a4d | 5481 | #define LCD_MEM_6_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_6: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5482 | #define LCD_MEM_6_SEG_3_4x_Msk (0x3ful << LCD_MEM_6_SEG_3_4x_Pos) /*!< LCD_T::MEM_6: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5483 | |
AnnaBridge | 174:b96e65c34a4d | 5484 | #define LCD_MEM_7_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_7: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5485 | #define LCD_MEM_7_SEG_0_4x_Msk (0x3ful << LCD_MEM_7_SEG_0_4x_Pos) /*!< LCD_T::MEM_7: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5486 | |
AnnaBridge | 174:b96e65c34a4d | 5487 | #define LCD_MEM_7_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_7: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5488 | #define LCD_MEM_7_SEG_1_4x_Msk (0x7ful << LCD_MEM_7_SEG_1_4x_Pos) /*!< LCD_T::MEM_7: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5489 | |
AnnaBridge | 174:b96e65c34a4d | 5490 | #define LCD_MEM_7_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_7: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5491 | #define LCD_MEM_7_SEG_2_4x_Msk (0x3ful << LCD_MEM_7_SEG_2_4x_Pos) /*!< LCD_T::MEM_7: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5492 | |
AnnaBridge | 174:b96e65c34a4d | 5493 | #define LCD_MEM_7_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_7: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5494 | #define LCD_MEM_7_SEG_3_4x_Msk (0x3ful << LCD_MEM_7_SEG_3_4x_Pos) /*!< LCD_T::MEM_7: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5495 | |
AnnaBridge | 174:b96e65c34a4d | 5496 | #define LCD_MEM_8_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_8: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5497 | #define LCD_MEM_8_SEG_0_4x_Msk (0x3ful << LCD_MEM_8_SEG_0_4x_Pos) /*!< LCD_T::MEM_8: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5498 | |
AnnaBridge | 174:b96e65c34a4d | 5499 | #define LCD_MEM_8_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_8: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5500 | #define LCD_MEM_8_SEG_1_4x_Msk (0x7ful << LCD_MEM_8_SEG_1_4x_Pos) /*!< LCD_T::MEM_8: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5501 | |
AnnaBridge | 174:b96e65c34a4d | 5502 | #define LCD_MEM_8_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_8: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5503 | #define LCD_MEM_8_SEG_2_4x_Msk (0x3ful << LCD_MEM_8_SEG_2_4x_Pos) /*!< LCD_T::MEM_8: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5504 | |
AnnaBridge | 174:b96e65c34a4d | 5505 | #define LCD_MEM_8_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_8: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5506 | #define LCD_MEM_8_SEG_3_4x_Msk (0x3ful << LCD_MEM_8_SEG_3_4x_Pos) /*!< LCD_T::MEM_8: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5507 | |
AnnaBridge | 174:b96e65c34a4d | 5508 | #define LCD_MEM_9_SEG_0_4x_Pos (0) /*!< LCD_T::MEM_9: SEG_0_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5509 | #define LCD_MEM_9_SEG_0_4x_Msk (0x3ful << LCD_MEM_9_SEG_0_4x_Pos) /*!< LCD_T::MEM_9: SEG_0_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5510 | |
AnnaBridge | 174:b96e65c34a4d | 5511 | #define LCD_MEM_9_SEG_1_4x_Pos (8) /*!< LCD_T::MEM_9: SEG_1_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5512 | #define LCD_MEM_9_SEG_1_4x_Msk (0x7ful << LCD_MEM_9_SEG_1_4x_Pos) /*!< LCD_T::MEM_9: SEG_1_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5513 | |
AnnaBridge | 174:b96e65c34a4d | 5514 | #define LCD_MEM_9_SEG_2_4x_Pos (16) /*!< LCD_T::MEM_9: SEG_2_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5515 | #define LCD_MEM_9_SEG_2_4x_Msk (0x3ful << LCD_MEM_9_SEG_2_4x_Pos) /*!< LCD_T::MEM_9: SEG_2_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5516 | |
AnnaBridge | 174:b96e65c34a4d | 5517 | #define LCD_MEM_9_SEG_3_4x_Pos (24) /*!< LCD_T::MEM_9: SEG_3_4x Position */ |
AnnaBridge | 174:b96e65c34a4d | 5518 | #define LCD_MEM_9_SEG_3_4x_Msk (0x3ful << LCD_MEM_9_SEG_3_4x_Pos) /*!< LCD_T::MEM_9: SEG_3_4x Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5519 | |
AnnaBridge | 174:b96e65c34a4d | 5520 | #define LCD_FCR_FCEN_Pos (0) /*!< LCD_T::FCR: FCEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 5521 | #define LCD_FCR_FCEN_Msk (0x1ul << LCD_FCR_FCEN_Pos) /*!< LCD_T::FCR: FCEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5522 | |
AnnaBridge | 174:b96e65c34a4d | 5523 | #define LCD_FCR_FCINTEN_Pos (1) /*!< LCD_T::FCR: FCINTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 5524 | #define LCD_FCR_FCINTEN_Msk (0x1ul << LCD_FCR_FCINTEN_Pos) /*!< LCD_T::FCR: FCINTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5525 | |
AnnaBridge | 174:b96e65c34a4d | 5526 | #define LCD_FCR_PRESCL_Pos (2) /*!< LCD_T::FCR: PRESCL Position */ |
AnnaBridge | 174:b96e65c34a4d | 5527 | #define LCD_FCR_PRESCL_Msk (0x3ul << LCD_FCR_PRESCL_Pos) /*!< LCD_T::FCR: PRESCL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5528 | |
AnnaBridge | 174:b96e65c34a4d | 5529 | #define LCD_FCR_FCV_Pos (4) /*!< LCD_T::FCR: FCV Position */ |
AnnaBridge | 174:b96e65c34a4d | 5530 | #define LCD_FCR_FCV_Msk (0x3ful << LCD_FCR_FCV_Pos) /*!< LCD_T::FCR: FCV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5531 | |
AnnaBridge | 174:b96e65c34a4d | 5532 | #define LCD_FCSTS_FCSTS_Pos (0) /*!< LCD_T::FCSTS: FCSTS Position */ |
AnnaBridge | 174:b96e65c34a4d | 5533 | #define LCD_FCSTS_FCSTS_Msk (0x1ul << LCD_FCSTS_FCSTS_Pos) /*!< LCD_T::FCSTS: FCSTS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5534 | |
AnnaBridge | 174:b96e65c34a4d | 5535 | #define LCD_FCSTS_PDSTS_Pos (1) /*!< LCD_T::FCSTS: PDSTS Position */ |
AnnaBridge | 174:b96e65c34a4d | 5536 | #define LCD_FCSTS_PDSTS_Msk (0x1ul << LCD_FCSTS_PDSTS_Pos) /*!< LCD_T::FCSTS: PDSTS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 5537 | |
AnnaBridge | 174:b96e65c34a4d | 5538 | /**@}*/ /* LCD_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 5539 | /**@}*/ /* end of LCD register group */ |
AnnaBridge | 174:b96e65c34a4d | 5540 | |
AnnaBridge | 174:b96e65c34a4d | 5541 | |
AnnaBridge | 174:b96e65c34a4d | 5542 | /*---------------------- Peripheral Direct Memory Access Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 5543 | /** |
AnnaBridge | 174:b96e65c34a4d | 5544 | @addtogroup DMA Direct Memory Access Controller(DMA) |
AnnaBridge | 174:b96e65c34a4d | 5545 | Memory Mapped Structure for DMA Controller |
AnnaBridge | 174:b96e65c34a4d | 5546 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 5547 | |
AnnaBridge | 174:b96e65c34a4d | 5548 | |
AnnaBridge | 174:b96e65c34a4d | 5549 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 5550 | |
AnnaBridge | 174:b96e65c34a4d | 5551 | |
AnnaBridge | 174:b96e65c34a4d | 5552 | /** |
AnnaBridge | 174:b96e65c34a4d | 5553 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 5554 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5555 | * Offset: 0x00 DMA CRC Control Register |
AnnaBridge | 174:b96e65c34a4d | 5556 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5557 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5558 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5559 | * |[0] |CRCCEN |CRC Channel Enable |
AnnaBridge | 174:b96e65c34a4d | 5560 | * | | |Setting this bit to 1 enables CRC's operation. |
AnnaBridge | 174:b96e65c34a4d | 5561 | * | | |When operating in CRC DMA mode (TRIG_EN = 1), if user clear this bit, the DMA operation will be continuous until all CRC DMA operation done, and the TRIG_EN bit will asserted until all CRC DMA operation done. |
AnnaBridge | 174:b96e65c34a4d | 5562 | * | | |But in this case, the CRC_DMAISR [BLKD_IF] flag will inactive, user can read CRC result by reading CRC_CHECKSUM register when TRIG_EN = 0. |
AnnaBridge | 174:b96e65c34a4d | 5563 | * | | |When operating in CRC DMA mode (TRIG_EN = 1), if user want to stop the transfer immediately, user can write 1 to CRC_RST bit to stop the transmission. |
AnnaBridge | 174:b96e65c34a4d | 5564 | * |[1] |CRC_RST |CRC Engine Reset |
AnnaBridge | 174:b96e65c34a4d | 5565 | * | | |0 = Writing 0 to this bit has no effect. |
AnnaBridge | 174:b96e65c34a4d | 5566 | * | | |1 = Writing 1 to this bit will reset the internal CRC state machine and internal buffer. |
AnnaBridge | 174:b96e65c34a4d | 5567 | * | | |The contents of control register will not be cleared. |
AnnaBridge | 174:b96e65c34a4d | 5568 | * | | |This bit will be auto cleared after few clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 5569 | * | | |Note: When operating in CPU PIO mode, setting this bit will reload the initial seed value |
AnnaBridge | 174:b96e65c34a4d | 5570 | * |[23] |TRIG_EN |Trigger Enable |
AnnaBridge | 174:b96e65c34a4d | 5571 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 5572 | * | | |1 = CRC DMA data read or write transfer Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5573 | * | | |Note1: If this bit assert that indicates the CRC engine operation in CRC DMA mode, so don't filled any data in CRC_WDATA register. |
AnnaBridge | 174:b96e65c34a4d | 5574 | * | | |Note2: When CRC DMA transfer completed, this bit will be cleared automatically. |
AnnaBridge | 174:b96e65c34a4d | 5575 | * | | |Note3: If the bus error occurs, all CRC DMA transfer will be stopped. |
AnnaBridge | 174:b96e65c34a4d | 5576 | * | | |Software must reset all DMA channel, and then trigger again. |
AnnaBridge | 174:b96e65c34a4d | 5577 | * |[24] |WDATA_RVS |Write Data Order Reverse |
AnnaBridge | 174:b96e65c34a4d | 5578 | * | | |0 = No bit order reverse for CRC write data in. |
AnnaBridge | 174:b96e65c34a4d | 5579 | * | | |1 = Bit order reverse for CRC write data in (per byre). |
AnnaBridge | 174:b96e65c34a4d | 5580 | * | | |Note: If the write data is 0xAABBCCDD, the bit order reverse for CRC write data in is 0x55DD33BB |
AnnaBridge | 174:b96e65c34a4d | 5581 | * |[25] |CHECKSUM_RVS|Checksum Reverse |
AnnaBridge | 174:b96e65c34a4d | 5582 | * | | |0 = No bit order reverse for CRC checksum. |
AnnaBridge | 174:b96e65c34a4d | 5583 | * | | |1 = Bit order reverse for CRC checksum. |
AnnaBridge | 174:b96e65c34a4d | 5584 | * | | |Note: If the checksum data is 0XDD7B0F2E, the bit order reverse for CRC checksum is 0x74F0DEBB |
AnnaBridge | 174:b96e65c34a4d | 5585 | * |[26] |WDATA_COM |Write Data Complement |
AnnaBridge | 174:b96e65c34a4d | 5586 | * | | |0 = No bit order reverse for CRC write data in. |
AnnaBridge | 174:b96e65c34a4d | 5587 | * | | |1 = 1's complement for CRC write data in. |
AnnaBridge | 174:b96e65c34a4d | 5588 | * |[27] |CHECKSUM_COM|Checksum Complement |
AnnaBridge | 174:b96e65c34a4d | 5589 | * | | |0 = No bit order reverse for CRC checksum. |
AnnaBridge | 174:b96e65c34a4d | 5590 | * | | |1 = 1's complement for CRC checksum. |
AnnaBridge | 174:b96e65c34a4d | 5591 | * |[29:28] |CPU_WDLEN |CPU Write Data Length |
AnnaBridge | 174:b96e65c34a4d | 5592 | * | | |When operating in CPU PIO mode (CRCCEN= 1, TRIG_EN = 0), this field indicates the write data length. |
AnnaBridge | 174:b96e65c34a4d | 5593 | * | | |00 = The data length is 8-bit mode |
AnnaBridge | 174:b96e65c34a4d | 5594 | * | | |01 = The data length is 16-bit mode |
AnnaBridge | 174:b96e65c34a4d | 5595 | * | | |10 = The data length is 32-bit mode |
AnnaBridge | 174:b96e65c34a4d | 5596 | * | | |11 = Reserved |
AnnaBridge | 174:b96e65c34a4d | 5597 | * | | |Note1: This field is only used for CPU PIO mode. |
AnnaBridge | 174:b96e65c34a4d | 5598 | * | | |Note2: When the data length is 8-bit mode, the valid data is CRC_WDATA [7:0], and if the data length is 16 bit mode, the valid data is CRC_WDATA [15:0]. |
AnnaBridge | 174:b96e65c34a4d | 5599 | * |[31:30] |CRC_MODE |CRC Polynomial Mode |
AnnaBridge | 174:b96e65c34a4d | 5600 | * | | |00 = CRC-CCITT Polynomial Mode |
AnnaBridge | 174:b96e65c34a4d | 5601 | * | | |01 = CRC-8 Polynomial Mode |
AnnaBridge | 174:b96e65c34a4d | 5602 | * | | |10 = CRC-16 Polynomial Mode |
AnnaBridge | 174:b96e65c34a4d | 5603 | * | | |11 = CRC-32 Polynomial Mode |
AnnaBridge | 174:b96e65c34a4d | 5604 | */ |
AnnaBridge | 174:b96e65c34a4d | 5605 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 5606 | |
AnnaBridge | 174:b96e65c34a4d | 5607 | /** |
AnnaBridge | 174:b96e65c34a4d | 5608 | * DMASAR |
AnnaBridge | 174:b96e65c34a4d | 5609 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5610 | * Offset: 0x04 DMA CRC Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 5611 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5612 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5613 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5614 | * |[31:0] |CRC_DMASAR|CRC DMA Transfer Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 5615 | * | | |This field indicates a 32-bit source address of CRC DMA. |
AnnaBridge | 174:b96e65c34a4d | 5616 | * | | |Note : The source address must be word alignment |
AnnaBridge | 174:b96e65c34a4d | 5617 | */ |
AnnaBridge | 174:b96e65c34a4d | 5618 | __IO uint32_t DMASAR; |
AnnaBridge | 174:b96e65c34a4d | 5619 | uint32_t RESERVE0[1]; |
AnnaBridge | 174:b96e65c34a4d | 5620 | |
AnnaBridge | 174:b96e65c34a4d | 5621 | |
AnnaBridge | 174:b96e65c34a4d | 5622 | /** |
AnnaBridge | 174:b96e65c34a4d | 5623 | * DMABCR |
AnnaBridge | 174:b96e65c34a4d | 5624 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5625 | * Offset: 0x0C DMA CRC Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 5626 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5627 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5628 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5629 | * |[15:0] |CRC_DMABCR|CRC DMA Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 5630 | * | | |This field indicates a 16-bit transfer byte count number of CRC DMA |
AnnaBridge | 174:b96e65c34a4d | 5631 | */ |
AnnaBridge | 174:b96e65c34a4d | 5632 | __IO uint32_t DMABCR; |
AnnaBridge | 174:b96e65c34a4d | 5633 | uint32_t RESERVE1[1]; |
AnnaBridge | 174:b96e65c34a4d | 5634 | |
AnnaBridge | 174:b96e65c34a4d | 5635 | |
AnnaBridge | 174:b96e65c34a4d | 5636 | /** |
AnnaBridge | 174:b96e65c34a4d | 5637 | * DMACSAR |
AnnaBridge | 174:b96e65c34a4d | 5638 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5639 | * Offset: 0x14 DMA CRC Current Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 5640 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5641 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5642 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5643 | * |[31:0] |CRC_DMACSAR|CRC DMA Current Source Address Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5644 | * | | |This field indicates the source address where the CRC DMA transfer is just occurring. |
AnnaBridge | 174:b96e65c34a4d | 5645 | */ |
AnnaBridge | 174:b96e65c34a4d | 5646 | __I uint32_t DMACSAR; |
AnnaBridge | 174:b96e65c34a4d | 5647 | uint32_t RESERVE2[1]; |
AnnaBridge | 174:b96e65c34a4d | 5648 | |
AnnaBridge | 174:b96e65c34a4d | 5649 | |
AnnaBridge | 174:b96e65c34a4d | 5650 | /** |
AnnaBridge | 174:b96e65c34a4d | 5651 | * DMACBCR |
AnnaBridge | 174:b96e65c34a4d | 5652 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5653 | * Offset: 0x1C DMA CRC Current Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 5654 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5655 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5656 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5657 | * |[15:0] |CRC_DMACBCR|CRC DMA Current Byte Count Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5658 | * | | |This field indicates the current remained byte count of CRC_DMA. |
AnnaBridge | 174:b96e65c34a4d | 5659 | * | | |Note: CRC_RST will clear this register value. |
AnnaBridge | 174:b96e65c34a4d | 5660 | */ |
AnnaBridge | 174:b96e65c34a4d | 5661 | __I uint32_t DMACBCR; |
AnnaBridge | 174:b96e65c34a4d | 5662 | |
AnnaBridge | 174:b96e65c34a4d | 5663 | /** |
AnnaBridge | 174:b96e65c34a4d | 5664 | * DMAIER |
AnnaBridge | 174:b96e65c34a4d | 5665 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5666 | * Offset: 0x20 DMA CRC Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 5667 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5668 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5669 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5670 | * |[0] |TABORT_IE |CRC DMA Read/Write Target Abort Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 5671 | * | | |0 = Target abort interrupt generation Disabled during CRC DMA transfer. |
AnnaBridge | 174:b96e65c34a4d | 5672 | * | | |1 = Target abort interrupt generation Enabled during CRC DMA transfer. |
AnnaBridge | 174:b96e65c34a4d | 5673 | * |[1] |BLKD_IE |CRC DMA Transfer Done Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 5674 | * | | |0 = Interrupt generator Disabled during CRC DMA transfer done. |
AnnaBridge | 174:b96e65c34a4d | 5675 | * | | |1 = Interrupt generator Enabled during CRC DMA transfer done. |
AnnaBridge | 174:b96e65c34a4d | 5676 | */ |
AnnaBridge | 174:b96e65c34a4d | 5677 | __IO uint32_t DMAIER; |
AnnaBridge | 174:b96e65c34a4d | 5678 | |
AnnaBridge | 174:b96e65c34a4d | 5679 | /** |
AnnaBridge | 174:b96e65c34a4d | 5680 | * DMAISR |
AnnaBridge | 174:b96e65c34a4d | 5681 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5682 | * Offset: 0x24 DMA CRC Interrupt Status Register |
AnnaBridge | 174:b96e65c34a4d | 5683 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5684 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5685 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5686 | * |[0] |TABORT_IF |CRC DMA Read/Write Target Abort Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 5687 | * | | |0 = No bus ERROR response received. |
AnnaBridge | 174:b96e65c34a4d | 5688 | * | | |1 = Bus ERROR response received. |
AnnaBridge | 174:b96e65c34a4d | 5689 | * | | |Software can write 1 to clear this bit to zero |
AnnaBridge | 174:b96e65c34a4d | 5690 | * | | |Note: The CRC_DMAISR [TABORT_IF] indicate bus master received ERROR response or not. |
AnnaBridge | 174:b96e65c34a4d | 5691 | * | | |If bus master received ERROR response, it means that target abort is happened. |
AnnaBridge | 174:b96e65c34a4d | 5692 | * | | |DMA will stop transfer and respond this event to software then go to IDLE state. |
AnnaBridge | 174:b96e65c34a4d | 5693 | * | | |When target abort occurred, software must reset DMA, and then transfer those data again. |
AnnaBridge | 174:b96e65c34a4d | 5694 | * |[1] |BLKD_IF |Block Transfer Done Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 5695 | * | | |This bit indicates that CRC DMA has finished all transfer. |
AnnaBridge | 174:b96e65c34a4d | 5696 | * | | |0 = Not finished yet. |
AnnaBridge | 174:b96e65c34a4d | 5697 | * | | |1 = Done. |
AnnaBridge | 174:b96e65c34a4d | 5698 | * | | |Software can write 1 to clear this bit to zero |
AnnaBridge | 174:b96e65c34a4d | 5699 | */ |
AnnaBridge | 174:b96e65c34a4d | 5700 | __IO uint32_t DMAISR; |
AnnaBridge | 174:b96e65c34a4d | 5701 | uint32_t RESERVE3[22]; |
AnnaBridge | 174:b96e65c34a4d | 5702 | |
AnnaBridge | 174:b96e65c34a4d | 5703 | |
AnnaBridge | 174:b96e65c34a4d | 5704 | /** |
AnnaBridge | 174:b96e65c34a4d | 5705 | * WDATA |
AnnaBridge | 174:b96e65c34a4d | 5706 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5707 | * Offset: 0x80 DMA CRC Write Data Register |
AnnaBridge | 174:b96e65c34a4d | 5708 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5709 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5710 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5711 | * |[31:0] |CRC_WDATA |CRC Write Data Register |
AnnaBridge | 174:b96e65c34a4d | 5712 | * | | |When operating in CPU PIO (CRC_CTL [CRCCEN] = 1, CRC_CTL [TRIG_EN] = 0) mode, software can write data to this field to perform CRC operation;. |
AnnaBridge | 174:b96e65c34a4d | 5713 | * | | |When operating in CRC DMA mode (CRC_CTL [CRCCEN] = 1, CRC_CTL [TRIG_EN] = 0), this field will be used for DMA internal buffer. |
AnnaBridge | 174:b96e65c34a4d | 5714 | * | | |Note1: When operating in CRC DMA mode, so don't filled any data in this field. |
AnnaBridge | 174:b96e65c34a4d | 5715 | * | | |Note2:The CRC_CTL [WDATA_COM] and CRC_CTL [WDATA_RVS] bit setting will affected this field; For example, if WDATA_RVS = 1, if the write data in CRC_WDATA register is 0xAABBCCDD, the read data from CRC_WDATA register will be 0x55DD33BB |
AnnaBridge | 174:b96e65c34a4d | 5716 | */ |
AnnaBridge | 174:b96e65c34a4d | 5717 | __IO uint32_t WDATA; |
AnnaBridge | 174:b96e65c34a4d | 5718 | |
AnnaBridge | 174:b96e65c34a4d | 5719 | /** |
AnnaBridge | 174:b96e65c34a4d | 5720 | * SEED |
AnnaBridge | 174:b96e65c34a4d | 5721 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5722 | * Offset: 0x84 DMA CRC Seed Register |
AnnaBridge | 174:b96e65c34a4d | 5723 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5724 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5725 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5726 | * |[31:0] |CRC_SEED |CRC Seed Register |
AnnaBridge | 174:b96e65c34a4d | 5727 | * | | |This field indicates the CRC seed value. |
AnnaBridge | 174:b96e65c34a4d | 5728 | */ |
AnnaBridge | 174:b96e65c34a4d | 5729 | __IO uint32_t SEED; |
AnnaBridge | 174:b96e65c34a4d | 5730 | |
AnnaBridge | 174:b96e65c34a4d | 5731 | /** |
AnnaBridge | 174:b96e65c34a4d | 5732 | * CHECKSUM |
AnnaBridge | 174:b96e65c34a4d | 5733 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5734 | * Offset: 0x88 DMA CRC Check Sum Register |
AnnaBridge | 174:b96e65c34a4d | 5735 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5736 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5737 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5738 | * |[31:0] |CRC_CHECKSUM|CRC Checksum Register |
AnnaBridge | 174:b96e65c34a4d | 5739 | * | | |This field indicates the CRC checksum |
AnnaBridge | 174:b96e65c34a4d | 5740 | */ |
AnnaBridge | 174:b96e65c34a4d | 5741 | __I uint32_t CHECKSUM; |
AnnaBridge | 174:b96e65c34a4d | 5742 | |
AnnaBridge | 174:b96e65c34a4d | 5743 | } DMA_CRC_T; |
AnnaBridge | 174:b96e65c34a4d | 5744 | |
AnnaBridge | 174:b96e65c34a4d | 5745 | |
AnnaBridge | 174:b96e65c34a4d | 5746 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 5747 | |
AnnaBridge | 174:b96e65c34a4d | 5748 | |
AnnaBridge | 174:b96e65c34a4d | 5749 | /** |
AnnaBridge | 174:b96e65c34a4d | 5750 | * GCRCSR |
AnnaBridge | 174:b96e65c34a4d | 5751 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5752 | * Offset: 0x00 DMA Global Control and Status Register |
AnnaBridge | 174:b96e65c34a4d | 5753 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5754 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5755 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5756 | * |[8] |CLK0_EN |DMA Controller Channel 0 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 5757 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5758 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5759 | * |[9] |CLK1_EN |DMA Controller Channel 1 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 5760 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5761 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5762 | * |[10] |CLK2_EN |DMA Controller Channel 2 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 5763 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5764 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5765 | * |[11] |CLK3_EN |DMA Controller Channel 3 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 5766 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5767 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5768 | * |[12] |CLK4_EN |DMA Controller Channel 4 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 5769 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5770 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5771 | * |[13] |CLK5_EN |DMA Controller Channel 5 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 5772 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5773 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5774 | * |[14] |CLK6_EN |DMA Controller Channel 6 Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 5775 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5776 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5777 | * |[24] |CRC_CLK_EN|CRC Controller Clock Enable Control |
AnnaBridge | 174:b96e65c34a4d | 5778 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5779 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5780 | */ |
AnnaBridge | 174:b96e65c34a4d | 5781 | __IO uint32_t GCRCSR; |
AnnaBridge | 174:b96e65c34a4d | 5782 | |
AnnaBridge | 174:b96e65c34a4d | 5783 | /** |
AnnaBridge | 174:b96e65c34a4d | 5784 | * DSSR0 |
AnnaBridge | 174:b96e65c34a4d | 5785 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5786 | * Offset: 0x04 DMA Service Selection Control Register 0 |
AnnaBridge | 174:b96e65c34a4d | 5787 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5788 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5789 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5790 | * |[12:8] |CH1_SEL |Channel 1 Selection |
AnnaBridge | 174:b96e65c34a4d | 5791 | * | | |This filed defines which peripheral is connected to PDMA channel 1. |
AnnaBridge | 174:b96e65c34a4d | 5792 | * | | |Software can configure the peripheral by setting CH1_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5793 | * | | |00000 = Connect to SPI0_TX. |
AnnaBridge | 174:b96e65c34a4d | 5794 | * | | |00001 = Connect to SPI1_TX. |
AnnaBridge | 174:b96e65c34a4d | 5795 | * | | |00010 = Connect to UART0_TX. |
AnnaBridge | 174:b96e65c34a4d | 5796 | * | | |00011 = Connect to UART1_TX. |
AnnaBridge | 174:b96e65c34a4d | 5797 | * | | |00100 = Connect to USB_TX. |
AnnaBridge | 174:b96e65c34a4d | 5798 | * | | |00101 = Connect to I2S_TX. |
AnnaBridge | 174:b96e65c34a4d | 5799 | * | | |00110 = Connect to DAC0_TX. |
AnnaBridge | 174:b96e65c34a4d | 5800 | * | | |00111 = Connect to DAC1_TX. |
AnnaBridge | 174:b96e65c34a4d | 5801 | * | | |01000 = Connect to SPI2_TX. |
AnnaBridge | 174:b96e65c34a4d | 5802 | * | | |01001 = Connect to TMR0. |
AnnaBridge | 174:b96e65c34a4d | 5803 | * | | |01010 = Connect to TMR1. |
AnnaBridge | 174:b96e65c34a4d | 5804 | * | | |01011 = Connect to TMR2. |
AnnaBridge | 174:b96e65c34a4d | 5805 | * | | |01100 = Connect to TMR3. |
AnnaBridge | 174:b96e65c34a4d | 5806 | * | | |10000 = Connect to SPI0_RX. |
AnnaBridge | 174:b96e65c34a4d | 5807 | * | | |10001 = Connect to SPI1_RX. |
AnnaBridge | 174:b96e65c34a4d | 5808 | * | | |10010 = Connect to UART0_RX. |
AnnaBridge | 174:b96e65c34a4d | 5809 | * | | |10011 = Connect to UART1_RX. |
AnnaBridge | 174:b96e65c34a4d | 5810 | * | | |10100 = Connect to USB_RX. |
AnnaBridge | 174:b96e65c34a4d | 5811 | * | | |10101 = Connect to I2S_RX. |
AnnaBridge | 174:b96e65c34a4d | 5812 | * | | |10110 = Connect to ADC. |
AnnaBridge | 174:b96e65c34a4d | 5813 | * | | |11000 = Connect to SPI2_RX. |
AnnaBridge | 174:b96e65c34a4d | 5814 | * | | |11001 = Connect to PWM0_CH0. |
AnnaBridge | 174:b96e65c34a4d | 5815 | * | | |11010 = Connect to PWM0_CH2. |
AnnaBridge | 174:b96e65c34a4d | 5816 | * | | |11011 = Connect to PWM1_CH0. |
AnnaBridge | 174:b96e65c34a4d | 5817 | * | | |11100 = Connect to PWM1_CH2. |
AnnaBridge | 174:b96e65c34a4d | 5818 | * |[20:16] |CH2_SEL |Channel 2 Selection |
AnnaBridge | 174:b96e65c34a4d | 5819 | * | | |This filed defines which peripheral is connected to PDMA channel 2. |
AnnaBridge | 174:b96e65c34a4d | 5820 | * | | |Software can configure the peripheral setting by CH2_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5821 | * | | |The channel configuration is the same as CH1_SEL field. |
AnnaBridge | 174:b96e65c34a4d | 5822 | * | | |Please refer to the explanation of CH1_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5823 | * |[28:24] |CH3_SEL |Channel 3 Selection |
AnnaBridge | 174:b96e65c34a4d | 5824 | * | | |This filed defines which peripheral is connected to PDMA channel 3. |
AnnaBridge | 174:b96e65c34a4d | 5825 | * | | |Software can configure the peripheral setting by CH3_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5826 | * | | |The channel configuration is the same as CH1_SEL field. |
AnnaBridge | 174:b96e65c34a4d | 5827 | * | | |Please refer to the explanation of CH1_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5828 | */ |
AnnaBridge | 174:b96e65c34a4d | 5829 | __IO uint32_t DSSR0; |
AnnaBridge | 174:b96e65c34a4d | 5830 | |
AnnaBridge | 174:b96e65c34a4d | 5831 | /** |
AnnaBridge | 174:b96e65c34a4d | 5832 | * DSSR1 |
AnnaBridge | 174:b96e65c34a4d | 5833 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5834 | * Offset: 0x08 DMA Service Selection Control Register 1 |
AnnaBridge | 174:b96e65c34a4d | 5835 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5836 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5837 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5838 | * |[4:0] |CH4_SEL |Channel 4 Selection |
AnnaBridge | 174:b96e65c34a4d | 5839 | * | | |This filed defines which peripheral is connected to PDMA channel 4. |
AnnaBridge | 174:b96e65c34a4d | 5840 | * | | |Software can configure the peripheral by setting CH4_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5841 | * | | |The channel configuration is the same as CH1_SEL field. |
AnnaBridge | 174:b96e65c34a4d | 5842 | * | | |Please refer to the explanation of CH1_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5843 | * |[12:8] |CH5_SEL |Channel 5 Selection |
AnnaBridge | 174:b96e65c34a4d | 5844 | * | | |This filed defines which peripheral is connected to PDMA channel 5. |
AnnaBridge | 174:b96e65c34a4d | 5845 | * | | |Software can configure the peripheral setting by CH5_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5846 | * | | |The channel configuration is the same as CH1_SEL field. |
AnnaBridge | 174:b96e65c34a4d | 5847 | * | | |Please refer to the explanation of CH1_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5848 | * |[20:16] |CH6_SEL |Channel 6 Selection |
AnnaBridge | 174:b96e65c34a4d | 5849 | * | | |This filed defines which peripheral is connected to PDMA channel 6. |
AnnaBridge | 174:b96e65c34a4d | 5850 | * | | |Software can configure the peripheral setting by CH6_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5851 | * | | |The channel configuration is the same as CH1_SEL field. |
AnnaBridge | 174:b96e65c34a4d | 5852 | * | | |Please refer to the explanation of CH1_SEL. |
AnnaBridge | 174:b96e65c34a4d | 5853 | */ |
AnnaBridge | 174:b96e65c34a4d | 5854 | __IO uint32_t DSSR1; |
AnnaBridge | 174:b96e65c34a4d | 5855 | |
AnnaBridge | 174:b96e65c34a4d | 5856 | /** |
AnnaBridge | 174:b96e65c34a4d | 5857 | * GCRISR |
AnnaBridge | 174:b96e65c34a4d | 5858 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5859 | * Offset: 0x0C DMA Global Interrupt Status Register |
AnnaBridge | 174:b96e65c34a4d | 5860 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5861 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5862 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5863 | * |[0] |INTR0 |Interrupt Pin Status Of Channel 0 (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5864 | * | | |This bit is the Interrupt pin status of DMA channel0. |
AnnaBridge | 174:b96e65c34a4d | 5865 | * | | |Note: This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 5866 | * |[1] |INTR1 |Interrupt Pin Status Of Channel 1 (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5867 | * | | |This bit is the Interrupt pin status of DMA channel1. |
AnnaBridge | 174:b96e65c34a4d | 5868 | * | | |Note: This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 5869 | * |[2] |INTR2 |Interrupt Pin Status Of Channel 2 (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5870 | * | | |This bit is the Interrupt pin status of DMA channel2. |
AnnaBridge | 174:b96e65c34a4d | 5871 | * | | |Note: This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 5872 | * |[3] |INTR3 |Interrupt Pin Status Of Channel 3 (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5873 | * | | |This bit is the Interrupt pin status of DMA channel3. |
AnnaBridge | 174:b96e65c34a4d | 5874 | * | | |Note: This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 5875 | * |[4] |INTR4 |Interrupt Pin Status Of Channel 4 (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5876 | * | | |This bit is the Interrupt pin status of DMA channel4. |
AnnaBridge | 174:b96e65c34a4d | 5877 | * | | |Note: This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 5878 | * |[5] |INTR5 |Interrupt Pin Status Of Channel 5 (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5879 | * | | |This bit is the Interrupt pin status of DMA channel4. |
AnnaBridge | 174:b96e65c34a4d | 5880 | * | | |Note: This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 5881 | * |[6] |INTR6 |Interrupt Pin Status Of Channel 6 (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5882 | * | | |This bit is the Interrupt pin status of DMA channel4. |
AnnaBridge | 174:b96e65c34a4d | 5883 | * | | |Note: This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 5884 | * |[16] |CRC_INTR |Interrupt Pin Status Of CRC Controller |
AnnaBridge | 174:b96e65c34a4d | 5885 | * | | |This bit is the Interrupt status of CRC controller |
AnnaBridge | 174:b96e65c34a4d | 5886 | * | | |Note: This bit is read only |
AnnaBridge | 174:b96e65c34a4d | 5887 | */ |
AnnaBridge | 174:b96e65c34a4d | 5888 | __I uint32_t GCRISR; |
AnnaBridge | 174:b96e65c34a4d | 5889 | |
AnnaBridge | 174:b96e65c34a4d | 5890 | } DMA_GCR_T; |
AnnaBridge | 174:b96e65c34a4d | 5891 | |
AnnaBridge | 174:b96e65c34a4d | 5892 | |
AnnaBridge | 174:b96e65c34a4d | 5893 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 5894 | /** |
AnnaBridge | 174:b96e65c34a4d | 5895 | * CSR |
AnnaBridge | 174:b96e65c34a4d | 5896 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5897 | * Offset: 0x00 PDMA Control Register |
AnnaBridge | 174:b96e65c34a4d | 5898 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5899 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5900 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5901 | * |[0] |PDMACEN |PDMA Channel Enable |
AnnaBridge | 174:b96e65c34a4d | 5902 | * | | |Setting this bit to "1" enables PDMA's operation. |
AnnaBridge | 174:b96e65c34a4d | 5903 | * | | |If this bit is cleared, PDMA will ignore all PDMA request and force Bus Master into IDLE state. |
AnnaBridge | 174:b96e65c34a4d | 5904 | * | | |Note: SW_RST will clear this bit. |
AnnaBridge | 174:b96e65c34a4d | 5905 | * |[1] |SW_RST |Software Engine Reset |
AnnaBridge | 174:b96e65c34a4d | 5906 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 5907 | * | | |1 = Reset the internal state machine and pointers. |
AnnaBridge | 174:b96e65c34a4d | 5908 | * | | |The contents of control register will not be cleared. |
AnnaBridge | 174:b96e65c34a4d | 5909 | * | | |This bit will be auto cleared after few clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 5910 | * |[3:2] |MODE_SEL |PDMA Mode Select |
AnnaBridge | 174:b96e65c34a4d | 5911 | * | | |00 = Memory to Memory mode (Memory-to-Memory). |
AnnaBridge | 174:b96e65c34a4d | 5912 | * | | |01 = IP to Memory mode (APB-to-Memory) |
AnnaBridge | 174:b96e65c34a4d | 5913 | * | | |10 = Memory to IP mode (Memory-to-APB). |
AnnaBridge | 174:b96e65c34a4d | 5914 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 5915 | * |[5:4] |SAD_SEL |Transfer Source Address Direction Selection |
AnnaBridge | 174:b96e65c34a4d | 5916 | * | | |00 = Transfer Source address is incremented successively. |
AnnaBridge | 174:b96e65c34a4d | 5917 | * | | |01 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 5918 | * | | |10 = Transfer Source address is fixed (This feature can be used when data where transferred from a single source to multiple destinations). |
AnnaBridge | 174:b96e65c34a4d | 5919 | * | | |11 = Transfer Source address is wrap around (When the PDMA_CBCR is equal to zero, the PDMA_CSAR and PDMA_CBCR register will be updated by PDMA_SAR and PDMA_BCR automatically. |
AnnaBridge | 174:b96e65c34a4d | 5920 | * | | |PDMA will start another transfer without software trigger until PDMA_EN disabled. |
AnnaBridge | 174:b96e65c34a4d | 5921 | * | | |When the PDMA_EN is disabled, the PDMA will complete the active transfer but the remained data which in the PDMA_BUF will not transfer to destination address). |
AnnaBridge | 174:b96e65c34a4d | 5922 | * |[7:6] |DAD_SEL |Transfer Destination Address Direction Selection |
AnnaBridge | 174:b96e65c34a4d | 5923 | * | | |00 = Transfer Destination address is incremented successively |
AnnaBridge | 174:b96e65c34a4d | 5924 | * | | |01 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 5925 | * | | |10 = Transfer Destination address is fixed (This feature can be used when data where transferred from multiple sources to a single destination) |
AnnaBridge | 174:b96e65c34a4d | 5926 | * | | |11 = Transfer Destination address is wrapped around (When the PDMA_CBCR is equal to zero, the PDMA_CDAR and PDMA_CBCR register will be updated by PDMA_DAR and PDMA_BCR automatically. |
AnnaBridge | 174:b96e65c34a4d | 5927 | * | | |PDMA will start another transfer without software trigger until PDMA_EN disabled. |
AnnaBridge | 174:b96e65c34a4d | 5928 | * | | |When the PDMA_EN is disabled, the PDMA will complete the active transfer but the remained data which in the PDMA_BUF will not transfer to destination address). |
AnnaBridge | 174:b96e65c34a4d | 5929 | * |[12] |TO_EN |Time-Out Enable |
AnnaBridge | 174:b96e65c34a4d | 5930 | * | | |This bit will enable PDMA internal counter. While this counter counts to zero, the TO_IS will be set. |
AnnaBridge | 174:b96e65c34a4d | 5931 | * | | |0 = PDMA internal counter Disabled. |
AnnaBridge | 174:b96e65c34a4d | 5932 | * | | |1 = PDMA internal counter Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5933 | * |[20:19] |APB_TWS |Peripheral Transfer Width Selection |
AnnaBridge | 174:b96e65c34a4d | 5934 | * | | |00 = One word (32 bits) is transferred for every PDMA operation. |
AnnaBridge | 174:b96e65c34a4d | 5935 | * | | |01 = One byte (8 bits) is transferred for every PDMA operation. |
AnnaBridge | 174:b96e65c34a4d | 5936 | * | | |10 = One half-word (16 bits) is transferred for every PDMA operation. |
AnnaBridge | 174:b96e65c34a4d | 5937 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 5938 | * | | |Note: This field is meaningful only when MODE_SEL is IP to Memory mode (APB-to-Memory) or Memory to IP mode (Memory-to-APB). |
AnnaBridge | 174:b96e65c34a4d | 5939 | * |[23] |TRIG_EN |TRIG_EN |
AnnaBridge | 174:b96e65c34a4d | 5940 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 5941 | * | | |1 = PDMA data read or write transfer Enabled. |
AnnaBridge | 174:b96e65c34a4d | 5942 | * | | |Note1: When PDMA transfer completed, this bit will be cleared automatically. |
AnnaBridge | 174:b96e65c34a4d | 5943 | * | | |Note2: If the bus error occurs, all PDMA transfer will be stopped. |
AnnaBridge | 174:b96e65c34a4d | 5944 | * | | |Software must reset all PDMA channel, and then trig again. |
AnnaBridge | 174:b96e65c34a4d | 5945 | */ |
AnnaBridge | 174:b96e65c34a4d | 5946 | __IO uint32_t CSR; |
AnnaBridge | 174:b96e65c34a4d | 5947 | |
AnnaBridge | 174:b96e65c34a4d | 5948 | /** |
AnnaBridge | 174:b96e65c34a4d | 5949 | * SAR |
AnnaBridge | 174:b96e65c34a4d | 5950 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5951 | * Offset: 0x04 PDMA Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 5952 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5953 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5954 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5955 | * |[31:0] |PDMA_SAR |PDMA Transfer Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 5956 | * | | |This field indicates a 32-bit source address of PDMA. |
AnnaBridge | 174:b96e65c34a4d | 5957 | * | | |Note: The source address must be word alignment. |
AnnaBridge | 174:b96e65c34a4d | 5958 | */ |
AnnaBridge | 174:b96e65c34a4d | 5959 | __IO uint32_t SAR; |
AnnaBridge | 174:b96e65c34a4d | 5960 | |
AnnaBridge | 174:b96e65c34a4d | 5961 | /** |
AnnaBridge | 174:b96e65c34a4d | 5962 | * DAR |
AnnaBridge | 174:b96e65c34a4d | 5963 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5964 | * Offset: 0x08 PDMA Destination Address Register |
AnnaBridge | 174:b96e65c34a4d | 5965 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5966 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5967 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5968 | * |[31:0] |PDMA_DAR |PDMA Transfer Destination Address Register |
AnnaBridge | 174:b96e65c34a4d | 5969 | * | | |This field indicates a 32-bit destination address of PDMA. |
AnnaBridge | 174:b96e65c34a4d | 5970 | * | | |Note : The destination address must be word alignment |
AnnaBridge | 174:b96e65c34a4d | 5971 | */ |
AnnaBridge | 174:b96e65c34a4d | 5972 | __IO uint32_t DAR; |
AnnaBridge | 174:b96e65c34a4d | 5973 | |
AnnaBridge | 174:b96e65c34a4d | 5974 | /** |
AnnaBridge | 174:b96e65c34a4d | 5975 | * BCR |
AnnaBridge | 174:b96e65c34a4d | 5976 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5977 | * Offset: 0x0C PDMA Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 5978 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5979 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5980 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5981 | * |[15:0] |PDMA_BCR |PDMA Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 5982 | * | | |This field indicates a 16-bit transfer byte count of PDMA. |
AnnaBridge | 174:b96e65c34a4d | 5983 | * | | |Note: In Memory-to-memory (PDMA_CSR [MODE_SEL] = 00) mode, the transfer byte count must be word alignment. |
AnnaBridge | 174:b96e65c34a4d | 5984 | */ |
AnnaBridge | 174:b96e65c34a4d | 5985 | __IO uint32_t BCR; |
AnnaBridge | 174:b96e65c34a4d | 5986 | uint32_t RESERVE0[1]; |
AnnaBridge | 174:b96e65c34a4d | 5987 | |
AnnaBridge | 174:b96e65c34a4d | 5988 | |
AnnaBridge | 174:b96e65c34a4d | 5989 | /** |
AnnaBridge | 174:b96e65c34a4d | 5990 | * CSAR |
AnnaBridge | 174:b96e65c34a4d | 5991 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 5992 | * Offset: 0x14 PDMA Current Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 5993 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 5994 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 5995 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 5996 | * |[31:0] |PDMA_CSAR |PDMA Current Source Address Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 5997 | * | | |This field indicates the source address where the PDMA transfer is just occurring. |
AnnaBridge | 174:b96e65c34a4d | 5998 | */ |
AnnaBridge | 174:b96e65c34a4d | 5999 | __I uint32_t CSAR; |
AnnaBridge | 174:b96e65c34a4d | 6000 | |
AnnaBridge | 174:b96e65c34a4d | 6001 | /** |
AnnaBridge | 174:b96e65c34a4d | 6002 | * CDAR |
AnnaBridge | 174:b96e65c34a4d | 6003 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6004 | * Offset: 0x18 PDMA Current Destination Address Register |
AnnaBridge | 174:b96e65c34a4d | 6005 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6006 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6007 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6008 | * |[31:0] |PDMA_CDAR |PDMA Current Destination Address Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 6009 | * | | |This field indicates the destination address where the PDMA transfer is just occurring. |
AnnaBridge | 174:b96e65c34a4d | 6010 | */ |
AnnaBridge | 174:b96e65c34a4d | 6011 | __I uint32_t CDAR; |
AnnaBridge | 174:b96e65c34a4d | 6012 | |
AnnaBridge | 174:b96e65c34a4d | 6013 | /** |
AnnaBridge | 174:b96e65c34a4d | 6014 | * CBCR |
AnnaBridge | 174:b96e65c34a4d | 6015 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6016 | * Offset: 0x1C PDMA Current Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 6017 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6018 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6019 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6020 | * |[23:0] |PDMA_CBCR |PDMA Current Byte Count Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 6021 | * | | |This field indicates the current remained byte count of PDMA. |
AnnaBridge | 174:b96e65c34a4d | 6022 | * | | |Note: These fields will be changed when PDMA finish data transfer (data transfer to destination address), |
AnnaBridge | 174:b96e65c34a4d | 6023 | */ |
AnnaBridge | 174:b96e65c34a4d | 6024 | __I uint32_t CBCR; |
AnnaBridge | 174:b96e65c34a4d | 6025 | |
AnnaBridge | 174:b96e65c34a4d | 6026 | /** |
AnnaBridge | 174:b96e65c34a4d | 6027 | * IER |
AnnaBridge | 174:b96e65c34a4d | 6028 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6029 | * Offset: 0x20 PDMA Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 6030 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6031 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6032 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6033 | * |[0] |TABORT_IE |PDMA Read/Write Target Abort Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6034 | * | | |0 = Target abort interrupt generation Disabled during PDMA transfer. |
AnnaBridge | 174:b96e65c34a4d | 6035 | * | | |1 = Target abort interrupt generation Enabled during PDMA transfer. |
AnnaBridge | 174:b96e65c34a4d | 6036 | * |[1] |TD_IE |PDMA Transfer Done Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6037 | * | | |0 = Interrupt generator Disabled when PDMA transfer is done. |
AnnaBridge | 174:b96e65c34a4d | 6038 | * | | |1 = Interrupt generator Enabled when PDMA transfer is done. |
AnnaBridge | 174:b96e65c34a4d | 6039 | * |[5:2] |WRA_BCR_IE|Wrap Around Byte Count Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6040 | * | | |0001 = Interrupt enable of PDMA_CBCR equals 0 |
AnnaBridge | 174:b96e65c34a4d | 6041 | * | | |0100 = Interrupt enable of PDMA_CBCR equals 1/2 PDMA_BCR. |
AnnaBridge | 174:b96e65c34a4d | 6042 | * |[6] |TO_IE |Time-Out Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6043 | * | | |0 = Time-out interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6044 | * | | |1 = Time-out interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6045 | */ |
AnnaBridge | 174:b96e65c34a4d | 6046 | __IO uint32_t IER; |
AnnaBridge | 174:b96e65c34a4d | 6047 | |
AnnaBridge | 174:b96e65c34a4d | 6048 | /** |
AnnaBridge | 174:b96e65c34a4d | 6049 | * ISR |
AnnaBridge | 174:b96e65c34a4d | 6050 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6051 | * Offset: 0x24 PDMA Interrupt Status Register |
AnnaBridge | 174:b96e65c34a4d | 6052 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6053 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6054 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6055 | * |[0] |TABORT_IS |PDMA Read/Write Target Abort Interrupt Status Flag |
AnnaBridge | 174:b96e65c34a4d | 6056 | * | | |0 = No bus ERROR response received. |
AnnaBridge | 174:b96e65c34a4d | 6057 | * | | |1 = Bus ERROR response received. |
AnnaBridge | 174:b96e65c34a4d | 6058 | * | | |Note1: This bit is cleared by writing "1" to itself. |
AnnaBridge | 174:b96e65c34a4d | 6059 | * | | |Note2: The PDMA_ISR [TABORT_IF] indicate bus master received ERROR response or not, if bus master received occur it means that target abort is happened. |
AnnaBridge | 174:b96e65c34a4d | 6060 | * | | |PDMA controller will stop transfer and respond this event to software then go to IDLE state. |
AnnaBridge | 174:b96e65c34a4d | 6061 | * | | |When target abort occurred, software must reset PDMA controller, and then transfer those data again. |
AnnaBridge | 174:b96e65c34a4d | 6062 | * |[1] |TD_IS |Transfer Done Interrupt Status Flag |
AnnaBridge | 174:b96e65c34a4d | 6063 | * | | |This bit indicates that PDMA has finished all transfer. |
AnnaBridge | 174:b96e65c34a4d | 6064 | * | | |0 = Not finished yet. |
AnnaBridge | 174:b96e65c34a4d | 6065 | * | | |1 = Done. |
AnnaBridge | 174:b96e65c34a4d | 6066 | * | | |Note: This bit is cleared by writing "1" to itself. |
AnnaBridge | 174:b96e65c34a4d | 6067 | * |[5:2] |WRA_BCR_IS|Wrap Around Transfer Byte Count Interrupt Status Flag |
AnnaBridge | 174:b96e65c34a4d | 6068 | * | | |WAR_)CR_IS [0] (xxx1) = PDMA_CBCR equal 0 flag. |
AnnaBridge | 174:b96e65c34a4d | 6069 | * | | |WAR_BCR_IS [2] (x1xx) = PDMA_CBCR equal 1/2 PDMA_BCR flag. |
AnnaBridge | 174:b96e65c34a4d | 6070 | * | | |Note: Each bit is cleared by writing "1" to itself. |
AnnaBridge | 174:b96e65c34a4d | 6071 | * | | |This field is only valid in wrap around mode. |
AnnaBridge | 174:b96e65c34a4d | 6072 | * | | |(PDMA_CSR[DAD_SEL] =11 or PDMA_CSR[SAD_SEL] =11). |
AnnaBridge | 174:b96e65c34a4d | 6073 | * |[6] |TO_IS |Time-Out Interrupt Status Flag |
AnnaBridge | 174:b96e65c34a4d | 6074 | * | | |This flag indicated that PDMA has waited peripheral request for a period defined by PDMA_TCR. |
AnnaBridge | 174:b96e65c34a4d | 6075 | * | | |0 = No time-out flag. |
AnnaBridge | 174:b96e65c34a4d | 6076 | * | | |1 = Time-out flag. |
AnnaBridge | 174:b96e65c34a4d | 6077 | * | | |Note: This bit is cleared by writing "1" to itself. |
AnnaBridge | 174:b96e65c34a4d | 6078 | */ |
AnnaBridge | 174:b96e65c34a4d | 6079 | __IO uint32_t ISR; |
AnnaBridge | 174:b96e65c34a4d | 6080 | |
AnnaBridge | 174:b96e65c34a4d | 6081 | /** |
AnnaBridge | 174:b96e65c34a4d | 6082 | * TCR |
AnnaBridge | 174:b96e65c34a4d | 6083 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6084 | * Offset: 0x28 PDMA Timer Counter Setting Register |
AnnaBridge | 174:b96e65c34a4d | 6085 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6086 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6087 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6088 | * |[15:0] |PDMA_TCR |PDMA Timer Count Setting Register |
AnnaBridge | 174:b96e65c34a4d | 6089 | * | | |Each PDMA channel contains an internal counter. |
AnnaBridge | 174:b96e65c34a4d | 6090 | * | | |The internal counter loads the value of PDAM_TCR and starts counting down when setting PDMA_CSRx [TO_EN] register. |
AnnaBridge | 174:b96e65c34a4d | 6091 | * | | |PDMA will request interrupt when this internal counter reaches zero and PDMA_IERx[TO_IE] is high. |
AnnaBridge | 174:b96e65c34a4d | 6092 | * | | |This internal counter will reload and start counting when completing each peripheral request service. |
AnnaBridge | 174:b96e65c34a4d | 6093 | */ |
AnnaBridge | 174:b96e65c34a4d | 6094 | __IO uint32_t TCR; |
AnnaBridge | 174:b96e65c34a4d | 6095 | |
AnnaBridge | 174:b96e65c34a4d | 6096 | } PDMA_T; |
AnnaBridge | 174:b96e65c34a4d | 6097 | |
AnnaBridge | 174:b96e65c34a4d | 6098 | |
AnnaBridge | 174:b96e65c34a4d | 6099 | |
AnnaBridge | 174:b96e65c34a4d | 6100 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 6101 | |
AnnaBridge | 174:b96e65c34a4d | 6102 | |
AnnaBridge | 174:b96e65c34a4d | 6103 | /** |
AnnaBridge | 174:b96e65c34a4d | 6104 | * CSR |
AnnaBridge | 174:b96e65c34a4d | 6105 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6106 | * Offset: 0x00 VDMA Control Register |
AnnaBridge | 174:b96e65c34a4d | 6107 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6108 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6109 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6110 | * |[0] |VDMACEN |VDMA Channel Enable |
AnnaBridge | 174:b96e65c34a4d | 6111 | * | | |Setting this bit to "1" enables VDMA's operation. |
AnnaBridge | 174:b96e65c34a4d | 6112 | * | | |If this bit is cleared, VDMA will ignore all VDMA request and force Bus Master into IDLE state. |
AnnaBridge | 174:b96e65c34a4d | 6113 | * | | |Note: SW_RST will clear this bit. |
AnnaBridge | 174:b96e65c34a4d | 6114 | * |[1] |SW_RST |Software Engine Reset |
AnnaBridge | 174:b96e65c34a4d | 6115 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 6116 | * | | |1 = Reset the internal state machine and pointers. |
AnnaBridge | 174:b96e65c34a4d | 6117 | * | | |The contents of control register will not be cleared. |
AnnaBridge | 174:b96e65c34a4d | 6118 | * | | |This bit will be auto cleared after few clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 6119 | * |[10] |STRIDE_EN |Stride Mode Enable |
AnnaBridge | 174:b96e65c34a4d | 6120 | * | | |0 = Stride transfer mode Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6121 | * | | |1 = Stride transfer mode Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6122 | * |[11] |DIR_SEL |Transfer Source/Destination Address Direction Select |
AnnaBridge | 174:b96e65c34a4d | 6123 | * | | |0 = Transfer address is incremented successively. |
AnnaBridge | 174:b96e65c34a4d | 6124 | * | | |1 = Transfer address is decremented successively. |
AnnaBridge | 174:b96e65c34a4d | 6125 | * |[23] |TRIG_EN |TRIG_EN |
AnnaBridge | 174:b96e65c34a4d | 6126 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 6127 | * | | |1 = VDMA data read or write transfer Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6128 | * | | |Note1: When VDMA transfer is completed, this bit will be cleared automatically. |
AnnaBridge | 174:b96e65c34a4d | 6129 | * | | |Note2: If the bus error occurs, all VDMA transfer will be stopped. |
AnnaBridge | 174:b96e65c34a4d | 6130 | * | | |Software must reset all VDMA channel, and then trig again. |
AnnaBridge | 174:b96e65c34a4d | 6131 | */ |
AnnaBridge | 174:b96e65c34a4d | 6132 | __IO uint32_t CSR; |
AnnaBridge | 174:b96e65c34a4d | 6133 | |
AnnaBridge | 174:b96e65c34a4d | 6134 | /** |
AnnaBridge | 174:b96e65c34a4d | 6135 | * SAR |
AnnaBridge | 174:b96e65c34a4d | 6136 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6137 | * Offset: 0x04 VDMA Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 6138 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6139 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6140 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6141 | * |[31:0] |VDMA_SAR |VDMA Transfer Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 6142 | * | | |This field indicates a 32-bit source address of VDMA. |
AnnaBridge | 174:b96e65c34a4d | 6143 | */ |
AnnaBridge | 174:b96e65c34a4d | 6144 | __IO uint32_t SAR; |
AnnaBridge | 174:b96e65c34a4d | 6145 | |
AnnaBridge | 174:b96e65c34a4d | 6146 | /** |
AnnaBridge | 174:b96e65c34a4d | 6147 | * DAR |
AnnaBridge | 174:b96e65c34a4d | 6148 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6149 | * Offset: 0x08 VDMA Destination Address Register |
AnnaBridge | 174:b96e65c34a4d | 6150 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6151 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6152 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6153 | * |[31:0] |VDMA_DAR |VDMA Transfer Destination Address Register |
AnnaBridge | 174:b96e65c34a4d | 6154 | * | | |This field indicates a 32-bit destination address of VDMA. |
AnnaBridge | 174:b96e65c34a4d | 6155 | */ |
AnnaBridge | 174:b96e65c34a4d | 6156 | __IO uint32_t DAR; |
AnnaBridge | 174:b96e65c34a4d | 6157 | |
AnnaBridge | 174:b96e65c34a4d | 6158 | /** |
AnnaBridge | 174:b96e65c34a4d | 6159 | * BCR |
AnnaBridge | 174:b96e65c34a4d | 6160 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6161 | * Offset: 0x0C VDMA Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 6162 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6163 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6164 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6165 | * |[15:0] |VDMA_BCR |VDMA Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 6166 | * | | |This field indicates a 16-bit transfer byte count of VDMA. |
AnnaBridge | 174:b96e65c34a4d | 6167 | * | | |Note: In Stride Enable mode (VDMA_CSR [10] = "0"]), the transfer byte count (VDMA_BCR) must be an integer multiple of STBC (VDMA_SASOCR [31:16]). |
AnnaBridge | 174:b96e65c34a4d | 6168 | */ |
AnnaBridge | 174:b96e65c34a4d | 6169 | __IO uint32_t BCR; |
AnnaBridge | 174:b96e65c34a4d | 6170 | uint32_t RESERVE0[1]; |
AnnaBridge | 174:b96e65c34a4d | 6171 | |
AnnaBridge | 174:b96e65c34a4d | 6172 | |
AnnaBridge | 174:b96e65c34a4d | 6173 | /** |
AnnaBridge | 174:b96e65c34a4d | 6174 | * CSAR |
AnnaBridge | 174:b96e65c34a4d | 6175 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6176 | * Offset: 0x14 VDMA Current Source Address Register |
AnnaBridge | 174:b96e65c34a4d | 6177 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6178 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6179 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6180 | * |[31:0] |VDMA_CSAR |VDMA Current Source Address Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 6181 | * | | |This field indicates the source address where the VDMA transfer is just occurring. |
AnnaBridge | 174:b96e65c34a4d | 6182 | */ |
AnnaBridge | 174:b96e65c34a4d | 6183 | __I uint32_t CSAR; |
AnnaBridge | 174:b96e65c34a4d | 6184 | |
AnnaBridge | 174:b96e65c34a4d | 6185 | /** |
AnnaBridge | 174:b96e65c34a4d | 6186 | * CDAR |
AnnaBridge | 174:b96e65c34a4d | 6187 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6188 | * Offset: 0x18 VDMA Current Destination Address Register |
AnnaBridge | 174:b96e65c34a4d | 6189 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6190 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6191 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6192 | * |[31:0] |VDMA_CDAR |VDMA Current Destination Address Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 6193 | * | | |This field indicates the destination address where the VDMA transfer is just occurring. |
AnnaBridge | 174:b96e65c34a4d | 6194 | */ |
AnnaBridge | 174:b96e65c34a4d | 6195 | __I uint32_t CDAR; |
AnnaBridge | 174:b96e65c34a4d | 6196 | |
AnnaBridge | 174:b96e65c34a4d | 6197 | /** |
AnnaBridge | 174:b96e65c34a4d | 6198 | * CBCR |
AnnaBridge | 174:b96e65c34a4d | 6199 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6200 | * Offset: 0x1C VDMA Current Transfer Byte Count Register |
AnnaBridge | 174:b96e65c34a4d | 6201 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6202 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6203 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6204 | * |[15:0] |VDMA_CBCR |VDMA Current Byte Count Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 6205 | * | | |This field indicates the current remained byte count of VDMA. |
AnnaBridge | 174:b96e65c34a4d | 6206 | */ |
AnnaBridge | 174:b96e65c34a4d | 6207 | __I uint32_t CBCR; |
AnnaBridge | 174:b96e65c34a4d | 6208 | |
AnnaBridge | 174:b96e65c34a4d | 6209 | /** |
AnnaBridge | 174:b96e65c34a4d | 6210 | * IER |
AnnaBridge | 174:b96e65c34a4d | 6211 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6212 | * Offset: 0x20 VDMA Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 6213 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6214 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6215 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6216 | * |[0] |TABORT_IE |VDMA Read/Write Target Abort Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6217 | * | | |0 = Disabled target abort interrupt generation during VDMA transfer. |
AnnaBridge | 174:b96e65c34a4d | 6218 | * | | |1 = Enabled target abort interrupt generation during VDMA transfer. |
AnnaBridge | 174:b96e65c34a4d | 6219 | * |[1] |TD_IE |VDMA Transfer Done Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6220 | * | | |0 = Disabled interrupt generator during VDMA transfer done. |
AnnaBridge | 174:b96e65c34a4d | 6221 | * | | |1 = Enabled interrupt generator during VDMA transfer done. |
AnnaBridge | 174:b96e65c34a4d | 6222 | */ |
AnnaBridge | 174:b96e65c34a4d | 6223 | __IO uint32_t IER; |
AnnaBridge | 174:b96e65c34a4d | 6224 | |
AnnaBridge | 174:b96e65c34a4d | 6225 | /** |
AnnaBridge | 174:b96e65c34a4d | 6226 | * ISR |
AnnaBridge | 174:b96e65c34a4d | 6227 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6228 | * Offset: 0x24 VDMA Interrupt Status Register |
AnnaBridge | 174:b96e65c34a4d | 6229 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6230 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6231 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6232 | * |[0] |TABORT_IS |VDMA Read/Write Target Abort Interrupt Status Flag |
AnnaBridge | 174:b96e65c34a4d | 6233 | * | | |0 = No bus ERROR response received. |
AnnaBridge | 174:b96e65c34a4d | 6234 | * | | |1 = Bus ERROR response received. |
AnnaBridge | 174:b96e65c34a4d | 6235 | * | | |Note1: This bit is cleared by writing "1" to itself. |
AnnaBridge | 174:b96e65c34a4d | 6236 | * | | |Note2: The VDMA_ISR [TABORT_IF] indicate bus master received ERROR response or not, if bus master received occur it means that target abort is happened. |
AnnaBridge | 174:b96e65c34a4d | 6237 | * | | |VDMA controller will stop transfer and respond this event to software then go to IDLE state. |
AnnaBridge | 174:b96e65c34a4d | 6238 | * | | |When target abort occurred, software must reset VDMA controller, and then transfer those data again. |
AnnaBridge | 174:b96e65c34a4d | 6239 | * |[1] |TD_IS |Transfer Done Interrupt Status Flag |
AnnaBridge | 174:b96e65c34a4d | 6240 | * | | |This bit indicates that VDMA has finished all transfer. |
AnnaBridge | 174:b96e65c34a4d | 6241 | * | | |0 = Not finished yet. |
AnnaBridge | 174:b96e65c34a4d | 6242 | * | | |1 = Done. |
AnnaBridge | 174:b96e65c34a4d | 6243 | * | | |Note: This bit is cleared by writing "1" to itself. |
AnnaBridge | 174:b96e65c34a4d | 6244 | */ |
AnnaBridge | 174:b96e65c34a4d | 6245 | __IO uint32_t ISR; |
AnnaBridge | 174:b96e65c34a4d | 6246 | uint32_t RESERVE1[1]; |
AnnaBridge | 174:b96e65c34a4d | 6247 | |
AnnaBridge | 174:b96e65c34a4d | 6248 | |
AnnaBridge | 174:b96e65c34a4d | 6249 | /** |
AnnaBridge | 174:b96e65c34a4d | 6250 | * SASOCR |
AnnaBridge | 174:b96e65c34a4d | 6251 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6252 | * Offset: 0x2C VDMA Source Address Stride Offset Register |
AnnaBridge | 174:b96e65c34a4d | 6253 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6254 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6255 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6256 | * |[15:0] |SASTOBL |VDMA Source Address Stride Offset Byte Length |
AnnaBridge | 174:b96e65c34a4d | 6257 | * | | |The 16-bit register defines the source address stride transfer offset count of each row. |
AnnaBridge | 174:b96e65c34a4d | 6258 | * |[31:16] |STBC |VDMA Stride Transfer Byte Count |
AnnaBridge | 174:b96e65c34a4d | 6259 | * | | |The 16-bit register defines the stride transfer byte count of each row. |
AnnaBridge | 174:b96e65c34a4d | 6260 | */ |
AnnaBridge | 174:b96e65c34a4d | 6261 | __IO uint32_t SASOCR; |
AnnaBridge | 174:b96e65c34a4d | 6262 | |
AnnaBridge | 174:b96e65c34a4d | 6263 | /** |
AnnaBridge | 174:b96e65c34a4d | 6264 | * DASOCR |
AnnaBridge | 174:b96e65c34a4d | 6265 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6266 | * Offset: 0x30 VDMA Destination Address Stride Offset Register |
AnnaBridge | 174:b96e65c34a4d | 6267 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6268 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6269 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6270 | * |[15:0] |DASTOBL |VDMA Destination Address Stride Offset Byte Length |
AnnaBridge | 174:b96e65c34a4d | 6271 | * | | |The 16-bit register defines the destination address stride transfer offset count of each row. |
AnnaBridge | 174:b96e65c34a4d | 6272 | */ |
AnnaBridge | 174:b96e65c34a4d | 6273 | __IO uint32_t DASOCR; |
AnnaBridge | 174:b96e65c34a4d | 6274 | |
AnnaBridge | 174:b96e65c34a4d | 6275 | } VDMA_T; |
AnnaBridge | 174:b96e65c34a4d | 6276 | |
AnnaBridge | 174:b96e65c34a4d | 6277 | |
AnnaBridge | 174:b96e65c34a4d | 6278 | /** |
AnnaBridge | 174:b96e65c34a4d | 6279 | @addtogroup DMA_CRC_CONST DMA_CRC Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 6280 | Constant Definitions for DMA_CRC Controller |
AnnaBridge | 174:b96e65c34a4d | 6281 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 6282 | |
AnnaBridge | 174:b96e65c34a4d | 6283 | #define DMA_CRC_CTL_CRCCEN_Pos (0) /*!< DMA_CRC_T::CTL: CRCCEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6284 | #define DMA_CRC_CTL_CRCCEN_Msk (0x1ul << DMA_CRC_CTL_CRCCEN_Pos) /*!< DMA_CRC_T::CTL: CRCCEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6285 | |
AnnaBridge | 174:b96e65c34a4d | 6286 | #define DMA_CRC_CTL_CRC_RST_Pos (1) /*!< DMA_CRC_T::CTL: CRC_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 6287 | #define DMA_CRC_CTL_CRC_RST_Msk (0x1ul << DMA_CRC_CTL_CRC_RST_Pos) /*!< DMA_CRC_T::CTL: CRC_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6288 | |
AnnaBridge | 174:b96e65c34a4d | 6289 | #define DMA_CRC_CTL_TRIG_EN_Pos (23) /*!< DMA_CRC_T::CTL: TRIG_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6290 | #define DMA_CRC_CTL_TRIG_EN_Msk (0x1ul << DMA_CRC_CTL_TRIG_EN_Pos) /*!< DMA_CRC_T::CTL: TRIG_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6291 | |
AnnaBridge | 174:b96e65c34a4d | 6292 | #define DMA_CRC_CTL_WDATA_RVS_Pos (24) /*!< DMA_CRC_T::CTL: WDATA_RVS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6293 | #define DMA_CRC_CTL_WDATA_RVS_Msk (0x1ul << DMA_CRC_CTL_WDATA_RVS_Pos) /*!< DMA_CRC_T::CTL: WDATA_RVS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6294 | |
AnnaBridge | 174:b96e65c34a4d | 6295 | #define DMA_CRC_CTL_CHECKSUM_RVS_Pos (25) /*!< DMA_CRC_T::CTL: CHECKSUM_RVS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6296 | #define DMA_CRC_CTL_CHECKSUM_RVS_Msk (0x1ul << DMA_CRC_CTL_CHECKSUM_RVS_Pos) /*!< DMA_CRC_T::CTL: CHECKSUM_RVS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6297 | |
AnnaBridge | 174:b96e65c34a4d | 6298 | #define DMA_CRC_CTL_WDATA_COM_Pos (26) /*!< DMA_CRC_T::CTL: WDATA_COM Position */ |
AnnaBridge | 174:b96e65c34a4d | 6299 | #define DMA_CRC_CTL_WDATA_COM_Msk (0x1ul << DMA_CRC_CTL_WDATA_COM_Pos) /*!< DMA_CRC_T::CTL: WDATA_COM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6300 | |
AnnaBridge | 174:b96e65c34a4d | 6301 | #define DMA_CRC_CTL_CHECKSUM_COM_Pos (27) /*!< DMA_CRC_T::CTL: CHECKSUM_COM Position */ |
AnnaBridge | 174:b96e65c34a4d | 6302 | #define DMA_CRC_CTL_CHECKSUM_COM_Msk (0x1ul << DMA_CRC_CTL_CHECKSUM_COM_Pos) /*!< DMA_CRC_T::CTL: CHECKSUM_COM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6303 | |
AnnaBridge | 174:b96e65c34a4d | 6304 | #define DMA_CRC_CTL_CPU_WDLEN_Pos (28) /*!< DMA_CRC_T::CTL: CPU_WDLEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6305 | #define DMA_CRC_CTL_CPU_WDLEN_Msk (0x3ul << DMA_CRC_CTL_CPU_WDLEN_Pos) /*!< DMA_CRC_T::CTL: CPU_WDLEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6306 | |
AnnaBridge | 174:b96e65c34a4d | 6307 | #define DMA_CRC_CTL_CRC_MODE_Pos (30) /*!< DMA_CRC_T::CTL: CRC_MODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6308 | #define DMA_CRC_CTL_CRC_MODE_Msk (0x3ul << DMA_CRC_CTL_CRC_MODE_Pos) /*!< DMA_CRC_T::CTL: CRC_MODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6309 | |
AnnaBridge | 174:b96e65c34a4d | 6310 | #define DMA_CRC_DMASAR_CRC_DMASAR_Pos (0) /*!< DMA_CRC_T::DMASAR: CRC_DMASAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6311 | #define DMA_CRC_DMASAR_CRC_DMASAR_Msk (0xfffffffful << DMA_CRC_DMASAR_CRC_DMASAR_Pos) /*!< DMA_CRC_T::DMASAR: CRC_DMASAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6312 | |
AnnaBridge | 174:b96e65c34a4d | 6313 | #define DMA_CRC_DMABCR_CRC_DMABCR_Pos (0) /*!< DMA_CRC_T::DMABCR: CRC_DMABCR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6314 | #define DMA_CRC_DMABCR_CRC_DMABCR_Msk (0xfffful << DMA_CRC_DMABCR_CRC_DMABCR_Pos) /*!< DMA_CRC_T::DMABCR: CRC_DMABCR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6315 | |
AnnaBridge | 174:b96e65c34a4d | 6316 | #define DMA_CRC_DMACSAR_CRC_DMACSAR_Pos (0) /*!< DMA_CRC_T::DMACSAR: CRC_DMACSAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6317 | #define DMA_CRC_DMACSAR_CRC_DMACSAR_Msk (0xfffffffful << DMA_CRC_DMACSAR_CRC_DMACSAR_Pos) /*!< DMA_CRC_T::DMACSAR: CRC_DMACSAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6318 | |
AnnaBridge | 174:b96e65c34a4d | 6319 | #define DMA_CRC_DMACBCR_CRC_DMACBCR_Pos (0) /*!< DMA_CRC_T::DMACBCR: CRC_DMACBCR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6320 | #define DMA_CRC_DMACBCR_CRC_DMACBCR_Msk (0xfffful << DMA_CRC_DMACBCR_CRC_DMACBCR_Pos) /*!< DMA_CRC_T::DMACBCR: CRC_DMACBCR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6321 | |
AnnaBridge | 174:b96e65c34a4d | 6322 | #define DMA_CRC_DMAIER_TABORT_IE_Pos (0) /*!< DMA_CRC_T::DMAIER: TABORT_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6323 | #define DMA_CRC_DMAIER_TABORT_IE_Msk (0x1ul << DMA_CRC_DMAIER_TABORT_IE_Pos) /*!< DMA_CRC_T::DMAIER: TABORT_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6324 | |
AnnaBridge | 174:b96e65c34a4d | 6325 | #define DMA_CRC_DMAIER_BLKD_IE_Pos (1) /*!< DMA_CRC_T::DMAIER: BLKD_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6326 | #define DMA_CRC_DMAIER_BLKD_IE_Msk (0x1ul << DMA_CRC_DMAIER_BLKD_IE_Pos) /*!< DMA_CRC_T::DMAIER: BLKD_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6327 | |
AnnaBridge | 174:b96e65c34a4d | 6328 | #define DMA_CRC_DMAISR_TABORT_IF_Pos (0) /*!< DMA_CRC_T::DMAISR: TABORT_IF Position */ |
AnnaBridge | 174:b96e65c34a4d | 6329 | #define DMA_CRC_DMAISR_TABORT_IF_Msk (0x1ul << DMA_CRC_DMAISR_TABORT_IF_Pos) /*!< DMA_CRC_T::DMAISR: TABORT_IF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6330 | |
AnnaBridge | 174:b96e65c34a4d | 6331 | #define DMA_CRC_DMAISR_BLKD_IF_Pos (1) /*!< DMA_CRC_T::DMAISR: BLKD_IF Position */ |
AnnaBridge | 174:b96e65c34a4d | 6332 | #define DMA_CRC_DMAISR_BLKD_IF_Msk (0x1ul << DMA_CRC_DMAISR_BLKD_IF_Pos) /*!< DMA_CRC_T::DMAISR: BLKD_IF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6333 | |
AnnaBridge | 174:b96e65c34a4d | 6334 | #define DMA_CRC_WDATA_CRC_WDATA_Pos (0) /*!< DMA_CRC_T::WDATA: CRC_WDATA Position */ |
AnnaBridge | 174:b96e65c34a4d | 6335 | #define DMA_CRC_WDATA_CRC_WDATA_Msk (0xfffffffful << DMA_CRC_WDATA_CRC_WDATA_Pos) /*!< DMA_CRC_T::WDATA: CRC_WDATA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6336 | |
AnnaBridge | 174:b96e65c34a4d | 6337 | #define DMA_CRC_SEED_CRC_SEED_Pos (0) /*!< DMA_CRC_T::SEED: CRC_SEED Position */ |
AnnaBridge | 174:b96e65c34a4d | 6338 | #define DMA_CRC_SEED_CRC_SEED_Msk (0xfffffffful << DMA_CRC_SEED_CRC_SEED_Pos) /*!< DMA_CRC_T::SEED: CRC_SEED Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6339 | |
AnnaBridge | 174:b96e65c34a4d | 6340 | #define DMA_CRC_CHECKSUM_CRC_CHECKSUM_Pos (0) /*!< DMA_CRC_T::CHECKSUM: CRC_CHECKSUM Position*/ |
AnnaBridge | 174:b96e65c34a4d | 6341 | #define DMA_CRC_CHECKSUM_CRC_CHECKSUM_Msk (0xfffffffful << DMA_CRC_CHECKSUM_CRC_CHECKSUM_Pos) /*!< DMA_CRC_T::CHECKSUM: CRC_CHECKSUM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6342 | |
AnnaBridge | 174:b96e65c34a4d | 6343 | /**@}*/ /* DMA_CRC_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 6344 | |
AnnaBridge | 174:b96e65c34a4d | 6345 | |
AnnaBridge | 174:b96e65c34a4d | 6346 | /** |
AnnaBridge | 174:b96e65c34a4d | 6347 | @addtogroup DMA_GCR_CONST DMA_GCR Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 6348 | Constant Definitions for DMA_GCR Controller |
AnnaBridge | 174:b96e65c34a4d | 6349 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 6350 | |
AnnaBridge | 174:b96e65c34a4d | 6351 | #define DMA_GCR_GCRCSR_CLK0_EN_Pos (8) /*!< DMA_GCR_T::GCRCSR: CLK0_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6352 | #define DMA_GCR_GCRCSR_CLK0_EN_Msk (0x1ul << DMA_GCR_GCRCSR_CLK0_EN_Pos) /*!< DMA_GCR_T::GCRCSR: CLK0_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6353 | |
AnnaBridge | 174:b96e65c34a4d | 6354 | #define DMA_GCR_GCRCSR_CLK1_EN_Pos (9) /*!< DMA_GCR_T::GCRCSR: CLK1_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6355 | #define DMA_GCR_GCRCSR_CLK1_EN_Msk (0x1ul << DMA_GCR_GCRCSR_CLK1_EN_Pos) /*!< DMA_GCR_T::GCRCSR: CLK1_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6356 | |
AnnaBridge | 174:b96e65c34a4d | 6357 | #define DMA_GCR_GCRCSR_CLK2_EN_Pos (10) /*!< DMA_GCR_T::GCRCSR: CLK2_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6358 | #define DMA_GCR_GCRCSR_CLK2_EN_Msk (0x1ul << DMA_GCR_GCRCSR_CLK2_EN_Pos) /*!< DMA_GCR_T::GCRCSR: CLK2_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6359 | |
AnnaBridge | 174:b96e65c34a4d | 6360 | #define DMA_GCR_GCRCSR_CLK3_EN_Pos (11) /*!< DMA_GCR_T::GCRCSR: CLK3_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6361 | #define DMA_GCR_GCRCSR_CLK3_EN_Msk (0x1ul << DMA_GCR_GCRCSR_CLK3_EN_Pos) /*!< DMA_GCR_T::GCRCSR: CLK3_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6362 | |
AnnaBridge | 174:b96e65c34a4d | 6363 | #define DMA_GCR_GCRCSR_CLK4_EN_Pos (12) /*!< DMA_GCR_T::GCRCSR: CLK4_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6364 | #define DMA_GCR_GCRCSR_CLK4_EN_Msk (0x1ul << DMA_GCR_GCRCSR_CLK4_EN_Pos) /*!< DMA_GCR_T::GCRCSR: CLK4_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6365 | |
AnnaBridge | 174:b96e65c34a4d | 6366 | #define DMA_GCR_GCRCSR_CLK5_EN_Pos (13) /*!< DMA_GCR_T::GCRCSR: CLK5_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6367 | #define DMA_GCR_GCRCSR_CLK5_EN_Msk (0x1ul << DMA_GCR_GCRCSR_CLK5_EN_Pos) /*!< DMA_GCR_T::GCRCSR: CLK5_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6368 | |
AnnaBridge | 174:b96e65c34a4d | 6369 | #define DMA_GCR_GCRCSR_CLK6_EN_Pos (14) /*!< DMA_GCR_T::GCRCSR: CLK6_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6370 | #define DMA_GCR_GCRCSR_CLK6_EN_Msk (0x1ul << DMA_GCR_GCRCSR_CLK6_EN_Pos) /*!< DMA_GCR_T::GCRCSR: CLK6_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6371 | |
AnnaBridge | 174:b96e65c34a4d | 6372 | #define DMA_GCR_GCRCSR_CRC_CLK_EN_Pos (24) /*!< DMA_GCR_T::GCRCSR: CRC_CLK_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6373 | #define DMA_GCR_GCRCSR_CRC_CLK_EN_Msk (0x1ul << DMA_GCR_GCRCSR_CRC_CLK_EN_Pos) /*!< DMA_GCR_T::GCRCSR: CRC_CLK_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6374 | |
AnnaBridge | 174:b96e65c34a4d | 6375 | #define DMA_GCR_DSSR0_CH1_SEL_Pos (8) /*!< DMA_GCR_T::DSSR0: CH1_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6376 | #define DMA_GCR_DSSR0_CH1_SEL_Msk (0x1ful << DMA_GCR_DSSR0_CH1_SEL_Pos) /*!< DMA_GCR_T::DSSR0: CH1_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6377 | |
AnnaBridge | 174:b96e65c34a4d | 6378 | #define DMA_GCR_DSSR0_CH2_SEL_Pos (16) /*!< DMA_GCR_T::DSSR0: CH2_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6379 | #define DMA_GCR_DSSR0_CH2_SEL_Msk (0x1ful << DMA_GCR_DSSR0_CH2_SEL_Pos) /*!< DMA_GCR_T::DSSR0: CH2_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6380 | |
AnnaBridge | 174:b96e65c34a4d | 6381 | #define DMA_GCR_DSSR0_CH3_SEL_Pos (24) /*!< DMA_GCR_T::DSSR0: CH3_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6382 | #define DMA_GCR_DSSR0_CH3_SEL_Msk (0x1ful << DMA_GCR_DSSR0_CH3_SEL_Pos) /*!< DMA_GCR_T::DSSR0: CH3_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6383 | |
AnnaBridge | 174:b96e65c34a4d | 6384 | #define DMA_GCR_DSSR1_CH4_SEL_Pos (0) /*!< DMA_GCR_T::DSSR1: CH4_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6385 | #define DMA_GCR_DSSR1_CH4_SEL_Msk (0x1ful << DMA_GCR_DSSR1_CH4_SEL_Pos) /*!< DMA_GCR_T::DSSR1: CH4_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6386 | |
AnnaBridge | 174:b96e65c34a4d | 6387 | #define DMA_GCR_DSSR1_CH5_SEL_Pos (8) /*!< DMA_GCR_T::DSSR1: CH5_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6388 | #define DMA_GCR_DSSR1_CH5_SEL_Msk (0x1ful << DMA_GCR_DSSR1_CH5_SEL_Pos) /*!< DMA_GCR_T::DSSR1: CH5_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6389 | |
AnnaBridge | 174:b96e65c34a4d | 6390 | #define DMA_GCR_DSSR1_CH6_SEL_Pos (16) /*!< DMA_GCR_T::DSSR1: CH6_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6391 | #define DMA_GCR_DSSR1_CH6_SEL_Msk (0x1ful << DMA_GCR_DSSR1_CH6_SEL_Pos) /*!< DMA_GCR_T::DSSR1: CH6_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6392 | |
AnnaBridge | 174:b96e65c34a4d | 6393 | #define DMA_GCR_GCRISR_INTR0_Pos (0) /*!< DMA_GCR_T::GCRISR: INTR0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 6394 | #define DMA_GCR_GCRISR_INTR0_Msk (0x1ul << DMA_GCR_GCRISR_INTR0_Pos) /*!< DMA_GCR_T::GCRISR: INTR0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6395 | |
AnnaBridge | 174:b96e65c34a4d | 6396 | #define DMA_GCR_GCRISR_INTR1_Pos (1) /*!< DMA_GCR_T::GCRISR: INTR1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 6397 | #define DMA_GCR_GCRISR_INTR1_Msk (0x1ul << DMA_GCR_GCRISR_INTR1_Pos) /*!< DMA_GCR_T::GCRISR: INTR1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6398 | |
AnnaBridge | 174:b96e65c34a4d | 6399 | #define DMA_GCR_GCRISR_INTR2_Pos (2) /*!< DMA_GCR_T::GCRISR: INTR2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 6400 | #define DMA_GCR_GCRISR_INTR2_Msk (0x1ul << DMA_GCR_GCRISR_INTR2_Pos) /*!< DMA_GCR_T::GCRISR: INTR2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6401 | |
AnnaBridge | 174:b96e65c34a4d | 6402 | #define DMA_GCR_GCRISR_INTR3_Pos (3) /*!< DMA_GCR_T::GCRISR: INTR3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 6403 | #define DMA_GCR_GCRISR_INTR3_Msk (0x1ul << DMA_GCR_GCRISR_INTR3_Pos) /*!< DMA_GCR_T::GCRISR: INTR3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6404 | |
AnnaBridge | 174:b96e65c34a4d | 6405 | #define DMA_GCR_GCRISR_INTR4_Pos (4) /*!< DMA_GCR_T::GCRISR: INTR4 Position */ |
AnnaBridge | 174:b96e65c34a4d | 6406 | #define DMA_GCR_GCRISR_INTR4_Msk (0x1ul << DMA_GCR_GCRISR_INTR4_Pos) /*!< DMA_GCR_T::GCRISR: INTR4 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6407 | |
AnnaBridge | 174:b96e65c34a4d | 6408 | #define DMA_GCR_GCRISR_INTR5_Pos (5) /*!< DMA_GCR_T::GCRISR: INTR5 Position */ |
AnnaBridge | 174:b96e65c34a4d | 6409 | #define DMA_GCR_GCRISR_INTR5_Msk (0x1ul << DMA_GCR_GCRISR_INTR5_Pos) /*!< DMA_GCR_T::GCRISR: INTR5 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6410 | |
AnnaBridge | 174:b96e65c34a4d | 6411 | #define DMA_GCR_GCRISR_INTR6_Pos (6) /*!< DMA_GCR_T::GCRISR: INTR6 Position */ |
AnnaBridge | 174:b96e65c34a4d | 6412 | #define DMA_GCR_GCRISR_INTR6_Msk (0x1ul << DMA_GCR_GCRISR_INTR6_Pos) /*!< DMA_GCR_T::GCRISR: INTR6 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6413 | |
AnnaBridge | 174:b96e65c34a4d | 6414 | #define DMA_GCR_GCRISR_CRC_INTR_Pos (16) /*!< DMA_GCR_T::GCRISR: CRC_INTR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6415 | #define DMA_GCR_GCRISR_CRC_INTR_Msk (0x1ul << DMA_GCR_GCRISR_CRC_INTR_Pos) /*!< DMA_GCR_T::GCRISR: CRC_INTR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6416 | |
AnnaBridge | 174:b96e65c34a4d | 6417 | /**@}*/ /* DMA_GCR_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 6418 | |
AnnaBridge | 174:b96e65c34a4d | 6419 | |
AnnaBridge | 174:b96e65c34a4d | 6420 | /** |
AnnaBridge | 174:b96e65c34a4d | 6421 | @addtogroup PDMA_CONST PDMA Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 6422 | Constant Definitions for PDMA Controller |
AnnaBridge | 174:b96e65c34a4d | 6423 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 6424 | |
AnnaBridge | 174:b96e65c34a4d | 6425 | #define PDMA_CSR_PDMACEN_Pos (0) /*!< PDMA_T::CSR: PDMACEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6426 | #define PDMA_CSR_PDMACEN_Msk (0x1ul << PDMA_CSR_PDMACEN_Pos) /*!< PDMA_T::CSR: PDMACEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6427 | |
AnnaBridge | 174:b96e65c34a4d | 6428 | #define PDMA_CSR_SW_RST_Pos (1) /*!< PDMA_T::CSR: SW_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 6429 | #define PDMA_CSR_SW_RST_Msk (0x1ul << PDMA_CSR_SW_RST_Pos) /*!< PDMA_T::CSR: SW_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6430 | |
AnnaBridge | 174:b96e65c34a4d | 6431 | #define PDMA_CSR_MODE_SEL_Pos (2) /*!< PDMA_T::CSR: MODE_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6432 | #define PDMA_CSR_MODE_SEL_Msk (0x3ul << PDMA_CSR_MODE_SEL_Pos) /*!< PDMA_T::CSR: MODE_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6433 | |
AnnaBridge | 174:b96e65c34a4d | 6434 | #define PDMA_CSR_SAD_SEL_Pos (4) /*!< PDMA_T::CSR: SAD_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6435 | #define PDMA_CSR_SAD_SEL_Msk (0x3ul << PDMA_CSR_SAD_SEL_Pos) /*!< PDMA_T::CSR: SAD_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6436 | |
AnnaBridge | 174:b96e65c34a4d | 6437 | #define PDMA_CSR_DAD_SEL_Pos (6) /*!< PDMA_T::CSR: DAD_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6438 | #define PDMA_CSR_DAD_SEL_Msk (0x3ul << PDMA_CSR_DAD_SEL_Pos) /*!< PDMA_T::CSR: DAD_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6439 | |
AnnaBridge | 174:b96e65c34a4d | 6440 | #define PDMA_CSR_TO_EN_Pos (12) /*!< PDMA_T::CSR: TO_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6441 | #define PDMA_CSR_TO_EN_Msk (0x1ul << PDMA_CSR_TO_EN_Pos) /*!< PDMA_T::CSR: TO_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6442 | |
AnnaBridge | 174:b96e65c34a4d | 6443 | #define PDMA_CSR_APB_TWS_Pos (19) /*!< PDMA_T::CSR: APB_TWS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6444 | #define PDMA_CSR_APB_TWS_Msk (0x3ul << PDMA_CSR_APB_TWS_Pos) /*!< PDMA_T::CSR: APB_TWS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6445 | |
AnnaBridge | 174:b96e65c34a4d | 6446 | #define PDMA_CSR_TRIG_EN_Pos (23) /*!< PDMA_T::CSR: TRIG_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6447 | #define PDMA_CSR_TRIG_EN_Msk (0x1ul << PDMA_CSR_TRIG_EN_Pos) /*!< PDMA_T::CSR: TRIG_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6448 | |
AnnaBridge | 174:b96e65c34a4d | 6449 | #define PDMA_SAR_PDMA_SAR_Pos (0) /*!< PDMA_T::SAR: PDMA_SAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6450 | #define PDMA_SAR_PDMA_SAR_Msk (0xfffffffful << PDMA_SAR_PDMA_SAR_Pos) /*!< PDMA_T::SAR: PDMA_SAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6451 | |
AnnaBridge | 174:b96e65c34a4d | 6452 | #define PDMA_DAR_PDMA_DAR_Pos (0) /*!< PDMA_T::DAR: PDMA_DAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6453 | #define PDMA_DAR_PDMA_DAR_Msk (0xfffffffful << PDMA_DAR_PDMA_DAR_Pos) /*!< PDMA_T::DAR: PDMA_DAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6454 | |
AnnaBridge | 174:b96e65c34a4d | 6455 | #define PDMA_BCR_PDMA_BCR_Pos (0) /*!< PDMA_T::BCR: PDMA_BCR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6456 | #define PDMA_BCR_PDMA_BCR_Msk (0xfffful << PDMA_BCR_PDMA_BCR_Pos) /*!< PDMA_T::BCR: PDMA_BCR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6457 | |
AnnaBridge | 174:b96e65c34a4d | 6458 | #define PDMA_CSAR_PDMA_CSAR_Pos (0) /*!< PDMA_T::CSAR: PDMA_CSAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6459 | #define PDMA_CSAR_PDMA_CSAR_Msk (0xfffffffful << PDMA_CSAR_PDMA_CSAR_Pos) /*!< PDMA_T::CSAR: PDMA_CSAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6460 | |
AnnaBridge | 174:b96e65c34a4d | 6461 | #define PDMA_CDAR_PDMA_CDAR_Pos (0) /*!< PDMA_T::CDAR: PDMA_CDAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6462 | #define PDMA_CDAR_PDMA_CDAR_Msk (0xfffffffful << PDMA_CDAR_PDMA_CDAR_Pos) /*!< PDMA_T::CDAR: PDMA_CDAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6463 | |
AnnaBridge | 174:b96e65c34a4d | 6464 | #define PDMA_CBCR_PDMA_CBCR_Pos (0) /*!< PDMA_T::CBCR: PDMA_CBCR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6465 | #define PDMA_CBCR_PDMA_CBCR_Msk (0xfffffful << PDMA_CBCR_PDMA_CBCR_Pos) /*!< PDMA_T::CBCR: PDMA_CBCR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6466 | |
AnnaBridge | 174:b96e65c34a4d | 6467 | #define PDMA_IER_TABORT_IE_Pos (0) /*!< PDMA_T::IER: TABORT_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6468 | #define PDMA_IER_TABORT_IE_Msk (0x1ul << PDMA_IER_TABORT_IE_Pos) /*!< PDMA_T::IER: TABORT_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6469 | |
AnnaBridge | 174:b96e65c34a4d | 6470 | #define PDMA_IER_TD_IE_Pos (1) /*!< PDMA_T::IER: TD_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6471 | #define PDMA_IER_TD_IE_Msk (0x1ul << PDMA_IER_TD_IE_Pos) /*!< PDMA_T::IER: TD_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6472 | |
AnnaBridge | 174:b96e65c34a4d | 6473 | #define PDMA_IER_WRA_BCR_IE_Pos (2) /*!< PDMA_T::IER: WRA_BCR_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6474 | #define PDMA_IER_WRA_BCR_IE_Msk (0xful << PDMA_IER_WRA_BCR_IE_Pos) /*!< PDMA_T::IER: WRA_BCR_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6475 | |
AnnaBridge | 174:b96e65c34a4d | 6476 | #define PDMA_IER_TO_IE_Pos (6) /*!< PDMA_T::IER: TO_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6477 | #define PDMA_IER_TO_IE_Msk (0x1ul << PDMA_IER_TO_IE_Pos) /*!< PDMA_T::IER: TO_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6478 | |
AnnaBridge | 174:b96e65c34a4d | 6479 | #define PDMA_ISR_TABORT_IS_Pos (0) /*!< PDMA_T::ISR: TABORT_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6480 | #define PDMA_ISR_TABORT_IS_Msk (0x1ul << PDMA_ISR_TABORT_IS_Pos) /*!< PDMA_T::ISR: TABORT_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6481 | |
AnnaBridge | 174:b96e65c34a4d | 6482 | #define PDMA_ISR_TD_IS_Pos (1) /*!< PDMA_T::ISR: TD_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6483 | #define PDMA_ISR_TD_IS_Msk (0x1ul << PDMA_ISR_TD_IS_Pos) /*!< PDMA_T::ISR: TD_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6484 | |
AnnaBridge | 174:b96e65c34a4d | 6485 | #define PDMA_ISR_WRA_BCR_IS_Pos (2) /*!< PDMA_T::ISR: WRA_BCR_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6486 | #define PDMA_ISR_WRA_BCR_IS_Msk (0xful << PDMA_ISR_WRA_BCR_IS_Pos) /*!< PDMA_T::ISR: WRA_BCR_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6487 | |
AnnaBridge | 174:b96e65c34a4d | 6488 | #define PDMA_ISR_TO_IS_Pos (6) /*!< PDMA_T::ISR: TO_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6489 | #define PDMA_ISR_TO_IS_Msk (0x1ul << PDMA_ISR_TO_IS_Pos) /*!< PDMA_T::ISR: TO_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6490 | |
AnnaBridge | 174:b96e65c34a4d | 6491 | #define PDMA_TCR_PDMA_TCR_Pos (0) /*!< PDMA_T::TCR: PDMA_TCR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6492 | #define PDMA_TCR_PDMA_TCR_Msk (0xfffful << PDMA_TCR_PDMA_TCR_Pos) /*!< PDMA_T::TCR: PDMA_TCR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6493 | |
AnnaBridge | 174:b96e65c34a4d | 6494 | /**@}*/ /* PDMA_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 6495 | |
AnnaBridge | 174:b96e65c34a4d | 6496 | |
AnnaBridge | 174:b96e65c34a4d | 6497 | /** |
AnnaBridge | 174:b96e65c34a4d | 6498 | @addtogroup VDMA_CONST VDMA Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 6499 | Constant Definitions for VDMA Controller |
AnnaBridge | 174:b96e65c34a4d | 6500 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 6501 | |
AnnaBridge | 174:b96e65c34a4d | 6502 | #define VDMA_CSR_VDMACEN_Pos (0) /*!< VDMA_T::CSR: VDMACEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6503 | #define VDMA_CSR_VDMACEN_Msk (0x1ul << VDMA_CSR_VDMACEN_Pos) /*!< VDMA_T::CSR: VDMACEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6504 | |
AnnaBridge | 174:b96e65c34a4d | 6505 | #define VDMA_CSR_SW_RST_Pos (1) /*!< VDMA_T::CSR: SW_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 6506 | #define VDMA_CSR_SW_RST_Msk (0x1ul << VDMA_CSR_SW_RST_Pos) /*!< VDMA_T::CSR: SW_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6507 | |
AnnaBridge | 174:b96e65c34a4d | 6508 | #define VDMA_CSR_STRIDE_EN_Pos (10) /*!< VDMA_T::CSR: STRIDE_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6509 | #define VDMA_CSR_STRIDE_EN_Msk (0x1ul << VDMA_CSR_STRIDE_EN_Pos) /*!< VDMA_T::CSR: STRIDE_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6510 | |
AnnaBridge | 174:b96e65c34a4d | 6511 | #define VDMA_CSR_DIR_SEL_Pos (11) /*!< VDMA_T::CSR: DIR_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6512 | #define VDMA_CSR_DIR_SEL_Msk (0x1ul << VDMA_CSR_DIR_SEL_Pos) /*!< VDMA_T::CSR: DIR_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6513 | |
AnnaBridge | 174:b96e65c34a4d | 6514 | #define VDMA_CSR_TRIG_EN_Pos (23) /*!< VDMA_T::CSR: TRIG_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 6515 | #define VDMA_CSR_TRIG_EN_Msk (0x1ul << VDMA_CSR_TRIG_EN_Pos) /*!< VDMA_T::CSR: TRIG_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6516 | |
AnnaBridge | 174:b96e65c34a4d | 6517 | #define VDMA_SAR_VDMA_SAR_Pos (0) /*!< VDMA_T::SAR: VDMA_SAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6518 | #define VDMA_SAR_VDMA_SAR_Msk (0xfffffffful << VDMA_SAR_VDMA_SAR_Pos) /*!< VDMA_T::SAR: VDMA_SAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6519 | |
AnnaBridge | 174:b96e65c34a4d | 6520 | #define VDMA_DAR_VDMA_DAR_Pos (0) /*!< VDMA_T::DAR: VDMA_DAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6521 | #define VDMA_DAR_VDMA_DAR_Msk (0xfffffffful << VDMA_DAR_VDMA_DAR_Pos) /*!< VDMA_T::DAR: VDMA_DAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6522 | |
AnnaBridge | 174:b96e65c34a4d | 6523 | #define VDMA_BCR_VDMA_BCR_Pos (0) /*!< VDMA_T::BCR: VDMA_BCR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6524 | #define VDMA_BCR_VDMA_BCR_Msk (0xfffful << VDMA_BCR_VDMA_BCR_Pos) /*!< VDMA_T::BCR: VDMA_BCR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6525 | |
AnnaBridge | 174:b96e65c34a4d | 6526 | #define VDMA_CSAR_VDMA_CSAR_Pos (0) /*!< VDMA_T::CSAR: VDMA_CSAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6527 | #define VDMA_CSAR_VDMA_CSAR_Msk (0xfffffffful << VDMA_CSAR_VDMA_CSAR_Pos) /*!< VDMA_T::CSAR: VDMA_CSAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6528 | |
AnnaBridge | 174:b96e65c34a4d | 6529 | #define VDMA_CDAR_VDMA_CDAR_Pos (0) /*!< VDMA_T::CDAR: VDMA_CDAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6530 | #define VDMA_CDAR_VDMA_CDAR_Msk (0xfffffffful << VDMA_CDAR_VDMA_CDAR_Pos) /*!< VDMA_T::CDAR: VDMA_CDAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6531 | |
AnnaBridge | 174:b96e65c34a4d | 6532 | #define VDMA_CBCR_VDMA_CBCR_Pos (0) /*!< VDMA_T::CBCR: VDMA_CBCR Position */ |
AnnaBridge | 174:b96e65c34a4d | 6533 | #define VDMA_CBCR_VDMA_CBCR_Msk (0xfffful << VDMA_CBCR_VDMA_CBCR_Pos) /*!< VDMA_T::CBCR: VDMA_CBCR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6534 | |
AnnaBridge | 174:b96e65c34a4d | 6535 | #define VDMA_IER_TABORT_IE_Pos (0) /*!< VDMA_T::IER: TABORT_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6536 | #define VDMA_IER_TABORT_IE_Msk (0x1ul << VDMA_IER_TABORT_IE_Pos) /*!< VDMA_T::IER: TABORT_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6537 | |
AnnaBridge | 174:b96e65c34a4d | 6538 | #define VDMA_IER_TD_IE_Pos (1) /*!< VDMA_T::IER: TD_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 6539 | #define VDMA_IER_TD_IE_Msk (0x1ul << VDMA_IER_TD_IE_Pos) /*!< VDMA_T::IER: TD_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6540 | |
AnnaBridge | 174:b96e65c34a4d | 6541 | #define VDMA_ISR_TABORT_IS_Pos (0) /*!< VDMA_T::ISR: TABORT_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6542 | #define VDMA_ISR_TABORT_IS_Msk (0x1ul << VDMA_ISR_TABORT_IS_Pos) /*!< VDMA_T::ISR: TABORT_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6543 | |
AnnaBridge | 174:b96e65c34a4d | 6544 | #define VDMA_ISR_TD_IS_Pos (1) /*!< VDMA_T::ISR: TD_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 6545 | #define VDMA_ISR_TD_IS_Msk (0x1ul << VDMA_ISR_TD_IS_Pos) /*!< VDMA_T::ISR: TD_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6546 | |
AnnaBridge | 174:b96e65c34a4d | 6547 | #define VDMA_SASOCR_SASTOBL_Pos (0) /*!< VDMA_T::SASOCR: SASTOBL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6548 | #define VDMA_SASOCR_SASTOBL_Msk (0xfffful << VDMA_SASOCR_SASTOBL_Pos) /*!< VDMA_T::SASOCR: SASTOBL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6549 | |
AnnaBridge | 174:b96e65c34a4d | 6550 | #define VDMA_SASOCR_STBC_Pos (16) /*!< VDMA_T::SASOCR: STBC Position */ |
AnnaBridge | 174:b96e65c34a4d | 6551 | #define VDMA_SASOCR_STBC_Msk (0xfffful << VDMA_SASOCR_STBC_Pos) /*!< VDMA_T::SASOCR: STBC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6552 | |
AnnaBridge | 174:b96e65c34a4d | 6553 | #define VDMA_DASOCR_DASTOBL_Pos (0) /*!< VDMA_T::DASOCR: DASTOBL Position */ |
AnnaBridge | 174:b96e65c34a4d | 6554 | #define VDMA_DASOCR_DASTOBL_Msk (0xfffful << VDMA_DASOCR_DASTOBL_Pos) /*!< VDMA_T::DASOCR: DASTOBL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 6555 | |
AnnaBridge | 174:b96e65c34a4d | 6556 | /**@}*/ /* VDMA_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 6557 | |
AnnaBridge | 174:b96e65c34a4d | 6558 | /**@}*/ /* end of DMA register group */ |
AnnaBridge | 174:b96e65c34a4d | 6559 | |
AnnaBridge | 174:b96e65c34a4d | 6560 | |
AnnaBridge | 174:b96e65c34a4d | 6561 | /*---------------------- Pulse Width Modulation Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 6562 | /** |
AnnaBridge | 174:b96e65c34a4d | 6563 | @addtogroup PWM Pulse Width Modulation Controller(PWM) |
AnnaBridge | 174:b96e65c34a4d | 6564 | Memory Mapped Structure for PWM Controller |
AnnaBridge | 174:b96e65c34a4d | 6565 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 6566 | |
AnnaBridge | 174:b96e65c34a4d | 6567 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 6568 | |
AnnaBridge | 174:b96e65c34a4d | 6569 | |
AnnaBridge | 174:b96e65c34a4d | 6570 | /** |
AnnaBridge | 174:b96e65c34a4d | 6571 | * PRES |
AnnaBridge | 174:b96e65c34a4d | 6572 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6573 | * Offset: 0x00 PWM Prescaler Register |
AnnaBridge | 174:b96e65c34a4d | 6574 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6575 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6576 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6577 | * |[7:0] |CP01 |Clock Prescaler 0 For PWM Timer 0 & 1 |
AnnaBridge | 174:b96e65c34a4d | 6578 | * | | |Clock input is divided by (CP01 + 1) before it is fed to the counter 0 & 1 |
AnnaBridge | 174:b96e65c34a4d | 6579 | * | | |If CP01 =0, the prescaler 0 output clock will be stopped. So PWM counter 0 and 1 will be stopped also. |
AnnaBridge | 174:b96e65c34a4d | 6580 | * |[15:8] |CP23 |Clock Prescaler 2 For PWM Timer 2 & 3 |
AnnaBridge | 174:b96e65c34a4d | 6581 | * | | |Clock input is divided by (CP23 + 1) before it is fed to the counter 2 & 3 |
AnnaBridge | 174:b96e65c34a4d | 6582 | * | | |If CP23=0, the prescaler 2 output clock will be stopped. So PWM counter2 and 3 will be stopped also. |
AnnaBridge | 174:b96e65c34a4d | 6583 | * |[23:16] |DZ01 |Dead Zone Interval Register For CH0 And CH1 Pair |
AnnaBridge | 174:b96e65c34a4d | 6584 | * | | |These 8 bits determine dead zone length. |
AnnaBridge | 174:b96e65c34a4d | 6585 | * | | |The unit time of dead zone length is received from clock selector 0. |
AnnaBridge | 174:b96e65c34a4d | 6586 | * |[31:24] |DZ23 |Dead Zone Interval Register For CH2 And CH3 Pair |
AnnaBridge | 174:b96e65c34a4d | 6587 | * | | |These 8 bits determine dead zone length. |
AnnaBridge | 174:b96e65c34a4d | 6588 | * | | |The unit time of dead zone length is received from clock selector 2. |
AnnaBridge | 174:b96e65c34a4d | 6589 | */ |
AnnaBridge | 174:b96e65c34a4d | 6590 | __IO uint32_t PRES; |
AnnaBridge | 174:b96e65c34a4d | 6591 | |
AnnaBridge | 174:b96e65c34a4d | 6592 | /** |
AnnaBridge | 174:b96e65c34a4d | 6593 | * CLKSEL |
AnnaBridge | 174:b96e65c34a4d | 6594 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6595 | * Offset: 0x04 PWM Clock Select Register |
AnnaBridge | 174:b96e65c34a4d | 6596 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6597 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6598 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6599 | * |[2:0] |CLKSEL0 |Timer 0 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 6600 | * | | |Select clock input for timer 0. |
AnnaBridge | 174:b96e65c34a4d | 6601 | * | | |(Table is the same as CLKSEL3) |
AnnaBridge | 174:b96e65c34a4d | 6602 | * |[6:4] |CLKSEL1 |Timer 1 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 6603 | * | | |Select clock input for timer 1. |
AnnaBridge | 174:b96e65c34a4d | 6604 | * | | |(Table is the same as CLKSEL3) |
AnnaBridge | 174:b96e65c34a4d | 6605 | * |[10:8] |CLKSEL2 |Timer 2Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 6606 | * | | |Select clock input for timer 2. |
AnnaBridge | 174:b96e65c34a4d | 6607 | * | | |(Table is the same as CLKSEL3) |
AnnaBridge | 174:b96e65c34a4d | 6608 | * |[14:12] |CLKSEL3 |Timer 3 Clock Source Selection |
AnnaBridge | 174:b96e65c34a4d | 6609 | * | | |Select clock input for timer 3. |
AnnaBridge | 174:b96e65c34a4d | 6610 | * | | |000 = Input Clock Divided by 2. |
AnnaBridge | 174:b96e65c34a4d | 6611 | * | | |001 = Input Clock Divided by 4. |
AnnaBridge | 174:b96e65c34a4d | 6612 | * | | |010 = Input Clock Divided by 8. |
AnnaBridge | 174:b96e65c34a4d | 6613 | * | | |011 = Input Clock Divided by 16. |
AnnaBridge | 174:b96e65c34a4d | 6614 | * | | |100 = Input Clock Divided by 1. |
AnnaBridge | 174:b96e65c34a4d | 6615 | */ |
AnnaBridge | 174:b96e65c34a4d | 6616 | __IO uint32_t CLKSEL; |
AnnaBridge | 174:b96e65c34a4d | 6617 | |
AnnaBridge | 174:b96e65c34a4d | 6618 | /** |
AnnaBridge | 174:b96e65c34a4d | 6619 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 6620 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6621 | * Offset: 0x08 PWM Control Register |
AnnaBridge | 174:b96e65c34a4d | 6622 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6623 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6624 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6625 | * |[0] |CH0EN |PWM-Timer 0 Enable/Disable Start Run |
AnnaBridge | 174:b96e65c34a4d | 6626 | * | | |0 = PWM-Timer 0 Running Stopped. |
AnnaBridge | 174:b96e65c34a4d | 6627 | * | | |1 = PWM-Timer 0 Start Run Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6628 | * |[2] |CH0INV |PWM-Timer 0 Output Inverter ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 6629 | * | | |0 = Inverter OFF. |
AnnaBridge | 174:b96e65c34a4d | 6630 | * | | |1 = Inverter ON. |
AnnaBridge | 174:b96e65c34a4d | 6631 | * |[3] |CH0MOD |PWM-Timer 0 Continuous/One-Shot Mode |
AnnaBridge | 174:b96e65c34a4d | 6632 | * | | |0 = One-Shot Mode. |
AnnaBridge | 174:b96e65c34a4d | 6633 | * | | |1 = Continuous Mode. |
AnnaBridge | 174:b96e65c34a4d | 6634 | * | | |Note: If there is a rising transition at this bit, it will cause CN and CM of PWM0_DUTY0 to be cleared. |
AnnaBridge | 174:b96e65c34a4d | 6635 | * |[4] |DZEN01 |Dead-Zone 0 Generator Enable/Disable |
AnnaBridge | 174:b96e65c34a4d | 6636 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6637 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6638 | * | | |Note: When Dead-Zone Generator is enabled, the pair of PWM0 and PWM1 becomes a complementary pair. |
AnnaBridge | 174:b96e65c34a4d | 6639 | * |[5] |DZEN23 |Dead-Zone 2 Generator Enable/Disable |
AnnaBridge | 174:b96e65c34a4d | 6640 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6641 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6642 | * | | |Note: When Dead-Zone Generator is enabled, the pair of PWM2 and PWM3 becomes a complementary pair. |
AnnaBridge | 174:b96e65c34a4d | 6643 | * |[8] |CH1EN |PWM-Timer 1 Enable/Disable Start Run |
AnnaBridge | 174:b96e65c34a4d | 6644 | * | | |0 = PWM-Timer 1 Running Stopped. |
AnnaBridge | 174:b96e65c34a4d | 6645 | * | | |1 = PWM-Timer 1 Start Run Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6646 | * |[10] |CH1INV |PWM-Timer 1 Output Inverter ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 6647 | * | | |0 = Inverter OFF. |
AnnaBridge | 174:b96e65c34a4d | 6648 | * | | |1 = Inverter ON. |
AnnaBridge | 174:b96e65c34a4d | 6649 | * |[11] |CH1MOD |PWM-Timer 1 Continuous/One-Shot Mode |
AnnaBridge | 174:b96e65c34a4d | 6650 | * | | |0 = One-Shot Mode. |
AnnaBridge | 174:b96e65c34a4d | 6651 | * | | |1 = Continuous Mode. |
AnnaBridge | 174:b96e65c34a4d | 6652 | * | | |Note: If there is a rising transition at this bit, it will cause CN and CM of PWM0_DUTY1 to be cleared. |
AnnaBridge | 174:b96e65c34a4d | 6653 | * |[16] |CH2EN |PWM-Timer 2 Enable/Disable Start Run |
AnnaBridge | 174:b96e65c34a4d | 6654 | * | | |0 = PWM-Timer 2 Running Stopped. |
AnnaBridge | 174:b96e65c34a4d | 6655 | * | | |1 = PWM-Timer 2 Start Run Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6656 | * |[18] |CH2INV |PWM-Timer 2 Output Inverter ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 6657 | * | | |0 = Inverter OFF. |
AnnaBridge | 174:b96e65c34a4d | 6658 | * | | |1 = Inverter ON. |
AnnaBridge | 174:b96e65c34a4d | 6659 | * |[19] |CH2MOD |PWM-Timer 2 Continuous/One-Shot Mode |
AnnaBridge | 174:b96e65c34a4d | 6660 | * | | |0 = One-Shot Mode. |
AnnaBridge | 174:b96e65c34a4d | 6661 | * | | |1 = Continuous Mode. |
AnnaBridge | 174:b96e65c34a4d | 6662 | * | | |Note: If there is a rising transition at this bit, it will cause CN and CM of PWM0_DUTY2 be cleared. |
AnnaBridge | 174:b96e65c34a4d | 6663 | * |[24] |CH3EN |PWM-Timer 3 Enable/Disable Start Run |
AnnaBridge | 174:b96e65c34a4d | 6664 | * | | |0 = PWM-Timer 3 Running Stopped. |
AnnaBridge | 174:b96e65c34a4d | 6665 | * | | |1 = PWM-Timer 3 Start Run Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6666 | * |[26] |CH3INV |PWM-Timer 3 Output Inverter ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 6667 | * | | |0 = Inverter OFF. |
AnnaBridge | 174:b96e65c34a4d | 6668 | * | | |1 = Inverter ON. |
AnnaBridge | 174:b96e65c34a4d | 6669 | * |[27] |CH3MOD |PWM-Timer 3 Continuous/One-Shot Mode |
AnnaBridge | 174:b96e65c34a4d | 6670 | * | | |0 = One-Shot Mode. |
AnnaBridge | 174:b96e65c34a4d | 6671 | * | | |1 = Continuous Mode. |
AnnaBridge | 174:b96e65c34a4d | 6672 | * | | |Note: If there is a rising transition at this bit, it will cause CN and CM of PWM0_DUTY3 to be cleared. |
AnnaBridge | 174:b96e65c34a4d | 6673 | */ |
AnnaBridge | 174:b96e65c34a4d | 6674 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 6675 | |
AnnaBridge | 174:b96e65c34a4d | 6676 | /** |
AnnaBridge | 174:b96e65c34a4d | 6677 | * INTEN |
AnnaBridge | 174:b96e65c34a4d | 6678 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6679 | * Offset: 0x0C PWM Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 6680 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6681 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6682 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6683 | * |[0] |TMIE0 |PWM Timer 0 Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6684 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6685 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6686 | * |[1] |TMIE1 |PWM Timer 1 Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6687 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6688 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6689 | * |[2] |TMIE2 |PWM Timer 2 Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6690 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6691 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6692 | * |[3] |TMIE3 |PWM Timer 3 Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 6693 | * | | |0 = Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6694 | * | | |1 = Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6695 | */ |
AnnaBridge | 174:b96e65c34a4d | 6696 | __IO uint32_t INTEN; |
AnnaBridge | 174:b96e65c34a4d | 6697 | |
AnnaBridge | 174:b96e65c34a4d | 6698 | /** |
AnnaBridge | 174:b96e65c34a4d | 6699 | * INTSTS |
AnnaBridge | 174:b96e65c34a4d | 6700 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6701 | * Offset: 0x10 PWM Interrupt Indication Register |
AnnaBridge | 174:b96e65c34a4d | 6702 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6703 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6704 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6705 | * |[0] |TMINT0 |PWM Timer 0 Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 6706 | * | | |Flag is set by hardware when PWM0 down counter reaches zero, software can clear this bit by writing a one to it. |
AnnaBridge | 174:b96e65c34a4d | 6707 | * |[1] |TMINT1 |PWM Timer 1 Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 6708 | * | | |Flag is set by hardware when PWM1 down counter reaches zero, software can clear this bit by writing a one to it. |
AnnaBridge | 174:b96e65c34a4d | 6709 | * |[2] |TMINT2 |PWM Timer 2 Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 6710 | * | | |Flag is set by hardware when PWM2 down counter reaches zero, software can clear this bit by writing a one to it. |
AnnaBridge | 174:b96e65c34a4d | 6711 | * |[3] |TMINT3 |PWM Timer 3 Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 6712 | * | | |Flag is set by hardware when PWM3 down counter reaches zero, software can clear this bit by writing a one to it. |
AnnaBridge | 174:b96e65c34a4d | 6713 | * |[4] |Duty0Syncflag|Duty0 Synchronize Flag |
AnnaBridge | 174:b96e65c34a4d | 6714 | * | | |0 = Duty0 has been synchronized to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6715 | * | | |1 = Duty0 is synchronizing to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6716 | * | | |Note: software should check this flag when writing duty0, if this flag is set, and user ignore this flag and change duty0, the corresponding CNR and CMR may be wrong for one duty cycle |
AnnaBridge | 174:b96e65c34a4d | 6717 | * |[5] |Duty1Syncflag|Duty1 Synchronize Flag |
AnnaBridge | 174:b96e65c34a4d | 6718 | * | | |0 = Duty1 has been synchronized to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6719 | * | | |1 = Duty1 is synchronizing to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6720 | * | | |Note: software should check this flag when writing duty1, if this flag is set, and user ignore this flag and change duty1, the corresponding CNR and CMR may be wrong for one duty cycle |
AnnaBridge | 174:b96e65c34a4d | 6721 | * |[6] |Duty2Syncflag|Duty2 Synchronize Flag |
AnnaBridge | 174:b96e65c34a4d | 6722 | * | | |0 = Duty2 has been synchronized to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6723 | * | | |1 = Duty2 is synchronizing to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6724 | * | | |Note: software should check this flag when writing duty2, if this flag is set, and user ignore this flag and change duty2, the corresponding CNR and CMR may be wrong for one duty cycle |
AnnaBridge | 174:b96e65c34a4d | 6725 | * |[7] |Duty3Syncflag|Duty3 Synchronize Flag |
AnnaBridge | 174:b96e65c34a4d | 6726 | * | | |0 = Duty3 has been synchronized to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6727 | * | | |1 = Duty3 is synchronizing to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6728 | * | | |Note: software should check this flag when writing duty3, if this flag is set, and user ignore this flag and change duty3, the corresponding CNR and CMR may be wrong for one duty cycle |
AnnaBridge | 174:b96e65c34a4d | 6729 | * |[8] |PresSyncFlag|Prescale Synchronize Flag |
AnnaBridge | 174:b96e65c34a4d | 6730 | * | | |0 = Prescale has been synchronized to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6731 | * | | |1 = Prescale is synchronizing to ECLK domain. |
AnnaBridge | 174:b96e65c34a4d | 6732 | * | | |Note: software should check this flag when writing Prescale, if this flag is set, and user ignore this flag and change Prescale, the Prescale may be wrong for one prescale cycle |
AnnaBridge | 174:b96e65c34a4d | 6733 | */ |
AnnaBridge | 174:b96e65c34a4d | 6734 | __IO uint32_t INTSTS; |
AnnaBridge | 174:b96e65c34a4d | 6735 | |
AnnaBridge | 174:b96e65c34a4d | 6736 | /** |
AnnaBridge | 174:b96e65c34a4d | 6737 | * OE |
AnnaBridge | 174:b96e65c34a4d | 6738 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6739 | * Offset: 0x14 PWM Output Enable for PWM0~PWM3 |
AnnaBridge | 174:b96e65c34a4d | 6740 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6741 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6742 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6743 | * |[0] |CH0_OE |PWM CH0 Output Enable Register |
AnnaBridge | 174:b96e65c34a4d | 6744 | * | | |0 = PWM CH0 output to pin Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6745 | * | | |1 = PWM CH0 output to pin Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6746 | * | | |Note: The corresponding GPI/O pin also must be switched to PWM function (refer to GPx_MFP) |
AnnaBridge | 174:b96e65c34a4d | 6747 | * |[1] |CH1_OE |PWM CH1 Output Enable Register |
AnnaBridge | 174:b96e65c34a4d | 6748 | * | | |0 = PWM CH1 output to pin Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6749 | * | | |1 = PWM CH1 output to pin Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6750 | * | | |Note: The corresponding GPI/O pin also must be switched to PWM function (refer to GPx_MFP) |
AnnaBridge | 174:b96e65c34a4d | 6751 | * |[2] |CH2_OE |PWM CH2 Output Enable Register |
AnnaBridge | 174:b96e65c34a4d | 6752 | * | | |0 = PWM CH2 output to pin Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6753 | * | | |1 = PWM CH2 output to pin Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6754 | * | | |Note: The corresponding GPI/O pin also must be switched to PWM function (refer to GPx_MFP) |
AnnaBridge | 174:b96e65c34a4d | 6755 | * |[3] |CH3_OE |PWM CH3 Output Enable Register |
AnnaBridge | 174:b96e65c34a4d | 6756 | * | | |0 = PWM CH3 output to pin Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6757 | * | | |1 = PWM CH3 output to pin Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6758 | * | | |Note: The corresponding GPI/O pin also must be switched to PWM function (refer to GPx_MFP) |
AnnaBridge | 174:b96e65c34a4d | 6759 | */ |
AnnaBridge | 174:b96e65c34a4d | 6760 | __IO uint32_t OE; |
AnnaBridge | 174:b96e65c34a4d | 6761 | uint32_t RESERVE0[1]; |
AnnaBridge | 174:b96e65c34a4d | 6762 | |
AnnaBridge | 174:b96e65c34a4d | 6763 | |
AnnaBridge | 174:b96e65c34a4d | 6764 | /** |
AnnaBridge | 174:b96e65c34a4d | 6765 | * DUTY0 |
AnnaBridge | 174:b96e65c34a4d | 6766 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6767 | * Offset: 0x1C PWM Counter/Comparator Register 0 |
AnnaBridge | 174:b96e65c34a4d | 6768 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6769 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6770 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6771 | * |[15:0] |CN |PWM Counter/Timer Loaded Value |
AnnaBridge | 174:b96e65c34a4d | 6772 | * | | |CN determines the PWM period. |
AnnaBridge | 174:b96e65c34a4d | 6773 | * | | |PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy, could be 01, 23, depends on selected PWM channel. |
AnnaBridge | 174:b96e65c34a4d | 6774 | * | | |Duty ratio = (CM+1)/(CN+1). |
AnnaBridge | 174:b96e65c34a4d | 6775 | * | | |CM >= CN: PWM output is always high. |
AnnaBridge | 174:b96e65c34a4d | 6776 | * | | |CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit. |
AnnaBridge | 174:b96e65c34a4d | 6777 | * | | |CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit. |
AnnaBridge | 174:b96e65c34a4d | 6778 | * | | |(Unit = one PWM clock cycle). |
AnnaBridge | 174:b96e65c34a4d | 6779 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 6780 | * | | |Any write to CN will take effect in next PWM cycle. |
AnnaBridge | 174:b96e65c34a4d | 6781 | * |[31:16] |CM |PWM Comparator Register |
AnnaBridge | 174:b96e65c34a4d | 6782 | * | | |CM determines the PWM duty. |
AnnaBridge | 174:b96e65c34a4d | 6783 | * | | |PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy, could be 01, 23, depending on the selected PWM channel. |
AnnaBridge | 174:b96e65c34a4d | 6784 | * | | |Duty ratio = (CM+1)/(CN+1). |
AnnaBridge | 174:b96e65c34a4d | 6785 | * | | |CM >= CN: PWM output is always high. |
AnnaBridge | 174:b96e65c34a4d | 6786 | * | | |CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit. |
AnnaBridge | 174:b96e65c34a4d | 6787 | * | | |CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit. |
AnnaBridge | 174:b96e65c34a4d | 6788 | * | | |(Unit = one PWM clock cycle). |
AnnaBridge | 174:b96e65c34a4d | 6789 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 6790 | * | | |Any write to CM will take effect in next PWM cycle. |
AnnaBridge | 174:b96e65c34a4d | 6791 | */ |
AnnaBridge | 174:b96e65c34a4d | 6792 | __IO uint32_t DUTY0; |
AnnaBridge | 174:b96e65c34a4d | 6793 | |
AnnaBridge | 174:b96e65c34a4d | 6794 | /** |
AnnaBridge | 174:b96e65c34a4d | 6795 | * DATA0 |
AnnaBridge | 174:b96e65c34a4d | 6796 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6797 | * Offset: 0x20 PWM Data Register 0 |
AnnaBridge | 174:b96e65c34a4d | 6798 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6799 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6800 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6801 | * |[15:0] |PWMx_DATAy15_0|PWM Data Register |
AnnaBridge | 174:b96e65c34a4d | 6802 | * | | |User can monitor PWMx_DATAy to know the current value in 16-bit down count counter. |
AnnaBridge | 174:b96e65c34a4d | 6803 | * |[30:16] |PWMx_DATAy30_16|PWM Data Register |
AnnaBridge | 174:b96e65c34a4d | 6804 | * | | |User can monitor PWMx_DATAy to know the current value in 32-bit down count counter |
AnnaBridge | 174:b96e65c34a4d | 6805 | * | | |Notes:This will be valid only for the corresponding cascade enable .bit is set |
AnnaBridge | 174:b96e65c34a4d | 6806 | * |[31] |sync |Indicate That CNR Value Is Sync To PWM Counter |
AnnaBridge | 174:b96e65c34a4d | 6807 | * | | |0 = CNR value is sync to PWM counter. |
AnnaBridge | 174:b96e65c34a4d | 6808 | * | | |1 = CNR value is not sync to PWM counter. |
AnnaBridge | 174:b96e65c34a4d | 6809 | * | | |Note: when the corresponding cascade enable .bit is set is bit will not appear in the corresponding channel |
AnnaBridge | 174:b96e65c34a4d | 6810 | */ |
AnnaBridge | 174:b96e65c34a4d | 6811 | __I uint32_t DATA0; |
AnnaBridge | 174:b96e65c34a4d | 6812 | uint32_t RESERVE1[1]; |
AnnaBridge | 174:b96e65c34a4d | 6813 | |
AnnaBridge | 174:b96e65c34a4d | 6814 | |
AnnaBridge | 174:b96e65c34a4d | 6815 | /** |
AnnaBridge | 174:b96e65c34a4d | 6816 | * DUTY1 |
AnnaBridge | 174:b96e65c34a4d | 6817 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6818 | * Offset: 0x28 PWM Counter/Comparator Register 1 |
AnnaBridge | 174:b96e65c34a4d | 6819 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6820 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6821 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6822 | * |[15:0] |CN |PWM Counter/Timer Loaded Value |
AnnaBridge | 174:b96e65c34a4d | 6823 | * | | |CN determines the PWM period. |
AnnaBridge | 174:b96e65c34a4d | 6824 | * | | |PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy, could be 01, 23, depends on selected PWM channel. |
AnnaBridge | 174:b96e65c34a4d | 6825 | * | | |Duty ratio = (CM+1)/(CN+1). |
AnnaBridge | 174:b96e65c34a4d | 6826 | * | | |CM >= CN: PWM output is always high. |
AnnaBridge | 174:b96e65c34a4d | 6827 | * | | |CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit. |
AnnaBridge | 174:b96e65c34a4d | 6828 | * | | |CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit. |
AnnaBridge | 174:b96e65c34a4d | 6829 | * | | |(Unit = one PWM clock cycle). |
AnnaBridge | 174:b96e65c34a4d | 6830 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 6831 | * | | |Any write to CN will take effect in next PWM cycle. |
AnnaBridge | 174:b96e65c34a4d | 6832 | * |[31:16] |CM |PWM Comparator Register |
AnnaBridge | 174:b96e65c34a4d | 6833 | * | | |CM determines the PWM duty. |
AnnaBridge | 174:b96e65c34a4d | 6834 | * | | |PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy, could be 01, 23, depending on the selected PWM channel. |
AnnaBridge | 174:b96e65c34a4d | 6835 | * | | |Duty ratio = (CM+1)/(CN+1). |
AnnaBridge | 174:b96e65c34a4d | 6836 | * | | |CM >= CN: PWM output is always high. |
AnnaBridge | 174:b96e65c34a4d | 6837 | * | | |CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit. |
AnnaBridge | 174:b96e65c34a4d | 6838 | * | | |CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit. |
AnnaBridge | 174:b96e65c34a4d | 6839 | * | | |(Unit = one PWM clock cycle). |
AnnaBridge | 174:b96e65c34a4d | 6840 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 6841 | * | | |Any write to CM will take effect in next PWM cycle. |
AnnaBridge | 174:b96e65c34a4d | 6842 | */ |
AnnaBridge | 174:b96e65c34a4d | 6843 | __IO uint32_t DUTY1; |
AnnaBridge | 174:b96e65c34a4d | 6844 | |
AnnaBridge | 174:b96e65c34a4d | 6845 | /** |
AnnaBridge | 174:b96e65c34a4d | 6846 | * DATA1 |
AnnaBridge | 174:b96e65c34a4d | 6847 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6848 | * Offset: 0x2C PWM Data Register 1 |
AnnaBridge | 174:b96e65c34a4d | 6849 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6850 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6851 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6852 | * |[15:0] |PWMx_DATAy15_0|PWM Data Register |
AnnaBridge | 174:b96e65c34a4d | 6853 | * | | |User can monitor PWMx_DATAy to know the current value in 16-bit down count counter. |
AnnaBridge | 174:b96e65c34a4d | 6854 | * |[30:16] |PWMx_DATAy30_16|PWM Data Register |
AnnaBridge | 174:b96e65c34a4d | 6855 | * | | |User can monitor PWMx_DATAy to know the current value in 32-bit down count counter |
AnnaBridge | 174:b96e65c34a4d | 6856 | * | | |Notes:This will be valid only for the corresponding cascade enable .bit is set |
AnnaBridge | 174:b96e65c34a4d | 6857 | * |[31] |sync |Indicate That CNR Value Is Sync To PWM Counter |
AnnaBridge | 174:b96e65c34a4d | 6858 | * | | |0 = CNR value is sync to PWM counter. |
AnnaBridge | 174:b96e65c34a4d | 6859 | * | | |1 = CNR value is not sync to PWM counter. |
AnnaBridge | 174:b96e65c34a4d | 6860 | * | | |Note: when the corresponding cascade enable .bit is set is bit will not appear in the corresponding channel |
AnnaBridge | 174:b96e65c34a4d | 6861 | */ |
AnnaBridge | 174:b96e65c34a4d | 6862 | __I uint32_t DATA1; |
AnnaBridge | 174:b96e65c34a4d | 6863 | uint32_t RESERVE2[1]; |
AnnaBridge | 174:b96e65c34a4d | 6864 | |
AnnaBridge | 174:b96e65c34a4d | 6865 | |
AnnaBridge | 174:b96e65c34a4d | 6866 | /** |
AnnaBridge | 174:b96e65c34a4d | 6867 | * DUTY2 |
AnnaBridge | 174:b96e65c34a4d | 6868 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6869 | * Offset: 0x34 PWM Counter/Comparator Register 2 |
AnnaBridge | 174:b96e65c34a4d | 6870 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6871 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6872 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6873 | * |[15:0] |CN |PWM Counter/Timer Loaded Value |
AnnaBridge | 174:b96e65c34a4d | 6874 | * | | |CN determines the PWM period. |
AnnaBridge | 174:b96e65c34a4d | 6875 | * | | |PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy, could be 01, 23, depends on selected PWM channel. |
AnnaBridge | 174:b96e65c34a4d | 6876 | * | | |Duty ratio = (CM+1)/(CN+1). |
AnnaBridge | 174:b96e65c34a4d | 6877 | * | | |CM >= CN: PWM output is always high. |
AnnaBridge | 174:b96e65c34a4d | 6878 | * | | |CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit. |
AnnaBridge | 174:b96e65c34a4d | 6879 | * | | |CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit. |
AnnaBridge | 174:b96e65c34a4d | 6880 | * | | |(Unit = one PWM clock cycle). |
AnnaBridge | 174:b96e65c34a4d | 6881 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 6882 | * | | |Any write to CN will take effect in next PWM cycle. |
AnnaBridge | 174:b96e65c34a4d | 6883 | * |[31:16] |CM |PWM Comparator Register |
AnnaBridge | 174:b96e65c34a4d | 6884 | * | | |CM determines the PWM duty. |
AnnaBridge | 174:b96e65c34a4d | 6885 | * | | |PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy, could be 01, 23, depending on the selected PWM channel. |
AnnaBridge | 174:b96e65c34a4d | 6886 | * | | |Duty ratio = (CM+1)/(CN+1). |
AnnaBridge | 174:b96e65c34a4d | 6887 | * | | |CM >= CN: PWM output is always high. |
AnnaBridge | 174:b96e65c34a4d | 6888 | * | | |CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit. |
AnnaBridge | 174:b96e65c34a4d | 6889 | * | | |CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit. |
AnnaBridge | 174:b96e65c34a4d | 6890 | * | | |(Unit = one PWM clock cycle). |
AnnaBridge | 174:b96e65c34a4d | 6891 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 6892 | * | | |Any write to CM will take effect in next PWM cycle. |
AnnaBridge | 174:b96e65c34a4d | 6893 | */ |
AnnaBridge | 174:b96e65c34a4d | 6894 | __IO uint32_t DUTY2; |
AnnaBridge | 174:b96e65c34a4d | 6895 | |
AnnaBridge | 174:b96e65c34a4d | 6896 | /** |
AnnaBridge | 174:b96e65c34a4d | 6897 | * DATA2 |
AnnaBridge | 174:b96e65c34a4d | 6898 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6899 | * Offset: 0x38 PWM Data Register 2 |
AnnaBridge | 174:b96e65c34a4d | 6900 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6901 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6902 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6903 | * |[15:0] |PWMx_DATAy15_0|PWM Data Register |
AnnaBridge | 174:b96e65c34a4d | 6904 | * | | |User can monitor PWMx_DATAy to know the current value in 16-bit down count counter. |
AnnaBridge | 174:b96e65c34a4d | 6905 | * |[30:16] |PWMx_DATAy30_16|PWM Data Register |
AnnaBridge | 174:b96e65c34a4d | 6906 | * | | |User can monitor PWMx_DATAy to know the current value in 32-bit down count counter |
AnnaBridge | 174:b96e65c34a4d | 6907 | * | | |Notes:This will be valid only for the corresponding cascade enable .bit is set |
AnnaBridge | 174:b96e65c34a4d | 6908 | * |[31] |sync |Indicate That CNR Value Is Sync To PWM Counter |
AnnaBridge | 174:b96e65c34a4d | 6909 | * | | |0 = CNR value is sync to PWM counter. |
AnnaBridge | 174:b96e65c34a4d | 6910 | * | | |1 = CNR value is not sync to PWM counter. |
AnnaBridge | 174:b96e65c34a4d | 6911 | * | | |Note: when the corresponding cascade enable .bit is set is bit will not appear in the corresponding channel |
AnnaBridge | 174:b96e65c34a4d | 6912 | */ |
AnnaBridge | 174:b96e65c34a4d | 6913 | __I uint32_t DATA2; |
AnnaBridge | 174:b96e65c34a4d | 6914 | uint32_t RESERVE3[1]; |
AnnaBridge | 174:b96e65c34a4d | 6915 | |
AnnaBridge | 174:b96e65c34a4d | 6916 | |
AnnaBridge | 174:b96e65c34a4d | 6917 | /** |
AnnaBridge | 174:b96e65c34a4d | 6918 | * DUTY3 |
AnnaBridge | 174:b96e65c34a4d | 6919 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6920 | * Offset: 0x40 PWM Counter/Comparator Register 3 |
AnnaBridge | 174:b96e65c34a4d | 6921 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6922 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6923 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6924 | * |[15:0] |CN |PWM Counter/Timer Loaded Value |
AnnaBridge | 174:b96e65c34a4d | 6925 | * | | |CN determines the PWM period. |
AnnaBridge | 174:b96e65c34a4d | 6926 | * | | |PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy, could be 01, 23, depends on selected PWM channel. |
AnnaBridge | 174:b96e65c34a4d | 6927 | * | | |Duty ratio = (CM+1)/(CN+1). |
AnnaBridge | 174:b96e65c34a4d | 6928 | * | | |CM >= CN: PWM output is always high. |
AnnaBridge | 174:b96e65c34a4d | 6929 | * | | |CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit. |
AnnaBridge | 174:b96e65c34a4d | 6930 | * | | |CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit. |
AnnaBridge | 174:b96e65c34a4d | 6931 | * | | |(Unit = one PWM clock cycle). |
AnnaBridge | 174:b96e65c34a4d | 6932 | * | | |Note: Any write to CN will take effect in next PWM cycle. |
AnnaBridge | 174:b96e65c34a4d | 6933 | * |[31:16] |CM |PWM Comparator Register |
AnnaBridge | 174:b96e65c34a4d | 6934 | * | | |CM determines the PWM duty. |
AnnaBridge | 174:b96e65c34a4d | 6935 | * | | |PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CN+1); where xy, could be 01, 23, depending on the selected PWM channel. |
AnnaBridge | 174:b96e65c34a4d | 6936 | * | | |Duty ratio = (CM+1)/(CN+1). |
AnnaBridge | 174:b96e65c34a4d | 6937 | * | | |CM >= CN: PWM output is always high. |
AnnaBridge | 174:b96e65c34a4d | 6938 | * | | |CM < CN: PWM low width = (CN-CM) unit; PWM high width = (CM+1) unit. |
AnnaBridge | 174:b96e65c34a4d | 6939 | * | | |CM = 0: PWM low width = (CN) unit; PWM high width = 1 unit. |
AnnaBridge | 174:b96e65c34a4d | 6940 | * | | |(Unit = one PWM clock cycle). |
AnnaBridge | 174:b96e65c34a4d | 6941 | * | | |Note: Any write to CM will take effect in next PWM cycle. |
AnnaBridge | 174:b96e65c34a4d | 6942 | */ |
AnnaBridge | 174:b96e65c34a4d | 6943 | __IO uint32_t DUTY3; |
AnnaBridge | 174:b96e65c34a4d | 6944 | |
AnnaBridge | 174:b96e65c34a4d | 6945 | /** |
AnnaBridge | 174:b96e65c34a4d | 6946 | * DATA3 |
AnnaBridge | 174:b96e65c34a4d | 6947 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6948 | * Offset: 0x44 PWM Data Register 3 |
AnnaBridge | 174:b96e65c34a4d | 6949 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6950 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6951 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6952 | * |[15:0] |PWMx_DATAy15_0|PWM Data Register |
AnnaBridge | 174:b96e65c34a4d | 6953 | * | | |User can monitor PWMx_DATAy to know the current value in 16-bit down count counter. |
AnnaBridge | 174:b96e65c34a4d | 6954 | * |[30:16] |PWMx_DATAy30_16|PWM Data Register |
AnnaBridge | 174:b96e65c34a4d | 6955 | * | | |User can monitor PWMx_DATAy to know the current value in 32-bit down count counter |
AnnaBridge | 174:b96e65c34a4d | 6956 | * | | |Notes:This will be valid only for the corresponding cascade enable .bit is set |
AnnaBridge | 174:b96e65c34a4d | 6957 | * |[31] |sync |Indicate That CNR Value Is Sync To PWM Counter |
AnnaBridge | 174:b96e65c34a4d | 6958 | * | | |0 = CNR value is sync to PWM counter. |
AnnaBridge | 174:b96e65c34a4d | 6959 | * | | |1 = CNR value is not sync to PWM counter. |
AnnaBridge | 174:b96e65c34a4d | 6960 | * | | |Note: when the corresponding cascade enable .bit is set is bit will not appear in the corresponding channel |
AnnaBridge | 174:b96e65c34a4d | 6961 | */ |
AnnaBridge | 174:b96e65c34a4d | 6962 | __I uint32_t DATA3; |
AnnaBridge | 174:b96e65c34a4d | 6963 | uint32_t RESERVE4[3]; |
AnnaBridge | 174:b96e65c34a4d | 6964 | |
AnnaBridge | 174:b96e65c34a4d | 6965 | |
AnnaBridge | 174:b96e65c34a4d | 6966 | /** |
AnnaBridge | 174:b96e65c34a4d | 6967 | * CAPCTL |
AnnaBridge | 174:b96e65c34a4d | 6968 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 6969 | * Offset: 0x54 Capture Control Register |
AnnaBridge | 174:b96e65c34a4d | 6970 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 6971 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 6972 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 6973 | * |[0] |INV0 |Channel 0 Inverter ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 6974 | * | | |0 = Inverter OFF. |
AnnaBridge | 174:b96e65c34a4d | 6975 | * | | |1 = Inverter ON. Reverse the input signal from GPIO before fed to Capture timer |
AnnaBridge | 174:b96e65c34a4d | 6976 | * |[1] |CAPCH0EN |Capture Channel 0 Transition Enable/Disable |
AnnaBridge | 174:b96e65c34a4d | 6977 | * | | |0 = Capture function on channel 0 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6978 | * | | |1 = Capture function on channel 0 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6979 | * | | |When Enabled, Capture latched the PWM-timer value and saved to PWM_CRL0 (Rising latch) and PWM_CFL0 (Falling latch). |
AnnaBridge | 174:b96e65c34a4d | 6980 | * | | |When Disabled, Capture does not update PWM_CRL0 and PWM_CFL0, and disable Channel 0 Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 6981 | * |[2] |CAPCH0PADEN|Capture Input Enable |
AnnaBridge | 174:b96e65c34a4d | 6982 | * | | |0 = OFF. |
AnnaBridge | 174:b96e65c34a4d | 6983 | * | | |1 = ON. |
AnnaBridge | 174:b96e65c34a4d | 6984 | * |[3] |CH0PDMAEN |Channel 0 PDMA Enable |
AnnaBridge | 174:b96e65c34a4d | 6985 | * | | |0 = Channel 0 PDMA function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6986 | * | | |1 = Channel 0 PDMA function Enabled for the channel 0 captured data and transfer to memory. |
AnnaBridge | 174:b96e65c34a4d | 6987 | * |[5:4] |PDMACAPMOD0|Select CRL0 Or CFL0 For PDMA Transfer |
AnnaBridge | 174:b96e65c34a4d | 6988 | * | | |00 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 6989 | * | | |01 = CRL0. |
AnnaBridge | 174:b96e65c34a4d | 6990 | * | | |10 = CFL0. |
AnnaBridge | 174:b96e65c34a4d | 6991 | * | | |11 = Both CRL0 and CFL0. |
AnnaBridge | 174:b96e65c34a4d | 6992 | * |[6] |CAPRELOADREN0|Reload CNR0 When CH0 Capture Rising Event Comes |
AnnaBridge | 174:b96e65c34a4d | 6993 | * | | |0 = Rising capture reload for CH0 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6994 | * | | |1 = Rising capture reload for CH0 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6995 | * |[7] |CAPRELOADFEN0|Reload CNR0 When CH0 Capture Falling Event Comes |
AnnaBridge | 174:b96e65c34a4d | 6996 | * | | |0 = Falling capture reload for CH0 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 6997 | * | | |1 = Falling capture reload for CH0 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 6998 | * |[8] |INV1 |Channel 1 Inverter ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 6999 | * | | |0 = Inverter OFF. |
AnnaBridge | 174:b96e65c34a4d | 7000 | * | | |1 = Inverter ON. Reverse the input signal from GPIO before fed to Capture timer |
AnnaBridge | 174:b96e65c34a4d | 7001 | * |[9] |CAPCH1EN |Capture Channel 1 Transition Enable/Disable |
AnnaBridge | 174:b96e65c34a4d | 7002 | * | | |0 = Capture function on channel 1 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7003 | * | | |1 = Capture function on channel 1 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7004 | * | | |When Enabled, Capture latched the PMW-counter and saved to PWM_CRL1 (Rising latch) and PWM_CFL1 (Falling latch). |
AnnaBridge | 174:b96e65c34a4d | 7005 | * | | |When Disabled, Capture does not update PWM_CRL1 and PWM_CFL1, and disable Channel 1 Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7006 | * |[10] |CAPCH1PADEN|Capture Input Enable |
AnnaBridge | 174:b96e65c34a4d | 7007 | * | | |0 = OFF. |
AnnaBridge | 174:b96e65c34a4d | 7008 | * | | |1 = ON. |
AnnaBridge | 174:b96e65c34a4d | 7009 | * |[12] |CH0RFORDER|Channel 0 capture order control |
AnnaBridge | 174:b96e65c34a4d | 7010 | * | | |Set this bit to determine whether the PWM_CRL0 or PWM_CFL0 is the first captured data transferred to memory through PDMA when PDMACAPMOD0 =2'b11. |
AnnaBridge | 174:b96e65c34a4d | 7011 | * | | |0 = PWM_CFL0 is the first captured data to memory. |
AnnaBridge | 174:b96e65c34a4d | 7012 | * | | |1 = PWM_CRL0 is the first captured data to memory. |
AnnaBridge | 174:b96e65c34a4d | 7013 | * |[13] |CH01CASK |Cascade channel 0 and channel 1 PWM timer for capturing usage |
AnnaBridge | 174:b96e65c34a4d | 7014 | * |[14] |CAPRELOADREN1|Reload CNR1 When CH1 Capture Rising Event Comes |
AnnaBridge | 174:b96e65c34a4d | 7015 | * | | |0 = Rising capture reload for CH1 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7016 | * | | |1 = Rising capture reload for CH1 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7017 | * |[15] |CAPRELOADFEN1|Reload CNR1 When CH1 Capture Falling Event Coming |
AnnaBridge | 174:b96e65c34a4d | 7018 | * | | |0 = Capture falling reload for CH1 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7019 | * | | |1 = Capture falling reload for CH1 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7020 | * |[16] |INV2 |Channel 2 Inverter ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 7021 | * | | |0 = Inverter OFF. |
AnnaBridge | 174:b96e65c34a4d | 7022 | * | | |1 = Inverter ON. Reverse the input signal from GPIO before fed to Capture timer |
AnnaBridge | 174:b96e65c34a4d | 7023 | * |[17] |CAPCH2EN |Capture Channel 2 Transition Enable/Disable |
AnnaBridge | 174:b96e65c34a4d | 7024 | * | | |0 = Capture function on channel 2 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7025 | * | | |1 = Capture function on channel 2 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7026 | * | | |When Enabled, Capture latched the PWM-timer value and saved to PWM_CRL2 (Rising latch) and PWM_CFL2 (Falling latch). |
AnnaBridge | 174:b96e65c34a4d | 7027 | * | | |When Disabled, Capture does not update PWM_CRL2 and PWM_CFL2, and disable Channel 2 Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7028 | * |[18] |CAPCH2PADEN|Capture Input Enable |
AnnaBridge | 174:b96e65c34a4d | 7029 | * | | |0 = OFF. |
AnnaBridge | 174:b96e65c34a4d | 7030 | * | | |1 = ON. |
AnnaBridge | 174:b96e65c34a4d | 7031 | * |[19] |CH2PDMAEN |Channel 2 PDMA Enable |
AnnaBridge | 174:b96e65c34a4d | 7032 | * | | |0 = Channel 2 PDMA function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7033 | * | | |1 = Channel 2 PDMA function Enabled for the channel 2 captured data and transfer to memory. |
AnnaBridge | 174:b96e65c34a4d | 7034 | * |[21:20] |PDMACAPMOD2|Select CRL2 Or CFL2 For PDMA Transfer |
AnnaBridge | 174:b96e65c34a4d | 7035 | * | | |00 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 7036 | * | | |01 = CRL2. |
AnnaBridge | 174:b96e65c34a4d | 7037 | * | | |10 = CFL2. |
AnnaBridge | 174:b96e65c34a4d | 7038 | * | | |11 = Both CRL2 and CFL2. |
AnnaBridge | 174:b96e65c34a4d | 7039 | * |[22] |CAPRELOADREN2|Reload CNR2 When CH2 Capture Rising Event Coming |
AnnaBridge | 174:b96e65c34a4d | 7040 | * | | |0 = Rising capture reload for CH2 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7041 | * | | |1 = Rising capture reload for CH2 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7042 | * |[23] |CAPRELOADFEN2|Reload CNR2 When CH2 Capture Failing Event Coming |
AnnaBridge | 174:b96e65c34a4d | 7043 | * | | |0 = Failing capture reload for CH2 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7044 | * | | |1 = Failing capture reload for CH2 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7045 | * |[24] |INV3 |Channel 3 Inverter ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 7046 | * | | |0 = Inverter OFF. |
AnnaBridge | 174:b96e65c34a4d | 7047 | * | | |1 = Inverter ON. Reverse the input signal from GPIO before fed to Capture timer |
AnnaBridge | 174:b96e65c34a4d | 7048 | * |[25] |CAPCH3EN |Capture Channel 3 Transition Enable/Disable |
AnnaBridge | 174:b96e65c34a4d | 7049 | * | | |0 = Capture function on channel 3 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7050 | * | | |1 = Capture function on channel 3 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7051 | * | | |When Enabled, Capture latched the PMW-timer and saved to PWM_CRL3 (Rising latch) and PWM_CFL3 (Falling latch). |
AnnaBridge | 174:b96e65c34a4d | 7052 | * | | |When Disabled, Capture does not update PWM_CRL3 and PWM_CFL3, and disable Channel 3 Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7053 | * |[26] |CAPCH3PADEN|Capture Input Enable |
AnnaBridge | 174:b96e65c34a4d | 7054 | * | | |0 = OFF. |
AnnaBridge | 174:b96e65c34a4d | 7055 | * | | |1 = ON. |
AnnaBridge | 174:b96e65c34a4d | 7056 | * |[28] |CH2RFORDER|Channel 0 capture order control |
AnnaBridge | 174:b96e65c34a4d | 7057 | * | | |Set this bit to determine whether the PWM_CRL2 or PWM_CFL2 is the first captured data transferred to memory through PDMA when PDMACAPMOD2 = 2'b11. |
AnnaBridge | 174:b96e65c34a4d | 7058 | * | | |0 = PWM_CFL2 is the first captured data to memory. |
AnnaBridge | 174:b96e65c34a4d | 7059 | * | | |1 = PWM_CRL2 is the first captured data to memory. |
AnnaBridge | 174:b96e65c34a4d | 7060 | * |[29] |CH23CASK |Cascade channel 2 and channel 3 PWM counter for capturing usage |
AnnaBridge | 174:b96e65c34a4d | 7061 | * |[30] |CAPRELOADREN3|Reload CNR3 When CH3 Rising Capture Event Comes |
AnnaBridge | 174:b96e65c34a4d | 7062 | * | | |0 = Rising capture reload for CH3 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7063 | * | | |1 = Rising capture reload for CH3 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7064 | * |[31] |CAPRELOADFEN3|Reload CNR3 When CH3 Falling Capture Event Comes |
AnnaBridge | 174:b96e65c34a4d | 7065 | * | | |0 = Falling capture reload for CH3 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7066 | * | | |1 = Falling capture reload for CH3 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7067 | */ |
AnnaBridge | 174:b96e65c34a4d | 7068 | __IO uint32_t CAPCTL; |
AnnaBridge | 174:b96e65c34a4d | 7069 | |
AnnaBridge | 174:b96e65c34a4d | 7070 | /** |
AnnaBridge | 174:b96e65c34a4d | 7071 | * CAPINTEN |
AnnaBridge | 174:b96e65c34a4d | 7072 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7073 | * Offset: 0x58 Capture interrupt enable Register |
AnnaBridge | 174:b96e65c34a4d | 7074 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7075 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7076 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7077 | * |[0] |CRL_IE0 |Channel 0 Rising Latch Interrupt Enable ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 7078 | * | | |0 = Rising latch interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7079 | * | | |1 = Rising latch interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7080 | * | | |When Enabled, if Capture detects Channel 0 has rising transition, Capture issues an Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7081 | * |[1] |CFL_IE0 |Channel 0 Falling Latch Interrupt Enable ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 7082 | * | | |0 = Falling latch interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7083 | * | | |1 = Falling latch interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7084 | * | | |When Enabled, if Capture detects Channel 0 has falling transition, Capture issues an Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7085 | * |[8] |CRL_IE1 |Channel 1 Rising Latch Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 7086 | * | | |0 = Rising latch interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7087 | * | | |1 = Rising latch interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7088 | * | | |When Enabled, if Capture detects Channel 1 has rising transition, Capture issues an Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7089 | * |[9] |CFL_IE1 |Channel 1 Falling Latch Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 7090 | * | | |0 = Falling latch interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7091 | * | | |1 = Falling latch interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7092 | * | | |When Enabled, if Capture detects Channel 1 has falling transition, Capture issues an Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7093 | * |[16] |CRL_IE2 |Channel 2 Rising Latch Interrupt Enable ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 7094 | * | | |0 = Rising latch interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7095 | * | | |1 = Rising latch interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7096 | * | | |When Enabled, if Capture detects Channel 2 has rising transition, Capture issues an Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7097 | * |[17] |CFL_IE2 |Channel 2 Falling Latch Interrupt Enable ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 7098 | * | | |0 = Falling latch interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7099 | * | | |1 = Falling latch interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7100 | * | | |When Enabled, if Capture detects Channel 2 has falling transition, Capture issues an Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7101 | * |[24] |CRL_IE3 |Channel 3 Rising Latch Interrupt Enable ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 7102 | * | | |0 = Rising latch interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7103 | * | | |1 = Rising latch interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7104 | * | | |When Enabled, if Capture detects Channel 3 has rising transition, Capture issues an Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7105 | * |[25] |CFL_IE3 |Channel 3 Falling Latch Interrupt Enable ON/OFF |
AnnaBridge | 174:b96e65c34a4d | 7106 | * | | |0 = Falling latch interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7107 | * | | |1 = Falling latch interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7108 | * | | |When Enabled, if Capture detects Channel 3 has falling transition, Capture issues an Interrupt. |
AnnaBridge | 174:b96e65c34a4d | 7109 | */ |
AnnaBridge | 174:b96e65c34a4d | 7110 | __IO uint32_t CAPINTEN; |
AnnaBridge | 174:b96e65c34a4d | 7111 | |
AnnaBridge | 174:b96e65c34a4d | 7112 | /** |
AnnaBridge | 174:b96e65c34a4d | 7113 | * CAPINTSTS |
AnnaBridge | 174:b96e65c34a4d | 7114 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7115 | * Offset: 0x5C Capture Interrupt Indication Register |
AnnaBridge | 174:b96e65c34a4d | 7116 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7117 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7118 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7119 | * |[0] |CAPIF0 |Capture0 Interrupt Indication Flag |
AnnaBridge | 174:b96e65c34a4d | 7120 | * | | |If channel 0 rising latch interrupt is enabled (CRL_IE0 =1), a rising transition occurs at input channel 0 will result in CAPIF0 to high; Similarly, a falling transition will cause CAPIF0 to be set high if channel 0 falling latch interrupt is enabled (CFL_IE0 =1). |
AnnaBridge | 174:b96e65c34a4d | 7121 | * | | |This flag is cleared by software with a write 1 on it. |
AnnaBridge | 174:b96e65c34a4d | 7122 | * |[1] |CRLI0 |PWM_CRL0 Latched Indicator Bit |
AnnaBridge | 174:b96e65c34a4d | 7123 | * | | |When input channel 0 has a rising transition, PWM0_CRL0 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 7124 | * |[2] |CFLRI0 |PWM_CFL0 Latched Indicator Bit |
AnnaBridge | 174:b96e65c34a4d | 7125 | * | | |When input channel 0 has a falling transition, PWM0_CFL0 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 7126 | * |[3] |CAPOVR0 |Capture Rising Flag Over Run For Channel 0 |
AnnaBridge | 174:b96e65c34a4d | 7127 | * | | |This flag indicate CRL0 update faster than software reading it when it is set |
AnnaBridge | 174:b96e65c34a4d | 7128 | * | | |This bit will be cleared automatically when user clears CRLI0 bit 1 of PWM_CAPINTSTS. |
AnnaBridge | 174:b96e65c34a4d | 7129 | * |[4] |CAPOVF0 |Capture Falling Flag Over Run For Channel 0 |
AnnaBridge | 174:b96e65c34a4d | 7130 | * | | |This flag indicate CFL0 update faster than software read it when it is set |
AnnaBridge | 174:b96e65c34a4d | 7131 | * | | |This bit will be cleared automatically when user clear CFLI0 bit 2 of PWM_CAPINTSTS |
AnnaBridge | 174:b96e65c34a4d | 7132 | * |[8] |CAPIF1 |Capture1 Interrupt Indication Flag |
AnnaBridge | 174:b96e65c34a4d | 7133 | * | | |If channel 1 rising latch interrupt is enabled (CRL_IE1 =1), a rising transition occurs at input channel 1 will result in CAPIF1 to high; Similarly, a falling transition will cause CAPIF1 to be set high if channel 1 falling latch interrupt is enabled (CFL_IE1 =1). |
AnnaBridge | 174:b96e65c34a4d | 7134 | * | | |This flag is cleared by software with a write 1 on it. |
AnnaBridge | 174:b96e65c34a4d | 7135 | * |[9] |CRLI1 |PWM_CRL1 Latched Indicator Bit |
AnnaBridge | 174:b96e65c34a4d | 7136 | * | | |When input channel 1 has a rising transition, PWM_CRL1 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 7137 | * |[10] |CFLI1 |PWM_CFL1 Latched Indicator Bit |
AnnaBridge | 174:b96e65c34a4d | 7138 | * | | |When input channel 1 has a falling transition, PWM_CFL1 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 7139 | * |[11] |CAPOVR1 |Capture Rising Flag Over Run For Channel 1 |
AnnaBridge | 174:b96e65c34a4d | 7140 | * | | |This flag indicate CRL1 update faster than software reading it when it is set |
AnnaBridge | 174:b96e65c34a4d | 7141 | * | | |This bit will be cleared automatically when user clear CRLI1 bit 9 of PWM_CAPINTSTS |
AnnaBridge | 174:b96e65c34a4d | 7142 | * |[12] |CAPOVF1 |Capture Falling Flag Over Run For Channel 1 |
AnnaBridge | 174:b96e65c34a4d | 7143 | * | | |This flag indicate CFL1 update faster than software reading it when it is set |
AnnaBridge | 174:b96e65c34a4d | 7144 | * | | |This bit will be cleared automatically when user clear CFLI1 bit 10 of PWM_CAPINTSTS |
AnnaBridge | 174:b96e65c34a4d | 7145 | * |[16] |CAPIF2 |Capture2 Interrupt Indication Flag |
AnnaBridge | 174:b96e65c34a4d | 7146 | * | | |If channel 2 rising latch interrupt is enabled (CRL_IE2=1), a rising transition occurs at input channel 2 will result in CAPIF2 to high; Similarly, a falling transition will cause CAPIF2 to be set high if channel 2 falling latch interrupt is enabled (CFL_IE2=1). |
AnnaBridge | 174:b96e65c34a4d | 7147 | * | | |This flag is cleared by software with a write 1 on it. |
AnnaBridge | 174:b96e65c34a4d | 7148 | * |[17] |CRLI2 |PWM_CRL2 Latched Indicator Bit |
AnnaBridge | 174:b96e65c34a4d | 7149 | * | | |When input channel 2 has a rising transition, PWM0_CRL2 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 7150 | * |[18] |CFLI2 |PWM_CFL2 Latched Indicator Bit |
AnnaBridge | 174:b96e65c34a4d | 7151 | * | | |When input channel 2 has a falling transition, PWM0_CFL2 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 7152 | * |[19] |CAPOVR2 |Capture Rising Flag Over Run For Channel 2 |
AnnaBridge | 174:b96e65c34a4d | 7153 | * | | |This flag indicate CRL2 update faster than software reading it when it is set |
AnnaBridge | 174:b96e65c34a4d | 7154 | * | | |This bit will be cleared automatically when user clear CRLI2 bit 17 of PWM_CAPINTSTS |
AnnaBridge | 174:b96e65c34a4d | 7155 | * |[20] |CAPOVF2 |Capture Falling Flag Over Run For Channel 2 |
AnnaBridge | 174:b96e65c34a4d | 7156 | * | | |This flag indicate CFL2 update faster than software reading it when it is set |
AnnaBridge | 174:b96e65c34a4d | 7157 | * | | |This bit will be cleared automatically when user clear CFLI2 bit 18 of PWM_CAPINTSTS |
AnnaBridge | 174:b96e65c34a4d | 7158 | * |[24] |CAPIF3 |Capture3 Interrupt Indication Flag |
AnnaBridge | 174:b96e65c34a4d | 7159 | * | | |If channel 3 rising latch interrupt is enabled (CRL_IE3 =1), a rising transition occurs at input channel 3 will result in CAPIF3 to high; Similarly, a falling transition will cause CAPIF3 to be set high if channel 3 falling latch interrupt is enabled (CFL_IE3=1). |
AnnaBridge | 174:b96e65c34a4d | 7160 | * | | |This flag is cleared by software with a write 1 on it. |
AnnaBridge | 174:b96e65c34a4d | 7161 | * |[25] |CRLI3 |PWM_CRL3 Latched Indicator Bit |
AnnaBridge | 174:b96e65c34a4d | 7162 | * | | |When input channel 3 has a rising transition, PWM_CRL3 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 7163 | * |[26] |CFLI3 |PWM_CFL3 Latched Indicator Bit |
AnnaBridge | 174:b96e65c34a4d | 7164 | * | | |When input channel 3 has a falling transition, PWM_CFL3 was latched with the value of PWM down-counter and this bit is set by hardware, software can clear this bit by writing 1 to it. |
AnnaBridge | 174:b96e65c34a4d | 7165 | * |[27] |CAPOVR3 |Capture Rising Flag Over Run For Channel 3 |
AnnaBridge | 174:b96e65c34a4d | 7166 | * | | |This flag indicate CRL3update faster than software reading it when it is set |
AnnaBridge | 174:b96e65c34a4d | 7167 | * | | |This bit will be cleared automatically when user clear CRLI3 bit 25 of PWM_CAPINTSTS |
AnnaBridge | 174:b96e65c34a4d | 7168 | * |[28] |CAPOVF3 |Capture Falling Flag Over Run For Channel 3 |
AnnaBridge | 174:b96e65c34a4d | 7169 | * | | |This flag indicate CFL3 update faster than software reading it when it is set |
AnnaBridge | 174:b96e65c34a4d | 7170 | * | | |This bit will be cleared automatically when user clear CFLI3 bit 26 of PWM_CAPINTSTS |
AnnaBridge | 174:b96e65c34a4d | 7171 | */ |
AnnaBridge | 174:b96e65c34a4d | 7172 | __IO uint32_t CAPINTSTS; |
AnnaBridge | 174:b96e65c34a4d | 7173 | |
AnnaBridge | 174:b96e65c34a4d | 7174 | /** |
AnnaBridge | 174:b96e65c34a4d | 7175 | * CRL0 |
AnnaBridge | 174:b96e65c34a4d | 7176 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7177 | * Offset: 0x60 Capture Rising Latch Register (Channel 0) |
AnnaBridge | 174:b96e65c34a4d | 7178 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7179 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7180 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7181 | * |[15:0] |CRL15_0 |Capture Rising Latch Register |
AnnaBridge | 174:b96e65c34a4d | 7182 | * | | |Latch the PWM counter when Channel 0/1/2/3 has rising transition. |
AnnaBridge | 174:b96e65c34a4d | 7183 | * |[31:16] |CRL31_16 |Upper Half Word Of 32-Bit Capture Data When Cascade Enabled |
AnnaBridge | 174:b96e65c34a4d | 7184 | * | | |When cascade is enabled for capture channel 0, 2,the original 16 bit counter extend to 32 bit, and capture result CRL0 and CRL2 are also extend to 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 7185 | */ |
AnnaBridge | 174:b96e65c34a4d | 7186 | __I uint32_t CRL0; |
AnnaBridge | 174:b96e65c34a4d | 7187 | |
AnnaBridge | 174:b96e65c34a4d | 7188 | /** |
AnnaBridge | 174:b96e65c34a4d | 7189 | * CFL0 |
AnnaBridge | 174:b96e65c34a4d | 7190 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7191 | * Offset: 0x64 Capture Falling Latch Register (Channel 0) |
AnnaBridge | 174:b96e65c34a4d | 7192 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7193 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7194 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7195 | * |[15:0] |CFL15_0 |Capture Falling Latch Register |
AnnaBridge | 174:b96e65c34a4d | 7196 | * | | |Latch the PWM counter when Channel 01/2/3 has Falling transition. |
AnnaBridge | 174:b96e65c34a4d | 7197 | * |[31:16] |CFL31_16 |Upper Half Word Of 32-Bit Capture Data When Cascade Enabled |
AnnaBridge | 174:b96e65c34a4d | 7198 | * | | |When cascade is enabled for capture channel 0, 2, the original 16 bit counter extend to 32 bit, and capture result CFL0 and CFL2 are also extend to 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 7199 | */ |
AnnaBridge | 174:b96e65c34a4d | 7200 | __I uint32_t CFL0; |
AnnaBridge | 174:b96e65c34a4d | 7201 | |
AnnaBridge | 174:b96e65c34a4d | 7202 | /** |
AnnaBridge | 174:b96e65c34a4d | 7203 | * CRL1 |
AnnaBridge | 174:b96e65c34a4d | 7204 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7205 | * Offset: 0x68 Capture Rising Latch Register (Channel 1) |
AnnaBridge | 174:b96e65c34a4d | 7206 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7207 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7208 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7209 | * |[15:0] |CRL15_0 |Capture Rising Latch Register |
AnnaBridge | 174:b96e65c34a4d | 7210 | * | | |Latch the PWM counter when Channel 0/1/2/3 has rising transition. |
AnnaBridge | 174:b96e65c34a4d | 7211 | * |[31:16] |CRL31_16 |Upper Half Word Of 32-Bit Capture Data When Cascade Enabled |
AnnaBridge | 174:b96e65c34a4d | 7212 | * | | |When cascade is enabled for capture channel 0, 2,the original 16 bit counter extend to 32 bit, and capture result CRL0 and CRL2 are also extend to 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 7213 | */ |
AnnaBridge | 174:b96e65c34a4d | 7214 | __I uint32_t CRL1; |
AnnaBridge | 174:b96e65c34a4d | 7215 | |
AnnaBridge | 174:b96e65c34a4d | 7216 | /** |
AnnaBridge | 174:b96e65c34a4d | 7217 | * CFL1 |
AnnaBridge | 174:b96e65c34a4d | 7218 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7219 | * Offset: 0x6C Capture Falling Latch Register (Channel 1) |
AnnaBridge | 174:b96e65c34a4d | 7220 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7221 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7222 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7223 | * |[15:0] |CFL15_0 |Capture Falling Latch Register |
AnnaBridge | 174:b96e65c34a4d | 7224 | * | | |Latch the PWM counter when Channel 01/2/3 has Falling transition. |
AnnaBridge | 174:b96e65c34a4d | 7225 | * |[31:16] |CFL31_16 |Upper Half Word Of 32-Bit Capture Data When Cascade Enabled |
AnnaBridge | 174:b96e65c34a4d | 7226 | * | | |When cascade is enabled for capture channel 0, 2, the original 16 bit counter extend to 32 bit, and capture result CFL0 and CFL2 are also extend to 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 7227 | */ |
AnnaBridge | 174:b96e65c34a4d | 7228 | __I uint32_t CFL1; |
AnnaBridge | 174:b96e65c34a4d | 7229 | |
AnnaBridge | 174:b96e65c34a4d | 7230 | /** |
AnnaBridge | 174:b96e65c34a4d | 7231 | * CRL2 |
AnnaBridge | 174:b96e65c34a4d | 7232 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7233 | * Offset: 0x70 Capture Rising Latch Register (Channel 2) |
AnnaBridge | 174:b96e65c34a4d | 7234 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7235 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7236 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7237 | * |[15:0] |CRL15_0 |Capture Rising Latch Register |
AnnaBridge | 174:b96e65c34a4d | 7238 | * | | |Latch the PWM counter when Channel 0/1/2/3 has rising transition. |
AnnaBridge | 174:b96e65c34a4d | 7239 | * |[31:16] |CRL31_16 |Upper Half Word Of 32-Bit Capture Data When Cascade Enabled |
AnnaBridge | 174:b96e65c34a4d | 7240 | * | | |When cascade is enabled for capture channel 0, 2,the original 16 bit counter extend to 32 bit, and capture result CRL0 and CRL2 are also extend to 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 7241 | */ |
AnnaBridge | 174:b96e65c34a4d | 7242 | __I uint32_t CRL2; |
AnnaBridge | 174:b96e65c34a4d | 7243 | |
AnnaBridge | 174:b96e65c34a4d | 7244 | /** |
AnnaBridge | 174:b96e65c34a4d | 7245 | * CFL2 |
AnnaBridge | 174:b96e65c34a4d | 7246 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7247 | * Offset: 0x74 Capture Falling Latch Register (Channel 2) |
AnnaBridge | 174:b96e65c34a4d | 7248 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7249 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7250 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7251 | * |[15:0] |CFL15_0 |Capture Falling Latch Register |
AnnaBridge | 174:b96e65c34a4d | 7252 | * | | |Latch the PWM counter when Channel 01/2/3 has Falling transition. |
AnnaBridge | 174:b96e65c34a4d | 7253 | * |[31:16] |CFL31_16 |Upper Half Word Of 32-Bit Capture Data When Cascade Enabled |
AnnaBridge | 174:b96e65c34a4d | 7254 | * | | |When cascade is enabled for capture channel 0, 2, the original 16 bit counter extend to 32 bit, and capture result CFL0 and CFL2 are also extend to 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 7255 | */ |
AnnaBridge | 174:b96e65c34a4d | 7256 | __I uint32_t CFL2; |
AnnaBridge | 174:b96e65c34a4d | 7257 | |
AnnaBridge | 174:b96e65c34a4d | 7258 | /** |
AnnaBridge | 174:b96e65c34a4d | 7259 | * CRL3 |
AnnaBridge | 174:b96e65c34a4d | 7260 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7261 | * Offset: 0x78 Capture Rising Latch Register (Channel 3) |
AnnaBridge | 174:b96e65c34a4d | 7262 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7263 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7264 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7265 | * |[15:0] |CRL15_0 |Capture Rising Latch Register |
AnnaBridge | 174:b96e65c34a4d | 7266 | * | | |Latch the PWM counter when Channel 0/1/2/3 has rising transition. |
AnnaBridge | 174:b96e65c34a4d | 7267 | * |[31:16] |CRL31_16 |Upper Half Word Of 32-Bit Capture Data When Cascade Enabled |
AnnaBridge | 174:b96e65c34a4d | 7268 | * | | |When cascade is enabled for capture channel 0, 2,the original 16 bit counter extend to 32 bit, and capture result CRL0 and CRL2 are also extend to 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 7269 | */ |
AnnaBridge | 174:b96e65c34a4d | 7270 | __I uint32_t CRL3; |
AnnaBridge | 174:b96e65c34a4d | 7271 | |
AnnaBridge | 174:b96e65c34a4d | 7272 | /** |
AnnaBridge | 174:b96e65c34a4d | 7273 | * CFL3 |
AnnaBridge | 174:b96e65c34a4d | 7274 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7275 | * Offset: 0x7C Capture Falling Latch Register (Channel 3) |
AnnaBridge | 174:b96e65c34a4d | 7276 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7277 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7278 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7279 | * |[15:0] |CFL15_0 |Capture Falling Latch Register |
AnnaBridge | 174:b96e65c34a4d | 7280 | * | | |Latch the PWM counter when Channel 01/2/3 has Falling transition. |
AnnaBridge | 174:b96e65c34a4d | 7281 | * |[31:16] |CFL31_16 |Upper Half Word Of 32-Bit Capture Data When Cascade Enabled |
AnnaBridge | 174:b96e65c34a4d | 7282 | * | | |When cascade is enabled for capture channel 0, 2, the original 16 bit counter extend to 32 bit, and capture result CFL0 and CFL2 are also extend to 32 bit. |
AnnaBridge | 174:b96e65c34a4d | 7283 | */ |
AnnaBridge | 174:b96e65c34a4d | 7284 | __I uint32_t CFL3; |
AnnaBridge | 174:b96e65c34a4d | 7285 | |
AnnaBridge | 174:b96e65c34a4d | 7286 | /** |
AnnaBridge | 174:b96e65c34a4d | 7287 | * PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7288 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7289 | * Offset: 0x80 PDMA channel 0 captured data |
AnnaBridge | 174:b96e65c34a4d | 7290 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7291 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7292 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7293 | * |[7:0] |Captureddata7_0|PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7294 | * | | |When CH01CASK is disabled, it is the capturing value(CFL0/CRL0) for channel 0 |
AnnaBridge | 174:b96e65c34a4d | 7295 | * | | |When CH01CASK is enabled, It is the for the first byte of 32 bit capturing data for channel 0 |
AnnaBridge | 174:b96e65c34a4d | 7296 | * |[15:8] |Captureddata15_8|PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7297 | * | | |When CH01CASK is disabled, it is the capturing value(CFL0/CRL0) for channel 0 |
AnnaBridge | 174:b96e65c34a4d | 7298 | * | | |When CH01CASK is enabled, It is the second byte of 32 bit capturing data for channel 0 |
AnnaBridge | 174:b96e65c34a4d | 7299 | * |[23:16] |Captureddata23_16|PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7300 | * | | |When CH01CASK is disabled, this byte is 0 |
AnnaBridge | 174:b96e65c34a4d | 7301 | * | | |When CH01CASK is enabled, It is the third byte of 32 bit capturing data for channel 0 |
AnnaBridge | 174:b96e65c34a4d | 7302 | * |[31:24] |Captureddata31_24|PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7303 | * | | |When CH01CASK is disabled, this byte is 0 |
AnnaBridge | 174:b96e65c34a4d | 7304 | * | | |When CH01CASK is enabled, It is the 4th byte of 32 bit capturing data for channel 0 |
AnnaBridge | 174:b96e65c34a4d | 7305 | */ |
AnnaBridge | 174:b96e65c34a4d | 7306 | __I uint32_t PDMACH0; |
AnnaBridge | 174:b96e65c34a4d | 7307 | |
AnnaBridge | 174:b96e65c34a4d | 7308 | /** |
AnnaBridge | 174:b96e65c34a4d | 7309 | * PDMACH2 |
AnnaBridge | 174:b96e65c34a4d | 7310 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7311 | * Offset: 0x84 PDMA channel 2 captured data |
AnnaBridge | 174:b96e65c34a4d | 7312 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7313 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7314 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7315 | * |[7:0] |Captureddata7_0|PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7316 | * | | |When CH23CASK is disabled, it is the capturing value(CFL2/CRL2) for channel 2 |
AnnaBridge | 174:b96e65c34a4d | 7317 | * | | |When CH23CASK is enabled, It is the for the first byte of 32 bit capturing data for channel 2 |
AnnaBridge | 174:b96e65c34a4d | 7318 | * |[15:8] |Captureddata15_8|PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7319 | * | | |When CH23CASK is disabled, it is the capturing value(CFL2/CRL2) for channel 2 |
AnnaBridge | 174:b96e65c34a4d | 7320 | * | | |When CH23CASK is enabled, It is the second byte of 32 bit capturing data for channel 2 |
AnnaBridge | 174:b96e65c34a4d | 7321 | * |[23:16] |Captureddata23_16|PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7322 | * | | |When CH23CASK is disabled, this byte is 0 |
AnnaBridge | 174:b96e65c34a4d | 7323 | * | | |When CH23CASK is enabled, It is the third byte of 32 bit capturing data for channel 2 |
AnnaBridge | 174:b96e65c34a4d | 7324 | * |[31:24] |Captureddata31_24|PDMACH0 |
AnnaBridge | 174:b96e65c34a4d | 7325 | * | | |When CH23CASK is disabled, this byte is 0 |
AnnaBridge | 174:b96e65c34a4d | 7326 | * | | |When CH23CASK is enabled, It is the 4th byte of 32 bit capturing data for channel 2 |
AnnaBridge | 174:b96e65c34a4d | 7327 | */ |
AnnaBridge | 174:b96e65c34a4d | 7328 | __I uint32_t PDMACH2; |
AnnaBridge | 174:b96e65c34a4d | 7329 | |
AnnaBridge | 174:b96e65c34a4d | 7330 | } PWM_T; |
AnnaBridge | 174:b96e65c34a4d | 7331 | |
AnnaBridge | 174:b96e65c34a4d | 7332 | /** |
AnnaBridge | 174:b96e65c34a4d | 7333 | @addtogroup PWM_CONST PWM Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 7334 | Constant Definitions for PWM Controller |
AnnaBridge | 174:b96e65c34a4d | 7335 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 7336 | |
AnnaBridge | 174:b96e65c34a4d | 7337 | #define PWM_PRES_CP01_Pos (0) /*!< PWM_T::PRES: CP01 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7338 | #define PWM_PRES_CP01_Msk (0xfful << PWM_PRES_CP01_Pos) /*!< PWM_T::PRES: CP01 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7339 | |
AnnaBridge | 174:b96e65c34a4d | 7340 | #define PWM_PRES_CP23_Pos (8) /*!< PWM_T::PRES: CP23 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7341 | #define PWM_PRES_CP23_Msk (0xfful << PWM_PRES_CP23_Pos) /*!< PWM_T::PRES: CP23 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7342 | |
AnnaBridge | 174:b96e65c34a4d | 7343 | #define PWM_PRES_DZ01_Pos (16) /*!< PWM_T::PRES: DZ01 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7344 | #define PWM_PRES_DZ01_Msk (0xfful << PWM_PRES_DZ01_Pos) /*!< PWM_T::PRES: DZ01 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7345 | |
AnnaBridge | 174:b96e65c34a4d | 7346 | #define PWM_PRES_DZ23_Pos (24) /*!< PWM_T::PRES: DZ23 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7347 | #define PWM_PRES_DZ23_Msk (0xfful << PWM_PRES_DZ23_Pos) /*!< PWM_T::PRES: DZ23 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7348 | |
AnnaBridge | 174:b96e65c34a4d | 7349 | #define PWM_CLKSEL_CLKSEL0_Pos (0) /*!< PWM_T::CLKSEL: CLKSEL0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7350 | #define PWM_CLKSEL_CLKSEL0_Msk (0x7ul << PWM_CLKSEL_CLKSEL0_Pos) /*!< PWM_T::CLKSEL: CLKSEL0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7351 | |
AnnaBridge | 174:b96e65c34a4d | 7352 | #define PWM_CLKSEL_CLKSEL1_Pos (4) /*!< PWM_T::CLKSEL: CLKSEL1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7353 | #define PWM_CLKSEL_CLKSEL1_Msk (0x7ul << PWM_CLKSEL_CLKSEL1_Pos) /*!< PWM_T::CLKSEL: CLKSEL1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7354 | |
AnnaBridge | 174:b96e65c34a4d | 7355 | #define PWM_CLKSEL_CLKSEL2_Pos (8) /*!< PWM_T::CLKSEL: CLKSEL2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7356 | #define PWM_CLKSEL_CLKSEL2_Msk (0x7ul << PWM_CLKSEL_CLKSEL2_Pos) /*!< PWM_T::CLKSEL: CLKSEL2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7357 | |
AnnaBridge | 174:b96e65c34a4d | 7358 | #define PWM_CLKSEL_CLKSEL3_Pos (12) /*!< PWM_T::CLKSEL: CLKSEL3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7359 | #define PWM_CLKSEL_CLKSEL3_Msk (0x7ul << PWM_CLKSEL_CLKSEL3_Pos) /*!< PWM_T::CLKSEL: CLKSEL3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7360 | |
AnnaBridge | 174:b96e65c34a4d | 7361 | #define PWM_CTL_CH0EN_Pos (0) /*!< PWM_T::CTL: CH0EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7362 | #define PWM_CTL_CH0EN_Msk (0x1ul << PWM_CTL_CH0EN_Pos) /*!< PWM_T::CTL: CH0EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7363 | |
AnnaBridge | 174:b96e65c34a4d | 7364 | #define PWM_CTL_CH0INV_Pos (2) /*!< PWM_T::CTL: CH0INV Position */ |
AnnaBridge | 174:b96e65c34a4d | 7365 | #define PWM_CTL_CH0INV_Msk (0x1ul << PWM_CTL_CH0INV_Pos) /*!< PWM_T::CTL: CH0INV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7366 | |
AnnaBridge | 174:b96e65c34a4d | 7367 | #define PWM_CTL_CH0MOD_Pos (3) /*!< PWM_T::CTL: CH0MOD Position */ |
AnnaBridge | 174:b96e65c34a4d | 7368 | #define PWM_CTL_CH0MOD_Msk (0x1ul << PWM_CTL_CH0MOD_Pos) /*!< PWM_T::CTL: CH0MOD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7369 | |
AnnaBridge | 174:b96e65c34a4d | 7370 | #define PWM_CTL_DZEN01_Pos (4) /*!< PWM_T::CTL: DZEN01 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7371 | #define PWM_CTL_DZEN01_Msk (0x1ul << PWM_CTL_DZEN01_Pos) /*!< PWM_T::CTL: DZEN01 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7372 | |
AnnaBridge | 174:b96e65c34a4d | 7373 | #define PWM_CTL_DZEN23_Pos (5) /*!< PWM_T::CTL: DZEN23 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7374 | #define PWM_CTL_DZEN23_Msk (0x1ul << PWM_CTL_DZEN23_Pos) /*!< PWM_T::CTL: DZEN23 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7375 | |
AnnaBridge | 174:b96e65c34a4d | 7376 | #define PWM_CTL_CH1EN_Pos (8) /*!< PWM_T::CTL: CH1EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7377 | #define PWM_CTL_CH1EN_Msk (0x1ul << PWM_CTL_CH1EN_Pos) /*!< PWM_T::CTL: CH1EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7378 | |
AnnaBridge | 174:b96e65c34a4d | 7379 | #define PWM_CTL_CH1INV_Pos (10) /*!< PWM_T::CTL: CH1INV Position */ |
AnnaBridge | 174:b96e65c34a4d | 7380 | #define PWM_CTL_CH1INV_Msk (0x1ul << PWM_CTL_CH1INV_Pos) /*!< PWM_T::CTL: CH1INV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7381 | |
AnnaBridge | 174:b96e65c34a4d | 7382 | #define PWM_CTL_CH1MOD_Pos (11) /*!< PWM_T::CTL: CH1MOD Position */ |
AnnaBridge | 174:b96e65c34a4d | 7383 | #define PWM_CTL_CH1MOD_Msk (0x1ul << PWM_CTL_CH1MOD_Pos) /*!< PWM_T::CTL: CH1MOD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7384 | |
AnnaBridge | 174:b96e65c34a4d | 7385 | #define PWM_CTL_CH2EN_Pos (16) /*!< PWM_T::CTL: CH2EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7386 | #define PWM_CTL_CH2EN_Msk (0x1ul << PWM_CTL_CH2EN_Pos) /*!< PWM_T::CTL: CH2EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7387 | |
AnnaBridge | 174:b96e65c34a4d | 7388 | #define PWM_CTL_CH2INV_Pos (18) /*!< PWM_T::CTL: CH2INV Position */ |
AnnaBridge | 174:b96e65c34a4d | 7389 | #define PWM_CTL_CH2INV_Msk (0x1ul << PWM_CTL_CH2INV_Pos) /*!< PWM_T::CTL: CH2INV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7390 | |
AnnaBridge | 174:b96e65c34a4d | 7391 | #define PWM_CTL_CH2MOD_Pos (19) /*!< PWM_T::CTL: CH2MOD Position */ |
AnnaBridge | 174:b96e65c34a4d | 7392 | #define PWM_CTL_CH2MOD_Msk (0x1ul << PWM_CTL_CH2MOD_Pos) /*!< PWM_T::CTL: CH2MOD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7393 | |
AnnaBridge | 174:b96e65c34a4d | 7394 | #define PWM_CTL_CH3EN_Pos (24) /*!< PWM_T::CTL: CH3EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7395 | #define PWM_CTL_CH3EN_Msk (0x1ul << PWM_CTL_CH3EN_Pos) /*!< PWM_T::CTL: CH3EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7396 | |
AnnaBridge | 174:b96e65c34a4d | 7397 | #define PWM_CTL_CH3INV_Pos (26) /*!< PWM_T::CTL: CH3INV Position */ |
AnnaBridge | 174:b96e65c34a4d | 7398 | #define PWM_CTL_CH3INV_Msk (0x1ul << PWM_CTL_CH3INV_Pos) /*!< PWM_T::CTL: CH3INV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7399 | |
AnnaBridge | 174:b96e65c34a4d | 7400 | #define PWM_CTL_CH3MOD_Pos (27) /*!< PWM_T::CTL: CH3MOD Position */ |
AnnaBridge | 174:b96e65c34a4d | 7401 | #define PWM_CTL_CH3MOD_Msk (0x1ul << PWM_CTL_CH3MOD_Pos) /*!< PWM_T::CTL: CH3MOD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7402 | |
AnnaBridge | 174:b96e65c34a4d | 7403 | #define PWM_INTEN_TMIE0_Pos (0) /*!< PWM_T::INTEN: TMIE0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7404 | #define PWM_INTEN_TMIE0_Msk (0x1ul << PWM_INTEN_TMIE0_Pos) /*!< PWM_T::INTEN: TMIE0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7405 | |
AnnaBridge | 174:b96e65c34a4d | 7406 | #define PWM_INTEN_TMIE1_Pos (1) /*!< PWM_T::INTEN: TMIE1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7407 | #define PWM_INTEN_TMIE1_Msk (0x1ul << PWM_INTEN_TMIE1_Pos) /*!< PWM_T::INTEN: TMIE1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7408 | |
AnnaBridge | 174:b96e65c34a4d | 7409 | #define PWM_INTEN_TMIE2_Pos (2) /*!< PWM_T::INTEN: TMIE2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7410 | #define PWM_INTEN_TMIE2_Msk (0x1ul << PWM_INTEN_TMIE2_Pos) /*!< PWM_T::INTEN: TMIE2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7411 | |
AnnaBridge | 174:b96e65c34a4d | 7412 | #define PWM_INTEN_TMIE3_Pos (3) /*!< PWM_T::INTEN: TMIE3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7413 | #define PWM_INTEN_TMIE3_Msk (0x1ul << PWM_INTEN_TMIE3_Pos) /*!< PWM_T::INTEN: TMIE3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7414 | |
AnnaBridge | 174:b96e65c34a4d | 7415 | #define PWM_INTSTS_TMINT0_Pos (0) /*!< PWM_T::INTSTS: TMINT0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7416 | #define PWM_INTSTS_TMINT0_Msk (0x1ul << PWM_INTSTS_TMINT0_Pos) /*!< PWM_T::INTSTS: TMINT0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7417 | |
AnnaBridge | 174:b96e65c34a4d | 7418 | #define PWM_INTSTS_TMINT1_Pos (1) /*!< PWM_T::INTSTS: TMINT1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7419 | #define PWM_INTSTS_TMINT1_Msk (0x1ul << PWM_INTSTS_TMINT1_Pos) /*!< PWM_T::INTSTS: TMINT1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7420 | |
AnnaBridge | 174:b96e65c34a4d | 7421 | #define PWM_INTSTS_TMINT2_Pos (2) /*!< PWM_T::INTSTS: TMINT2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7422 | #define PWM_INTSTS_TMINT2_Msk (0x1ul << PWM_INTSTS_TMINT2_Pos) /*!< PWM_T::INTSTS: TMINT2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7423 | |
AnnaBridge | 174:b96e65c34a4d | 7424 | #define PWM_INTSTS_TMINT3_Pos (3) /*!< PWM_T::INTSTS: TMINT3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7425 | #define PWM_INTSTS_TMINT3_Msk (0x1ul << PWM_INTSTS_TMINT3_Pos) /*!< PWM_T::INTSTS: TMINT3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7426 | |
AnnaBridge | 174:b96e65c34a4d | 7427 | #define PWM_INTSTS_DUTY0SYNC_Pos (4) /*!< PWM_T::INTSTS: DUTY0SYNC Position */ |
AnnaBridge | 174:b96e65c34a4d | 7428 | #define PWM_INTSTS_DUTY0SYNC_Msk (0x1ul << PWM_INTSTS_DUTY0SYNC_Pos) /*!< PWM_T::INTSTS: DUTY0SYNC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7429 | |
AnnaBridge | 174:b96e65c34a4d | 7430 | #define PWM_INTSTS_PRESSYNC_Pos (8) /*!< PWM_T::INTSTS: PRESSYNC Position */ |
AnnaBridge | 174:b96e65c34a4d | 7431 | #define PWM_INTSTS_PRESSYNC_Msk (0x1ul << PWM_INTSTS_PRESSYNC_Pos) /*!< PWM_T::INTSTS: PRESSYNC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7432 | |
AnnaBridge | 174:b96e65c34a4d | 7433 | #define PWM_OE_CH0_OE_Pos (0) /*!< PWM_T::OE: CH0_OE Position */ |
AnnaBridge | 174:b96e65c34a4d | 7434 | #define PWM_OE_CH0_OE_Msk (0x1ul << PWM_OE_CH0_OE_Pos) /*!< PWM_T::OE: CH0_OE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7435 | |
AnnaBridge | 174:b96e65c34a4d | 7436 | #define PWM_OE_CH1_OE_Pos (1) /*!< PWM_T::OE: CH1_OE Position */ |
AnnaBridge | 174:b96e65c34a4d | 7437 | #define PWM_OE_CH1_OE_Msk (0x1ul << PWM_OE_CH1_OE_Pos) /*!< PWM_T::OE: CH1_OE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7438 | |
AnnaBridge | 174:b96e65c34a4d | 7439 | #define PWM_OE_CH2_OE_Pos (2) /*!< PWM_T::OE: CH2_OE Position */ |
AnnaBridge | 174:b96e65c34a4d | 7440 | #define PWM_OE_CH2_OE_Msk (0x1ul << PWM_OE_CH2_OE_Pos) /*!< PWM_T::OE: CH2_OE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7441 | |
AnnaBridge | 174:b96e65c34a4d | 7442 | #define PWM_OE_CH3_OE_Pos (3) /*!< PWM_T::OE: CH3_OE Position */ |
AnnaBridge | 174:b96e65c34a4d | 7443 | #define PWM_OE_CH3_OE_Msk (0x1ul << PWM_OE_CH3_OE_Pos) /*!< PWM_T::OE: CH3_OE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7444 | |
AnnaBridge | 174:b96e65c34a4d | 7445 | #define PWM_DUTY_CN_Pos (0) /*!< PWM_T::DUTY0: CN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7446 | #define PWM_DUTY_CN_Msk (0xfffful << PWM_DUTY_CN_Pos) /*!< PWM_T::DUTY0: CN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7447 | |
AnnaBridge | 174:b96e65c34a4d | 7448 | #define PWM_DUTY_CM_Pos (16) /*!< PWM_T::DUTY0: CM Position */ |
AnnaBridge | 174:b96e65c34a4d | 7449 | #define PWM_DUTY_CM_Msk (0xfffful << PWM_DUTY_CM_Pos) /*!< PWM_T::DUTY0: CM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7450 | |
AnnaBridge | 174:b96e65c34a4d | 7451 | #define PWM_DATA0_PWMx_DATAy15_0_Pos (0) /*!< PWM_T::DATA0: PWMx_DATAy15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7452 | #define PWM_DATA0_PWMx_DATAy15_0_Msk (0xfffful << PWM_DATA0_PWMx_DATAy15_0_Pos) /*!< PWM_T::DATA0: PWMx_DATAy15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7453 | |
AnnaBridge | 174:b96e65c34a4d | 7454 | #define PWM_DATA0_PWMx_DATAy30_16_Pos (16) /*!< PWM_T::DATA0: PWMx_DATAy30_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7455 | #define PWM_DATA0_PWMx_DATAy30_16_Msk (0x7ffful << PWM_DATA0_PWMx_DATAy30_16_Pos) /*!< PWM_T::DATA0: PWMx_DATAy30_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7456 | |
AnnaBridge | 174:b96e65c34a4d | 7457 | #define PWM_DATA0_sync_Pos (31) /*!< PWM_T::DATA0: sync Position */ |
AnnaBridge | 174:b96e65c34a4d | 7458 | #define PWM_DATA0_sync_Msk (0x1ul << PWM_DATA0_sync_Pos) /*!< PWM_T::DATA0: sync Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7459 | |
AnnaBridge | 174:b96e65c34a4d | 7460 | #define PWM_DUTY1_CN_Pos (0) /*!< PWM_T::DUTY1: CN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7461 | #define PWM_DUTY1_CN_Msk (0xfffful << PWM_DUTY1_CN_Pos) /*!< PWM_T::DUTY1: CN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7462 | |
AnnaBridge | 174:b96e65c34a4d | 7463 | #define PWM_DUTY1_CM_Pos (16) /*!< PWM_T::DUTY1: CM Position */ |
AnnaBridge | 174:b96e65c34a4d | 7464 | #define PWM_DUTY1_CM_Msk (0xfffful << PWM_DUTY1_CM_Pos) /*!< PWM_T::DUTY1: CM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7465 | |
AnnaBridge | 174:b96e65c34a4d | 7466 | #define PWM_DATA1_PWMx_DATAy15_0_Pos (0) /*!< PWM_T::DATA1: PWMx_DATAy15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7467 | #define PWM_DATA1_PWMx_DATAy15_0_Msk (0xfffful << PWM_DATA1_PWMx_DATAy15_0_Pos) /*!< PWM_T::DATA1: PWMx_DATAy15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7468 | |
AnnaBridge | 174:b96e65c34a4d | 7469 | #define PWM_DATA1_PWMx_DATAy30_16_Pos (16) /*!< PWM_T::DATA1: PWMx_DATAy30_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7470 | #define PWM_DATA1_PWMx_DATAy30_16_Msk (0x7ffful << PWM_DATA1_PWMx_DATAy30_16_Pos) /*!< PWM_T::DATA1: PWMx_DATAy30_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7471 | |
AnnaBridge | 174:b96e65c34a4d | 7472 | #define PWM_DATA1_sync_Pos (31) /*!< PWM_T::DATA1: sync Position */ |
AnnaBridge | 174:b96e65c34a4d | 7473 | #define PWM_DATA1_sync_Msk (0x1ul << PWM_DATA1_sync_Pos) /*!< PWM_T::DATA1: sync Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7474 | |
AnnaBridge | 174:b96e65c34a4d | 7475 | #define PWM_DUTY2_CN_Pos (0) /*!< PWM_T::DUTY2: CN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7476 | #define PWM_DUTY2_CN_Msk (0xfffful << PWM_DUTY2_CN_Pos) /*!< PWM_T::DUTY2: CN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7477 | |
AnnaBridge | 174:b96e65c34a4d | 7478 | #define PWM_DUTY2_CM_Pos (16) /*!< PWM_T::DUTY2: CM Position */ |
AnnaBridge | 174:b96e65c34a4d | 7479 | #define PWM_DUTY2_CM_Msk (0xfffful << PWM_DUTY2_CM_Pos) /*!< PWM_T::DUTY2: CM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7480 | |
AnnaBridge | 174:b96e65c34a4d | 7481 | #define PWM_DATA2_PWMx_DATAy15_0_Pos (0) /*!< PWM_T::DATA2: PWMx_DATAy15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7482 | #define PWM_DATA2_PWMx_DATAy15_0_Msk (0xfffful << PWM_DATA2_PWMx_DATAy15_0_Pos) /*!< PWM_T::DATA2: PWMx_DATAy15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7483 | |
AnnaBridge | 174:b96e65c34a4d | 7484 | #define PWM_DATA2_PWMx_DATAy30_16_Pos (16) /*!< PWM_T::DATA2: PWMx_DATAy30_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7485 | #define PWM_DATA2_PWMx_DATAy30_16_Msk (0x7ffful << PWM_DATA2_PWMx_DATAy30_16_Pos) /*!< PWM_T::DATA2: PWMx_DATAy30_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7486 | |
AnnaBridge | 174:b96e65c34a4d | 7487 | #define PWM_DATA2_sync_Pos (31) /*!< PWM_T::DATA2: sync Position */ |
AnnaBridge | 174:b96e65c34a4d | 7488 | #define PWM_DATA2_sync_Msk (0x1ul << PWM_DATA2_sync_Pos) /*!< PWM_T::DATA2: sync Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7489 | |
AnnaBridge | 174:b96e65c34a4d | 7490 | #define PWM_DUTY3_CN_Pos (0) /*!< PWM_T::DUTY3: CN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7491 | #define PWM_DUTY3_CN_Msk (0xfffful << PWM_DUTY3_CN_Pos) /*!< PWM_T::DUTY3: CN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7492 | |
AnnaBridge | 174:b96e65c34a4d | 7493 | #define PWM_DUTY3_CM_Pos (16) /*!< PWM_T::DUTY3: CM Position */ |
AnnaBridge | 174:b96e65c34a4d | 7494 | #define PWM_DUTY3_CM_Msk (0xfffful << PWM_DUTY3_CM_Pos) /*!< PWM_T::DUTY3: CM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7495 | |
AnnaBridge | 174:b96e65c34a4d | 7496 | #define PWM_DATA3_PWMx_DATAy15_0_Pos (0) /*!< PWM_T::DATA3: PWMx_DATAy15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7497 | #define PWM_DATA3_PWMx_DATAy15_0_Msk (0xfffful << PWM_DATA3_PWMx_DATAy15_0_Pos) /*!< PWM_T::DATA3: PWMx_DATAy15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7498 | |
AnnaBridge | 174:b96e65c34a4d | 7499 | #define PWM_DATA3_PWMx_DATAy30_16_Pos (16) /*!< PWM_T::DATA3: PWMx_DATAy30_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7500 | #define PWM_DATA3_PWMx_DATAy30_16_Msk (0x7ffful << PWM_DATA3_PWMx_DATAy30_16_Pos) /*!< PWM_T::DATA3: PWMx_DATAy30_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7501 | |
AnnaBridge | 174:b96e65c34a4d | 7502 | #define PWM_DATA3_sync_Pos (31) /*!< PWM_T::DATA3: sync Position */ |
AnnaBridge | 174:b96e65c34a4d | 7503 | #define PWM_DATA3_sync_Msk (0x1ul << PWM_DATA3_sync_Pos) /*!< PWM_T::DATA3: sync Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7504 | |
AnnaBridge | 174:b96e65c34a4d | 7505 | #define PWM_CAPCTL_INV0_Pos (0) /*!< PWM_T::CAPCTL: INV0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7506 | #define PWM_CAPCTL_INV0_Msk (0x1ul << PWM_CAPCTL_INV0_Pos) /*!< PWM_T::CAPCTL: INV0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7507 | |
AnnaBridge | 174:b96e65c34a4d | 7508 | #define PWM_CAPCTL_CAPCH0EN_Pos (1) /*!< PWM_T::CAPCTL: CAPCH0EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7509 | #define PWM_CAPCTL_CAPCH0EN_Msk (0x1ul << PWM_CAPCTL_CAPCH0EN_Pos) /*!< PWM_T::CAPCTL: CAPCH0EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7510 | |
AnnaBridge | 174:b96e65c34a4d | 7511 | #define PWM_CAPCTL_CAPCH0PADEN_Pos (2) /*!< PWM_T::CAPCTL: CAPCH0PADEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7512 | #define PWM_CAPCTL_CAPCH0PADEN_Msk (0x1ul << PWM_CAPCTL_CAPCH0PADEN_Pos) /*!< PWM_T::CAPCTL: CAPCH0PADEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7513 | |
AnnaBridge | 174:b96e65c34a4d | 7514 | #define PWM_CAPCTL_CH0PDMAEN_Pos (3) /*!< PWM_T::CAPCTL: CH0PDMAEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7515 | #define PWM_CAPCTL_CH0PDMAEN_Msk (0x1ul << PWM_CAPCTL_CH0PDMAEN_Pos) /*!< PWM_T::CAPCTL: CH0PDMAEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7516 | |
AnnaBridge | 174:b96e65c34a4d | 7517 | #define PWM_CAPCTL_PDMACAPMOD0_Pos (4) /*!< PWM_T::CAPCTL: PDMACAPMOD0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7518 | #define PWM_CAPCTL_PDMACAPMOD0_Msk (0x3ul << PWM_CAPCTL_PDMACAPMOD0_Pos) /*!< PWM_T::CAPCTL: PDMACAPMOD0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7519 | |
AnnaBridge | 174:b96e65c34a4d | 7520 | #define PWM_CAPCTL_CAPRELOADREN0_Pos (6) /*!< PWM_T::CAPCTL: CAPRELOADREN0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7521 | #define PWM_CAPCTL_CAPRELOADREN0_Msk (0x1ul << PWM_CAPCTL_CAPRELOADREN0_Pos) /*!< PWM_T::CAPCTL: CAPRELOADREN0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7522 | |
AnnaBridge | 174:b96e65c34a4d | 7523 | #define PWM_CAPCTL_CAPRELOADFEN0_Pos (7) /*!< PWM_T::CAPCTL: CAPRELOADFEN0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7524 | #define PWM_CAPCTL_CAPRELOADFEN0_Msk (0x1ul << PWM_CAPCTL_CAPRELOADFEN0_Pos) /*!< PWM_T::CAPCTL: CAPRELOADFEN0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7525 | |
AnnaBridge | 174:b96e65c34a4d | 7526 | #define PWM_CAPCTL_INV1_Pos (8) /*!< PWM_T::CAPCTL: INV1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7527 | #define PWM_CAPCTL_INV1_Msk (0x1ul << PWM_CAPCTL_INV1_Pos) /*!< PWM_T::CAPCTL: INV1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7528 | |
AnnaBridge | 174:b96e65c34a4d | 7529 | #define PWM_CAPCTL_CAPCH1EN_Pos (9) /*!< PWM_T::CAPCTL: CAPCH1EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7530 | #define PWM_CAPCTL_CAPCH1EN_Msk (0x1ul << PWM_CAPCTL_CAPCH1EN_Pos) /*!< PWM_T::CAPCTL: CAPCH1EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7531 | |
AnnaBridge | 174:b96e65c34a4d | 7532 | #define PWM_CAPCTL_CAPCH1PADEN_Pos (10) /*!< PWM_T::CAPCTL: CAPCH1PADEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7533 | #define PWM_CAPCTL_CAPCH1PADEN_Msk (0x1ul << PWM_CAPCTL_CAPCH1PADEN_Pos) /*!< PWM_T::CAPCTL: CAPCH1PADEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7534 | |
AnnaBridge | 174:b96e65c34a4d | 7535 | #define PWM_CAPCTL_CH0RFORDER_Pos (12) /*!< PWM_T::CAPCTL: CH0RFORDER Position */ |
AnnaBridge | 174:b96e65c34a4d | 7536 | #define PWM_CAPCTL_CH0RFORDER_Msk (0x1ul << PWM_CAPCTL_CH0RFORDER_Pos) /*!< PWM_T::CAPCTL: CH0RFORDER Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7537 | |
AnnaBridge | 174:b96e65c34a4d | 7538 | #define PWM_CAPCTL_CH01CASK_Pos (13) /*!< PWM_T::CAPCTL: CH01CASK Position */ |
AnnaBridge | 174:b96e65c34a4d | 7539 | #define PWM_CAPCTL_CH01CASK_Msk (0x1ul << PWM_CAPCTL_CH01CASK_Pos) /*!< PWM_T::CAPCTL: CH01CASK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7540 | |
AnnaBridge | 174:b96e65c34a4d | 7541 | #define PWM_CAPCTL_CAPRELOADREN1_Pos (14) /*!< PWM_T::CAPCTL: CAPRELOADREN1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7542 | #define PWM_CAPCTL_CAPRELOADREN1_Msk (0x1ul << PWM_CAPCTL_CAPRELOADREN1_Pos) /*!< PWM_T::CAPCTL: CAPRELOADREN1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7543 | |
AnnaBridge | 174:b96e65c34a4d | 7544 | #define PWM_CAPCTL_CAPRELOADFEN1_Pos (15) /*!< PWM_T::CAPCTL: CAPRELOADFEN1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7545 | #define PWM_CAPCTL_CAPRELOADFEN1_Msk (0x1ul << PWM_CAPCTL_CAPRELOADFEN1_Pos) /*!< PWM_T::CAPCTL: CAPRELOADFEN1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7546 | |
AnnaBridge | 174:b96e65c34a4d | 7547 | #define PWM_CAPCTL_INV2_Pos (16) /*!< PWM_T::CAPCTL: INV2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7548 | #define PWM_CAPCTL_INV2_Msk (0x1ul << PWM_CAPCTL_INV2_Pos) /*!< PWM_T::CAPCTL: INV2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7549 | |
AnnaBridge | 174:b96e65c34a4d | 7550 | #define PWM_CAPCTL_CAPCH2EN_Pos (17) /*!< PWM_T::CAPCTL: CAPCH2EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7551 | #define PWM_CAPCTL_CAPCH2EN_Msk (0x1ul << PWM_CAPCTL_CAPCH2EN_Pos) /*!< PWM_T::CAPCTL: CAPCH2EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7552 | |
AnnaBridge | 174:b96e65c34a4d | 7553 | #define PWM_CAPCTL_CAPCH2PADEN_Pos (18) /*!< PWM_T::CAPCTL: CAPCH2PADEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7554 | #define PWM_CAPCTL_CAPCH2PADEN_Msk (0x1ul << PWM_CAPCTL_CAPCH2PADEN_Pos) /*!< PWM_T::CAPCTL: CAPCH2PADEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7555 | |
AnnaBridge | 174:b96e65c34a4d | 7556 | #define PWM_CAPCTL_CH2PDMAEN_Pos (19) /*!< PWM_T::CAPCTL: CH2PDMAEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7557 | #define PWM_CAPCTL_CH2PDMAEN_Msk (0x1ul << PWM_CAPCTL_CH2PDMAEN_Pos) /*!< PWM_T::CAPCTL: CH2PDMAEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7558 | |
AnnaBridge | 174:b96e65c34a4d | 7559 | #define PWM_CAPCTL_PDMACAPMOD2_Pos (20) /*!< PWM_T::CAPCTL: PDMACAPMOD2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7560 | #define PWM_CAPCTL_PDMACAPMOD2_Msk (0x3ul << PWM_CAPCTL_PDMACAPMOD2_Pos) /*!< PWM_T::CAPCTL: PDMACAPMOD2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7561 | |
AnnaBridge | 174:b96e65c34a4d | 7562 | #define PWM_CAPCTL_CAPRELOADREN2_Pos (22) /*!< PWM_T::CAPCTL: CAPRELOADREN2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7563 | #define PWM_CAPCTL_CAPRELOADREN2_Msk (0x1ul << PWM_CAPCTL_CAPRELOADREN2_Pos) /*!< PWM_T::CAPCTL: CAPRELOADREN2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7564 | |
AnnaBridge | 174:b96e65c34a4d | 7565 | #define PWM_CAPCTL_CAPRELOADFEN2_Pos (23) /*!< PWM_T::CAPCTL: CAPRELOADFEN2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7566 | #define PWM_CAPCTL_CAPRELOADFEN2_Msk (0x1ul << PWM_CAPCTL_CAPRELOADFEN2_Pos) /*!< PWM_T::CAPCTL: CAPRELOADFEN2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7567 | |
AnnaBridge | 174:b96e65c34a4d | 7568 | #define PWM_CAPCTL_INV3_Pos (24) /*!< PWM_T::CAPCTL: INV3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7569 | #define PWM_CAPCTL_INV3_Msk (0x1ul << PWM_CAPCTL_INV3_Pos) /*!< PWM_T::CAPCTL: INV3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7570 | |
AnnaBridge | 174:b96e65c34a4d | 7571 | #define PWM_CAPCTL_CAPCH3EN_Pos (25) /*!< PWM_T::CAPCTL: CAPCH3EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7572 | #define PWM_CAPCTL_CAPCH3EN_Msk (0x1ul << PWM_CAPCTL_CAPCH3EN_Pos) /*!< PWM_T::CAPCTL: CAPCH3EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7573 | |
AnnaBridge | 174:b96e65c34a4d | 7574 | #define PWM_CAPCTL_CAPCH3PADEN_Pos (26) /*!< PWM_T::CAPCTL: CAPCH3PADEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 7575 | #define PWM_CAPCTL_CAPCH3PADEN_Msk (0x1ul << PWM_CAPCTL_CAPCH3PADEN_Pos) /*!< PWM_T::CAPCTL: CAPCH3PADEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7576 | |
AnnaBridge | 174:b96e65c34a4d | 7577 | #define PWM_CAPCTL_CH2RFORDER_Pos (28) /*!< PWM_T::CAPCTL: CH2RFORDER Position */ |
AnnaBridge | 174:b96e65c34a4d | 7578 | #define PWM_CAPCTL_CH2RFORDER_Msk (0x1ul << PWM_CAPCTL_CH2RFORDER_Pos) /*!< PWM_T::CAPCTL: CH2RFORDER Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7579 | |
AnnaBridge | 174:b96e65c34a4d | 7580 | #define PWM_CAPCTL_CH23CASK_Pos (29) /*!< PWM_T::CAPCTL: CH23CASK Position */ |
AnnaBridge | 174:b96e65c34a4d | 7581 | #define PWM_CAPCTL_CH23CASK_Msk (0x1ul << PWM_CAPCTL_CH23CASK_Pos) /*!< PWM_T::CAPCTL: CH23CASK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7582 | |
AnnaBridge | 174:b96e65c34a4d | 7583 | #define PWM_CAPCTL_CAPRELOADREN3_Pos (30) /*!< PWM_T::CAPCTL: CAPRELOADREN3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7584 | #define PWM_CAPCTL_CAPRELOADREN3_Msk (0x1ul << PWM_CAPCTL_CAPRELOADREN3_Pos) /*!< PWM_T::CAPCTL: CAPRELOADREN3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7585 | |
AnnaBridge | 174:b96e65c34a4d | 7586 | #define PWM_CAPCTL_CAPRELOADFEN3_Pos (31) /*!< PWM_T::CAPCTL: CAPRELOADFEN3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7587 | #define PWM_CAPCTL_CAPRELOADFEN3_Msk (0x1ul << PWM_CAPCTL_CAPRELOADFEN3_Pos) /*!< PWM_T::CAPCTL: CAPRELOADFEN3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7588 | |
AnnaBridge | 174:b96e65c34a4d | 7589 | #define PWM_CAPINTEN_CRL_IE0_Pos (0) /*!< PWM_T::CAPINTEN: CRL_IE0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7590 | #define PWM_CAPINTEN_CRL_IE0_Msk (0x1ul << PWM_CAPINTEN_CRL_IE0_Pos) /*!< PWM_T::CAPINTEN: CRL_IE0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7591 | |
AnnaBridge | 174:b96e65c34a4d | 7592 | #define PWM_CAPINTEN_CFL_IE0_Pos (1) /*!< PWM_T::CAPINTEN: CFL_IE0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7593 | #define PWM_CAPINTEN_CFL_IE0_Msk (0x1ul << PWM_CAPINTEN_CFL_IE0_Pos) /*!< PWM_T::CAPINTEN: CFL_IE0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7594 | |
AnnaBridge | 174:b96e65c34a4d | 7595 | #define PWM_CAPINTEN_CRL_IE1_Pos (8) /*!< PWM_T::CAPINTEN: CRL_IE1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7596 | #define PWM_CAPINTEN_CRL_IE1_Msk (0x1ul << PWM_CAPINTEN_CRL_IE1_Pos) /*!< PWM_T::CAPINTEN: CRL_IE1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7597 | |
AnnaBridge | 174:b96e65c34a4d | 7598 | #define PWM_CAPINTEN_CFL_IE1_Pos (9) /*!< PWM_T::CAPINTEN: CFL_IE1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7599 | #define PWM_CAPINTEN_CFL_IE1_Msk (0x1ul << PWM_CAPINTEN_CFL_IE1_Pos) /*!< PWM_T::CAPINTEN: CFL_IE1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7600 | |
AnnaBridge | 174:b96e65c34a4d | 7601 | #define PWM_CAPINTEN_CRL_IE2_Pos (16) /*!< PWM_T::CAPINTEN: CRL_IE2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7602 | #define PWM_CAPINTEN_CRL_IE2_Msk (0x1ul << PWM_CAPINTEN_CRL_IE2_Pos) /*!< PWM_T::CAPINTEN: CRL_IE2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7603 | |
AnnaBridge | 174:b96e65c34a4d | 7604 | #define PWM_CAPINTEN_CFL_IE2_Pos (17) /*!< PWM_T::CAPINTEN: CFL_IE2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7605 | #define PWM_CAPINTEN_CFL_IE2_Msk (0x1ul << PWM_CAPINTEN_CFL_IE2_Pos) /*!< PWM_T::CAPINTEN: CFL_IE2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7606 | |
AnnaBridge | 174:b96e65c34a4d | 7607 | #define PWM_CAPINTEN_CRL_IE3_Pos (24) /*!< PWM_T::CAPINTEN: CRL_IE3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7608 | #define PWM_CAPINTEN_CRL_IE3_Msk (0x1ul << PWM_CAPINTEN_CRL_IE3_Pos) /*!< PWM_T::CAPINTEN: CRL_IE3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7609 | |
AnnaBridge | 174:b96e65c34a4d | 7610 | #define PWM_CAPINTEN_CFL_IE3_Pos (25) /*!< PWM_T::CAPINTEN: CFL_IE3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7611 | #define PWM_CAPINTEN_CFL_IE3_Msk (0x1ul << PWM_CAPINTEN_CFL_IE3_Pos) /*!< PWM_T::CAPINTEN: CFL_IE3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7612 | |
AnnaBridge | 174:b96e65c34a4d | 7613 | #define PWM_CAPINTSTS_CAPIF0_Pos (0) /*!< PWM_T::CAPINTSTS: CAPIF0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7614 | #define PWM_CAPINTSTS_CAPIF0_Msk (0x1ul << PWM_CAPINTSTS_CAPIF0_Pos) /*!< PWM_T::CAPINTSTS: CAPIF0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7615 | |
AnnaBridge | 174:b96e65c34a4d | 7616 | #define PWM_CAPINTSTS_CRLI0_Pos (1) /*!< PWM_T::CAPINTSTS: CRLI0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7617 | #define PWM_CAPINTSTS_CRLI0_Msk (0x1ul << PWM_CAPINTSTS_CRLI0_Pos) /*!< PWM_T::CAPINTSTS: CRLI0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7618 | |
AnnaBridge | 174:b96e65c34a4d | 7619 | #define PWM_CAPINTSTS_CFLRI0_Pos (2) /*!< PWM_T::CAPINTSTS: CFLRI0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7620 | #define PWM_CAPINTSTS_CFLRI0_Msk (0x1ul << PWM_CAPINTSTS_CFLRI0_Pos) /*!< PWM_T::CAPINTSTS: CFLRI0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7621 | |
AnnaBridge | 174:b96e65c34a4d | 7622 | #define PWM_CAPINTSTS_CAPOVR0_Pos (3) /*!< PWM_T::CAPINTSTS: CAPOVR0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7623 | #define PWM_CAPINTSTS_CAPOVR0_Msk (0x1ul << PWM_CAPINTSTS_CAPOVR0_Pos) /*!< PWM_T::CAPINTSTS: CAPOVR0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7624 | |
AnnaBridge | 174:b96e65c34a4d | 7625 | #define PWM_CAPINTSTS_CAPOVF0_Pos (4) /*!< PWM_T::CAPINTSTS: CAPOVF0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7626 | #define PWM_CAPINTSTS_CAPOVF0_Msk (0x1ul << PWM_CAPINTSTS_CAPOVF0_Pos) /*!< PWM_T::CAPINTSTS: CAPOVF0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7627 | |
AnnaBridge | 174:b96e65c34a4d | 7628 | #define PWM_CAPINTSTS_CAPIF1_Pos (8) /*!< PWM_T::CAPINTSTS: CAPIF1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7629 | #define PWM_CAPINTSTS_CAPIF1_Msk (0x1ul << PWM_CAPINTSTS_CAPIF1_Pos) /*!< PWM_T::CAPINTSTS: CAPIF1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7630 | |
AnnaBridge | 174:b96e65c34a4d | 7631 | #define PWM_CAPINTSTS_CRLI1_Pos (9) /*!< PWM_T::CAPINTSTS: CRLI1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7632 | #define PWM_CAPINTSTS_CRLI1_Msk (0x1ul << PWM_CAPINTSTS_CRLI1_Pos) /*!< PWM_T::CAPINTSTS: CRLI1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7633 | |
AnnaBridge | 174:b96e65c34a4d | 7634 | #define PWM_CAPINTSTS_CFLI1_Pos (10) /*!< PWM_T::CAPINTSTS: CFLI1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7635 | #define PWM_CAPINTSTS_CFLI1_Msk (0x1ul << PWM_CAPINTSTS_CFLI1_Pos) /*!< PWM_T::CAPINTSTS: CFLI1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7636 | |
AnnaBridge | 174:b96e65c34a4d | 7637 | #define PWM_CAPINTSTS_CAPOVR1_Pos (11) /*!< PWM_T::CAPINTSTS: CAPOVR1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7638 | #define PWM_CAPINTSTS_CAPOVR1_Msk (0x1ul << PWM_CAPINTSTS_CAPOVR1_Pos) /*!< PWM_T::CAPINTSTS: CAPOVR1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7639 | |
AnnaBridge | 174:b96e65c34a4d | 7640 | #define PWM_CAPINTSTS_CAPOVF1_Pos (12) /*!< PWM_T::CAPINTSTS: CAPOVF1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7641 | #define PWM_CAPINTSTS_CAPOVF1_Msk (0x1ul << PWM_CAPINTSTS_CAPOVF1_Pos) /*!< PWM_T::CAPINTSTS: CAPOVF1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7642 | |
AnnaBridge | 174:b96e65c34a4d | 7643 | #define PWM_CAPINTSTS_CAPIF2_Pos (16) /*!< PWM_T::CAPINTSTS: CAPIF2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7644 | #define PWM_CAPINTSTS_CAPIF2_Msk (0x1ul << PWM_CAPINTSTS_CAPIF2_Pos) /*!< PWM_T::CAPINTSTS: CAPIF2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7645 | |
AnnaBridge | 174:b96e65c34a4d | 7646 | #define PWM_CAPINTSTS_CRLI2_Pos (17) /*!< PWM_T::CAPINTSTS: CRLI2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7647 | #define PWM_CAPINTSTS_CRLI2_Msk (0x1ul << PWM_CAPINTSTS_CRLI2_Pos) /*!< PWM_T::CAPINTSTS: CRLI2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7648 | |
AnnaBridge | 174:b96e65c34a4d | 7649 | #define PWM_CAPINTSTS_CFLI2_Pos (18) /*!< PWM_T::CAPINTSTS: CFLI2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7650 | #define PWM_CAPINTSTS_CFLI2_Msk (0x1ul << PWM_CAPINTSTS_CFLI2_Pos) /*!< PWM_T::CAPINTSTS: CFLI2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7651 | |
AnnaBridge | 174:b96e65c34a4d | 7652 | #define PWM_CAPINTSTS_CAPOVR2_Pos (19) /*!< PWM_T::CAPINTSTS: CAPOVR2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7653 | #define PWM_CAPINTSTS_CAPOVR2_Msk (0x1ul << PWM_CAPINTSTS_CAPOVR2_Pos) /*!< PWM_T::CAPINTSTS: CAPOVR2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7654 | |
AnnaBridge | 174:b96e65c34a4d | 7655 | #define PWM_CAPINTSTS_CAPOVF2_Pos (20) /*!< PWM_T::CAPINTSTS: CAPOVF2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7656 | #define PWM_CAPINTSTS_CAPOVF2_Msk (0x1ul << PWM_CAPINTSTS_CAPOVF2_Pos) /*!< PWM_T::CAPINTSTS: CAPOVF2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7657 | |
AnnaBridge | 174:b96e65c34a4d | 7658 | #define PWM_CAPINTSTS_CAPIF3_Pos (24) /*!< PWM_T::CAPINTSTS: CAPIF3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7659 | #define PWM_CAPINTSTS_CAPIF3_Msk (0x1ul << PWM_CAPINTSTS_CAPIF3_Pos) /*!< PWM_T::CAPINTSTS: CAPIF3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7660 | |
AnnaBridge | 174:b96e65c34a4d | 7661 | #define PWM_CAPINTSTS_CRLI3_Pos (25) /*!< PWM_T::CAPINTSTS: CRLI3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7662 | #define PWM_CAPINTSTS_CRLI3_Msk (0x1ul << PWM_CAPINTSTS_CRLI3_Pos) /*!< PWM_T::CAPINTSTS: CRLI3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7663 | |
AnnaBridge | 174:b96e65c34a4d | 7664 | #define PWM_CAPINTSTS_CFLI3_Pos (26) /*!< PWM_T::CAPINTSTS: CFLI3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7665 | #define PWM_CAPINTSTS_CFLI3_Msk (0x1ul << PWM_CAPINTSTS_CFLI3_Pos) /*!< PWM_T::CAPINTSTS: CFLI3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7666 | |
AnnaBridge | 174:b96e65c34a4d | 7667 | #define PWM_CAPINTSTS_CAPOVR3_Pos (27) /*!< PWM_T::CAPINTSTS: CAPOVR3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7668 | #define PWM_CAPINTSTS_CAPOVR3_Msk (0x1ul << PWM_CAPINTSTS_CAPOVR3_Pos) /*!< PWM_T::CAPINTSTS: CAPOVR3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7669 | |
AnnaBridge | 174:b96e65c34a4d | 7670 | #define PWM_CAPINTSTS_CAPOVF3_Pos (28) /*!< PWM_T::CAPINTSTS: CAPOVF3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7671 | #define PWM_CAPINTSTS_CAPOVF3_Msk (0x1ul << PWM_CAPINTSTS_CAPOVF3_Pos) /*!< PWM_T::CAPINTSTS: CAPOVF3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7672 | |
AnnaBridge | 174:b96e65c34a4d | 7673 | #define PWM_CRL0_CRL15_0_Pos (0) /*!< PWM_T::CRL0: CRL15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7674 | #define PWM_CRL0_CRL15_0_Msk (0xfffful << PWM_CRL0_CRL15_0_Pos) /*!< PWM_T::CRL0: CRL15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7675 | |
AnnaBridge | 174:b96e65c34a4d | 7676 | #define PWM_CRL0_CRL31_16_Pos (16) /*!< PWM_T::CRL0: CRL31_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7677 | #define PWM_CRL0_CRL31_16_Msk (0xfffful << PWM_CRL0_CRL31_16_Pos) /*!< PWM_T::CRL0: CRL31_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7678 | |
AnnaBridge | 174:b96e65c34a4d | 7679 | #define PWM_CFL0_CFL15_0_Pos (0) /*!< PWM_T::CFL0: CFL15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7680 | #define PWM_CFL0_CFL15_0_Msk (0xfffful << PWM_CFL0_CFL15_0_Pos) /*!< PWM_T::CFL0: CFL15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7681 | |
AnnaBridge | 174:b96e65c34a4d | 7682 | #define PWM_CFL0_CFL31_16_Pos (16) /*!< PWM_T::CFL0: CFL31_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7683 | #define PWM_CFL0_CFL31_16_Msk (0xfffful << PWM_CFL0_CFL31_16_Pos) /*!< PWM_T::CFL0: CFL31_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7684 | |
AnnaBridge | 174:b96e65c34a4d | 7685 | #define PWM_CRL1_CRL15_0_Pos (0) /*!< PWM_T::CRL1: CRL15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7686 | #define PWM_CRL1_CRL15_0_Msk (0xfffful << PWM_CRL1_CRL15_0_Pos) /*!< PWM_T::CRL1: CRL15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7687 | |
AnnaBridge | 174:b96e65c34a4d | 7688 | #define PWM_CRL1_CRL31_16_Pos (16) /*!< PWM_T::CRL1: CRL31_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7689 | #define PWM_CRL1_CRL31_16_Msk (0xfffful << PWM_CRL1_CRL31_16_Pos) /*!< PWM_T::CRL1: CRL31_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7690 | |
AnnaBridge | 174:b96e65c34a4d | 7691 | #define PWM_CFL1_CFL15_0_Pos (0) /*!< PWM_T::CFL1: CFL15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7692 | #define PWM_CFL1_CFL15_0_Msk (0xfffful << PWM_CFL1_CFL15_0_Pos) /*!< PWM_T::CFL1: CFL15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7693 | |
AnnaBridge | 174:b96e65c34a4d | 7694 | #define PWM_CFL1_CFL31_16_Pos (16) /*!< PWM_T::CFL1: CFL31_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7695 | #define PWM_CFL1_CFL31_16_Msk (0xfffful << PWM_CFL1_CFL31_16_Pos) /*!< PWM_T::CFL1: CFL31_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7696 | |
AnnaBridge | 174:b96e65c34a4d | 7697 | #define PWM_CRL2_CRL15_0_Pos (0) /*!< PWM_T::CRL2: CRL15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7698 | #define PWM_CRL2_CRL15_0_Msk (0xfffful << PWM_CRL2_CRL15_0_Pos) /*!< PWM_T::CRL2: CRL15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7699 | |
AnnaBridge | 174:b96e65c34a4d | 7700 | #define PWM_CRL2_CRL31_16_Pos (16) /*!< PWM_T::CRL2: CRL31_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7701 | #define PWM_CRL2_CRL31_16_Msk (0xfffful << PWM_CRL2_CRL31_16_Pos) /*!< PWM_T::CRL2: CRL31_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7702 | |
AnnaBridge | 174:b96e65c34a4d | 7703 | #define PWM_CFL2_CFL15_0_Pos (0) /*!< PWM_T::CFL2: CFL15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7704 | #define PWM_CFL2_CFL15_0_Msk (0xfffful << PWM_CFL2_CFL15_0_Pos) /*!< PWM_T::CFL2: CFL15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7705 | |
AnnaBridge | 174:b96e65c34a4d | 7706 | #define PWM_CFL2_CFL31_16_Pos (16) /*!< PWM_T::CFL2: CFL31_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7707 | #define PWM_CFL2_CFL31_16_Msk (0xfffful << PWM_CFL2_CFL31_16_Pos) /*!< PWM_T::CFL2: CFL31_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7708 | |
AnnaBridge | 174:b96e65c34a4d | 7709 | #define PWM_CRL3_CRL15_0_Pos (0) /*!< PWM_T::CRL3: CRL15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7710 | #define PWM_CRL3_CRL15_0_Msk (0xfffful << PWM_CRL3_CRL15_0_Pos) /*!< PWM_T::CRL3: CRL15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7711 | |
AnnaBridge | 174:b96e65c34a4d | 7712 | #define PWM_CRL3_CRL31_16_Pos (16) /*!< PWM_T::CRL3: CRL31_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7713 | #define PWM_CRL3_CRL31_16_Msk (0xfffful << PWM_CRL3_CRL31_16_Pos) /*!< PWM_T::CRL3: CRL31_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7714 | |
AnnaBridge | 174:b96e65c34a4d | 7715 | #define PWM_CFL3_CFL15_0_Pos (0) /*!< PWM_T::CFL3: CFL15_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7716 | #define PWM_CFL3_CFL15_0_Msk (0xfffful << PWM_CFL3_CFL15_0_Pos) /*!< PWM_T::CFL3: CFL15_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7717 | |
AnnaBridge | 174:b96e65c34a4d | 7718 | #define PWM_CFL3_CFL31_16_Pos (16) /*!< PWM_T::CFL3: CFL31_16 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7719 | #define PWM_CFL3_CFL31_16_Msk (0xfffful << PWM_CFL3_CFL31_16_Pos) /*!< PWM_T::CFL3: CFL31_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7720 | |
AnnaBridge | 174:b96e65c34a4d | 7721 | #define PWM_PDMACH0_Captureddata7_0_Pos (0) /*!< PWM_T::PDMACH0: Captureddata7_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7722 | #define PWM_PDMACH0_Captureddata7_0_Msk (0xfful << PWM_PDMACH0_Captureddata7_0_Pos) /*!< PWM_T::PDMACH0: Captureddata7_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7723 | |
AnnaBridge | 174:b96e65c34a4d | 7724 | #define PWM_PDMACH0_Captureddata15_8_Pos (8) /*!< PWM_T::PDMACH0: Captureddata15_8 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7725 | #define PWM_PDMACH0_Captureddata15_8_Msk (0xfful << PWM_PDMACH0_Captureddata15_8_Pos) /*!< PWM_T::PDMACH0: Captureddata15_8 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7726 | |
AnnaBridge | 174:b96e65c34a4d | 7727 | #define PWM_PDMACH0_Captureddata23_16_Pos (16) /*!< PWM_T::PDMACH0: Captureddata23_16 Position*/ |
AnnaBridge | 174:b96e65c34a4d | 7728 | #define PWM_PDMACH0_Captureddata23_16_Msk (0xfful << PWM_PDMACH0_Captureddata23_16_Pos) /*!< PWM_T::PDMACH0: Captureddata23_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7729 | |
AnnaBridge | 174:b96e65c34a4d | 7730 | #define PWM_PDMACH0_Captureddata31_24_Pos (24) /*!< PWM_T::PDMACH0: Captureddata31_24 Position*/ |
AnnaBridge | 174:b96e65c34a4d | 7731 | #define PWM_PDMACH0_Captureddata31_24_Msk (0xfful << PWM_PDMACH0_Captureddata31_24_Pos) /*!< PWM_T::PDMACH0: Captureddata31_24 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7732 | |
AnnaBridge | 174:b96e65c34a4d | 7733 | #define PWM_PDMACH2_Captureddata7_0_Pos (0) /*!< PWM_T::PDMACH2: Captureddata7_0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7734 | #define PWM_PDMACH2_Captureddata7_0_Msk (0xfful << PWM_PDMACH2_Captureddata7_0_Pos) /*!< PWM_T::PDMACH2: Captureddata7_0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7735 | |
AnnaBridge | 174:b96e65c34a4d | 7736 | #define PWM_PDMACH2_Captureddata15_8_Pos (8) /*!< PWM_T::PDMACH2: Captureddata15_8 Position */ |
AnnaBridge | 174:b96e65c34a4d | 7737 | #define PWM_PDMACH2_Captureddata15_8_Msk (0xfful << PWM_PDMACH2_Captureddata15_8_Pos) /*!< PWM_T::PDMACH2: Captureddata15_8 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7738 | |
AnnaBridge | 174:b96e65c34a4d | 7739 | #define PWM_PDMACH2_Captureddata23_16_Pos (16) /*!< PWM_T::PDMACH2: Captureddata23_16 Position*/ |
AnnaBridge | 174:b96e65c34a4d | 7740 | #define PWM_PDMACH2_Captureddata23_16_Msk (0xfful << PWM_PDMACH2_Captureddata23_16_Pos) /*!< PWM_T::PDMACH2: Captureddata23_16 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7741 | |
AnnaBridge | 174:b96e65c34a4d | 7742 | #define PWM_PDMACH2_Captureddata31_24_Pos (24) /*!< PWM_T::PDMACH2: Captureddata31_24 Position*/ |
AnnaBridge | 174:b96e65c34a4d | 7743 | #define PWM_PDMACH2_Captureddata31_24_Msk (0xfful << PWM_PDMACH2_Captureddata31_24_Pos) /*!< PWM_T::PDMACH2: Captureddata31_24 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 7744 | |
AnnaBridge | 174:b96e65c34a4d | 7745 | /**@}*/ /* PWM_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 7746 | /**@}*/ /* end of PWM register group */ |
AnnaBridge | 174:b96e65c34a4d | 7747 | |
AnnaBridge | 174:b96e65c34a4d | 7748 | |
AnnaBridge | 174:b96e65c34a4d | 7749 | /*---------------------- Real Time Clock Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 7750 | /** |
AnnaBridge | 174:b96e65c34a4d | 7751 | @addtogroup RTC Real Time Clock Controller(RTC) |
AnnaBridge | 174:b96e65c34a4d | 7752 | Memory Mapped Structure for RTC Controller |
AnnaBridge | 174:b96e65c34a4d | 7753 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 7754 | |
AnnaBridge | 174:b96e65c34a4d | 7755 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 7756 | |
AnnaBridge | 174:b96e65c34a4d | 7757 | |
AnnaBridge | 174:b96e65c34a4d | 7758 | /** |
AnnaBridge | 174:b96e65c34a4d | 7759 | * INIR |
AnnaBridge | 174:b96e65c34a4d | 7760 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7761 | * Offset: 0x00 RTC Initiation Register |
AnnaBridge | 174:b96e65c34a4d | 7762 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7763 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7764 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7765 | * |[0] |ACTIVE |RTC Active Status (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 7766 | * | | |0 = RTC is at reset state. |
AnnaBridge | 174:b96e65c34a4d | 7767 | * | | |1 = RTC is at normal active state. |
AnnaBridge | 174:b96e65c34a4d | 7768 | * |[31:1] |INIR |RTC Initiation (Write Only) |
AnnaBridge | 174:b96e65c34a4d | 7769 | * | | |When RTC block is powered on, RTC is at reset state. |
AnnaBridge | 174:b96e65c34a4d | 7770 | * | | |User has to write a number (0x a5eb1357) to INIR to make RTC leaving reset state. |
AnnaBridge | 174:b96e65c34a4d | 7771 | * | | |Once the INIR is written as 0xa5eb1357, the RTC will be in un-reset state permanently. |
AnnaBridge | 174:b96e65c34a4d | 7772 | * | | |The INIR is a write-only field and read value will be always "0". |
AnnaBridge | 174:b96e65c34a4d | 7773 | */ |
AnnaBridge | 174:b96e65c34a4d | 7774 | __IO uint32_t INIR; |
AnnaBridge | 174:b96e65c34a4d | 7775 | |
AnnaBridge | 174:b96e65c34a4d | 7776 | /** |
AnnaBridge | 174:b96e65c34a4d | 7777 | * AER |
AnnaBridge | 174:b96e65c34a4d | 7778 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7779 | * Offset: 0x04 RTC Access Enable Register |
AnnaBridge | 174:b96e65c34a4d | 7780 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7781 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7782 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7783 | * |[15:0] |AER |RTC Register Access Enable Password (Write Only) |
AnnaBridge | 174:b96e65c34a4d | 7784 | * | | |Enable RTC access after write 0xA965. Otherwise disable RTC access. |
AnnaBridge | 174:b96e65c34a4d | 7785 | * |[16] |ENF |RTC Register Access Enable Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 7786 | * | | |1 = RTC register read/write Enabled. |
AnnaBridge | 174:b96e65c34a4d | 7787 | * | | |0 = RTC register read/write Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7788 | * | | |This bit will be set after AER[15:0] register is load a 0xA965, and be cleared automatically 512 RTC clocks or AER[15:0] is not 0xA965. |
AnnaBridge | 174:b96e65c34a4d | 7789 | */ |
AnnaBridge | 174:b96e65c34a4d | 7790 | __IO uint32_t AER; |
AnnaBridge | 174:b96e65c34a4d | 7791 | |
AnnaBridge | 174:b96e65c34a4d | 7792 | /** |
AnnaBridge | 174:b96e65c34a4d | 7793 | * FCR |
AnnaBridge | 174:b96e65c34a4d | 7794 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7795 | * Offset: 0x08 RTC Frequency Compensation Register |
AnnaBridge | 174:b96e65c34a4d | 7796 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7797 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7798 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7799 | * |[5:0] |FRACTION |Fraction Part |
AnnaBridge | 174:b96e65c34a4d | 7800 | * | | |Formula = (fraction part of detected value) x 64. |
AnnaBridge | 174:b96e65c34a4d | 7801 | * | | |Note: Digit in FCR must be expressed as hexadecimal number. |
AnnaBridge | 174:b96e65c34a4d | 7802 | * |[11:8] |INTEGER |Integer Part |
AnnaBridge | 174:b96e65c34a4d | 7803 | * | | |0000 = 32761. |
AnnaBridge | 174:b96e65c34a4d | 7804 | * | | |0001 = 32762. |
AnnaBridge | 174:b96e65c34a4d | 7805 | * | | |0010 = 32763. |
AnnaBridge | 174:b96e65c34a4d | 7806 | * | | |0011 = 32764. |
AnnaBridge | 174:b96e65c34a4d | 7807 | * | | |0100 = 32765. |
AnnaBridge | 174:b96e65c34a4d | 7808 | * | | |0101 = 32766. |
AnnaBridge | 174:b96e65c34a4d | 7809 | * | | |0110 = 32767. |
AnnaBridge | 174:b96e65c34a4d | 7810 | * | | |0111 = 32768. |
AnnaBridge | 174:b96e65c34a4d | 7811 | * | | |1000 = 32769. |
AnnaBridge | 174:b96e65c34a4d | 7812 | * | | |1001 = 32770. |
AnnaBridge | 174:b96e65c34a4d | 7813 | * | | |1010 = 32771. |
AnnaBridge | 174:b96e65c34a4d | 7814 | * | | |1011 = 32772. |
AnnaBridge | 174:b96e65c34a4d | 7815 | * | | |1100 = 32773. |
AnnaBridge | 174:b96e65c34a4d | 7816 | * | | |1101 = 32774. |
AnnaBridge | 174:b96e65c34a4d | 7817 | * | | |1110 = 32775. |
AnnaBridge | 174:b96e65c34a4d | 7818 | * | | |1111 = 32776. |
AnnaBridge | 174:b96e65c34a4d | 7819 | */ |
AnnaBridge | 174:b96e65c34a4d | 7820 | __IO uint32_t FCR; |
AnnaBridge | 174:b96e65c34a4d | 7821 | |
AnnaBridge | 174:b96e65c34a4d | 7822 | /** |
AnnaBridge | 174:b96e65c34a4d | 7823 | * TLR |
AnnaBridge | 174:b96e65c34a4d | 7824 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7825 | * Offset: 0x0C Time Loading Register |
AnnaBridge | 174:b96e65c34a4d | 7826 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7827 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7828 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7829 | * |[3:0] |1SEC |1 Sec Time Digit (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7830 | * |[6:4] |10SEC |10 Sec Time Digit (0~5) |
AnnaBridge | 174:b96e65c34a4d | 7831 | * |[11:8] |1MIN |1 Min Time Digit (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7832 | * |[14:12] |10MIN |10 Min Time Digit (0~5) |
AnnaBridge | 174:b96e65c34a4d | 7833 | * |[19:16] |1HR |1 Hour Time Digit (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7834 | * |[21:20] |10HR |10 Hour Time Digit (0~2) |
AnnaBridge | 174:b96e65c34a4d | 7835 | */ |
AnnaBridge | 174:b96e65c34a4d | 7836 | __IO uint32_t TLR; |
AnnaBridge | 174:b96e65c34a4d | 7837 | |
AnnaBridge | 174:b96e65c34a4d | 7838 | /** |
AnnaBridge | 174:b96e65c34a4d | 7839 | * CLR |
AnnaBridge | 174:b96e65c34a4d | 7840 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7841 | * Offset: 0x10 Calendar Loading Register |
AnnaBridge | 174:b96e65c34a4d | 7842 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7843 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7844 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7845 | * |[3:0] |1DAY |1 Day Calendar Digit (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7846 | * |[5:4] |10DAY |10 Day Calendar Digit (0~3) |
AnnaBridge | 174:b96e65c34a4d | 7847 | * |[11:8] |1MON |1 Month Calendar Digit (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7848 | * |[12] |10MON |10 Month Calendar Digit (0~1) |
AnnaBridge | 174:b96e65c34a4d | 7849 | * |[19:16] |1YEAR |1 Year Calendar Digit (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7850 | * |[23:20] |10YEAR |10 Year Calendar Digit (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7851 | */ |
AnnaBridge | 174:b96e65c34a4d | 7852 | __IO uint32_t CLR; |
AnnaBridge | 174:b96e65c34a4d | 7853 | |
AnnaBridge | 174:b96e65c34a4d | 7854 | /** |
AnnaBridge | 174:b96e65c34a4d | 7855 | * TSSR |
AnnaBridge | 174:b96e65c34a4d | 7856 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7857 | * Offset: 0x14 Time Scale Selection Register |
AnnaBridge | 174:b96e65c34a4d | 7858 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7859 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7860 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7861 | * |[0] |24hr_12hr |24-Hour / 12-Hour Mode Selection |
AnnaBridge | 174:b96e65c34a4d | 7862 | * | | |It indicates that TLR and TAR are in 24-hour mode or 12-hour mode |
AnnaBridge | 174:b96e65c34a4d | 7863 | * | | |0 = select 12-hour time scale with AM and PM indication. |
AnnaBridge | 174:b96e65c34a4d | 7864 | * | | |1 = select 24-hour time scale. |
AnnaBridge | 174:b96e65c34a4d | 7865 | */ |
AnnaBridge | 174:b96e65c34a4d | 7866 | __IO uint32_t TSSR; |
AnnaBridge | 174:b96e65c34a4d | 7867 | |
AnnaBridge | 174:b96e65c34a4d | 7868 | /** |
AnnaBridge | 174:b96e65c34a4d | 7869 | * DWR |
AnnaBridge | 174:b96e65c34a4d | 7870 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7871 | * Offset: 0x18 Day of the Week Register |
AnnaBridge | 174:b96e65c34a4d | 7872 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7873 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7874 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7875 | * |[2:0] |DWR |Day Of The Week Register |
AnnaBridge | 174:b96e65c34a4d | 7876 | * | | |000 = Sunday. |
AnnaBridge | 174:b96e65c34a4d | 7877 | * | | |001 = Monday. |
AnnaBridge | 174:b96e65c34a4d | 7878 | * | | |010 = Tuesday. |
AnnaBridge | 174:b96e65c34a4d | 7879 | * | | |011 = Wednesday. |
AnnaBridge | 174:b96e65c34a4d | 7880 | * | | |100 = Thursday. |
AnnaBridge | 174:b96e65c34a4d | 7881 | * | | |101 = Friday. |
AnnaBridge | 174:b96e65c34a4d | 7882 | * | | |110 = Saturday. |
AnnaBridge | 174:b96e65c34a4d | 7883 | */ |
AnnaBridge | 174:b96e65c34a4d | 7884 | __IO uint32_t DWR; |
AnnaBridge | 174:b96e65c34a4d | 7885 | |
AnnaBridge | 174:b96e65c34a4d | 7886 | /** |
AnnaBridge | 174:b96e65c34a4d | 7887 | * TAR |
AnnaBridge | 174:b96e65c34a4d | 7888 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7889 | * Offset: 0x1C Time Alarm Register |
AnnaBridge | 174:b96e65c34a4d | 7890 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7891 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7892 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7893 | * |[3:0] |1SEC |1 Sec Time Digit of Alarm Setting (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7894 | * |[6:4] |10SEC |10 Sec Time Digit of Alarm Setting (0~5) |
AnnaBridge | 174:b96e65c34a4d | 7895 | * |[11:8] |1MIN |1 Min Time Digit of Alarm Setting (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7896 | * |[14:12] |10MIN |10 Min Time Digit of Alarm Setting (0~5) |
AnnaBridge | 174:b96e65c34a4d | 7897 | * |[19:16] |1HR |1 Hour Time Digit of Alarm Setting (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7898 | * |[21:20] |10HR |10 Hour Time Digit of Alarm Setting (0~2) |
AnnaBridge | 174:b96e65c34a4d | 7899 | */ |
AnnaBridge | 174:b96e65c34a4d | 7900 | __IO uint32_t TAR; |
AnnaBridge | 174:b96e65c34a4d | 7901 | |
AnnaBridge | 174:b96e65c34a4d | 7902 | /** |
AnnaBridge | 174:b96e65c34a4d | 7903 | * CAR |
AnnaBridge | 174:b96e65c34a4d | 7904 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7905 | * Offset: 0x20 Calendar Alarm Register |
AnnaBridge | 174:b96e65c34a4d | 7906 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7907 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7908 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7909 | * |[3:0] |1DAY |1 Day Calendar Digit of Alarm Setting (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7910 | * |[5:4] |10DAY |10 Day Calendar Digit of Alarm Setting (0~3) |
AnnaBridge | 174:b96e65c34a4d | 7911 | * |[11:8] |1MON |1 Month Calendar Digit of Alarm Setting (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7912 | * |[12] |10MON |10 Month Calendar Digit of Alarm Setting (0~1) |
AnnaBridge | 174:b96e65c34a4d | 7913 | * |[19:16] |1YEAR |1 Year Calendar Digit of Alarm Setting (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7914 | * |[23:20] |10YEAR |10 Year Calendar Digit of Alarm Setting (0~9) |
AnnaBridge | 174:b96e65c34a4d | 7915 | */ |
AnnaBridge | 174:b96e65c34a4d | 7916 | __IO uint32_t CAR; |
AnnaBridge | 174:b96e65c34a4d | 7917 | |
AnnaBridge | 174:b96e65c34a4d | 7918 | /** |
AnnaBridge | 174:b96e65c34a4d | 7919 | * LIR |
AnnaBridge | 174:b96e65c34a4d | 7920 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7921 | * Offset: 0x24 Leap Year Indicator Register |
AnnaBridge | 174:b96e65c34a4d | 7922 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7923 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7924 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7925 | * |[0] |LIR |Leap Year Indication REGISTER (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 7926 | * | | |0 = This year is not a leap year. |
AnnaBridge | 174:b96e65c34a4d | 7927 | * | | |1 = This year is leap year. |
AnnaBridge | 174:b96e65c34a4d | 7928 | */ |
AnnaBridge | 174:b96e65c34a4d | 7929 | __I uint32_t LIR; |
AnnaBridge | 174:b96e65c34a4d | 7930 | |
AnnaBridge | 174:b96e65c34a4d | 7931 | /** |
AnnaBridge | 174:b96e65c34a4d | 7932 | * RIER |
AnnaBridge | 174:b96e65c34a4d | 7933 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7934 | * Offset: 0x28 RTC Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 7935 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7936 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7937 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7938 | * |[0] |AIER |Alarm Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 7939 | * | | |0 = RTC Alarm Interrupt is disabled. |
AnnaBridge | 174:b96e65c34a4d | 7940 | * | | |1 = RTC Alarm Interrupt is enabled. |
AnnaBridge | 174:b96e65c34a4d | 7941 | * |[1] |TIER |Time Tick Interrupt And Wake-Up By Tick Enable |
AnnaBridge | 174:b96e65c34a4d | 7942 | * | | |0 = RTC Time Tick Interrupt is disabled. |
AnnaBridge | 174:b96e65c34a4d | 7943 | * | | |1 = RTC Time Tick Interrupt is enabled. |
AnnaBridge | 174:b96e65c34a4d | 7944 | * |[2] |SNOOPIER |Snooper Pin Event Detection Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 7945 | * | | |0 = Snooper Pin Event Detection Interrupt is disabled. |
AnnaBridge | 174:b96e65c34a4d | 7946 | * | | |1 = Snooper Pin Event Detection Interrupt is enabled. |
AnnaBridge | 174:b96e65c34a4d | 7947 | */ |
AnnaBridge | 174:b96e65c34a4d | 7948 | __IO uint32_t RIER; |
AnnaBridge | 174:b96e65c34a4d | 7949 | |
AnnaBridge | 174:b96e65c34a4d | 7950 | /** |
AnnaBridge | 174:b96e65c34a4d | 7951 | * RIIR |
AnnaBridge | 174:b96e65c34a4d | 7952 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7953 | * Offset: 0x2C RTC Interrupt Indication Register |
AnnaBridge | 174:b96e65c34a4d | 7954 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7955 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7956 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7957 | * |[0] |AIS |RTC Alarm Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 7958 | * | | |RTC unit will set AIS to high once the RTC real time counters TLR and CLR reach the alarm setting time registers TAR and CAR. |
AnnaBridge | 174:b96e65c34a4d | 7959 | * | | |When this bit is set and AIER is also high, RTC will generate an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 7960 | * | | |This bit is cleared by writing "1" to it through software. |
AnnaBridge | 174:b96e65c34a4d | 7961 | * | | |0 = RCT Alarm Interrupt condition never occurred. |
AnnaBridge | 174:b96e65c34a4d | 7962 | * | | |1 = RTC Alarm Interrupt is requested if RIER.AIER=1. |
AnnaBridge | 174:b96e65c34a4d | 7963 | * |[1] |TIS |RTC Time Tick Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 7964 | * | | |RTC unit will set TIF to high periodically in the period selected by TTR[2:0]. |
AnnaBridge | 174:b96e65c34a4d | 7965 | * | | |When this bit is set and TIER is also high, RTC will generate an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 7966 | * | | |This bit is cleared by writing "1" to it through software. |
AnnaBridge | 174:b96e65c34a4d | 7967 | * | | |0 = RCT Time Tick Interrupt condition never occurred. |
AnnaBridge | 174:b96e65c34a4d | 7968 | * | | |1 = RTC Time Tick Interrupt is requested. |
AnnaBridge | 174:b96e65c34a4d | 7969 | * |[2] |SNOOPIF |Snooper Pin Event Detection Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 7970 | * | | |When SNOOPEN is high and an event defined by SNOOPEDGE detected in snooper pin, this flag will be set. |
AnnaBridge | 174:b96e65c34a4d | 7971 | * | | |While this bit is set and SNOOPIER is also high, RTC will generate an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 7972 | * | | |Write "1" to clear this bit to "0". |
AnnaBridge | 174:b96e65c34a4d | 7973 | * | | |0 = Snooper pin event defined by SNOOPEDGE never detected. |
AnnaBridge | 174:b96e65c34a4d | 7974 | * | | |1 = Snooper pin event defined by SNOOPEDGE detected. |
AnnaBridge | 174:b96e65c34a4d | 7975 | */ |
AnnaBridge | 174:b96e65c34a4d | 7976 | __IO uint32_t RIIR; |
AnnaBridge | 174:b96e65c34a4d | 7977 | |
AnnaBridge | 174:b96e65c34a4d | 7978 | /** |
AnnaBridge | 174:b96e65c34a4d | 7979 | * TTR |
AnnaBridge | 174:b96e65c34a4d | 7980 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 7981 | * Offset: 0x30 RTC Time Tick Register |
AnnaBridge | 174:b96e65c34a4d | 7982 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 7983 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 7984 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 7985 | * |[2:0] |TTR |Time Tick Register |
AnnaBridge | 174:b96e65c34a4d | 7986 | * | | |The RTC time tick period for Periodic Time Tick Interrupt request. |
AnnaBridge | 174:b96e65c34a4d | 7987 | * | | |000 = 1 tick/second. |
AnnaBridge | 174:b96e65c34a4d | 7988 | * | | |001 = 1/2 tick/second. |
AnnaBridge | 174:b96e65c34a4d | 7989 | * | | |010 = 1/4 tick/second. |
AnnaBridge | 174:b96e65c34a4d | 7990 | * | | |011 = 1/8 tick/second. |
AnnaBridge | 174:b96e65c34a4d | 7991 | * | | |100 = 1/16 tick/second. |
AnnaBridge | 174:b96e65c34a4d | 7992 | * | | |101 = 1/32 tick/second. |
AnnaBridge | 174:b96e65c34a4d | 7993 | * | | |110 = 1/64 tick/second. |
AnnaBridge | 174:b96e65c34a4d | 7994 | * | | |111 = 1/128 tick/second. |
AnnaBridge | 174:b96e65c34a4d | 7995 | * | | |Note: This register can be read back after the RTC is active by AER. |
AnnaBridge | 174:b96e65c34a4d | 7996 | * |[3] |TWKE |RTC Timer Wake-Up CPU Function Enable Bit |
AnnaBridge | 174:b96e65c34a4d | 7997 | * | | |If TWKE is set before CPU enters power-down mode, when a RTC Time Tick, CPU will be wakened up by RTC unit. |
AnnaBridge | 174:b96e65c34a4d | 7998 | * | | |0 = Time Tick wake-up CPU function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 7999 | * | | |1 = Wake-up function Enabled so that CPU can be waken up from Power-down mode by Time Tick. |
AnnaBridge | 174:b96e65c34a4d | 8000 | * | | |Note: Tick timer setting follows the TTR description. |
AnnaBridge | 174:b96e65c34a4d | 8001 | */ |
AnnaBridge | 174:b96e65c34a4d | 8002 | __IO uint32_t TTR; |
AnnaBridge | 174:b96e65c34a4d | 8003 | uint32_t RESERVE0[2]; |
AnnaBridge | 174:b96e65c34a4d | 8004 | |
AnnaBridge | 174:b96e65c34a4d | 8005 | |
AnnaBridge | 174:b96e65c34a4d | 8006 | /** |
AnnaBridge | 174:b96e65c34a4d | 8007 | * SPRCTL |
AnnaBridge | 174:b96e65c34a4d | 8008 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8009 | * Offset: 0x3C RTC Spare Functional Control Register |
AnnaBridge | 174:b96e65c34a4d | 8010 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8011 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8012 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8013 | * |[0] |SNOOPEN |Snooper Pin Event Detection Enable |
AnnaBridge | 174:b96e65c34a4d | 8014 | * | | |This bit enables the snooper pin event detection. |
AnnaBridge | 174:b96e65c34a4d | 8015 | * | | |When this bit is set high and an event defined by SNOOPEDGE detected, the 20 spare registers will be cleared to "0" by hardware automatically. |
AnnaBridge | 174:b96e65c34a4d | 8016 | * | | |And, the SNOOPIF will also be set. |
AnnaBridge | 174:b96e65c34a4d | 8017 | * | | |In addition, RTC will also generate wake-up event to wake system up. |
AnnaBridge | 174:b96e65c34a4d | 8018 | * | | |0 = Snooper pin event detection function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8019 | * | | |1 = Snooper pin event detection function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8020 | * |[1] |SNOOPEDGE |Snooper Active Edge Selection |
AnnaBridge | 174:b96e65c34a4d | 8021 | * | | |This bit defines which edge of snooper pin will generate a snooper pin detected event to clear the 20 spare registers. |
AnnaBridge | 174:b96e65c34a4d | 8022 | * | | |0 = Rising edge of snooper pin generates snooper pin detected event. |
AnnaBridge | 174:b96e65c34a4d | 8023 | * | | |1 = Falling edge of snooper pin generates snooper pin detected event. |
AnnaBridge | 174:b96e65c34a4d | 8024 | * |[7] |SPRRDY |SPR Register Ready |
AnnaBridge | 174:b96e65c34a4d | 8025 | * | | |This bit indicates if the registers SPR0 ~ SPR19 are ready to read. |
AnnaBridge | 174:b96e65c34a4d | 8026 | * | | |After CPU writing registers SPR0 ~ SPR19, polling this bit to check if SP0 ~ SPR19 are updated done is necessary. |
AnnaBridge | 174:b96e65c34a4d | 8027 | * | | |This it is read only and any write to this bit won't take any effect. |
AnnaBridge | 174:b96e65c34a4d | 8028 | * | | |0 = SPR0 ~ SPR19 updating is in progress. |
AnnaBridge | 174:b96e65c34a4d | 8029 | * | | |1 = SPR0 ~ SPR19 are updated done and ready to read. |
AnnaBridge | 174:b96e65c34a4d | 8030 | */ |
AnnaBridge | 174:b96e65c34a4d | 8031 | __IO uint32_t SPRCTL; |
AnnaBridge | 174:b96e65c34a4d | 8032 | |
AnnaBridge | 174:b96e65c34a4d | 8033 | /** |
AnnaBridge | 174:b96e65c34a4d | 8034 | * SPR0 ~ 19 |
AnnaBridge | 174:b96e65c34a4d | 8035 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8036 | * Offset: 0x40 ~ 0x8C RTC Spare Register 0 ~ 19 |
AnnaBridge | 174:b96e65c34a4d | 8037 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8038 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8039 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8040 | * |[31:0] |SPARE |SPARE |
AnnaBridge | 174:b96e65c34a4d | 8041 | * | | |This field is used to store back-up information defined by software. |
AnnaBridge | 174:b96e65c34a4d | 8042 | * | | |This field will be cleared by hardware automatically once a snooper pin event is detected. |
AnnaBridge | 174:b96e65c34a4d | 8043 | */ |
AnnaBridge | 174:b96e65c34a4d | 8044 | __IO uint32_t SPR[20]; |
AnnaBridge | 174:b96e65c34a4d | 8045 | |
AnnaBridge | 174:b96e65c34a4d | 8046 | } RTC_T; |
AnnaBridge | 174:b96e65c34a4d | 8047 | |
AnnaBridge | 174:b96e65c34a4d | 8048 | /** |
AnnaBridge | 174:b96e65c34a4d | 8049 | @addtogroup RTC_CONST RTC Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 8050 | Constant Definitions for RTC Controller |
AnnaBridge | 174:b96e65c34a4d | 8051 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 8052 | |
AnnaBridge | 174:b96e65c34a4d | 8053 | #define RTC_INIR_ACTIVE_Pos (0) /*!< RTC_T::INIR: ACTIVE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8054 | #define RTC_INIR_ACTIVE_Msk (0x1ul << RTC_INIR_ACTIVE_Pos) /*!< RTC_T::INIR: ACTIVE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8055 | |
AnnaBridge | 174:b96e65c34a4d | 8056 | #define RTC_INIR_INIR_Pos (0) /*!< RTC_T::INIR: INIR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8057 | #define RTC_INIR_INIR_Msk (0xfffffffful << RTC_INIR_INIR_Pos) /*!< RTC_T::INIR: INIR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8058 | |
AnnaBridge | 174:b96e65c34a4d | 8059 | #define RTC_AER_AER_Pos (0) /*!< RTC_T::AER: AER Position */ |
AnnaBridge | 174:b96e65c34a4d | 8060 | #define RTC_AER_AER_Msk (0xfffful << RTC_AER_AER_Pos) /*!< RTC_T::AER: AER Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8061 | |
AnnaBridge | 174:b96e65c34a4d | 8062 | #define RTC_AER_ENF_Pos (16) /*!< RTC_T::AER: ENF Position */ |
AnnaBridge | 174:b96e65c34a4d | 8063 | #define RTC_AER_ENF_Msk (0x1ul << RTC_AER_ENF_Pos) /*!< RTC_T::AER: ENF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8064 | |
AnnaBridge | 174:b96e65c34a4d | 8065 | #define RTC_FCR_FRACTION_Pos (0) /*!< RTC_T::FCR: FRACTION Position */ |
AnnaBridge | 174:b96e65c34a4d | 8066 | #define RTC_FCR_FRACTION_Msk (0x3ful << RTC_FCR_FRACTION_Pos) /*!< RTC_T::FCR: FRACTION Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8067 | |
AnnaBridge | 174:b96e65c34a4d | 8068 | #define RTC_FCR_INTEGER_Pos (8) /*!< RTC_T::FCR: INTEGER Position */ |
AnnaBridge | 174:b96e65c34a4d | 8069 | #define RTC_FCR_INTEGER_Msk (0xful << RTC_FCR_INTEGER_Pos) /*!< RTC_T::FCR: INTEGER Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8070 | |
AnnaBridge | 174:b96e65c34a4d | 8071 | #define RTC_TLR_1SEC_Pos (0) /*!< RTC_T::TLR: 1SEC Position */ |
AnnaBridge | 174:b96e65c34a4d | 8072 | #define RTC_TLR_1SEC_Msk (0xful << RTC_TLR_1SEC_Pos) /*!< RTC_T::TLR: 1SEC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8073 | |
AnnaBridge | 174:b96e65c34a4d | 8074 | #define RTC_TLR_10SEC_Pos (4) /*!< RTC_T::TLR: 10SEC Position */ |
AnnaBridge | 174:b96e65c34a4d | 8075 | #define RTC_TLR_10SEC_Msk (0x7ul << RTC_TLR_10SEC_Pos) /*!< RTC_T::TLR: 10SEC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8076 | |
AnnaBridge | 174:b96e65c34a4d | 8077 | #define RTC_TLR_1MIN_Pos (8) /*!< RTC_T::TLR: 1MIN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8078 | #define RTC_TLR_1MIN_Msk (0xful << RTC_TLR_1MIN_Pos) /*!< RTC_T::TLR: 1MIN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8079 | |
AnnaBridge | 174:b96e65c34a4d | 8080 | #define RTC_TLR_10MIN_Pos (12) /*!< RTC_T::TLR: 10MIN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8081 | #define RTC_TLR_10MIN_Msk (0x7ul << RTC_TLR_10MIN_Pos) /*!< RTC_T::TLR: 10MIN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8082 | |
AnnaBridge | 174:b96e65c34a4d | 8083 | #define RTC_TLR_1HR_Pos (16) /*!< RTC_T::TLR: 1HR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8084 | #define RTC_TLR_1HR_Msk (0xful << RTC_TLR_1HR_Pos) /*!< RTC_T::TLR: 1HR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8085 | |
AnnaBridge | 174:b96e65c34a4d | 8086 | #define RTC_TLR_10HR_Pos (20) /*!< RTC_T::TLR: 10HR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8087 | #define RTC_TLR_10HR_Msk (0x3ul << RTC_TLR_10HR_Pos) /*!< RTC_T::TLR: 10HR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8088 | |
AnnaBridge | 174:b96e65c34a4d | 8089 | #define RTC_CLR_1DAY_Pos (0) /*!< RTC_T::CLR: 1DAY Position */ |
AnnaBridge | 174:b96e65c34a4d | 8090 | #define RTC_CLR_1DAY_Msk (0xful << RTC_CLR_1DAY_Pos) /*!< RTC_T::CLR: 1DAY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8091 | |
AnnaBridge | 174:b96e65c34a4d | 8092 | #define RTC_CLR_10DAY_Pos (4) /*!< RTC_T::CLR: 10DAY Position */ |
AnnaBridge | 174:b96e65c34a4d | 8093 | #define RTC_CLR_10DAY_Msk (0x3ul << RTC_CLR_10DAY_Pos) /*!< RTC_T::CLR: 10DAY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8094 | |
AnnaBridge | 174:b96e65c34a4d | 8095 | #define RTC_CLR_1MON_Pos (8) /*!< RTC_T::CLR: 1MON Position */ |
AnnaBridge | 174:b96e65c34a4d | 8096 | #define RTC_CLR_1MON_Msk (0xful << RTC_CLR_1MON_Pos) /*!< RTC_T::CLR: 1MON Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8097 | |
AnnaBridge | 174:b96e65c34a4d | 8098 | #define RTC_CLR_10MON_Pos (12) /*!< RTC_T::CLR: 10MON Position */ |
AnnaBridge | 174:b96e65c34a4d | 8099 | #define RTC_CLR_10MON_Msk (0x1ul << RTC_CLR_10MON_Pos) /*!< RTC_T::CLR: 10MON Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8100 | |
AnnaBridge | 174:b96e65c34a4d | 8101 | #define RTC_CLR_1YEAR_Pos (16) /*!< RTC_T::CLR: 1YEAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8102 | #define RTC_CLR_1YEAR_Msk (0xful << RTC_CLR_1YEAR_Pos) /*!< RTC_T::CLR: 1YEAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8103 | |
AnnaBridge | 174:b96e65c34a4d | 8104 | #define RTC_CLR_10YEAR_Pos (20) /*!< RTC_T::CLR: 10YEAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8105 | #define RTC_CLR_10YEAR_Msk (0xful << RTC_CLR_10YEAR_Pos) /*!< RTC_T::CLR: 10YEAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8106 | |
AnnaBridge | 174:b96e65c34a4d | 8107 | #define RTC_TSSR_24H_12H_Pos (0) /*!< RTC_T::TSSR: 24hr_12hr Position */ |
AnnaBridge | 174:b96e65c34a4d | 8108 | #define RTC_TSSR_24H_12H_Msk (0x1ul << RTC_TSSR_24H_12H_Pos) /*!< RTC_T::TSSR: 24hr_12hr Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8109 | |
AnnaBridge | 174:b96e65c34a4d | 8110 | #define RTC_DWR_DWR_Pos (0) /*!< RTC_T::DWR: DWR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8111 | #define RTC_DWR_DWR_Msk (0x7ul << RTC_DWR_DWR_Pos) /*!< RTC_T::DWR: DWR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8112 | |
AnnaBridge | 174:b96e65c34a4d | 8113 | #define RTC_TAR_1SEC_Pos (0) /*!< RTC_T::TAR: 1SEC Position */ |
AnnaBridge | 174:b96e65c34a4d | 8114 | #define RTC_TAR_1SEC_Msk (0xful << RTC_TAR_1SEC_Pos) /*!< RTC_T::TAR: 1SEC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8115 | |
AnnaBridge | 174:b96e65c34a4d | 8116 | #define RTC_TAR_10SEC_Pos (4) /*!< RTC_T::TAR: 10SEC Position */ |
AnnaBridge | 174:b96e65c34a4d | 8117 | #define RTC_TAR_10SEC_Msk (0x7ul << RTC_TAR_10SEC_Pos) /*!< RTC_T::TAR: 10SEC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8118 | |
AnnaBridge | 174:b96e65c34a4d | 8119 | #define RTC_TAR_1MIN_Pos (8) /*!< RTC_T::TAR: 1MIN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8120 | #define RTC_TAR_1MIN_Msk (0xful << RTC_TAR_1MIN_Pos) /*!< RTC_T::TAR: 1MIN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8121 | |
AnnaBridge | 174:b96e65c34a4d | 8122 | #define RTC_TAR_10MIN_Pos (12) /*!< RTC_T::TAR: 10MIN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8123 | #define RTC_TAR_10MIN_Msk (0x7ul << RTC_TAR_10MIN_Pos) /*!< RTC_T::TAR: 10MIN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8124 | |
AnnaBridge | 174:b96e65c34a4d | 8125 | #define RTC_TAR_1HR_Pos (16) /*!< RTC_T::TAR: 1HR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8126 | #define RTC_TAR_1HR_Msk (0xful << RTC_TAR_1HR_Pos) /*!< RTC_T::TAR: 1HR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8127 | |
AnnaBridge | 174:b96e65c34a4d | 8128 | #define RTC_TAR_10HR_Pos (20) /*!< RTC_T::TAR: 10HR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8129 | #define RTC_TAR_10HR_Msk (0x3ul << RTC_TAR_10HR_Pos) /*!< RTC_T::TAR: 10HR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8130 | |
AnnaBridge | 174:b96e65c34a4d | 8131 | #define RTC_CAR_1DAY_Pos (0) /*!< RTC_T::CAR: 1DAY Position */ |
AnnaBridge | 174:b96e65c34a4d | 8132 | #define RTC_CAR_1DAY_Msk (0xful << RTC_CAR_1DAY_Pos) /*!< RTC_T::CAR: 1DAY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8133 | |
AnnaBridge | 174:b96e65c34a4d | 8134 | #define RTC_CAR_10DAY_Pos (4) /*!< RTC_T::CAR: 10DAY Position */ |
AnnaBridge | 174:b96e65c34a4d | 8135 | #define RTC_CAR_10DAY_Msk (0x3ul << RTC_CAR_10DAY_Pos) /*!< RTC_T::CAR: 10DAY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8136 | |
AnnaBridge | 174:b96e65c34a4d | 8137 | #define RTC_CAR_1MON_Pos (8) /*!< RTC_T::CAR: 1MON Position */ |
AnnaBridge | 174:b96e65c34a4d | 8138 | #define RTC_CAR_1MON_Msk (0xful << RTC_CAR_1MON_Pos) /*!< RTC_T::CAR: 1MON Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8139 | |
AnnaBridge | 174:b96e65c34a4d | 8140 | #define RTC_CAR_10MON_Pos (12) /*!< RTC_T::CAR: 10MON Position */ |
AnnaBridge | 174:b96e65c34a4d | 8141 | #define RTC_CAR_10MON_Msk (0x1ul << RTC_CAR_10MON_Pos) /*!< RTC_T::CAR: 10MON Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8142 | |
AnnaBridge | 174:b96e65c34a4d | 8143 | #define RTC_CAR_1YEAR_Pos (16) /*!< RTC_T::CAR: 1YEAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8144 | #define RTC_CAR_1YEAR_Msk (0xful << RTC_CAR_1YEAR_Pos) /*!< RTC_T::CAR: 1YEAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8145 | |
AnnaBridge | 174:b96e65c34a4d | 8146 | #define RTC_CAR_10YEAR_Pos (20) /*!< RTC_T::CAR: 10YEAR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8147 | #define RTC_CAR_10YEAR_Msk (0xful << RTC_CAR_10YEAR_Pos) /*!< RTC_T::CAR: 10YEAR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8148 | |
AnnaBridge | 174:b96e65c34a4d | 8149 | #define RTC_LIR_LIR_Pos (0) /*!< RTC_T::LIR: LIR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8150 | #define RTC_LIR_LIR_Msk (0x1ul << RTC_LIR_LIR_Pos) /*!< RTC_T::LIR: LIR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8151 | |
AnnaBridge | 174:b96e65c34a4d | 8152 | #define RTC_RIER_AIER_Pos (0) /*!< RTC_T::RIER: AIER Position */ |
AnnaBridge | 174:b96e65c34a4d | 8153 | #define RTC_RIER_AIER_Msk (0x1ul << RTC_RIER_AIER_Pos) /*!< RTC_T::RIER: AIER Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8154 | |
AnnaBridge | 174:b96e65c34a4d | 8155 | #define RTC_RIER_TIER_Pos (1) /*!< RTC_T::RIER: TIER Position */ |
AnnaBridge | 174:b96e65c34a4d | 8156 | #define RTC_RIER_TIER_Msk (0x1ul << RTC_RIER_TIER_Pos) /*!< RTC_T::RIER: TIER Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8157 | |
AnnaBridge | 174:b96e65c34a4d | 8158 | #define RTC_RIER_SNOOPIER_Pos (2) /*!< RTC_T::RIER: SNOOPIER Position */ |
AnnaBridge | 174:b96e65c34a4d | 8159 | #define RTC_RIER_SNOOPIER_Msk (0x1ul << RTC_RIER_SNOOPIER_Pos) /*!< RTC_T::RIER: SNOOPIER Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8160 | |
AnnaBridge | 174:b96e65c34a4d | 8161 | #define RTC_RIIR_AIF_Pos (0) /*!< RTC_T::RIIR: AIF Position */ |
AnnaBridge | 174:b96e65c34a4d | 8162 | #define RTC_RIIR_AIF_Msk (0x1ul << RTC_RIIR_AIF_Pos) /*!< RTC_T::RIIR: AIF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8163 | |
AnnaBridge | 174:b96e65c34a4d | 8164 | #define RTC_RIIR_TIF_Pos (1) /*!< RTC_T::RIIR: TIF Position */ |
AnnaBridge | 174:b96e65c34a4d | 8165 | #define RTC_RIIR_TIF_Msk (0x1ul << RTC_RIIR_TIF_Pos) /*!< RTC_T::RIIR: TIF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8166 | |
AnnaBridge | 174:b96e65c34a4d | 8167 | #define RTC_RIIR_SNOOPIF_Pos (2) /*!< RTC_T::RIIR: SNOOPIF Position */ |
AnnaBridge | 174:b96e65c34a4d | 8168 | #define RTC_RIIR_SNOOPIF_Msk (0x1ul << RTC_RIIR_SNOOPIF_Pos) /*!< RTC_T::RIIR: SNOOPIF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8169 | |
AnnaBridge | 174:b96e65c34a4d | 8170 | #define RTC_TTR_TTR_Pos (0) /*!< RTC_T::TTR: TTR Position */ |
AnnaBridge | 174:b96e65c34a4d | 8171 | #define RTC_TTR_TTR_Msk (0x7ul << RTC_TTR_TTR_Pos) /*!< RTC_T::TTR: TTR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8172 | |
AnnaBridge | 174:b96e65c34a4d | 8173 | #define RTC_TTR_TWKE_Pos (3) /*!< RTC_T::TTR: TWKE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8174 | #define RTC_TTR_TWKE_Msk (0x1ul << RTC_TTR_TWKE_Pos) /*!< RTC_T::TTR: TWKE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8175 | |
AnnaBridge | 174:b96e65c34a4d | 8176 | #define RTC_SPRCTL_SNOOPEN_Pos (0) /*!< RTC_T::SPRCTL: SNOOPEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8177 | #define RTC_SPRCTL_SNOOPEN_Msk (0x1ul << RTC_SPRCTL_SNOOPEN_Pos) /*!< RTC_T::SPRCTL: SNOOPEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8178 | |
AnnaBridge | 174:b96e65c34a4d | 8179 | #define RTC_SPRCTL_SNOOPEDGE_Pos (1) /*!< RTC_T::SPRCTL: SNOOPEDGE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8180 | #define RTC_SPRCTL_SNOOPEDGE_Msk (0x1ul << RTC_SPRCTL_SNOOPEDGE_Pos) /*!< RTC_T::SPRCTL: SNOOPEDGE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8181 | |
AnnaBridge | 174:b96e65c34a4d | 8182 | #define RTC_SPRCTL_SPRRDY_Pos (7) /*!< RTC_T::SPRCTL: SPRRDY Position */ |
AnnaBridge | 174:b96e65c34a4d | 8183 | #define RTC_SPRCTL_SPRRDY_Msk (0x1ul << RTC_SPRCTL_SPRRDY_Pos) /*!< RTC_T::SPRCTL: SPRRDY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8184 | |
AnnaBridge | 174:b96e65c34a4d | 8185 | #define RTC_SPR0_SPARE_Pos (0) /*!< RTC_T::SPR0: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8186 | #define RTC_SPR0_SPARE_Msk (0xfffffffful << RTC_SPR0_SPARE_Pos) /*!< RTC_T::SPR0: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8187 | |
AnnaBridge | 174:b96e65c34a4d | 8188 | #define RTC_SPR1_SPARE_Pos (0) /*!< RTC_T::SPR1: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8189 | #define RTC_SPR1_SPARE_Msk (0xfffffffful << RTC_SPR1_SPARE_Pos) /*!< RTC_T::SPR1: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8190 | |
AnnaBridge | 174:b96e65c34a4d | 8191 | #define RTC_SPR2_SPARE_Pos (0) /*!< RTC_T::SPR2: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8192 | #define RTC_SPR2_SPARE_Msk (0xfffffffful << RTC_SPR2_SPARE_Pos) /*!< RTC_T::SPR2: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8193 | |
AnnaBridge | 174:b96e65c34a4d | 8194 | #define RTC_SPR3_SPARE_Pos (0) /*!< RTC_T::SPR3: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8195 | #define RTC_SPR3_SPARE_Msk (0xfffffffful << RTC_SPR3_SPARE_Pos) /*!< RTC_T::SPR3: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8196 | |
AnnaBridge | 174:b96e65c34a4d | 8197 | #define RTC_SPR4_SPARE_Pos (0) /*!< RTC_T::SPR4: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8198 | #define RTC_SPR4_SPARE_Msk (0xfffffffful << RTC_SPR4_SPARE_Pos) /*!< RTC_T::SPR4: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8199 | |
AnnaBridge | 174:b96e65c34a4d | 8200 | #define RTC_SPR5_SPARE_Pos (0) /*!< RTC_T::SPR5: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8201 | #define RTC_SPR5_SPARE_Msk (0xfffffffful << RTC_SPR5_SPARE_Pos) /*!< RTC_T::SPR5: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8202 | |
AnnaBridge | 174:b96e65c34a4d | 8203 | #define RTC_SPR6_SPARE_Pos (0) /*!< RTC_T::SPR6: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8204 | #define RTC_SPR6_SPARE_Msk (0xfffffffful << RTC_SPR6_SPARE_Pos) /*!< RTC_T::SPR6: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8205 | |
AnnaBridge | 174:b96e65c34a4d | 8206 | #define RTC_SPR7_SPARE_Pos (0) /*!< RTC_T::SPR7: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8207 | #define RTC_SPR7_SPARE_Msk (0xfffffffful << RTC_SPR7_SPARE_Pos) /*!< RTC_T::SPR7: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8208 | |
AnnaBridge | 174:b96e65c34a4d | 8209 | #define RTC_SPR8_SPARE_Pos (0) /*!< RTC_T::SPR8: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8210 | #define RTC_SPR8_SPARE_Msk (0xfffffffful << RTC_SPR8_SPARE_Pos) /*!< RTC_T::SPR8: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8211 | |
AnnaBridge | 174:b96e65c34a4d | 8212 | #define RTC_SPR9_SPARE_Pos (0) /*!< RTC_T::SPR9: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8213 | #define RTC_SPR9_SPARE_Msk (0xfffffffful << RTC_SPR9_SPARE_Pos) /*!< RTC_T::SPR9: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8214 | |
AnnaBridge | 174:b96e65c34a4d | 8215 | #define RTC_SPR10_SPARE_Pos (0) /*!< RTC_T::SPR10: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8216 | #define RTC_SPR10_SPARE_Msk (0xfffffffful << RTC_SPR10_SPARE_Pos) /*!< RTC_T::SPR10: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8217 | |
AnnaBridge | 174:b96e65c34a4d | 8218 | #define RTC_SPR11_SPARE_Pos (0) /*!< RTC_T::SPR11: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8219 | #define RTC_SPR11_SPARE_Msk (0xfffffffful << RTC_SPR11_SPARE_Pos) /*!< RTC_T::SPR11: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8220 | |
AnnaBridge | 174:b96e65c34a4d | 8221 | #define RTC_SPR12_SPARE_Pos (0) /*!< RTC_T::SPR12: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8222 | #define RTC_SPR12_SPARE_Msk (0xfffffffful << RTC_SPR12_SPARE_Pos) /*!< RTC_T::SPR12: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8223 | |
AnnaBridge | 174:b96e65c34a4d | 8224 | #define RTC_SPR13_SPARE_Pos (0) /*!< RTC_T::SPR13: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8225 | #define RTC_SPR13_SPARE_Msk (0xfffffffful << RTC_SPR13_SPARE_Pos) /*!< RTC_T::SPR13: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8226 | |
AnnaBridge | 174:b96e65c34a4d | 8227 | #define RTC_SPR14_SPARE_Pos (0) /*!< RTC_T::SPR14: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8228 | #define RTC_SPR14_SPARE_Msk (0xfffffffful << RTC_SPR14_SPARE_Pos) /*!< RTC_T::SPR14: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8229 | |
AnnaBridge | 174:b96e65c34a4d | 8230 | #define RTC_SPR15_SPARE_Pos (0) /*!< RTC_T::SPR15: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8231 | #define RTC_SPR15_SPARE_Msk (0xfffffffful << RTC_SPR15_SPARE_Pos) /*!< RTC_T::SPR15: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8232 | |
AnnaBridge | 174:b96e65c34a4d | 8233 | #define RTC_SPR16_SPARE_Pos (0) /*!< RTC_T::SPR16: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8234 | #define RTC_SPR16_SPARE_Msk (0xfffffffful << RTC_SPR16_SPARE_Pos) /*!< RTC_T::SPR16: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8235 | |
AnnaBridge | 174:b96e65c34a4d | 8236 | #define RTC_SPR17_SPARE_Pos (0) /*!< RTC_T::SPR17: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8237 | #define RTC_SPR17_SPARE_Msk (0xfffffffful << RTC_SPR17_SPARE_Pos) /*!< RTC_T::SPR17: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8238 | |
AnnaBridge | 174:b96e65c34a4d | 8239 | #define RTC_SPR18_SPARE_Pos (0) /*!< RTC_T::SPR18: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8240 | #define RTC_SPR18_SPARE_Msk (0xfffffffful << RTC_SPR18_SPARE_Pos) /*!< RTC_T::SPR18: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8241 | |
AnnaBridge | 174:b96e65c34a4d | 8242 | #define RTC_SPR19_SPARE_Pos (0) /*!< RTC_T::SPR19: SPARE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8243 | #define RTC_SPR19_SPARE_Msk (0xfffffffful << RTC_SPR19_SPARE_Pos) /*!< RTC_T::SPR19: SPARE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8244 | |
AnnaBridge | 174:b96e65c34a4d | 8245 | /**@}*/ /* RTC_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 8246 | /**@}*/ /* end of RTC register group */ |
AnnaBridge | 174:b96e65c34a4d | 8247 | |
AnnaBridge | 174:b96e65c34a4d | 8248 | |
AnnaBridge | 174:b96e65c34a4d | 8249 | /*---------------------- Smart Card Host Interface Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 8250 | /** |
AnnaBridge | 174:b96e65c34a4d | 8251 | @addtogroup SC Smart Card Host Interface Controller(SC) |
AnnaBridge | 174:b96e65c34a4d | 8252 | Memory Mapped Structure for SC Controller |
AnnaBridge | 174:b96e65c34a4d | 8253 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 8254 | |
AnnaBridge | 174:b96e65c34a4d | 8255 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 8256 | |
AnnaBridge | 174:b96e65c34a4d | 8257 | |
AnnaBridge | 174:b96e65c34a4d | 8258 | union { |
AnnaBridge | 174:b96e65c34a4d | 8259 | /** |
AnnaBridge | 174:b96e65c34a4d | 8260 | * RBR |
AnnaBridge | 174:b96e65c34a4d | 8261 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8262 | * Offset: 0x00 SC Receive Buffer Register |
AnnaBridge | 174:b96e65c34a4d | 8263 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8264 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8265 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8266 | * |[7:0] |RBR |Receiving Buffer |
AnnaBridge | 174:b96e65c34a4d | 8267 | * | | |By reading this register, the SC Controller will return an 8-bit data received from RX pin (LSB first). |
AnnaBridge | 174:b96e65c34a4d | 8268 | */ |
AnnaBridge | 174:b96e65c34a4d | 8269 | __I uint32_t RBR; |
AnnaBridge | 174:b96e65c34a4d | 8270 | /** |
AnnaBridge | 174:b96e65c34a4d | 8271 | * THR |
AnnaBridge | 174:b96e65c34a4d | 8272 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8273 | * Offset: 0x00 SC Transmit Buffer Register |
AnnaBridge | 174:b96e65c34a4d | 8274 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8275 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8276 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8277 | * |[7:0] |THR |Transmit Buffer |
AnnaBridge | 174:b96e65c34a4d | 8278 | * | | |By writing to this register, the SC sends out an 8-bit data through the TX pin (LSB first). |
AnnaBridge | 174:b96e65c34a4d | 8279 | */ |
AnnaBridge | 174:b96e65c34a4d | 8280 | __O uint32_t THR; |
AnnaBridge | 174:b96e65c34a4d | 8281 | }; |
AnnaBridge | 174:b96e65c34a4d | 8282 | |
AnnaBridge | 174:b96e65c34a4d | 8283 | /** |
AnnaBridge | 174:b96e65c34a4d | 8284 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 8285 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8286 | * Offset: 0x04 SC Control Register. |
AnnaBridge | 174:b96e65c34a4d | 8287 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8288 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8289 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8290 | * |[0] |SC_CEN |SC Engine Enable |
AnnaBridge | 174:b96e65c34a4d | 8291 | * | | |Set this bit to "1" to enable SC operation. |
AnnaBridge | 174:b96e65c34a4d | 8292 | * | | |If this bit is cleared, SC will force all transition to IDLE state. |
AnnaBridge | 174:b96e65c34a4d | 8293 | * |[1] |DIS_RX |RX Transition Disable |
AnnaBridge | 174:b96e65c34a4d | 8294 | * | | |0 = Receiver Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8295 | * | | |1 = Receiver Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8296 | * |[2] |DIS_TX |TX Transition Disable |
AnnaBridge | 174:b96e65c34a4d | 8297 | * | | |0 = Transceiver Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8298 | * | | |1 = Transceiver Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8299 | * |[3] |AUTO_CON_EN|Auto Convention Enable |
AnnaBridge | 174:b96e65c34a4d | 8300 | * | | |0 = Auto-convention Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8301 | * | | |1 = Auto-convention Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8302 | * | | |When hardware receives TS in answer to reset state and the TS is direct convention, CON_SEL will be set to 00 automatically, otherwise if the TS is inverse convention, CON_SEL will be set to 11. |
AnnaBridge | 174:b96e65c34a4d | 8303 | * | | |If software enables auto convention function, the setting step must be done before Answer to Reset state and the first data must be 0x3B or 0x3F. |
AnnaBridge | 174:b96e65c34a4d | 8304 | * | | |After hardware received first data and stored it at buffer, hardware will decided the convention and change the SC_CTL[CON_SEL] register automatically. |
AnnaBridge | 174:b96e65c34a4d | 8305 | * | | |If the first data is not 0x3B or 0x3F, hardware will generate an interrupt INT_ACON_ERR(if SC_IER [ACON_ERR_IE = "1"] to CPU. |
AnnaBridge | 174:b96e65c34a4d | 8306 | * |[5:4] |CON_SEL |Convention Selection |
AnnaBridge | 174:b96e65c34a4d | 8307 | * | | |00 = Direct convention. |
AnnaBridge | 174:b96e65c34a4d | 8308 | * | | |01 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 8309 | * | | |10 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 8310 | * | | |11 = Inverse convention. |
AnnaBridge | 174:b96e65c34a4d | 8311 | * | | |Note: If AUTO_CON_EN is enabled, this field must be ignored. |
AnnaBridge | 174:b96e65c34a4d | 8312 | * |[7:6] |RX_FTRI_LEV|RX Buffer Trigger Level |
AnnaBridge | 174:b96e65c34a4d | 8313 | * | | |When the number of bytes in the receiving buffer equals the RX_FTRI_LEV, the RDA_IF will be set (if IER [RDA_IEN] is enabled, an interrupt will be generated). |
AnnaBridge | 174:b96e65c34a4d | 8314 | * | | |00 = INTR_RDA Trigger Level 1 byte. |
AnnaBridge | 174:b96e65c34a4d | 8315 | * | | |01 = INTR_RDA Trigger Level 2 bytes. |
AnnaBridge | 174:b96e65c34a4d | 8316 | * | | |10 = INTR_RDA Trigger Level 3 bytes. |
AnnaBridge | 174:b96e65c34a4d | 8317 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 8318 | * |[12:8] |BGT |Block Guard Time (BGT) |
AnnaBridge | 174:b96e65c34a4d | 8319 | * | | |This field indicates the counter for block guard time. |
AnnaBridge | 174:b96e65c34a4d | 8320 | * | | |According to ISO7816-3, in T=0 mode, software must fill 15 (real block guard time = 16) to this field and in T=1 mode software must fill 21 (real block guard time = 22) to it. |
AnnaBridge | 174:b96e65c34a4d | 8321 | * | | |In TX mode, hardware will auto hold off first character until BGT has elapsed regardless of the TX data. |
AnnaBridge | 174:b96e65c34a4d | 8322 | * | | |In RX mode, software can enable SC_ALTCTL [RX_BGT_EN] to detect the first coming character timing. |
AnnaBridge | 174:b96e65c34a4d | 8323 | * | | |If the incoming data timing less than BGT, an interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 8324 | * | | |Note: The real block guard time is BGT + 1. |
AnnaBridge | 174:b96e65c34a4d | 8325 | * |[14:13] |TMR_SEL |Timer Selection |
AnnaBridge | 174:b96e65c34a4d | 8326 | * | | |00 = Disable all internal timer function. |
AnnaBridge | 174:b96e65c34a4d | 8327 | * | | |01 = Enable internal 24 bit timer. |
AnnaBridge | 174:b96e65c34a4d | 8328 | * | | |Software can configure it by setting SC_TMR0 [23:0]. |
AnnaBridge | 174:b96e65c34a4d | 8329 | * | | |SC_TMR1 and SC_TMR2 will be ignored in this mode. |
AnnaBridge | 174:b96e65c34a4d | 8330 | * | | |10 = Enable internal 24 bit timer and 8 bit internal timer. |
AnnaBridge | 174:b96e65c34a4d | 8331 | * | | |Software can configure the 24 bit timer by setting SC_TMR0 [23:0] and configure the 8 bit timer by setting SC_TMR1 [7:0]. |
AnnaBridge | 174:b96e65c34a4d | 8332 | * | | |SC_TMR2 will be ignored in this mode. |
AnnaBridge | 174:b96e65c34a4d | 8333 | * | | |11 = Enable internal 24 bit timer and two 8 bit timers. |
AnnaBridge | 174:b96e65c34a4d | 8334 | * | | |Software can configure them by setting SC_TMR0 [23:0], SC_TMR1 [7:0] and SC_TMR2 [7:0]. |
AnnaBridge | 174:b96e65c34a4d | 8335 | * |[15] |SLEN |Stop Bit Length |
AnnaBridge | 174:b96e65c34a4d | 8336 | * | | |This field indicates the length of stop bit. |
AnnaBridge | 174:b96e65c34a4d | 8337 | * | | |0 = The stop bit length is 2 ETU. |
AnnaBridge | 174:b96e65c34a4d | 8338 | * | | |1 = The stop bit length is 1 ETU. |
AnnaBridge | 174:b96e65c34a4d | 8339 | * | | |Note: The default stop bit length is 2. |
AnnaBridge | 174:b96e65c34a4d | 8340 | * |[18:16] |RX_ERETRY |RX Error Retry Register |
AnnaBridge | 174:b96e65c34a4d | 8341 | * | | |This field indicates the maximum number of receiver retries that are allowed when parity error has occurred. |
AnnaBridge | 174:b96e65c34a4d | 8342 | * | | |Note1: The real maximum retry number is RX_ERETRY + 1, so 8 is the maximum retry number. |
AnnaBridge | 174:b96e65c34a4d | 8343 | * | | |Note2: This field can not be changed when RX_ERETRY_EN enabled. |
AnnaBridge | 174:b96e65c34a4d | 8344 | * | | |The change flow is to disable RX_ETRTRY_EN first and then fill new retry value. |
AnnaBridge | 174:b96e65c34a4d | 8345 | * |[19] |RX_ERETRY_EN|RX Error Retry Enable Register |
AnnaBridge | 174:b96e65c34a4d | 8346 | * | | |This bit enables receiver retry function when parity error has occurred. |
AnnaBridge | 174:b96e65c34a4d | 8347 | * | | |0 = RX error retry function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8348 | * | | |1 = RX error retry function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8349 | * | | |Note: User must fill RX_ERETRY value before enabling this bit. |
AnnaBridge | 174:b96e65c34a4d | 8350 | * |[22:20] |TX_ERETRY |TX Error Retry Register |
AnnaBridge | 174:b96e65c34a4d | 8351 | * | | |This field indicates the maximum number of transmitter retries that are allowed when parity error has occurred. |
AnnaBridge | 174:b96e65c34a4d | 8352 | * | | |Note1: The real retry number is TX_ERETRY + 1, so 8 is the maximum retry number. |
AnnaBridge | 174:b96e65c34a4d | 8353 | * | | |Note2: This field can not be changed when TX_ERETRY_EN enabled. |
AnnaBridge | 174:b96e65c34a4d | 8354 | * | | |The change flow is to disable TX_ETRTRY_EN first and then fill new retry value. |
AnnaBridge | 174:b96e65c34a4d | 8355 | * |[23] |TX_ERETRY_EN|TX Error Retry Enable Register |
AnnaBridge | 174:b96e65c34a4d | 8356 | * | | |This bit enables transmitter retry function when parity error has occurred. |
AnnaBridge | 174:b96e65c34a4d | 8357 | * | | |0 = TX error retry function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8358 | * | | |1 = TX error retry function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8359 | * | | |Note: User must fill TX_ERETRY value before enabling this bit. |
AnnaBridge | 174:b96e65c34a4d | 8360 | * |[25:24] |CD_DEB_SEL|Card Detect De-Bounce Select Register |
AnnaBridge | 174:b96e65c34a4d | 8361 | * | | |This field indicates the card detect de-bounce selection. |
AnnaBridge | 174:b96e65c34a4d | 8362 | * | | |This field indicates the card detect de-bounce selection. |
AnnaBridge | 174:b96e65c34a4d | 8363 | * | | |00 = De-bounce sample card insert once per 384 (128 * 3) engine clocks and de-bounce sample card removal once per 128 engine clocks. |
AnnaBridge | 174:b96e65c34a4d | 8364 | * | | |01 = De-bounce sample card insert once per 192 (64 * 3) engine clocks and de-bounce sample card removal once per 64 engine clocks. |
AnnaBridge | 174:b96e65c34a4d | 8365 | * | | |10 = De-bounce sample card insert once per 96 (32 * 3) engine clocks and de-bounce sample card removal once per 32 engine clocks. |
AnnaBridge | 174:b96e65c34a4d | 8366 | * | | |11 = De-bounce sample card insert once per 48 (16 * 3) engine clocks and de-bounce sample card removal once per 16 engine clocks. |
AnnaBridge | 174:b96e65c34a4d | 8367 | */ |
AnnaBridge | 174:b96e65c34a4d | 8368 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 8369 | |
AnnaBridge | 174:b96e65c34a4d | 8370 | /** |
AnnaBridge | 174:b96e65c34a4d | 8371 | * ALTCTL |
AnnaBridge | 174:b96e65c34a4d | 8372 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8373 | * Offset: 0x08 SC Alternate Control Register. |
AnnaBridge | 174:b96e65c34a4d | 8374 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8375 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8376 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8377 | * |[0] |TX_RST |TX Software Reset |
AnnaBridge | 174:b96e65c34a4d | 8378 | * | | |When TX_RST is set, all the bytes in the transmit buffer and TX internal state machine will be cleared. |
AnnaBridge | 174:b96e65c34a4d | 8379 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 8380 | * | | |1 = Reset the TX internal state machine and pointers. |
AnnaBridge | 174:b96e65c34a4d | 8381 | * | | |Note: This bit will be auto cleared and needs at least 3 SC engine clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 8382 | * |[1] |RX_RST |RX Software Reset |
AnnaBridge | 174:b96e65c34a4d | 8383 | * | | |When RX_RST is set, all the bytes in the receiver buffer and RX internal state machine will be cleared. |
AnnaBridge | 174:b96e65c34a4d | 8384 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 8385 | * | | |1 = Reset the RX internal state machine and pointers. |
AnnaBridge | 174:b96e65c34a4d | 8386 | * | | |Note: This bit will be auto cleared and needs at least 3 SC engine clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 8387 | * |[2] |DACT_EN |Deactivation Sequence Generator Enable |
AnnaBridge | 174:b96e65c34a4d | 8388 | * | | |This bit enables SC controller to initiate the card by deactivation sequence |
AnnaBridge | 174:b96e65c34a4d | 8389 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 8390 | * | | |1 = Deactivation sequence generator Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8391 | * | | |Note1: When the deactivation sequence completed, this bit will be cleared automatically and the SC_ISR [INIT_IS] will be set to "1". |
AnnaBridge | 174:b96e65c34a4d | 8392 | * | | |Note2: This field will be cleared by TX_RST and RX_RST. |
AnnaBridge | 174:b96e65c34a4d | 8393 | * | | |So don't fill this bit, TX_RST, and RX_RST at the same time. |
AnnaBridge | 174:b96e65c34a4d | 8394 | * | | |Note3: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed. |
AnnaBridge | 174:b96e65c34a4d | 8395 | * |[3] |ACT_EN |Activation Sequence Generator Enable |
AnnaBridge | 174:b96e65c34a4d | 8396 | * | | |This bit enables SC controller to initiate the card by activation sequence |
AnnaBridge | 174:b96e65c34a4d | 8397 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 8398 | * | | |1 = Activation sequence generator Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8399 | * | | |Note1: When the activation sequence completed, this bit will be cleared automatically and the SC_IS [INIT_IS] will be set to "1". |
AnnaBridge | 174:b96e65c34a4d | 8400 | * | | |Note2: This field will be cleared by TX_RST and RX_RST, so don't fill this bit, TX_RST, and RX_RST at the same time. |
AnnaBridge | 174:b96e65c34a4d | 8401 | * | | |Note3: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed. |
AnnaBridge | 174:b96e65c34a4d | 8402 | * |[4] |WARST_EN |Warm Reset Sequence Generator Enable |
AnnaBridge | 174:b96e65c34a4d | 8403 | * | | |This bit enables SC controller to initiate the card by warm reset sequence |
AnnaBridge | 174:b96e65c34a4d | 8404 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 8405 | * | | |1 = Warm reset sequence generator Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8406 | * | | |Note1: When the warm reset sequence completed, this bit will be cleared automatically and the SC_ISR [INIT_IS] will be set to "1". |
AnnaBridge | 174:b96e65c34a4d | 8407 | * | | |Note2: This field will be cleared by TX_RST and RX_RST, so don't fill this bit, TX_RST, and RX_RST at the same time. |
AnnaBridge | 174:b96e65c34a4d | 8408 | * | | |Note3: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed. |
AnnaBridge | 174:b96e65c34a4d | 8409 | * |[5] |TMR0_SEN |Internal Timer0 Start Enable |
AnnaBridge | 174:b96e65c34a4d | 8410 | * | | |This bit enables Timer0 to start counting. |
AnnaBridge | 174:b96e65c34a4d | 8411 | * | | |Software can fill "0" to stop it and set "1" to reload and count. |
AnnaBridge | 174:b96e65c34a4d | 8412 | * | | |0 = Stops counting. |
AnnaBridge | 174:b96e65c34a4d | 8413 | * | | |1 = Starts counting. |
AnnaBridge | 174:b96e65c34a4d | 8414 | * | | |Note1: This field is used for internal 24 bit timer when SC_CTL [TMR_SEL] = 01. |
AnnaBridge | 174:b96e65c34a4d | 8415 | * | | |Note2: If the operation mode is not in auto-reload mode (SC_TMR0 [26] = "0"), this bit will be auto-cleared by hardware. |
AnnaBridge | 174:b96e65c34a4d | 8416 | * | | |Note3: This field will be cleared by TX_RST and RX_RST. |
AnnaBridge | 174:b96e65c34a4d | 8417 | * | | |So don't fill this bit, TX_RST and RX_RST at the same time. |
AnnaBridge | 174:b96e65c34a4d | 8418 | * | | |Note4: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed. |
AnnaBridge | 174:b96e65c34a4d | 8419 | * |[6] |TMR1_SEN |Internal Timer1 Start Enable |
AnnaBridge | 174:b96e65c34a4d | 8420 | * | | |This bit enables Timer "1" to start counting. |
AnnaBridge | 174:b96e65c34a4d | 8421 | * | | |Software can fill 0 to stop it and set "1" to reload and count. |
AnnaBridge | 174:b96e65c34a4d | 8422 | * | | |0 = Stops counting. |
AnnaBridge | 174:b96e65c34a4d | 8423 | * | | |1 = Starts counting. |
AnnaBridge | 174:b96e65c34a4d | 8424 | * | | |Note1: This field is used for internal 8-bit timer when SC_CTL [TMR_SEL] = 01 or 10. |
AnnaBridge | 174:b96e65c34a4d | 8425 | * | | |Don't filled TMR1_SEN when SC_CTL [TMR_SEL] = 00 or 11. |
AnnaBridge | 174:b96e65c34a4d | 8426 | * | | |Note2: If the operation mode is not in auto-reload mode (SC_TMR1 [26] = "0"), this bit will be auto-cleared by hardware. |
AnnaBridge | 174:b96e65c34a4d | 8427 | * | | |Note3: This field will be cleared by TX_RST and RX_RST, so don't fill this bit, TX_RST, and RX_RST at the same time. |
AnnaBridge | 174:b96e65c34a4d | 8428 | * | | |Note4: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed. |
AnnaBridge | 174:b96e65c34a4d | 8429 | * |[7] |TMR2_SEN |Internal Timer2 Start Enable |
AnnaBridge | 174:b96e65c34a4d | 8430 | * | | |This bit enables Timer2 to start counting. |
AnnaBridge | 174:b96e65c34a4d | 8431 | * | | |Software can fill "0" to stop it and set "1" to reload and count. |
AnnaBridge | 174:b96e65c34a4d | 8432 | * | | |0 = Stops counting. |
AnnaBridge | 174:b96e65c34a4d | 8433 | * | | |1 = Starts counting. |
AnnaBridge | 174:b96e65c34a4d | 8434 | * | | |Note1: This field is used for internal 8-bit timer when SC_CTL [TMR_SEL] == 11. |
AnnaBridge | 174:b96e65c34a4d | 8435 | * | | |Don't filled TMR2_SEN when SC_CTL [TMR_SEL] == 00 or 01 or 10. |
AnnaBridge | 174:b96e65c34a4d | 8436 | * | | |Note2: If the operation mode is not in auto-reload mode (SC_TMR2 [26] = "0"), this bit will be auto-cleared by hardware. |
AnnaBridge | 174:b96e65c34a4d | 8437 | * | | |Note3: This field will be cleared by TX_RST and RX_RST. |
AnnaBridge | 174:b96e65c34a4d | 8438 | * | | |So don't fill this bit, TX_RST, and RX_RST at the same time. |
AnnaBridge | 174:b96e65c34a4d | 8439 | * | | |Note4: If SC_CTL [SC_CEN] is not enabled, this filed can not be programmed. |
AnnaBridge | 174:b96e65c34a4d | 8440 | * |[9:8] |INIT_SEL |Initial Timing Selection |
AnnaBridge | 174:b96e65c34a4d | 8441 | * | | |This field indicates the timing of hardware initial state (activation or warm-reset or deactivation). |
AnnaBridge | 174:b96e65c34a4d | 8442 | * |[12] |RX_BGT_EN |Receiver Block Guard Time Function Enable |
AnnaBridge | 174:b96e65c34a4d | 8443 | * | | |0 = Receiver block guard time function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8444 | * | | |1 = Receiver block guard time function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8445 | * |[13] |TMR0_ATV |Internal Timer0 Active State (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8446 | * | | |This bit indicates the timer counter status of timer0. |
AnnaBridge | 174:b96e65c34a4d | 8447 | * | | |0 = Timer0 is not active. |
AnnaBridge | 174:b96e65c34a4d | 8448 | * | | |1 = Timer0 is active. |
AnnaBridge | 174:b96e65c34a4d | 8449 | * |[14] |TMR1_ATV |Internal Timer1 Active State (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8450 | * | | |This bit indicates the timer counter status of timer1. |
AnnaBridge | 174:b96e65c34a4d | 8451 | * | | |0 = Timer1 is not active. |
AnnaBridge | 174:b96e65c34a4d | 8452 | * | | |1 = Timer1 is active. |
AnnaBridge | 174:b96e65c34a4d | 8453 | * |[15] |TMR2_ATV |Internal Timer2 Active State (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8454 | * | | |This bit indicates the timer counter status of timer2. |
AnnaBridge | 174:b96e65c34a4d | 8455 | * | | |0 = Timer2 is not active. |
AnnaBridge | 174:b96e65c34a4d | 8456 | * | | |1 = Timer2 is active. |
AnnaBridge | 174:b96e65c34a4d | 8457 | */ |
AnnaBridge | 174:b96e65c34a4d | 8458 | __IO uint32_t ALTCTL; |
AnnaBridge | 174:b96e65c34a4d | 8459 | |
AnnaBridge | 174:b96e65c34a4d | 8460 | /** |
AnnaBridge | 174:b96e65c34a4d | 8461 | * EGTR |
AnnaBridge | 174:b96e65c34a4d | 8462 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8463 | * Offset: 0x0C SC Extend Guard Time Register. |
AnnaBridge | 174:b96e65c34a4d | 8464 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8465 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8466 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8467 | * |[7:0] |EGT |Extended Guard Time |
AnnaBridge | 174:b96e65c34a4d | 8468 | * | | |This field indicates the extended guard timer value. |
AnnaBridge | 174:b96e65c34a4d | 8469 | * | | |Note: The counter is ETU based and the real extended guard time is EGT. |
AnnaBridge | 174:b96e65c34a4d | 8470 | */ |
AnnaBridge | 174:b96e65c34a4d | 8471 | __IO uint32_t EGTR; |
AnnaBridge | 174:b96e65c34a4d | 8472 | |
AnnaBridge | 174:b96e65c34a4d | 8473 | /** |
AnnaBridge | 174:b96e65c34a4d | 8474 | * RFTMR |
AnnaBridge | 174:b96e65c34a4d | 8475 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8476 | * Offset: 0x10 SC Receive Buffer Time-Out Register. |
AnnaBridge | 174:b96e65c34a4d | 8477 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8478 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8479 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8480 | * |[8:0] |RFTM |SC Receiver Buffer Time-Out Register (ETU Based) |
AnnaBridge | 174:b96e65c34a4d | 8481 | * | | |The time-out counter resets and starts counting whenever the RX buffer received a new data word. |
AnnaBridge | 174:b96e65c34a4d | 8482 | * | | |Once the counter decrease to "1" and no new data is received or CPU does not read data by reading SC_RBR register, a receiver time-out interrupt INT_RTMR will be generated(if SC_IER[RTMR_IE] is high). |
AnnaBridge | 174:b96e65c34a4d | 8483 | * | | |Note1: The counter is ETU based and the real count value is RFTM + 1 |
AnnaBridge | 174:b96e65c34a4d | 8484 | * | | |Note2: Fill all "0" to this field to disable this function. |
AnnaBridge | 174:b96e65c34a4d | 8485 | */ |
AnnaBridge | 174:b96e65c34a4d | 8486 | __IO uint32_t RFTMR; |
AnnaBridge | 174:b96e65c34a4d | 8487 | |
AnnaBridge | 174:b96e65c34a4d | 8488 | /** |
AnnaBridge | 174:b96e65c34a4d | 8489 | * ETUCR |
AnnaBridge | 174:b96e65c34a4d | 8490 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8491 | * Offset: 0x14 SC ETU Control Register. |
AnnaBridge | 174:b96e65c34a4d | 8492 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8493 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8494 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8495 | * |[11:0] |ETU_RDIV |ETU Rate Divider |
AnnaBridge | 174:b96e65c34a4d | 8496 | * | | |The field indicates the clock rate divider. |
AnnaBridge | 174:b96e65c34a4d | 8497 | * | | |The real ETU is ETU_RDIV + 1. |
AnnaBridge | 174:b96e65c34a4d | 8498 | * | | |Note1: Software can configure this field, but this field must be greater than 0x04. |
AnnaBridge | 174:b96e65c34a4d | 8499 | * | | |Note2: Software can configure this field, but if the error rate is equal to 2%, this field must be greater than 0x040. |
AnnaBridge | 174:b96e65c34a4d | 8500 | * |[15] |COMPEN_EN |Compensation Mode Enable |
AnnaBridge | 174:b96e65c34a4d | 8501 | * | | |This bit enables clock compensation function. |
AnnaBridge | 174:b96e65c34a4d | 8502 | * | | |When this bit enabled, hardware will alternate between n clock cycles and (n-1) clock cycles, where n is the value to be written into the ETU_RDIV register. |
AnnaBridge | 174:b96e65c34a4d | 8503 | * | | |0 = Compensation function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8504 | * | | |1 = Compensation function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8505 | */ |
AnnaBridge | 174:b96e65c34a4d | 8506 | __IO uint32_t ETUCR; |
AnnaBridge | 174:b96e65c34a4d | 8507 | |
AnnaBridge | 174:b96e65c34a4d | 8508 | /** |
AnnaBridge | 174:b96e65c34a4d | 8509 | * IER |
AnnaBridge | 174:b96e65c34a4d | 8510 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8511 | * Offset: 0x18 SC Interrupt Enable Register. |
AnnaBridge | 174:b96e65c34a4d | 8512 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8513 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8514 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8515 | * |[0] |RDA_IE |Receive Data Reach Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8516 | * | | |This field is used for received data reaching trigger level (SC_CTL [RX_FTRI_LEV]) interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8517 | * | | |0 = INT_RDR Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8518 | * | | |1 = INT_RDR Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8519 | * |[1] |TBE_IE |Transmit Buffer Empty Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8520 | * | | |This field is used for transmit buffer empty interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8521 | * | | |0 = INT_THRE Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8522 | * | | |1 = INT_THRE Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8523 | * |[2] |TERR_IE |Transfer Error Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8524 | * | | |This field is used for transfer error interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8525 | * | | |The transfer error states is at SC_TRSR register which includes receiver break error (RX_EBR_F), frame error (RX_EFR_F), parity error (RX_EPA_F), receiver buffer overflow error (RX_OVER_F), transmit buffer overflow error (TX_OVER_F), receiver retry over limit error (RX_OVER_ERETRY) and transmitter retry over limit error (TX_OVER_ERETRY). |
AnnaBridge | 174:b96e65c34a4d | 8526 | * | | |0 = INT_TERR Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8527 | * | | |1 = INT_TERR Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8528 | * |[3] |TMR0_IE |Timer0 Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8529 | * | | |This field is used for TMR0 interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8530 | * | | |0 = INT_TMR0 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8531 | * | | |1 = INT_TMR0 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8532 | * |[4] |TMR1_IE |Timer1 Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8533 | * | | |This field is used for TMR1 interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8534 | * | | |0 = INT_TMR1 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8535 | * | | |1 = INT_TMR1 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8536 | * |[5] |TMR2_IE |Timer2 Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8537 | * | | |This field is used for TMR2 interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8538 | * | | |0 = INT_TMR2 Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8539 | * | | |1 = INT_TMR2 Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8540 | * |[6] |BGT_IE |Block Guard Time Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8541 | * | | |This field is used for block guard time interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8542 | * | | |0 = INT_BGT Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8543 | * | | |1 = INT_BGT Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8544 | * |[7] |CD_IE |Card Detect Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8545 | * | | |This field is used for card detect interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8546 | * | | |The card detect status register is SC_PINCSR [CD_CH] and SC_PINCSR[CD_CL]. |
AnnaBridge | 174:b96e65c34a4d | 8547 | * | | |0 = INT_CD Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8548 | * | | |1 = INT_CD Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8549 | * |[8] |INIT_IE |Initial End Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8550 | * | | |This field is used for activation (SC_ALTCTL [ACT_EN]), deactivation (SC_ALTCTL [DACT_EN]) and warm reset (SC_ALTCTL [WARST_EN]) sequence interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8551 | * | | |0 = INT_INIT Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8552 | * | | |1 = INT_INIT Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8553 | * |[9] |RTMR_IE |Receiver Buffer Time-Out Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8554 | * | | |This field is used for receiver buffer time-out interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8555 | * | | |0 = INT_RTMR Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8556 | * | | |1 = INT_RTMR Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8557 | * |[10] |ACON_ERR_IE|Auto Convention Error Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 8558 | * | | |This field is used for auto convention error interrupt enable. |
AnnaBridge | 174:b96e65c34a4d | 8559 | * | | |0 = INT_ACON_ERR Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8560 | * | | |1 = INT_ACON_ERR Enabled. |
AnnaBridge | 174:b96e65c34a4d | 8561 | */ |
AnnaBridge | 174:b96e65c34a4d | 8562 | __IO uint32_t IER; |
AnnaBridge | 174:b96e65c34a4d | 8563 | |
AnnaBridge | 174:b96e65c34a4d | 8564 | /** |
AnnaBridge | 174:b96e65c34a4d | 8565 | * ISR |
AnnaBridge | 174:b96e65c34a4d | 8566 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8567 | * Offset: 0x1C SC Interrupt Status Register. |
AnnaBridge | 174:b96e65c34a4d | 8568 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8569 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8570 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8571 | * |[0] |RDA_IS |Receive Data Reach Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8572 | * | | |This field is used for received data reaching trigger level (SC_CTL [RX_FTRI_LEV]) interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8573 | * | | |Note: This field is the status flag of received data reaching SC_CTL [RX_FTRI_LEV]. |
AnnaBridge | 174:b96e65c34a4d | 8574 | * | | |If software reads data from SC_RBR and receiver pointer is less than SC_CTL [RX_FTRI_LEV], this bit will be cleared automatically. |
AnnaBridge | 174:b96e65c34a4d | 8575 | * |[1] |TBE_IS |Transmit Buffer Empty Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8576 | * | | |This field is used for transmit buffer empty interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8577 | * | | |This bit is different with SC_TRSR [TX_EMPTY_F] flag and SC_TRSR [TX_ATV] flag; The TX_EMPTY_F will be set when the last byte data be read to shift register and TX_ATV flag indicates the transmitter is in active or not (the last data has been transmitted or not), but the TBE_IS may be set when the last byte data be read to shift register or the last data has been transmitted. |
AnnaBridge | 174:b96e65c34a4d | 8578 | * | | |When this bit assert, software can write 1~4 byte data to SC_THR register. |
AnnaBridge | 174:b96e65c34a4d | 8579 | * | | |Note: If software wants to clear this bit, software must write data to SC_THR register and then this bit will be cleared automatically. |
AnnaBridge | 174:b96e65c34a4d | 8580 | * |[2] |TERR_IS |Transfer Error Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8581 | * | | |This field is used for transfer error interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8582 | * | | |The transfer error states is at SC_TRSR register which includes receiver break error (RX_EBR_F), frame error (RX_EFR_F), parity error (RX_EPA_F) and receiver buffer overflow error (RX_OVER_F), transmit buffer overflow error (TX_OVER_F), receiver retry over limit error (RX_OVER_ERETRY) and transmitter retry over limit error (TX_OVER_ERETRY). |
AnnaBridge | 174:b96e65c34a4d | 8583 | * | | |Note: This field is the status flag of SC_TRSR [RX_EBR_F], SC_TRSR [RX_EFR_F], SC_TRSR [RX_EPA_F], SC_TRSR [RX_OVER_F], SC_TRSR [TX_OVER_F], SC_TRSR [RX_OVER_ERETRY] or SC_TRSR [TX_OVER_ERETRY]. |
AnnaBridge | 174:b96e65c34a4d | 8584 | * | | |So if software wants to clear this bit, software must write "1" to each field. |
AnnaBridge | 174:b96e65c34a4d | 8585 | * |[3] |TMR0_IS |Timer0 Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8586 | * | | |This field is used for TMR0 interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8587 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8588 | * |[4] |TMR1_IS |Timer1 Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8589 | * | | |This field is used for TMR1 interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8590 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8591 | * |[5] |TMR2_IS |Timer2 Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8592 | * | | |This field is used for TMR2 interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8593 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8594 | * |[6] |BGT_IS |Block Guard Time Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8595 | * | | |This field is used for block guard time interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8596 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8597 | * |[7] |CD_IS |Card Detect Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8598 | * | | |This field is used for card detect interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8599 | * | | |The card detect status register is SC_PINCSR [CD_INS_F] and SC_PINCSR [CD_REM_F]. |
AnnaBridge | 174:b96e65c34a4d | 8600 | * | | |Note: This field is the status flag of SC_PINCSR [CD_INS_F] or SC_PINCSR [CD_REM_F]. |
AnnaBridge | 174:b96e65c34a4d | 8601 | * | | |So if software wants to clear this bit, software must write "1" to this field. |
AnnaBridge | 174:b96e65c34a4d | 8602 | * |[8] |INIT_IS |Initial End Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8603 | * | | |This field is used for activation (SC_ALTCTL [ACT_EN]), deactivation (SC_ALTCTL [DACT_EN]) and warm reset (SC_ALTCTL [WARST_EN]) sequence interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8604 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8605 | * |[9] |RTMR_IS |Receiver Buffer Time-Out Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8606 | * | | |This field is used for receiver buffer time-out interrupt status flag. |
AnnaBridge | 174:b96e65c34a4d | 8607 | * | | |Note: This field is the status flag of receiver buffer time-out state. |
AnnaBridge | 174:b96e65c34a4d | 8608 | * | | |If software wants to clear this bit, software must read the receiver buffer remaining data by reading SC_RBR register,. |
AnnaBridge | 174:b96e65c34a4d | 8609 | * |[10] |ACON_ERR_IS|Auto Convention Error Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8610 | * | | |This field indicates auto convention sequence error. |
AnnaBridge | 174:b96e65c34a4d | 8611 | * | | |If the received TS at ATR state is not 0x3B or 0x3F, this bit will be set. |
AnnaBridge | 174:b96e65c34a4d | 8612 | * | | |Note: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8613 | */ |
AnnaBridge | 174:b96e65c34a4d | 8614 | __IO uint32_t ISR; |
AnnaBridge | 174:b96e65c34a4d | 8615 | |
AnnaBridge | 174:b96e65c34a4d | 8616 | /** |
AnnaBridge | 174:b96e65c34a4d | 8617 | * TRSR |
AnnaBridge | 174:b96e65c34a4d | 8618 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8619 | * Offset: 0x20 SC Transfer Status Register. |
AnnaBridge | 174:b96e65c34a4d | 8620 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8621 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8622 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8623 | * |[0] |RX_OVER_F |RX Overflow Error Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8624 | * | | |This bit is set when RX buffer overflow. |
AnnaBridge | 174:b96e65c34a4d | 8625 | * | | |If the number of received bytes is greater than RX Buffer (SC_RBR) size, 4 bytes of SC, this bit will be set. |
AnnaBridge | 174:b96e65c34a4d | 8626 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8627 | * | | |Note2: The overwrite data will be ignored. |
AnnaBridge | 174:b96e65c34a4d | 8628 | * |[1] |RX_EMPTY_F|Receiver Buffer Empty Status Flag(Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8629 | * | | |This bit indicates RX buffer empty or not. |
AnnaBridge | 174:b96e65c34a4d | 8630 | * | | |When the last byte of RX buffer has been read by CPU, hardware sets this bit high. |
AnnaBridge | 174:b96e65c34a4d | 8631 | * | | |It will be cleared when SC receives any new data. |
AnnaBridge | 174:b96e65c34a4d | 8632 | * |[2] |RX_FULL_F |Receiver Buffer Full Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8633 | * | | |This bit indicates RX buffer full or not. |
AnnaBridge | 174:b96e65c34a4d | 8634 | * | | |This bit is set when RX pointer is equal to 4, otherwise it is cleared by hardware. |
AnnaBridge | 174:b96e65c34a4d | 8635 | * |[4] |RX_EPA_F |Receiver Parity Error Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8636 | * | | |This bit is set to logic "1" whenever the received character does not have a valid "parity bit". |
AnnaBridge | 174:b96e65c34a4d | 8637 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8638 | * | | |Note2: If CPU sets receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, hardware will not set this flag. |
AnnaBridge | 174:b96e65c34a4d | 8639 | * |[5] |RX_EFR_F |Receiver Frame Error Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8640 | * | | |This bit is set to logic "1" whenever the received character does not have a valid "stop bit" (that is, the stop bit following the last data bit or parity bit is detected as a logic "0"). |
AnnaBridge | 174:b96e65c34a4d | 8641 | * | | |Note1: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8642 | * | | |Note2: If CPI sets receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, hardware will not set this flag. |
AnnaBridge | 174:b96e65c34a4d | 8643 | * |[6] |RX_EBR_F |Receiver Break Error Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8644 | * | | |This bit is set to a logic "1" whenever the received data input (RX) held in the "spacing state" (logic "0") is longer than a full word transmission time (that is, the total time of "start bit" + data bits + parity + stop bits). |
AnnaBridge | 174:b96e65c34a4d | 8645 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8646 | * | | |Note2: If CPU sets receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, hardware will not set this flag. |
AnnaBridge | 174:b96e65c34a4d | 8647 | * |[8] |TX_OVER_F |TX Overflow Error Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8648 | * | | |If TX buffer is full (TX_FULL_F = "1"), an additional write data to SC_THR will cause this bit to logic "1". |
AnnaBridge | 174:b96e65c34a4d | 8649 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8650 | * | | |Note2: The additional write data will be ignored. |
AnnaBridge | 174:b96e65c34a4d | 8651 | * |[9] |TX_EMPTY_F|Transmit Buffer Empty Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8652 | * | | |This bit indicates TX buffer empty or not. |
AnnaBridge | 174:b96e65c34a4d | 8653 | * | | |When the last byte of TX buffer has been transferred to Transmitter Shift Register, hardware sets this bit high. |
AnnaBridge | 174:b96e65c34a4d | 8654 | * | | |It will be cleared when writing data into SC_THR (TX buffer not empty). |
AnnaBridge | 174:b96e65c34a4d | 8655 | * |[10] |TX_FULL_F |Transmit Buffer Full Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8656 | * | | |This bit indicates TX buffer full or not. |
AnnaBridge | 174:b96e65c34a4d | 8657 | * | | |This bit is set when TX pointer is equal to 4, otherwise is cleared by hardware. |
AnnaBridge | 174:b96e65c34a4d | 8658 | * |[18:16] |RX_POINT_F|Receiver Buffer Pointer Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8659 | * | | |This field indicates the RX buffer pointer status flag. |
AnnaBridge | 174:b96e65c34a4d | 8660 | * | | |When SC receives one byte from external device, RX_POINT_F increases one. |
AnnaBridge | 174:b96e65c34a4d | 8661 | * | | |When one byte of RX buffer is read by CPU, RX_POINT_F decreases one. |
AnnaBridge | 174:b96e65c34a4d | 8662 | * |[21] |RX_REERR |Receiver Retry Error (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8663 | * | | |This bit is set by hardware when RX has any error and retries transfer. |
AnnaBridge | 174:b96e65c34a4d | 8664 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8665 | * | | |Note2 This bit is a flag and can not generate any interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 8666 | * | | |Note3: If CPU enables receiver retry function by setting SC_CTL [RX_ERETRY_EN] register, the RX_EPA_F flag will be ignored (hardware will not set RX_EPA_F). |
AnnaBridge | 174:b96e65c34a4d | 8667 | * |[22] |RX_OVER_ERETRY|Receiver Over Retry Error (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8668 | * | | |This bit is set by hardware when RX transfer error retry over retry number limit. |
AnnaBridge | 174:b96e65c34a4d | 8669 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8670 | * | | |Note2: If CPU enables receiver retries function by setting SC_CTL [RX_ERETRY_EN] register, the RX_EPA_F flag will be ignored (hardware will not set RX_EPA_F). |
AnnaBridge | 174:b96e65c34a4d | 8671 | * |[23] |RX_ATV |Receiver In Active Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8672 | * | | |This bit is set by hardware when RX transfer is in active. |
AnnaBridge | 174:b96e65c34a4d | 8673 | * | | |This bit is cleared automatically when RX transfer is finished. |
AnnaBridge | 174:b96e65c34a4d | 8674 | * |[26:24] |TX_POINT_F|Transmit Buffer Pointer Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8675 | * | | |This field indicates the TX buffer pointer status flag. |
AnnaBridge | 174:b96e65c34a4d | 8676 | * | | |When CPU writes data into SC_THR, TX_POINT_F increases one. |
AnnaBridge | 174:b96e65c34a4d | 8677 | * | | |When one byte of TX Buffer is transferred to transmitter shift register, TX_POINT_F decreases one. |
AnnaBridge | 174:b96e65c34a4d | 8678 | * |[29] |TX_REERR |Transmitter Retry Error (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8679 | * | | |This bit is set by hardware when transmitter re-transmits. |
AnnaBridge | 174:b96e65c34a4d | 8680 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8681 | * | | |Note2 This bit is a flag and can not generate any interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 8682 | * |[30] |TX_OVER_ERETRY|Transmitter Over Retry Error (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8683 | * | | |This bit is set by hardware when transmitter re-transmits over retry number limitation. |
AnnaBridge | 174:b96e65c34a4d | 8684 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8685 | * |[31] |TX_ATV |Transmit In Active Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8686 | * | | |This bit is set by hardware when TX transfer is in active or the last byte transmission has not completed. |
AnnaBridge | 174:b96e65c34a4d | 8687 | * | | |This bit is cleared automatically when TX transfer is finished and the STOP bit (include guard time) has been transmitted. |
AnnaBridge | 174:b96e65c34a4d | 8688 | */ |
AnnaBridge | 174:b96e65c34a4d | 8689 | __IO uint32_t TRSR; |
AnnaBridge | 174:b96e65c34a4d | 8690 | |
AnnaBridge | 174:b96e65c34a4d | 8691 | /** |
AnnaBridge | 174:b96e65c34a4d | 8692 | * PINCSR |
AnnaBridge | 174:b96e65c34a4d | 8693 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8694 | * Offset: 0x24 SC Pin Control State Register. |
AnnaBridge | 174:b96e65c34a4d | 8695 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8696 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8697 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8698 | * |[0] |POW_EN |SC_POW_EN Pin Signal |
AnnaBridge | 174:b96e65c34a4d | 8699 | * | | |This bit is the pin status of SC_POW_EN but user can drive SC_POW_EN pin to high or low by setting this bit. |
AnnaBridge | 174:b96e65c34a4d | 8700 | * | | |0 = Drive SC_POW_EN pin to low. |
AnnaBridge | 174:b96e65c34a4d | 8701 | * | | |1 = Drive SC_POW_EN pin to high. |
AnnaBridge | 174:b96e65c34a4d | 8702 | * | | |Note: When operation at activation, warm reset or deactivation mode, this bit will be changed automatically. |
AnnaBridge | 174:b96e65c34a4d | 8703 | * | | |So don't fill this field When operating in these modes. |
AnnaBridge | 174:b96e65c34a4d | 8704 | * |[1] |SC_RST |SC_RST Pin Signal |
AnnaBridge | 174:b96e65c34a4d | 8705 | * | | |This bit is the pin status of SC_RST but user can drive SC_RST pin to high or low by setting this bit. |
AnnaBridge | 174:b96e65c34a4d | 8706 | * | | |0 = Drive SC_RST pin to low. |
AnnaBridge | 174:b96e65c34a4d | 8707 | * | | |1 = Drive SC_RST pin to high. |
AnnaBridge | 174:b96e65c34a4d | 8708 | * | | |Note: When operation at activation, warm reset or deactivation mode, this bit will be changed automatically. |
AnnaBridge | 174:b96e65c34a4d | 8709 | * | | |So don't fill this field When operating in these modes. |
AnnaBridge | 174:b96e65c34a4d | 8710 | * |[2] |CD_REM_F |Card Detect Removal Status Of SC_CD Pin (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8711 | * | | |This bit is set whenever card has been removal. |
AnnaBridge | 174:b96e65c34a4d | 8712 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 8713 | * | | |1 = Card Removal. |
AnnaBridge | 174:b96e65c34a4d | 8714 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8715 | * | | |Note2: Card detect engine will start after SC_CTL [SC_CEN] set. |
AnnaBridge | 174:b96e65c34a4d | 8716 | * |[3] |CD_INS_F |Card Detect Insert Status Of SC_CD Pin (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8717 | * | | |This bit is set whenever card has been inserted. |
AnnaBridge | 174:b96e65c34a4d | 8718 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 8719 | * | | |1 = Card insert. |
AnnaBridge | 174:b96e65c34a4d | 8720 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 8721 | * | | |Note2: Card detect engine will start after SC_CTL [SC_CEN] set. |
AnnaBridge | 174:b96e65c34a4d | 8722 | * |[4] |CD_PIN_ST |Card Detect Status Of SC_CD Pin Status (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8723 | * | | |This bit is the pin status flag of SC_CD |
AnnaBridge | 174:b96e65c34a4d | 8724 | * | | |0 = SC_CD pin state at low. |
AnnaBridge | 174:b96e65c34a4d | 8725 | * | | |1 = SC_CD pin state at high. |
AnnaBridge | 174:b96e65c34a4d | 8726 | * |[6] |CLK_KEEP |SC Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 8727 | * | | |0 = SC clock generation Disabled. |
AnnaBridge | 174:b96e65c34a4d | 8728 | * | | |1 = SC clock always keeps free running. |
AnnaBridge | 174:b96e65c34a4d | 8729 | * | | |Note: When operation at activation, warm reset or deactivation mode, this bit will be changed automatically. |
AnnaBridge | 174:b96e65c34a4d | 8730 | * | | |So don't fill this field when operation in these modes. |
AnnaBridge | 174:b96e65c34a4d | 8731 | * |[7] |ADAC_CD_EN|Auto Deactivation When Card Removal |
AnnaBridge | 174:b96e65c34a4d | 8732 | * | | |0 = Auto deactivation Disabled when hardware detected the card is removal. |
AnnaBridge | 174:b96e65c34a4d | 8733 | * | | |1 = Auto deactivation Enabled when hardware detected the card is removal. |
AnnaBridge | 174:b96e65c34a4d | 8734 | * | | |Note1: When the card is removal, hardware will stop any process and then do deactivation sequence (if this bit be setting). |
AnnaBridge | 174:b96e65c34a4d | 8735 | * | | |If this process completes. |
AnnaBridge | 174:b96e65c34a4d | 8736 | * | | |Hardware will generate an interrupt INT_INIT to CPU. |
AnnaBridge | 174:b96e65c34a4d | 8737 | * |[8] |SC_OEN_ST |SC Data Pin Output Enable Status (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8738 | * | | |0 = SC data output enable pin status is at low. |
AnnaBridge | 174:b96e65c34a4d | 8739 | * | | |1 = SC data output enable pin status is at high. |
AnnaBridge | 174:b96e65c34a4d | 8740 | * |[9] |SC_DATA_O |Output Of SC Data Pin |
AnnaBridge | 174:b96e65c34a4d | 8741 | * | | |This bit is the pin status of SC data output but user can drive this pin to high or low by setting this bit. |
AnnaBridge | 174:b96e65c34a4d | 8742 | * | | |0 = Drive SC data output pin to low. |
AnnaBridge | 174:b96e65c34a4d | 8743 | * | | |1 = Drive SC data output pin to high. |
AnnaBridge | 174:b96e65c34a4d | 8744 | * | | |Note: When SC is at activation, warm re set or deactivation mode, this bit will be changed automatically. |
AnnaBridge | 174:b96e65c34a4d | 8745 | * | | |So don't fill this field when SC is in these modes. |
AnnaBridge | 174:b96e65c34a4d | 8746 | * |[10] |CD_LEV |Card Detect Level |
AnnaBridge | 174:b96e65c34a4d | 8747 | * | | |0 = When hardware detects the card detect pin from high to low, it indicates a card is detected. |
AnnaBridge | 174:b96e65c34a4d | 8748 | * | | |1 = When hardware detects the card detect pin from low to high, it indicates a card is detected. |
AnnaBridge | 174:b96e65c34a4d | 8749 | * | | |Note: Software must select card detect level before Smart Card engine enable |
AnnaBridge | 174:b96e65c34a4d | 8750 | * |[11] |POW_INV |SC_POW Pin Inverse |
AnnaBridge | 174:b96e65c34a4d | 8751 | * | | |This bit is used for inverse the SC_POW pin. |
AnnaBridge | 174:b96e65c34a4d | 8752 | * | | |There are four kinds of combination for SC_POW pin setting by POW_INV and |
AnnaBridge | 174:b96e65c34a4d | 8753 | * | | |POW_EN(SC_PINCSR[0]). POW_INV is bit 1 and POW_EN is bit 0 for SC_POW_Pin as |
AnnaBridge | 174:b96e65c34a4d | 8754 | * | | |high or low voltage selection. |
AnnaBridge | 174:b96e65c34a4d | 8755 | * | | |POW_INV is 0 and POW_EN is 0, than SC_POW Pin output 0. |
AnnaBridge | 174:b96e65c34a4d | 8756 | * | | |POW_INV is 0 and POW_EN is 1, than SC_POW Pin output 1. |
AnnaBridge | 174:b96e65c34a4d | 8757 | * | | |POW_INV is 1 and POW_EN is 0, than SC_POW Pin output 1. |
AnnaBridge | 174:b96e65c34a4d | 8758 | * | | |POW_INV is 1 and POW_EN is 1, than SC_POW Pin output 0. |
AnnaBridge | 174:b96e65c34a4d | 8759 | * | | |Note: Software must select POW_INV before Smart Card is enabled by SC_CEN (SC_CTL[0]) |
AnnaBridge | 174:b96e65c34a4d | 8760 | * |[16] |SC_DATA_I_ST|SC Data Input Pin Status (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8761 | * | | |This bit is the pin status of SC_DATA_I |
AnnaBridge | 174:b96e65c34a4d | 8762 | * | | |0 = The SC_DATA_I pin is low. |
AnnaBridge | 174:b96e65c34a4d | 8763 | * | | |1 = The SC_DATA_I pin is high. |
AnnaBridge | 174:b96e65c34a4d | 8764 | */ |
AnnaBridge | 174:b96e65c34a4d | 8765 | __IO uint32_t PINCSR; |
AnnaBridge | 174:b96e65c34a4d | 8766 | |
AnnaBridge | 174:b96e65c34a4d | 8767 | /** |
AnnaBridge | 174:b96e65c34a4d | 8768 | * TMR0 |
AnnaBridge | 174:b96e65c34a4d | 8769 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8770 | * Offset: 0x28 SC Internal Timer Control Register 0. |
AnnaBridge | 174:b96e65c34a4d | 8771 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8772 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8773 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8774 | * |[23:0] |CNT |Timer 0 Counter Value Register (ETU Base) |
AnnaBridge | 174:b96e65c34a4d | 8775 | * | | |This field indicates the internal timer operation values. |
AnnaBridge | 174:b96e65c34a4d | 8776 | * |[27:24] |MODE |Timer 0 Operation Mode Selection |
AnnaBridge | 174:b96e65c34a4d | 8777 | * | | |This field indicates the internal 24 bit timer operation selection. |
AnnaBridge | 174:b96e65c34a4d | 8778 | */ |
AnnaBridge | 174:b96e65c34a4d | 8779 | __IO uint32_t TMR0; |
AnnaBridge | 174:b96e65c34a4d | 8780 | |
AnnaBridge | 174:b96e65c34a4d | 8781 | /** |
AnnaBridge | 174:b96e65c34a4d | 8782 | * TMR1 |
AnnaBridge | 174:b96e65c34a4d | 8783 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8784 | * Offset: 0x2C SC Internal Timer Control Register 1. |
AnnaBridge | 174:b96e65c34a4d | 8785 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8786 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8787 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8788 | * |[7:0] |CNT |Timer 1 Counter Value Register (ETU Base) |
AnnaBridge | 174:b96e65c34a4d | 8789 | * | | |This field indicates the internal timer operation values. |
AnnaBridge | 174:b96e65c34a4d | 8790 | * |[27:24] |MODE |Timer 1 Operation Mode Selection |
AnnaBridge | 174:b96e65c34a4d | 8791 | * | | |This field indicates the internal 8 bit timer operation selection. |
AnnaBridge | 174:b96e65c34a4d | 8792 | */ |
AnnaBridge | 174:b96e65c34a4d | 8793 | __IO uint32_t TMR1; |
AnnaBridge | 174:b96e65c34a4d | 8794 | |
AnnaBridge | 174:b96e65c34a4d | 8795 | /** |
AnnaBridge | 174:b96e65c34a4d | 8796 | * TMR2 |
AnnaBridge | 174:b96e65c34a4d | 8797 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8798 | * Offset: 0x30 SC Internal Timer Control Register 2. |
AnnaBridge | 174:b96e65c34a4d | 8799 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8800 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8801 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8802 | * |[7:0] |CNT |Timer 2 Counter Value Register (ETU Base) |
AnnaBridge | 174:b96e65c34a4d | 8803 | * | | |This field indicates the internal timer operation values. |
AnnaBridge | 174:b96e65c34a4d | 8804 | * |[27:24] |MODE |Timer 2 Operation Mode Selection |
AnnaBridge | 174:b96e65c34a4d | 8805 | * | | |This field indicates the internal 8 bit timer operation selection. |
AnnaBridge | 174:b96e65c34a4d | 8806 | */ |
AnnaBridge | 174:b96e65c34a4d | 8807 | __IO uint32_t TMR2; |
AnnaBridge | 174:b96e65c34a4d | 8808 | |
AnnaBridge | 174:b96e65c34a4d | 8809 | /** |
AnnaBridge | 174:b96e65c34a4d | 8810 | * UACTL |
AnnaBridge | 174:b96e65c34a4d | 8811 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8812 | * Offset: 0x34 SC UART Mode Control Register. |
AnnaBridge | 174:b96e65c34a4d | 8813 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8814 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8815 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8816 | * |[0] |UA_MODE_EN|UART Mode Enable |
AnnaBridge | 174:b96e65c34a4d | 8817 | * | | |0 = Smart Card mode. |
AnnaBridge | 174:b96e65c34a4d | 8818 | * | | |1 = UART mode. |
AnnaBridge | 174:b96e65c34a4d | 8819 | * | | |Note1: When operating in UART mode, user must set SCx_CTL [CON_SEL] and SCx_CTL [AUTO_CON_EN] to "0". |
AnnaBridge | 174:b96e65c34a4d | 8820 | * | | |Note2: When operating in smart card mode, user must set SCx_UACTL [7:0] register to "0". |
AnnaBridge | 174:b96e65c34a4d | 8821 | * | | |Note3: When UART is enabled, hardware will generate a reset to reset internal buffer and internal state machine. |
AnnaBridge | 174:b96e65c34a4d | 8822 | * |[5:4] |DATA_LEN |Data Length |
AnnaBridge | 174:b96e65c34a4d | 8823 | * | | |00 = 8 bits |
AnnaBridge | 174:b96e65c34a4d | 8824 | * | | |01 = 7 bits |
AnnaBridge | 174:b96e65c34a4d | 8825 | * | | |10 = 6 bits |
AnnaBridge | 174:b96e65c34a4d | 8826 | * | | |11 = 5 bits |
AnnaBridge | 174:b96e65c34a4d | 8827 | * | | |Note: In Smart Card mode, this field must be '00' |
AnnaBridge | 174:b96e65c34a4d | 8828 | * |[6] |PBDIS |Parity Bit Disable |
AnnaBridge | 174:b96e65c34a4d | 8829 | * | | |0 = Parity bit is generated or checked between the "last data word bit" and "stop bit" of the serial data. |
AnnaBridge | 174:b96e65c34a4d | 8830 | * | | |1 = Parity bit is not generated (transmitting data) or checked (receiving data) during transfer. |
AnnaBridge | 174:b96e65c34a4d | 8831 | * | | |Note: In Smart Card mode, this field must be '0' (default setting is with parity bit) |
AnnaBridge | 174:b96e65c34a4d | 8832 | * |[7] |OPE |Odd Parity Enable |
AnnaBridge | 174:b96e65c34a4d | 8833 | * | | |0 = Even number of logic 1's are transmitted or check the data word and parity bits in receiving mode. |
AnnaBridge | 174:b96e65c34a4d | 8834 | * | | |1 = Odd number of logic 1's are transmitted or check the data word and parity bits in receiving mode. |
AnnaBridge | 174:b96e65c34a4d | 8835 | * | | |Note: This bit has effect only when PBDIS bit is '0'. |
AnnaBridge | 174:b96e65c34a4d | 8836 | */ |
AnnaBridge | 174:b96e65c34a4d | 8837 | __IO uint32_t UACTL; |
AnnaBridge | 174:b96e65c34a4d | 8838 | |
AnnaBridge | 174:b96e65c34a4d | 8839 | /** |
AnnaBridge | 174:b96e65c34a4d | 8840 | * TDRA |
AnnaBridge | 174:b96e65c34a4d | 8841 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8842 | * Offset: 0x38 SC Timer Current Data Register A. |
AnnaBridge | 174:b96e65c34a4d | 8843 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8844 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8845 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8846 | * |[23:0] |TDR0 |Timer0 Current Data Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8847 | * | | |This field indicates the current count values of timer0. |
AnnaBridge | 174:b96e65c34a4d | 8848 | */ |
AnnaBridge | 174:b96e65c34a4d | 8849 | __I uint32_t TDRA; |
AnnaBridge | 174:b96e65c34a4d | 8850 | |
AnnaBridge | 174:b96e65c34a4d | 8851 | /** |
AnnaBridge | 174:b96e65c34a4d | 8852 | * TDRB |
AnnaBridge | 174:b96e65c34a4d | 8853 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 8854 | * Offset: 0x3C SC Timer Current Data Register B. |
AnnaBridge | 174:b96e65c34a4d | 8855 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 8856 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 8857 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 8858 | * |[7:0] |TDR1 |Timer1 Current Data Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8859 | * | | |This field indicates the current count values of timer1. |
AnnaBridge | 174:b96e65c34a4d | 8860 | * |[15:8] |TDR2 |Timer2 Current Data Register (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 8861 | * | | |This field indicates the current count values of timer2. |
AnnaBridge | 174:b96e65c34a4d | 8862 | */ |
AnnaBridge | 174:b96e65c34a4d | 8863 | __I uint32_t TDRB; |
AnnaBridge | 174:b96e65c34a4d | 8864 | |
AnnaBridge | 174:b96e65c34a4d | 8865 | } SC_T; |
AnnaBridge | 174:b96e65c34a4d | 8866 | |
AnnaBridge | 174:b96e65c34a4d | 8867 | /** |
AnnaBridge | 174:b96e65c34a4d | 8868 | @addtogroup SC_CONST SC Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 8869 | Constant Definitions for SC Controller |
AnnaBridge | 174:b96e65c34a4d | 8870 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 8871 | |
AnnaBridge | 174:b96e65c34a4d | 8872 | #define SC_DAT_DAT_Pos (0) /*!< SC_T::DAT: DAT Position */ |
AnnaBridge | 174:b96e65c34a4d | 8873 | #define SC_DAT_DAT_Msk (0xfful << SC_DAT_DAT_Pos) /*!< SC_T::DAT: DAT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8874 | |
AnnaBridge | 174:b96e65c34a4d | 8875 | #define SC_CTL_SC_CEN_Pos (0) /*!< SC_T::CTL: SC_CEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8876 | #define SC_CTL_SC_CEN_Msk (0x1ul << SC_CTL_SC_CEN_Pos) /*!< SC_T::CTL: SC_CEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8877 | |
AnnaBridge | 174:b96e65c34a4d | 8878 | #define SC_CTL_DIS_RX_Pos (1) /*!< SC_T::CTL: DIS_RX Position */ |
AnnaBridge | 174:b96e65c34a4d | 8879 | #define SC_CTL_DIS_RX_Msk (0x1ul << SC_CTL_DIS_RX_Pos) /*!< SC_T::CTL: DIS_RX Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8880 | |
AnnaBridge | 174:b96e65c34a4d | 8881 | #define SC_CTL_DIS_TX_Pos (2) /*!< SC_T::CTL: DIS_TX Position */ |
AnnaBridge | 174:b96e65c34a4d | 8882 | #define SC_CTL_DIS_TX_Msk (0x1ul << SC_CTL_DIS_TX_Pos) /*!< SC_T::CTL: DIS_TX Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8883 | |
AnnaBridge | 174:b96e65c34a4d | 8884 | #define SC_CTL_AUTO_CON_EN_Pos (3) /*!< SC_T::CTL: AUTO_CON_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8885 | #define SC_CTL_AUTO_CON_EN_Msk (0x1ul << SC_CTL_AUTO_CON_EN_Pos) /*!< SC_T::CTL: AUTO_CON_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8886 | |
AnnaBridge | 174:b96e65c34a4d | 8887 | #define SC_CTL_CON_SEL_Pos (4) /*!< SC_T::CTL: CON_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 8888 | #define SC_CTL_CON_SEL_Msk (0x3ul << SC_CTL_CON_SEL_Pos) /*!< SC_T::CTL: CON_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8889 | |
AnnaBridge | 174:b96e65c34a4d | 8890 | #define SC_CTL_RX_FTRI_LEV_Pos (6) /*!< SC_T::CTL: RX_FTRI_LEV Position */ |
AnnaBridge | 174:b96e65c34a4d | 8891 | #define SC_CTL_RX_FTRI_LEV_Msk (0x3ul << SC_CTL_RX_FTRI_LEV_Pos) /*!< SC_T::CTL: RX_FTRI_LEV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8892 | |
AnnaBridge | 174:b96e65c34a4d | 8893 | #define SC_CTL_BGT_Pos (8) /*!< SC_T::CTL: BGT Position */ |
AnnaBridge | 174:b96e65c34a4d | 8894 | #define SC_CTL_BGT_Msk (0x1ful << SC_CTL_BGT_Pos) /*!< SC_T::CTL: BGT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8895 | |
AnnaBridge | 174:b96e65c34a4d | 8896 | #define SC_CTL_TMR_SEL_Pos (13) /*!< SC_T::CTL: TMR_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 8897 | #define SC_CTL_TMR_SEL_Msk (0x3ul << SC_CTL_TMR_SEL_Pos) /*!< SC_T::CTL: TMR_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8898 | |
AnnaBridge | 174:b96e65c34a4d | 8899 | #define SC_CTL_SLEN_Pos (15) /*!< SC_T::CTL: SLEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8900 | #define SC_CTL_SLEN_Msk (0x1ul << SC_CTL_SLEN_Pos) /*!< SC_T::CTL: SLEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8901 | |
AnnaBridge | 174:b96e65c34a4d | 8902 | #define SC_CTL_RX_ERETRY_Pos (16) /*!< SC_T::CTL: RX_ERETRY Position */ |
AnnaBridge | 174:b96e65c34a4d | 8903 | #define SC_CTL_RX_ERETRY_Msk (0x7ul << SC_CTL_RX_ERETRY_Pos) /*!< SC_T::CTL: RX_ERETRY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8904 | |
AnnaBridge | 174:b96e65c34a4d | 8905 | #define SC_CTL_RX_ERETRY_EN_Pos (19) /*!< SC_T::CTL: RX_ERETRY_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8906 | #define SC_CTL_RX_ERETRY_EN_Msk (0x1ul << SC_CTL_RX_ERETRY_EN_Pos) /*!< SC_T::CTL: RX_ERETRY_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8907 | |
AnnaBridge | 174:b96e65c34a4d | 8908 | #define SC_CTL_TX_ERETRY_Pos (20) /*!< SC_T::CTL: TX_ERETRY Position */ |
AnnaBridge | 174:b96e65c34a4d | 8909 | #define SC_CTL_TX_ERETRY_Msk (0x7ul << SC_CTL_TX_ERETRY_Pos) /*!< SC_T::CTL: TX_ERETRY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8910 | |
AnnaBridge | 174:b96e65c34a4d | 8911 | #define SC_CTL_TX_ERETRY_EN_Pos (23) /*!< SC_T::CTL: TX_ERETRY_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8912 | #define SC_CTL_TX_ERETRY_EN_Msk (0x1ul << SC_CTL_TX_ERETRY_EN_Pos) /*!< SC_T::CTL: TX_ERETRY_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8913 | |
AnnaBridge | 174:b96e65c34a4d | 8914 | #define SC_CTL_CD_DEB_SEL_Pos (24) /*!< SC_T::CTL: CD_DEB_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 8915 | #define SC_CTL_CD_DEB_SEL_Msk (0x3ul << SC_CTL_CD_DEB_SEL_Pos) /*!< SC_T::CTL: CD_DEB_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8916 | |
AnnaBridge | 174:b96e65c34a4d | 8917 | #define SC_ALTCTL_TX_RST_Pos (0) /*!< SC_T::ALTCTL: TX_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 8918 | #define SC_ALTCTL_TX_RST_Msk (0x1ul << SC_ALTCTL_TX_RST_Pos) /*!< SC_T::ALTCTL: TX_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8919 | |
AnnaBridge | 174:b96e65c34a4d | 8920 | #define SC_ALTCTL_RX_RST_Pos (1) /*!< SC_T::ALTCTL: RX_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 8921 | #define SC_ALTCTL_RX_RST_Msk (0x1ul << SC_ALTCTL_RX_RST_Pos) /*!< SC_T::ALTCTL: RX_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8922 | |
AnnaBridge | 174:b96e65c34a4d | 8923 | #define SC_ALTCTL_DACT_EN_Pos (2) /*!< SC_T::ALTCTL: DACT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8924 | #define SC_ALTCTL_DACT_EN_Msk (0x1ul << SC_ALTCTL_DACT_EN_Pos) /*!< SC_T::ALTCTL: DACT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8925 | |
AnnaBridge | 174:b96e65c34a4d | 8926 | #define SC_ALTCTL_ACT_EN_Pos (3) /*!< SC_T::ALTCTL: ACT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8927 | #define SC_ALTCTL_ACT_EN_Msk (0x1ul << SC_ALTCTL_ACT_EN_Pos) /*!< SC_T::ALTCTL: ACT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8928 | |
AnnaBridge | 174:b96e65c34a4d | 8929 | #define SC_ALTCTL_WARST_EN_Pos (4) /*!< SC_T::ALTCTL: WARST_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8930 | #define SC_ALTCTL_WARST_EN_Msk (0x1ul << SC_ALTCTL_WARST_EN_Pos) /*!< SC_T::ALTCTL: WARST_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8931 | |
AnnaBridge | 174:b96e65c34a4d | 8932 | #define SC_ALTCTL_TMR0_SEN_Pos (5) /*!< SC_T::ALTCTL: TMR0_SEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8933 | #define SC_ALTCTL_TMR0_SEN_Msk (0x1ul << SC_ALTCTL_TMR0_SEN_Pos) /*!< SC_T::ALTCTL: TMR0_SEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8934 | |
AnnaBridge | 174:b96e65c34a4d | 8935 | #define SC_ALTCTL_TMR1_SEN_Pos (6) /*!< SC_T::ALTCTL: TMR1_SEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8936 | #define SC_ALTCTL_TMR1_SEN_Msk (0x1ul << SC_ALTCTL_TMR1_SEN_Pos) /*!< SC_T::ALTCTL: TMR1_SEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8937 | |
AnnaBridge | 174:b96e65c34a4d | 8938 | #define SC_ALTCTL_TMR2_SEN_Pos (7) /*!< SC_T::ALTCTL: TMR2_SEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8939 | #define SC_ALTCTL_TMR2_SEN_Msk (0x1ul << SC_ALTCTL_TMR2_SEN_Pos) /*!< SC_T::ALTCTL: TMR2_SEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8940 | |
AnnaBridge | 174:b96e65c34a4d | 8941 | #define SC_ALTCTL_INIT_SEL_Pos (8) /*!< SC_T::ALTCTL: INIT_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 8942 | #define SC_ALTCTL_INIT_SEL_Msk (0x3ul << SC_ALTCTL_INIT_SEL_Pos) /*!< SC_T::ALTCTL: INIT_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8943 | |
AnnaBridge | 174:b96e65c34a4d | 8944 | #define SC_ALTCTL_RX_BGT_EN_Pos (12) /*!< SC_T::ALTCTL: RX_BGT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8945 | #define SC_ALTCTL_RX_BGT_EN_Msk (0x1ul << SC_ALTCTL_RX_BGT_EN_Pos) /*!< SC_T::ALTCTL: RX_BGT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8946 | |
AnnaBridge | 174:b96e65c34a4d | 8947 | #define SC_ALTCTL_TMR0_ATV_Pos (13) /*!< SC_T::ALTCTL: TMR0_ATV Position */ |
AnnaBridge | 174:b96e65c34a4d | 8948 | #define SC_ALTCTL_TMR0_ATV_Msk (0x1ul << SC_ALTCTL_TMR0_ATV_Pos) /*!< SC_T::ALTCTL: TMR0_ATV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8949 | |
AnnaBridge | 174:b96e65c34a4d | 8950 | #define SC_ALTCTL_TMR1_ATV_Pos (14) /*!< SC_T::ALTCTL: TMR1_ATV Position */ |
AnnaBridge | 174:b96e65c34a4d | 8951 | #define SC_ALTCTL_TMR1_ATV_Msk (0x1ul << SC_ALTCTL_TMR1_ATV_Pos) /*!< SC_T::ALTCTL: TMR1_ATV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8952 | |
AnnaBridge | 174:b96e65c34a4d | 8953 | #define SC_ALTCTL_TMR2_ATV_Pos (15) /*!< SC_T::ALTCTL: TMR2_ATV Position */ |
AnnaBridge | 174:b96e65c34a4d | 8954 | #define SC_ALTCTL_TMR2_ATV_Msk (0x1ul << SC_ALTCTL_TMR2_ATV_Pos) /*!< SC_T::ALTCTL: TMR2_ATV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8955 | |
AnnaBridge | 174:b96e65c34a4d | 8956 | #define SC_EGTR_EGT_Pos (0) /*!< SC_T::EGTR: EGT Position */ |
AnnaBridge | 174:b96e65c34a4d | 8957 | #define SC_EGTR_EGT_Msk (0xfful << SC_EGTR_EGT_Pos) /*!< SC_T::EGTR: EGT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8958 | |
AnnaBridge | 174:b96e65c34a4d | 8959 | #define SC_RFTMR_RFTM_Pos (0) /*!< SC_T::RFTMR: RFTM Position */ |
AnnaBridge | 174:b96e65c34a4d | 8960 | #define SC_RFTMR_RFTM_Msk (0x1fful << SC_RFTMR_RFTM_Pos) /*!< SC_T::RFTMR: RFTM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8961 | |
AnnaBridge | 174:b96e65c34a4d | 8962 | #define SC_ETUCR_ETU_RDIV_Pos (0) /*!< SC_T::ETUCR: ETU_RDIV Position */ |
AnnaBridge | 174:b96e65c34a4d | 8963 | #define SC_ETUCR_ETU_RDIV_Msk (0xffful << SC_ETUCR_ETU_RDIV_Pos) /*!< SC_T::ETUCR: ETU_RDIV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8964 | |
AnnaBridge | 174:b96e65c34a4d | 8965 | #define SC_ETUCR_COMPEN_EN_Pos (15) /*!< SC_T::ETUCR: COMPEN_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 8966 | #define SC_ETUCR_COMPEN_EN_Msk (0x1ul << SC_ETUCR_COMPEN_EN_Pos) /*!< SC_T::ETUCR: COMPEN_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8967 | |
AnnaBridge | 174:b96e65c34a4d | 8968 | #define SC_IER_RDA_IE_Pos (0) /*!< SC_T::IER: RDA_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8969 | #define SC_IER_RDA_IE_Msk (0x1ul << SC_IER_RDA_IE_Pos) /*!< SC_T::IER: RDA_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8970 | |
AnnaBridge | 174:b96e65c34a4d | 8971 | #define SC_IER_TBE_IE_Pos (1) /*!< SC_T::IER: TBE_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8972 | #define SC_IER_TBE_IE_Msk (0x1ul << SC_IER_TBE_IE_Pos) /*!< SC_T::IER: TBE_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8973 | |
AnnaBridge | 174:b96e65c34a4d | 8974 | #define SC_IER_TERR_IE_Pos (2) /*!< SC_T::IER: TERR_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8975 | #define SC_IER_TERR_IE_Msk (0x1ul << SC_IER_TERR_IE_Pos) /*!< SC_T::IER: TERR_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8976 | |
AnnaBridge | 174:b96e65c34a4d | 8977 | #define SC_IER_TMR0_IE_Pos (3) /*!< SC_T::IER: TMR0_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8978 | #define SC_IER_TMR0_IE_Msk (0x1ul << SC_IER_TMR0_IE_Pos) /*!< SC_T::IER: TMR0_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8979 | |
AnnaBridge | 174:b96e65c34a4d | 8980 | #define SC_IER_TMR1_IE_Pos (4) /*!< SC_T::IER: TMR1_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8981 | #define SC_IER_TMR1_IE_Msk (0x1ul << SC_IER_TMR1_IE_Pos) /*!< SC_T::IER: TMR1_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8982 | |
AnnaBridge | 174:b96e65c34a4d | 8983 | #define SC_IER_TMR2_IE_Pos (5) /*!< SC_T::IER: TMR2_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8984 | #define SC_IER_TMR2_IE_Msk (0x1ul << SC_IER_TMR2_IE_Pos) /*!< SC_T::IER: TMR2_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8985 | |
AnnaBridge | 174:b96e65c34a4d | 8986 | #define SC_IER_BGT_IE_Pos (6) /*!< SC_T::IER: BGT_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8987 | #define SC_IER_BGT_IE_Msk (0x1ul << SC_IER_BGT_IE_Pos) /*!< SC_T::IER: BGT_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8988 | |
AnnaBridge | 174:b96e65c34a4d | 8989 | #define SC_IER_CD_IE_Pos (7) /*!< SC_T::IER: CD_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8990 | #define SC_IER_CD_IE_Msk (0x1ul << SC_IER_CD_IE_Pos) /*!< SC_T::IER: CD_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8991 | |
AnnaBridge | 174:b96e65c34a4d | 8992 | #define SC_IER_INIT_IE_Pos (8) /*!< SC_T::IER: INIT_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8993 | #define SC_IER_INIT_IE_Msk (0x1ul << SC_IER_INIT_IE_Pos) /*!< SC_T::IER: INIT_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8994 | |
AnnaBridge | 174:b96e65c34a4d | 8995 | #define SC_IER_RTMR_IE_Pos (9) /*!< SC_T::IER: RTMR_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8996 | #define SC_IER_RTMR_IE_Msk (0x1ul << SC_IER_RTMR_IE_Pos) /*!< SC_T::IER: RTMR_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 8997 | |
AnnaBridge | 174:b96e65c34a4d | 8998 | #define SC_IER_ACON_ERR_IE_Pos (10) /*!< SC_T::IER: ACON_ERR_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 8999 | #define SC_IER_ACON_ERR_IE_Msk (0x1ul << SC_IER_ACON_ERR_IE_Pos) /*!< SC_T::IER: ACON_ERR_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9000 | |
AnnaBridge | 174:b96e65c34a4d | 9001 | #define SC_ISR_RDA_IS_Pos (0) /*!< SC_T::ISR: RDA_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9002 | #define SC_ISR_RDA_IS_Msk (0x1ul << SC_ISR_RDA_IS_Pos) /*!< SC_T::ISR: RDA_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9003 | |
AnnaBridge | 174:b96e65c34a4d | 9004 | #define SC_ISR_TBE_IS_Pos (1) /*!< SC_T::ISR: TBE_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9005 | #define SC_ISR_TBE_IS_Msk (0x1ul << SC_ISR_TBE_IS_Pos) /*!< SC_T::ISR: TBE_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9006 | |
AnnaBridge | 174:b96e65c34a4d | 9007 | #define SC_ISR_TERR_IS_Pos (2) /*!< SC_T::ISR: TERR_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9008 | #define SC_ISR_TERR_IS_Msk (0x1ul << SC_ISR_TERR_IS_Pos) /*!< SC_T::ISR: TERR_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9009 | |
AnnaBridge | 174:b96e65c34a4d | 9010 | #define SC_ISR_TMR0_IS_Pos (3) /*!< SC_T::ISR: TMR0_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9011 | #define SC_ISR_TMR0_IS_Msk (0x1ul << SC_ISR_TMR0_IS_Pos) /*!< SC_T::ISR: TMR0_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9012 | |
AnnaBridge | 174:b96e65c34a4d | 9013 | #define SC_ISR_TMR1_IS_Pos (4) /*!< SC_T::ISR: TMR1_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9014 | #define SC_ISR_TMR1_IS_Msk (0x1ul << SC_ISR_TMR1_IS_Pos) /*!< SC_T::ISR: TMR1_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9015 | |
AnnaBridge | 174:b96e65c34a4d | 9016 | #define SC_ISR_TMR2_IS_Pos (5) /*!< SC_T::ISR: TMR2_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9017 | #define SC_ISR_TMR2_IS_Msk (0x1ul << SC_ISR_TMR2_IS_Pos) /*!< SC_T::ISR: TMR2_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9018 | |
AnnaBridge | 174:b96e65c34a4d | 9019 | #define SC_ISR_BGT_IS_Pos (6) /*!< SC_T::ISR: BGT_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9020 | #define SC_ISR_BGT_IS_Msk (0x1ul << SC_ISR_BGT_IS_Pos) /*!< SC_T::ISR: BGT_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9021 | |
AnnaBridge | 174:b96e65c34a4d | 9022 | #define SC_ISR_CD_IS_Pos (7) /*!< SC_T::ISR: CD_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9023 | #define SC_ISR_CD_IS_Msk (0x1ul << SC_ISR_CD_IS_Pos) /*!< SC_T::ISR: CD_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9024 | |
AnnaBridge | 174:b96e65c34a4d | 9025 | #define SC_ISR_INIT_IS_Pos (8) /*!< SC_T::ISR: INIT_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9026 | #define SC_ISR_INIT_IS_Msk (0x1ul << SC_ISR_INIT_IS_Pos) /*!< SC_T::ISR: INIT_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9027 | |
AnnaBridge | 174:b96e65c34a4d | 9028 | #define SC_ISR_RTMR_IS_Pos (9) /*!< SC_T::ISR: RTMR_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9029 | #define SC_ISR_RTMR_IS_Msk (0x1ul << SC_ISR_RTMR_IS_Pos) /*!< SC_T::ISR: RTMR_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9030 | |
AnnaBridge | 174:b96e65c34a4d | 9031 | #define SC_ISR_ACON_ERR_IS_Pos (10) /*!< SC_T::ISR: ACON_ERR_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9032 | #define SC_ISR_ACON_ERR_IS_Msk (0x1ul << SC_ISR_ACON_ERR_IS_Pos) /*!< SC_T::ISR: ACON_ERR_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9033 | |
AnnaBridge | 174:b96e65c34a4d | 9034 | #define SC_TRSR_RX_OVER_F_Pos (0) /*!< SC_T::TRSR: RX_OVER_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9035 | #define SC_TRSR_RX_OVER_F_Msk (0x1ul << SC_TRSR_RX_OVER_F_Pos) /*!< SC_T::TRSR: RX_OVER_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9036 | |
AnnaBridge | 174:b96e65c34a4d | 9037 | #define SC_TRSR_RX_EMPTY_F_Pos (1) /*!< SC_T::TRSR: RX_EMPTY_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9038 | #define SC_TRSR_RX_EMPTY_F_Msk (0x1ul << SC_TRSR_RX_EMPTY_F_Pos) /*!< SC_T::TRSR: RX_EMPTY_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9039 | |
AnnaBridge | 174:b96e65c34a4d | 9040 | #define SC_TRSR_RX_FULL_F_Pos (2) /*!< SC_T::TRSR: RX_FULL_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9041 | #define SC_TRSR_RX_FULL_F_Msk (0x1ul << SC_TRSR_RX_FULL_F_Pos) /*!< SC_T::TRSR: RX_FULL_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9042 | |
AnnaBridge | 174:b96e65c34a4d | 9043 | #define SC_TRSR_RX_EPA_F_Pos (4) /*!< SC_T::TRSR: RX_EPA_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9044 | #define SC_TRSR_RX_EPA_F_Msk (0x1ul << SC_TRSR_RX_EPA_F_Pos) /*!< SC_T::TRSR: RX_EPA_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9045 | |
AnnaBridge | 174:b96e65c34a4d | 9046 | #define SC_TRSR_RX_EFR_F_Pos (5) /*!< SC_T::TRSR: RX_EFR_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9047 | #define SC_TRSR_RX_EFR_F_Msk (0x1ul << SC_TRSR_RX_EFR_F_Pos) /*!< SC_T::TRSR: RX_EFR_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9048 | |
AnnaBridge | 174:b96e65c34a4d | 9049 | #define SC_TRSR_RX_EBR_F_Pos (6) /*!< SC_T::TRSR: RX_EBR_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9050 | #define SC_TRSR_RX_EBR_F_Msk (0x1ul << SC_TRSR_RX_EBR_F_Pos) /*!< SC_T::TRSR: RX_EBR_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9051 | |
AnnaBridge | 174:b96e65c34a4d | 9052 | #define SC_TRSR_TX_OVER_F_Pos (8) /*!< SC_T::TRSR: TX_OVER_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9053 | #define SC_TRSR_TX_OVER_F_Msk (0x1ul << SC_TRSR_TX_OVER_F_Pos) /*!< SC_T::TRSR: TX_OVER_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9054 | |
AnnaBridge | 174:b96e65c34a4d | 9055 | #define SC_TRSR_TX_EMPTY_F_Pos (9) /*!< SC_T::TRSR: TX_EMPTY_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9056 | #define SC_TRSR_TX_EMPTY_F_Msk (0x1ul << SC_TRSR_TX_EMPTY_F_Pos) /*!< SC_T::TRSR: TX_EMPTY_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9057 | |
AnnaBridge | 174:b96e65c34a4d | 9058 | #define SC_TRSR_TX_FULL_F_Pos (10) /*!< SC_T::TRSR: TX_FULL_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9059 | #define SC_TRSR_TX_FULL_F_Msk (0x1ul << SC_TRSR_TX_FULL_F_Pos) /*!< SC_T::TRSR: TX_FULL_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9060 | |
AnnaBridge | 174:b96e65c34a4d | 9061 | #define SC_TRSR_RX_POINT_F_Pos (16) /*!< SC_T::TRSR: RX_POINT_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9062 | #define SC_TRSR_RX_POINT_F_Msk (0x7ul << SC_TRSR_RX_POINT_F_Pos) /*!< SC_T::TRSR: RX_POINT_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9063 | |
AnnaBridge | 174:b96e65c34a4d | 9064 | #define SC_TRSR_RX_REERR_Pos (21) /*!< SC_T::TRSR: RX_REERR Position */ |
AnnaBridge | 174:b96e65c34a4d | 9065 | #define SC_TRSR_RX_REERR_Msk (0x1ul << SC_TRSR_RX_REERR_Pos) /*!< SC_T::TRSR: RX_REERR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9066 | |
AnnaBridge | 174:b96e65c34a4d | 9067 | #define SC_TRSR_RX_OVER_ERETRY_Pos (22) /*!< SC_T::TRSR: RX_OVER_ERETRY Position */ |
AnnaBridge | 174:b96e65c34a4d | 9068 | #define SC_TRSR_RX_OVER_ERETRY_Msk (0x1ul << SC_TRSR_RX_OVER_ERETRY_Pos) /*!< SC_T::TRSR: RX_OVER_ERETRY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9069 | |
AnnaBridge | 174:b96e65c34a4d | 9070 | #define SC_TRSR_RX_ATV_Pos (23) /*!< SC_T::TRSR: RX_ATV Position */ |
AnnaBridge | 174:b96e65c34a4d | 9071 | #define SC_TRSR_RX_ATV_Msk (0x1ul << SC_TRSR_RX_ATV_Pos) /*!< SC_T::TRSR: RX_ATV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9072 | |
AnnaBridge | 174:b96e65c34a4d | 9073 | #define SC_TRSR_TX_POINT_F_Pos (24) /*!< SC_T::TRSR: TX_POINT_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9074 | #define SC_TRSR_TX_POINT_F_Msk (0x7ul << SC_TRSR_TX_POINT_F_Pos) /*!< SC_T::TRSR: TX_POINT_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9075 | |
AnnaBridge | 174:b96e65c34a4d | 9076 | #define SC_TRSR_TX_REERR_Pos (29) /*!< SC_T::TRSR: TX_REERR Position */ |
AnnaBridge | 174:b96e65c34a4d | 9077 | #define SC_TRSR_TX_REERR_Msk (0x1ul << SC_TRSR_TX_REERR_Pos) /*!< SC_T::TRSR: TX_REERR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9078 | |
AnnaBridge | 174:b96e65c34a4d | 9079 | #define SC_TRSR_TX_OVER_ERETRY_Pos (30) /*!< SC_T::TRSR: TX_OVER_ERETRY Position */ |
AnnaBridge | 174:b96e65c34a4d | 9080 | #define SC_TRSR_TX_OVER_ERETRY_Msk (0x1ul << SC_TRSR_TX_OVER_ERETRY_Pos) /*!< SC_T::TRSR: TX_OVER_ERETRY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9081 | |
AnnaBridge | 174:b96e65c34a4d | 9082 | #define SC_TRSR_TX_ATV_Pos (31) /*!< SC_T::TRSR: TX_ATV Position */ |
AnnaBridge | 174:b96e65c34a4d | 9083 | #define SC_TRSR_TX_ATV_Msk (0x1ul << SC_TRSR_TX_ATV_Pos) /*!< SC_T::TRSR: TX_ATV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9084 | |
AnnaBridge | 174:b96e65c34a4d | 9085 | #define SC_PINCSR_POW_EN_Pos (0) /*!< SC_T::PINCSR: POW_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9086 | #define SC_PINCSR_POW_EN_Msk (0x1ul << SC_PINCSR_POW_EN_Pos) /*!< SC_T::PINCSR: POW_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9087 | |
AnnaBridge | 174:b96e65c34a4d | 9088 | #define SC_PINCSR_SC_RST_Pos (1) /*!< SC_T::PINCSR: SC_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 9089 | #define SC_PINCSR_SC_RST_Msk (0x1ul << SC_PINCSR_SC_RST_Pos) /*!< SC_T::PINCSR: SC_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9090 | |
AnnaBridge | 174:b96e65c34a4d | 9091 | #define SC_PINCSR_CD_REM_F_Pos (2) /*!< SC_T::PINCSR: CD_REM_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9092 | #define SC_PINCSR_CD_REM_F_Msk (0x1ul << SC_PINCSR_CD_REM_F_Pos) /*!< SC_T::PINCSR: CD_REM_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9093 | |
AnnaBridge | 174:b96e65c34a4d | 9094 | #define SC_PINCSR_CD_INS_F_Pos (3) /*!< SC_T::PINCSR: CD_INS_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 9095 | #define SC_PINCSR_CD_INS_F_Msk (0x1ul << SC_PINCSR_CD_INS_F_Pos) /*!< SC_T::PINCSR: CD_INS_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9096 | |
AnnaBridge | 174:b96e65c34a4d | 9097 | #define SC_PINCSR_CD_PIN_ST_Pos (4) /*!< SC_T::PINCSR: CD_PIN_ST Position */ |
AnnaBridge | 174:b96e65c34a4d | 9098 | #define SC_PINCSR_CD_PIN_ST_Msk (0x1ul << SC_PINCSR_CD_PIN_ST_Pos) /*!< SC_T::PINCSR: CD_PIN_ST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9099 | |
AnnaBridge | 174:b96e65c34a4d | 9100 | #define SC_PINCSR_CLK_KEEP_Pos (6) /*!< SC_T::PINCSR: CLK_KEEP Position */ |
AnnaBridge | 174:b96e65c34a4d | 9101 | #define SC_PINCSR_CLK_KEEP_Msk (0x1ul << SC_PINCSR_CLK_KEEP_Pos) /*!< SC_T::PINCSR: CLK_KEEP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9102 | |
AnnaBridge | 174:b96e65c34a4d | 9103 | #define SC_PINCSR_ADAC_CD_EN_Pos (7) /*!< SC_T::PINCSR: ADAC_CD_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9104 | #define SC_PINCSR_ADAC_CD_EN_Msk (0x1ul << SC_PINCSR_ADAC_CD_EN_Pos) /*!< SC_T::PINCSR: ADAC_CD_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9105 | |
AnnaBridge | 174:b96e65c34a4d | 9106 | #define SC_PINCSR_SC_OEN_ST_Pos (8) /*!< SC_T::PINCSR: SC_OEN_ST Position */ |
AnnaBridge | 174:b96e65c34a4d | 9107 | #define SC_PINCSR_SC_OEN_ST_Msk (0x1ul << SC_PINCSR_SC_OEN_ST_Pos) /*!< SC_T::PINCSR: SC_OEN_ST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9108 | |
AnnaBridge | 174:b96e65c34a4d | 9109 | #define SC_PINCSR_SC_DATA_O_Pos (9) /*!< SC_T::PINCSR: SC_DATA_O Position */ |
AnnaBridge | 174:b96e65c34a4d | 9110 | #define SC_PINCSR_SC_DATA_O_Msk (0x1ul << SC_PINCSR_SC_DATA_O_Pos) /*!< SC_T::PINCSR: SC_DATA_O Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9111 | |
AnnaBridge | 174:b96e65c34a4d | 9112 | #define SC_PINCSR_CD_LEV_Pos (10) /*!< SC_T::PINCSR: CD_LEV Position */ |
AnnaBridge | 174:b96e65c34a4d | 9113 | #define SC_PINCSR_CD_LEV_Msk (0x1ul << SC_PINCSR_CD_LEV_Pos) /*!< SC_T::PINCSR: CD_LEV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9114 | |
AnnaBridge | 174:b96e65c34a4d | 9115 | #define SC_PINCSR_POW_INV_Pos (11) /*!< SC_T::PINCSR: POW_INV Position */ |
AnnaBridge | 174:b96e65c34a4d | 9116 | #define SC_PINCSR_POW_INV_Msk (0x1ul << SC_PINCSR_POW_INV_Pos) /*!< SC_T::PINCSR: POW_INV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9117 | |
AnnaBridge | 174:b96e65c34a4d | 9118 | #define SC_PINCSR_SC_DATA_I_ST_Pos (16) /*!< SC_T::PINCSR: SC_DATA_I_ST Position */ |
AnnaBridge | 174:b96e65c34a4d | 9119 | #define SC_PINCSR_SC_DATA_I_ST_Msk (0x1ul << SC_PINCSR_SC_DATA_I_ST_Pos) /*!< SC_T::PINCSR: SC_DATA_I_ST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9120 | |
AnnaBridge | 174:b96e65c34a4d | 9121 | #define SC_TMR0_CNT_Pos (0) /*!< SC_T::TMR0: CNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 9122 | #define SC_TMR0_CNT_Msk (0xfffffful << SC_TMR0_CNT_Pos) /*!< SC_T::TMR0: CNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9123 | |
AnnaBridge | 174:b96e65c34a4d | 9124 | #define SC_TMR0_MODE_Pos (24) /*!< SC_T::TMR0: MODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 9125 | #define SC_TMR0_MODE_Msk (0xful << SC_TMR0_MODE_Pos) /*!< SC_T::TMR0: MODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9126 | |
AnnaBridge | 174:b96e65c34a4d | 9127 | #define SC_TMR1_CNT_Pos (0) /*!< SC_T::TMR1: CNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 9128 | #define SC_TMR1_CNT_Msk (0xfful << SC_TMR1_CNT_Pos) /*!< SC_T::TMR1: CNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9129 | |
AnnaBridge | 174:b96e65c34a4d | 9130 | #define SC_TMR1_MODE_Pos (24) /*!< SC_T::TMR1: MODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 9131 | #define SC_TMR1_MODE_Msk (0xful << SC_TMR1_MODE_Pos) /*!< SC_T::TMR1: MODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9132 | |
AnnaBridge | 174:b96e65c34a4d | 9133 | #define SC_TMR2_CNT_Pos (0) /*!< SC_T::TMR2: CNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 9134 | #define SC_TMR2_CNT_Msk (0xfful << SC_TMR2_CNT_Pos) /*!< SC_T::TMR2: CNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9135 | |
AnnaBridge | 174:b96e65c34a4d | 9136 | #define SC_TMR2_MODE_Pos (24) /*!< SC_T::TMR2: MODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 9137 | #define SC_TMR2_MODE_Msk (0xful << SC_TMR2_MODE_Pos) /*!< SC_T::TMR2: MODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9138 | |
AnnaBridge | 174:b96e65c34a4d | 9139 | #define SC_UACTL_UA_MODE_EN_Pos (0) /*!< SC_T::UACTL: UA_MODE_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9140 | #define SC_UACTL_UA_MODE_EN_Msk (0x1ul << SC_UACTL_UA_MODE_EN_Pos) /*!< SC_T::UACTL: UA_MODE_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9141 | |
AnnaBridge | 174:b96e65c34a4d | 9142 | #define SC_UACTL_DATA_LEN_Pos (4) /*!< SC_T::UACTL: DATA_LEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9143 | #define SC_UACTL_DATA_LEN_Msk (0x3ul << SC_UACTL_DATA_LEN_Pos) /*!< SC_T::UACTL: DATA_LEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9144 | |
AnnaBridge | 174:b96e65c34a4d | 9145 | #define SC_UACTL_PBDIS_Pos (6) /*!< SC_T::UACTL: PBDIS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9146 | #define SC_UACTL_PBDIS_Msk (0x1ul << SC_UACTL_PBDIS_Pos) /*!< SC_T::UACTL: PBDIS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9147 | |
AnnaBridge | 174:b96e65c34a4d | 9148 | #define SC_UACTL_OPE_Pos (7) /*!< SC_T::UACTL: OPE Position */ |
AnnaBridge | 174:b96e65c34a4d | 9149 | #define SC_UACTL_OPE_Msk (0x1ul << SC_UACTL_OPE_Pos) /*!< SC_T::UACTL: OPE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9150 | |
AnnaBridge | 174:b96e65c34a4d | 9151 | #define SC_TDRA_TDR0_Pos (0) /*!< SC_T::TDRA: TDR0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 9152 | #define SC_TDRA_TDR0_Msk (0xfffffful << SC_TDRA_TDR0_Pos) /*!< SC_T::TDRA: TDR0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9153 | |
AnnaBridge | 174:b96e65c34a4d | 9154 | #define SC_TDRB_TDR1_Pos (0) /*!< SC_T::TDRB: TDR1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 9155 | #define SC_TDRB_TDR1_Msk (0xfful << SC_TDRB_TDR1_Pos) /*!< SC_T::TDRB: TDR1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9156 | |
AnnaBridge | 174:b96e65c34a4d | 9157 | #define SC_TDRB_TDR2_Pos (8) /*!< SC_T::TDRB: TDR2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 9158 | #define SC_TDRB_TDR2_Msk (0xfful << SC_TDRB_TDR2_Pos) /*!< SC_T::TDRB: TDR2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9159 | |
AnnaBridge | 174:b96e65c34a4d | 9160 | /**@}*/ /* SC_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 9161 | /**@}*/ /* end of SC register group */ |
AnnaBridge | 174:b96e65c34a4d | 9162 | |
AnnaBridge | 174:b96e65c34a4d | 9163 | |
AnnaBridge | 174:b96e65c34a4d | 9164 | /*---------------------- Serial Peripheral Interface Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 9165 | /** |
AnnaBridge | 174:b96e65c34a4d | 9166 | @addtogroup SPI Serial Peripheral Interface Controller(SPI) |
AnnaBridge | 174:b96e65c34a4d | 9167 | Memory Mapped Structure for SPI Controller |
AnnaBridge | 174:b96e65c34a4d | 9168 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 9169 | |
AnnaBridge | 174:b96e65c34a4d | 9170 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 9171 | |
AnnaBridge | 174:b96e65c34a4d | 9172 | |
AnnaBridge | 174:b96e65c34a4d | 9173 | /** |
AnnaBridge | 174:b96e65c34a4d | 9174 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 9175 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9176 | * Offset: 0x00 SPI Control Register |
AnnaBridge | 174:b96e65c34a4d | 9177 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9178 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9179 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9180 | * |[0] |GO_BUSY |SPI Transfer Control Bit And Busy Status |
AnnaBridge | 174:b96e65c34a4d | 9181 | * | | |0 = Writing this bit "0" will stop data transfer if SPI is transferring. |
AnnaBridge | 174:b96e65c34a4d | 9182 | * | | |1 = In Master mode, writing "1" to this bit will start the SPI data transfer; In Slave mode, writing '1' to this bit indicates that the salve is ready to communicate with a master. |
AnnaBridge | 174:b96e65c34a4d | 9183 | * | | |If the FIFO mode is disabled, during the data transfer, this bit keeps the value of '1'. |
AnnaBridge | 174:b96e65c34a4d | 9184 | * | | |As the transfer is finished, this bit will be cleared automatically. |
AnnaBridge | 174:b96e65c34a4d | 9185 | * | | |Software can read this bit to check if the SPI is in busy status. |
AnnaBridge | 174:b96e65c34a4d | 9186 | * | | |In FIFO mode, this bit will be controlled by hardware. |
AnnaBridge | 174:b96e65c34a4d | 9187 | * | | |Software should not modify this bit. |
AnnaBridge | 174:b96e65c34a4d | 9188 | * | | |In slave mode, this bit always returns 1 when software reads this register. |
AnnaBridge | 174:b96e65c34a4d | 9189 | * | | |In master mode, this bit reflects the busy or idle status of SPI. |
AnnaBridge | 174:b96e65c34a4d | 9190 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 9191 | * | | |1. When FIFO mode is disabled, all configurations should be set before writing "1" to the GO_BUSY bit in the SPI_CTL register. |
AnnaBridge | 174:b96e65c34a4d | 9192 | * | | |2. When FIFO bit is disabled and the software uses TX or RX PDMA function to transfer data, this bit will be cleared after the PDMA controller finishes the data transfer. |
AnnaBridge | 174:b96e65c34a4d | 9193 | * |[1] |RX_NEG |Receive At Negative Edge |
AnnaBridge | 174:b96e65c34a4d | 9194 | * | | |0 = The received data is latched on the rising edge of SPI_SCLK. |
AnnaBridge | 174:b96e65c34a4d | 9195 | * | | |1 = The received data is latched on the falling edge of SPI_SCLK. |
AnnaBridge | 174:b96e65c34a4d | 9196 | * |[2] |TX_NEG |Transmit At Negative Edge |
AnnaBridge | 174:b96e65c34a4d | 9197 | * | | |0 = The transmitted data output is changed on the rising edge of SPI_SCLK. |
AnnaBridge | 174:b96e65c34a4d | 9198 | * | | |1 = The transmitted data output is changed on the falling edge of SPI_SCLK. |
AnnaBridge | 174:b96e65c34a4d | 9199 | * |[7:3] |TX_BIT_LEN|Transmit Bit Length |
AnnaBridge | 174:b96e65c34a4d | 9200 | * | | |This field specifies how many bits can be transmitted / received in one transaction. |
AnnaBridge | 174:b96e65c34a4d | 9201 | * | | |The minimum bit length is 8 bits and can be up to 32 bits. |
AnnaBridge | 174:b96e65c34a4d | 9202 | * | | |TX_BIT_LEN Description |
AnnaBridge | 174:b96e65c34a4d | 9203 | * | | |01000 8 bits are transmitted in one transaction |
AnnaBridge | 174:b96e65c34a4d | 9204 | * | | |01001 9 bits are transmitted in one transaction |
AnnaBridge | 174:b96e65c34a4d | 9205 | * | | |------ ---------- |
AnnaBridge | 174:b96e65c34a4d | 9206 | * | | |11111 31 bits are transmitted in one transaction |
AnnaBridge | 174:b96e65c34a4d | 9207 | * | | |00000 32 bits are transmitted in one transaction |
AnnaBridge | 174:b96e65c34a4d | 9208 | * |[10] |LSB |Send LSB First |
AnnaBridge | 174:b96e65c34a4d | 9209 | * | | |0 = The MSB, which bit of transmit/receive register depends on the setting of TX_BITLEN, is transmitted/received first. |
AnnaBridge | 174:b96e65c34a4d | 9210 | * | | |1 = The LSB, bit 0 of the SPI_TX0/1, is sent first to the the SPI data output pin, and the first bit received from the SPI data input pin will be put in the LSB position of the SPI_RX register (SPI_RX0/1). |
AnnaBridge | 174:b96e65c34a4d | 9211 | * |[11] |CLKP |Clock Polarity |
AnnaBridge | 174:b96e65c34a4d | 9212 | * | | |0 = The default level of SCLK is low in idle state. |
AnnaBridge | 174:b96e65c34a4d | 9213 | * | | |1 = The default level of SCLK is high in idle state. |
AnnaBridge | 174:b96e65c34a4d | 9214 | * |[15:12] |SP_CYCLE |Suspend Interval (Master Only) |
AnnaBridge | 174:b96e65c34a4d | 9215 | * | | |These four bits provide configurable suspend interval between two successive transmit/receive transaction in a transfer. |
AnnaBridge | 174:b96e65c34a4d | 9216 | * | | |The suspend interval is from the last falling clock edge of the current transaction to the first rising clock edge of the successive transaction if CLKP = "0". |
AnnaBridge | 174:b96e65c34a4d | 9217 | * | | |If CLKP = "1", the interval is from the rising clock edge to the falling clock edge. |
AnnaBridge | 174:b96e65c34a4d | 9218 | * | | |The default value is 0x3. The desired suspend interval is obtained according to the following equation: |
AnnaBridge | 174:b96e65c34a4d | 9219 | * | | |(SP_CYCLE[3:0) + 0.5) * period of SPICLK |
AnnaBridge | 174:b96e65c34a4d | 9220 | * | | |Ex: |
AnnaBridge | 174:b96e65c34a4d | 9221 | * | | |SP_CYCLE = 0x0 ... 0.5 SPICLK clock cycle. |
AnnaBridge | 174:b96e65c34a4d | 9222 | * | | |SP_CYCLE = 0x1 ... 1.5 SPICLK clock cycle. |
AnnaBridge | 174:b96e65c34a4d | 9223 | * | | |...... |
AnnaBridge | 174:b96e65c34a4d | 9224 | * | | |SP_CYCLE = 0xE ... 14.5 SPICLK clock cycle. |
AnnaBridge | 174:b96e65c34a4d | 9225 | * | | |SP_CYCLE = 0xF ... 15.5 SPICLK clock cycle. |
AnnaBridge | 174:b96e65c34a4d | 9226 | * | | |If the Variable Clock function is enabled, the minimum period of suspend interval (the transmit data in FIFO buffer is not empty) between the successive transaction is (6.5 + SP_CYCLE) * SPICLK clock cycle |
AnnaBridge | 174:b96e65c34a4d | 9227 | * |[17] |INTEN |Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 9228 | * | | |0 = SPI Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9229 | * | | |1 = SPI Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9230 | * |[18] |SLAVE |Slave Mode |
AnnaBridge | 174:b96e65c34a4d | 9231 | * | | |0 = SPI controller set as Master mode. |
AnnaBridge | 174:b96e65c34a4d | 9232 | * | | |1 = SPI controller set as Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 9233 | * |[19] |REORDER |Byte Reorder Function Enable |
AnnaBridge | 174:b96e65c34a4d | 9234 | * | | |0 = Disable byte reorder function |
AnnaBridge | 174:b96e65c34a4d | 9235 | * | | |1 = Enable byte reorder function and insert a byte suspend interval among each byte. |
AnnaBridge | 174:b96e65c34a4d | 9236 | * | | |The setting of TX_BIT_LEN must be configured as 00b ( 32 bits/ word). |
AnnaBridge | 174:b96e65c34a4d | 9237 | * | | |The suspend interval is defined in SP_CYCLE. |
AnnaBridge | 174:b96e65c34a4d | 9238 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 9239 | * | | |1. The byte reorder function is only available if TX_BIT_LEN is defined as 16, 24, and 32 bits. |
AnnaBridge | 174:b96e65c34a4d | 9240 | * | | |2. In Slave mode with level-trigger configuration, if the byte suspend function is enabled, the slave select pin must be kept at active state during the successive four bytes transfer. |
AnnaBridge | 174:b96e65c34a4d | 9241 | * | | |3. The byte reorder function is not supported when the variable serial clock function or the dual I/O mode is enabled. |
AnnaBridge | 174:b96e65c34a4d | 9242 | * |[21] |FIFOM |FIFO Mode Enable |
AnnaBridge | 174:b96e65c34a4d | 9243 | * | | |0 = Normal mode. |
AnnaBridge | 174:b96e65c34a4d | 9244 | * | | |1 = FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9245 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 9246 | * | | |1. Before enabling FIFO mode, the other related settings should be set in advance. |
AnnaBridge | 174:b96e65c34a4d | 9247 | * | | |2. In Master mode, if the FIFO mode is enabled, the GO_BUSY bit will be set "1" automatically after the data was written into the 8-depth FIFO. |
AnnaBridge | 174:b96e65c34a4d | 9248 | * | | |The user can clear this FIFO bit after the transmit FIFO status is empty and the GO_BUSY back to 0. |
AnnaBridge | 174:b96e65c34a4d | 9249 | * |[22] |TWOB |2-Bit Transfer Mode Active |
AnnaBridge | 174:b96e65c34a4d | 9250 | * | | |0 = 2-bit transfer mode Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9251 | * | | |1 = 2-bit transfer mode Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9252 | * | | |Note that when enabling TWOB, the serial transmitted 2-bits data are from SPI_TX1/0, and the received 2-bits data input are put into SPI_RX1/0. |
AnnaBridge | 174:b96e65c34a4d | 9253 | * |[23] |VARCLK_EN |Variable Clock Enable |
AnnaBridge | 174:b96e65c34a4d | 9254 | * | | |0 = The serial clock output frequency is fixed and only decided by the value of DIVIDER1 |
AnnaBridge | 174:b96e65c34a4d | 9255 | * | | |1 = The serial clock output frequency is variable. |
AnnaBridge | 174:b96e65c34a4d | 9256 | * | | |The output frequency is decided by the value of VARCLK (SPI_VARCLK), DIVIDER1, and DIVIDER2. |
AnnaBridge | 174:b96e65c34a4d | 9257 | * | | |Note: When this VARCLK_EN bit is set to 1, the setting of TX_BIT_LEN must be programmed as 0x10 (16-bit mode). |
AnnaBridge | 174:b96e65c34a4d | 9258 | * |[28] |DUAL_IO_DIR|Dual IO Mode Direction |
AnnaBridge | 174:b96e65c34a4d | 9259 | * | | |0 = Date read in the Dual I/O Mode function. |
AnnaBridge | 174:b96e65c34a4d | 9260 | * | | |1 = Data write in the Dual I/O Mode function. |
AnnaBridge | 174:b96e65c34a4d | 9261 | * |[29] |DUAL_IO_EN|Dual IO Mode Enable |
AnnaBridge | 174:b96e65c34a4d | 9262 | * | | |0 = Dual I/O Mode function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9263 | * | | |1 = Dual I/O Mode function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9264 | * |[31] |WKEUP_EN |Wake-Up Enable |
AnnaBridge | 174:b96e65c34a4d | 9265 | * | | |0 = Wake-up function Disabled when the system enters Power-down mode. |
AnnaBridge | 174:b96e65c34a4d | 9266 | * | | |1 = Wake-up function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9267 | * | | |When the system enters Power-down mode, the system can be wake-up from the SPI controller when this bit is enabled and if there is any toggle in the SPICLK port. |
AnnaBridge | 174:b96e65c34a4d | 9268 | * | | |After the system wake-up, this bit must be cleared by user to disable the wake-up requirement. |
AnnaBridge | 174:b96e65c34a4d | 9269 | */ |
AnnaBridge | 174:b96e65c34a4d | 9270 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 9271 | |
AnnaBridge | 174:b96e65c34a4d | 9272 | /** |
AnnaBridge | 174:b96e65c34a4d | 9273 | * STATUS |
AnnaBridge | 174:b96e65c34a4d | 9274 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9275 | * Offset: 0x04 SPI Status Register |
AnnaBridge | 174:b96e65c34a4d | 9276 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9277 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9278 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9279 | * |[0] |RX_EMPTY |Received FIFO_EMPTY Status |
AnnaBridge | 174:b96e65c34a4d | 9280 | * | | |0 = Received data FIFO is not empty in the dual FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9281 | * | | |1 = Received data FIFO is empty in the dual FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9282 | * |[1] |RX_FULL |Received FIFO_FULL Status |
AnnaBridge | 174:b96e65c34a4d | 9283 | * | | |0 = Received data FIFO is not full in dual FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9284 | * | | |1 = Received data FIFO is full in the dual FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9285 | * |[2] |TX_EMPTY |Transmitted FIFO_EMPTY Status |
AnnaBridge | 174:b96e65c34a4d | 9286 | * | | |0 = Transmitted data FIFO is not empty in the dual FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9287 | * | | |1 =Transmitted data FIFO is empty in the dual FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9288 | * |[3] |TX_FULL |Transmitted FIFO_FULL Status |
AnnaBridge | 174:b96e65c34a4d | 9289 | * | | |0 = Transmitted data FIFO is not full in the dual FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9290 | * | | |1 = Transmitted data FIFO is full in the dual FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9291 | * |[4] |LTRIG_FLAG|Level Trigger Accomplish Flag |
AnnaBridge | 174:b96e65c34a4d | 9292 | * | | |In Slave mode, this bit indicates whether the received bit number meets the requirement or not after the current transaction done. |
AnnaBridge | 174:b96e65c34a4d | 9293 | * | | |0 = The transferred bit length of one transaction does not meet the specified requirement. |
AnnaBridge | 174:b96e65c34a4d | 9294 | * | | |1 = The transferred bit length meets the specified requirement which defined in TX_BIT_LEN. |
AnnaBridge | 174:b96e65c34a4d | 9295 | * | | |Note: This bit is READ only. |
AnnaBridge | 174:b96e65c34a4d | 9296 | * | | |As the software sets the GO_BUSY bit to 1, the LTRIG_FLAG will be cleared to 0 after 4 SPI engine clock periods plus 1 system clock period. |
AnnaBridge | 174:b96e65c34a4d | 9297 | * | | |In FIFO mode, this bit is unmeaning. |
AnnaBridge | 174:b96e65c34a4d | 9298 | * |[6] |SLV_START_INTSTS|Slave Start Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 9299 | * | | |It is used to dedicate that the transfer has started in Slave mode with no slave select. |
AnnaBridge | 174:b96e65c34a4d | 9300 | * | | |0 = Slave started transfer no active. |
AnnaBridge | 174:b96e65c34a4d | 9301 | * | | |1 = Transfer has started in Slave mode with no slave select. |
AnnaBridge | 174:b96e65c34a4d | 9302 | * | | |It is auto clear by transfer done or writing one clear. |
AnnaBridge | 174:b96e65c34a4d | 9303 | * |[7] |INTSTS |Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 9304 | * | | |0 = Transfer is not finished yet. |
AnnaBridge | 174:b96e65c34a4d | 9305 | * | | |1 = Transfer is done. The interrupt is requested when the INTEN bit is enabled. |
AnnaBridge | 174:b96e65c34a4d | 9306 | * | | |Note: This bit is read only, but can be cleared by writing "1" to this bit. |
AnnaBridge | 174:b96e65c34a4d | 9307 | * |[8] |RXINT_STS |RX FIFO Threshold Interrupt Status (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 9308 | * | | |0 = RX valid data counts small or equal than RXTHRESHOLD. |
AnnaBridge | 174:b96e65c34a4d | 9309 | * | | |1 = RX valid data counts bigger than RXTHRESHOLD. |
AnnaBridge | 174:b96e65c34a4d | 9310 | * | | |Note: If RXINT_EN = 1 and RX_INTSTS = 1, SPI will generate interrupt. |
AnnaBridge | 174:b96e65c34a4d | 9311 | * |[9] |RX_OVER_RUN|RX FIFO Over Run Status |
AnnaBridge | 174:b96e65c34a4d | 9312 | * | | |If SPI receives data when RX FIFO is full, this bit will set to 1, and the received data will dropped. |
AnnaBridge | 174:b96e65c34a4d | 9313 | * | | |Note: This bit will be cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 9314 | * |[10] |TXINT_STS |TX FIFO Threshold Interrupt Status (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 9315 | * | | |0 = TX valid data counts bigger than TXTHRESHOLD. |
AnnaBridge | 174:b96e65c34a4d | 9316 | * | | |1 = TX valid data counts small or equal than TXTHRESHOLD. |
AnnaBridge | 174:b96e65c34a4d | 9317 | * |[12] |TIME_OUT_STS|TIMEOUT Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 9318 | * | | |0 = There is not timeout event on the received buffer. |
AnnaBridge | 174:b96e65c34a4d | 9319 | * | | |1 = RX FIFO is not empty and there is not be read over the 64 SPI_CLK period in master mode and over the 576 ECLK period in slave mode. |
AnnaBridge | 174:b96e65c34a4d | 9320 | * | | |When the received FIFO is read by user, the timeout status will be cleared automatically. |
AnnaBridge | 174:b96e65c34a4d | 9321 | * | | |Note: This bit will be cleared by writing 1 to itself. |
AnnaBridge | 174:b96e65c34a4d | 9322 | * |[19:16] |RX_FIFO_CNT|Data counts in RX FIFO (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 9323 | * |[23:20] |TX_FIFO_CNT|Data counts in TX FIFO (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 9324 | */ |
AnnaBridge | 174:b96e65c34a4d | 9325 | __IO uint32_t STATUS; |
AnnaBridge | 174:b96e65c34a4d | 9326 | |
AnnaBridge | 174:b96e65c34a4d | 9327 | /** |
AnnaBridge | 174:b96e65c34a4d | 9328 | * CLKDIV |
AnnaBridge | 174:b96e65c34a4d | 9329 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9330 | * Offset: 0x08 SPI Clock Divider Register |
AnnaBridge | 174:b96e65c34a4d | 9331 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9332 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9333 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9334 | * |[7:0] |DIVIDER1 |Clock Divider 1 Register |
AnnaBridge | 174:b96e65c34a4d | 9335 | * | | |The value in this field is the 1th frequency divider of the PCLK to generate the serial clock of SPI_SCLK. |
AnnaBridge | 174:b96e65c34a4d | 9336 | * | | |The desired frequency is obtained according to the following equation: |
AnnaBridge | 174:b96e65c34a4d | 9337 | * | | |Where |
AnnaBridge | 174:b96e65c34a4d | 9338 | * | | |is the SPI engine clock source. It is defined in the CLK_SEL1. |
AnnaBridge | 174:b96e65c34a4d | 9339 | * |[23:16] |DIVIDER2 |Clock Divider 2 Register |
AnnaBridge | 174:b96e65c34a4d | 9340 | * | | |The value in this field is the 2nd frequency divider of the PCLK to generate the serial clock of SPI_SCLK. |
AnnaBridge | 174:b96e65c34a4d | 9341 | * | | |The desired frequency is obtained according to the following equation: |
AnnaBridge | 174:b96e65c34a4d | 9342 | */ |
AnnaBridge | 174:b96e65c34a4d | 9343 | __IO uint32_t CLKDIV; |
AnnaBridge | 174:b96e65c34a4d | 9344 | |
AnnaBridge | 174:b96e65c34a4d | 9345 | /** |
AnnaBridge | 174:b96e65c34a4d | 9346 | * SSR |
AnnaBridge | 174:b96e65c34a4d | 9347 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9348 | * Offset: 0x0C SPI Slave Select Register |
AnnaBridge | 174:b96e65c34a4d | 9349 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9350 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9351 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9352 | * |[1:0] |SSR |Slave Select Active Register (Master Only) |
AnnaBridge | 174:b96e65c34a4d | 9353 | * | | |If AUTOSS bit is cleared, writing "1" to SSR[0] bit sets the SPISS[0] line to an active state and writing "0" sets the line back to inactive state.(the same as SSR[1] for SPISS[1]) |
AnnaBridge | 174:b96e65c34a4d | 9354 | * | | |If AUTOSS bit is set, writing "1" to any bit location of this field will select appropriate SPISS[1:0] line to be automatically driven to active state for the duration of the transaction, and will be driven to inactive state for the rest of the time. |
AnnaBridge | 174:b96e65c34a4d | 9355 | * | | |(The active level of SPISS[1:0] is specified in SS_LVL). |
AnnaBridge | 174:b96e65c34a4d | 9356 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 9357 | * | | |1. This interface can only drive one device/slave at a given time. |
AnnaBridge | 174:b96e65c34a4d | 9358 | * | | |Therefore, the slaves select of the selected device must be set to its active level before starting any read or write transfer. |
AnnaBridge | 174:b96e65c34a4d | 9359 | * | | |2. SPISS[0] is also defined as device/slave select input in Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 9360 | * | | |And that the slave select input must be driven by edge active trigger which level depend on the SS_LVL setting, otherwise the SPI slave core will go into dead path until the edge active triggers again or reset the SPI core by software. |
AnnaBridge | 174:b96e65c34a4d | 9361 | * |[2] |SS_LVL |Slave Select Active Level |
AnnaBridge | 174:b96e65c34a4d | 9362 | * | | |It defines the active level of device/slave select signal (SPISS[1:0]). |
AnnaBridge | 174:b96e65c34a4d | 9363 | * | | |0 = The SPI_SS slave select signal is active Low. |
AnnaBridge | 174:b96e65c34a4d | 9364 | * | | |1 = The SPI_SS slave select signal is active High. |
AnnaBridge | 174:b96e65c34a4d | 9365 | * |[3] |AUTOSS |Automatic Slave Selection (Master Only) |
AnnaBridge | 174:b96e65c34a4d | 9366 | * | | |0 = If this bit is set as "0", slave select signals are asserted and de-asserted by setting and clearing related bits in SSR[1:0] register. |
AnnaBridge | 174:b96e65c34a4d | 9367 | * | | |1 = If this bit is set as "1", SPISS[1:0] signals are generated automatically. |
AnnaBridge | 174:b96e65c34a4d | 9368 | * | | |It means that device/slave select signal, which is set in SSR[1:0] register is asserted by the SPI controller when transmit/receive is started, and is de-asserted after each transaction is done. |
AnnaBridge | 174:b96e65c34a4d | 9369 | * |[4] |SS_LTRIG |Slave Select Level Trigger |
AnnaBridge | 174:b96e65c34a4d | 9370 | * | | |0 = The input slave select signal is edge-trigger. |
AnnaBridge | 174:b96e65c34a4d | 9371 | * | | |1 = The slave select signal will be level-trigger. |
AnnaBridge | 174:b96e65c34a4d | 9372 | * | | |It depends on SS_LVL to decide the signal is active low or active high. |
AnnaBridge | 174:b96e65c34a4d | 9373 | * |[5] |NOSLVSEL |No Slave Selected In Slave Mode |
AnnaBridge | 174:b96e65c34a4d | 9374 | * | | |This is used to ignore the slave select signal in Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 9375 | * | | |The SPI controller can work on 3 wire interface including SPICLK, SPI_MISO, and SPI_MOSI when it is set as a slave device. |
AnnaBridge | 174:b96e65c34a4d | 9376 | * | | |0 = The controller is 4-wire bi-direction interface. |
AnnaBridge | 174:b96e65c34a4d | 9377 | * | | |1 = The controller is 3-wire bi-direction interface in Slave mode. |
AnnaBridge | 174:b96e65c34a4d | 9378 | * | | |When this bit is set as 1, the controller start to transmit/receive data after the GO_BUSY bit active and the serial clock input. |
AnnaBridge | 174:b96e65c34a4d | 9379 | * | | |Note: In no slave select signal mode, the SS_LTRIG, SPI_SSR[4], shall be set as "1". |
AnnaBridge | 174:b96e65c34a4d | 9380 | * |[8] |SLV_ABORT |Abort In Slave Mode With No Slave Selected |
AnnaBridge | 174:b96e65c34a4d | 9381 | * | | |In normal operation, there is interrupt event when the received data meet the required bits which define in TX_BIT_LEN. |
AnnaBridge | 174:b96e65c34a4d | 9382 | * | | |If the received bits are less than the requirement and there is no more serial clock input over the time period which is defined by user in slave mode with no slave select, the user can set this bit to force the current transfer done and then the user can get a transfer done interrupt event. |
AnnaBridge | 174:b96e65c34a4d | 9383 | * | | |Note: It is auto cleared to "0" by hardware when the abort event is active. |
AnnaBridge | 174:b96e65c34a4d | 9384 | * |[9] |SSTA_INTEN|Slave Start Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 9385 | * | | |It is used to enable interrupt when the transfer has started in Slave mode with no slave select. |
AnnaBridge | 174:b96e65c34a4d | 9386 | * | | |If there is no transfer done interrupt over the time period which is defined by user after the transfer start, the user can set the SLV_ABORT bit to force the transfer done. |
AnnaBridge | 174:b96e65c34a4d | 9387 | * | | |0 = Tansfer start interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9388 | * | | |1 = Transaction start interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9389 | * | | |It is cleared when the current transfer done or the SLV_START_INTSTS bit cleared (write 1 clear). |
AnnaBridge | 174:b96e65c34a4d | 9390 | * |[16] |SS_INT_OPT|Slave Select Interrupt Option |
AnnaBridge | 174:b96e65c34a4d | 9391 | * | | |It is used to enable the interrupt when the transfer has done in slave mode. |
AnnaBridge | 174:b96e65c34a4d | 9392 | * | | |0 = No any interrupt, even there is slave select inactive event. |
AnnaBridge | 174:b96e65c34a4d | 9393 | * | | |1 = There is interrupt event when the slave select is inactive. |
AnnaBridge | 174:b96e65c34a4d | 9394 | * | | |It is used to inform the user the transaction has finished and the slave select into the inactive state. |
AnnaBridge | 174:b96e65c34a4d | 9395 | */ |
AnnaBridge | 174:b96e65c34a4d | 9396 | __IO uint32_t SSR; |
AnnaBridge | 174:b96e65c34a4d | 9397 | |
AnnaBridge | 174:b96e65c34a4d | 9398 | /** |
AnnaBridge | 174:b96e65c34a4d | 9399 | * RX0 |
AnnaBridge | 174:b96e65c34a4d | 9400 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9401 | * Offset: 0x10 SPI Receive Data FIFO Register 0 |
AnnaBridge | 174:b96e65c34a4d | 9402 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9403 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9404 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9405 | * |[31:0] |RDATA |Receive Data FIFO Register |
AnnaBridge | 174:b96e65c34a4d | 9406 | * | | |The received data can be read on it. |
AnnaBridge | 174:b96e65c34a4d | 9407 | * | | |If the FIFO bit is set as 1, the user also checks the RX_EMPTY, SPI_STATUS[0], to check if there is any more received data or not. |
AnnaBridge | 174:b96e65c34a4d | 9408 | * | | |Note: These registers are read only. |
AnnaBridge | 174:b96e65c34a4d | 9409 | */ |
AnnaBridge | 174:b96e65c34a4d | 9410 | __I uint32_t RX0; |
AnnaBridge | 174:b96e65c34a4d | 9411 | |
AnnaBridge | 174:b96e65c34a4d | 9412 | /** |
AnnaBridge | 174:b96e65c34a4d | 9413 | * RX1 |
AnnaBridge | 174:b96e65c34a4d | 9414 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9415 | * Offset: 0x14 SPI Receive Data FIFO Register 1 |
AnnaBridge | 174:b96e65c34a4d | 9416 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9417 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9418 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9419 | * |[31:0] |RDATA |Receive Data FIFO Register |
AnnaBridge | 174:b96e65c34a4d | 9420 | * | | |The received data can be read on it. |
AnnaBridge | 174:b96e65c34a4d | 9421 | * | | |If the FIFO bit is set as 1, the user also checks the RX_EMPTY, SPI_STATUS[0], to check if there is any more received data or not. |
AnnaBridge | 174:b96e65c34a4d | 9422 | * | | |Note: These registers are read only. |
AnnaBridge | 174:b96e65c34a4d | 9423 | */ |
AnnaBridge | 174:b96e65c34a4d | 9424 | __I uint32_t RX1; |
AnnaBridge | 174:b96e65c34a4d | 9425 | uint32_t RESERVE0[2]; |
AnnaBridge | 174:b96e65c34a4d | 9426 | |
AnnaBridge | 174:b96e65c34a4d | 9427 | |
AnnaBridge | 174:b96e65c34a4d | 9428 | /** |
AnnaBridge | 174:b96e65c34a4d | 9429 | * TX0 |
AnnaBridge | 174:b96e65c34a4d | 9430 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9431 | * Offset: 0x20 SPI Transmit Data FIFO Register 0 |
AnnaBridge | 174:b96e65c34a4d | 9432 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9433 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9434 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9435 | * |[31:0] |TDATA |Transmit Data FIFO Register |
AnnaBridge | 174:b96e65c34a4d | 9436 | * | | |The Data Transmit Registers hold the data to be transmitted in the next transfer. |
AnnaBridge | 174:b96e65c34a4d | 9437 | * | | |The number of valid bits depends on the setting of transmit bit length field of the SPI_CTL register. |
AnnaBridge | 174:b96e65c34a4d | 9438 | * | | |For example, if TX_BIT_LEN is set to 0x08, the bit SPI_TX[7:0] will be transmitted in next transfer. |
AnnaBridge | 174:b96e65c34a4d | 9439 | * | | |If TX_BIT_LEN is set to 0x00, the SPI controller will perform a 32-bit transfer. |
AnnaBridge | 174:b96e65c34a4d | 9440 | * | | |Note: When the SPI controller is configured as a slave device and the FIFO mode is disabled, if the SPI controller attempts to transmit data to a master, the software must update the transmit data register before setting the GO_BUSY bit to 1 |
AnnaBridge | 174:b96e65c34a4d | 9441 | */ |
AnnaBridge | 174:b96e65c34a4d | 9442 | __O uint32_t TX0; |
AnnaBridge | 174:b96e65c34a4d | 9443 | |
AnnaBridge | 174:b96e65c34a4d | 9444 | /** |
AnnaBridge | 174:b96e65c34a4d | 9445 | * TX1 |
AnnaBridge | 174:b96e65c34a4d | 9446 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9447 | * Offset: 0x24 SPI Transmit Data FIFO Register 1 |
AnnaBridge | 174:b96e65c34a4d | 9448 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9449 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9450 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9451 | * |[31:0] |TDATA |Transmit Data FIFO Register |
AnnaBridge | 174:b96e65c34a4d | 9452 | * | | |The Data Transmit Registers hold the data to be transmitted in the next transfer. |
AnnaBridge | 174:b96e65c34a4d | 9453 | * | | |The number of valid bits depends on the setting of transmit bit length field of the SPI_CTL register. |
AnnaBridge | 174:b96e65c34a4d | 9454 | * | | |For example, if TX_BIT_LEN is set to 0x08, the bit SPI_TX[7:0] will be transmitted in next transfer. |
AnnaBridge | 174:b96e65c34a4d | 9455 | * | | |If TX_BIT_LEN is set to 0x00, the SPI controller will perform a 32-bit transfer. |
AnnaBridge | 174:b96e65c34a4d | 9456 | * | | |Note: When the SPI controller is configured as a slave device and the FIFO mode is disabled, if the SPI controller attempts to transmit data to a master, the software must update the transmit data register before setting the GO_BUSY bit to 1 |
AnnaBridge | 174:b96e65c34a4d | 9457 | */ |
AnnaBridge | 174:b96e65c34a4d | 9458 | __O uint32_t TX1; |
AnnaBridge | 174:b96e65c34a4d | 9459 | uint32_t RESERVE1[3]; |
AnnaBridge | 174:b96e65c34a4d | 9460 | |
AnnaBridge | 174:b96e65c34a4d | 9461 | |
AnnaBridge | 174:b96e65c34a4d | 9462 | /** |
AnnaBridge | 174:b96e65c34a4d | 9463 | * VARCLK |
AnnaBridge | 174:b96e65c34a4d | 9464 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9465 | * Offset: 0x34 SPI Variable Clock Pattern Flag Register |
AnnaBridge | 174:b96e65c34a4d | 9466 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9467 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9468 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9469 | * |[31:0] |VARCLK |Variable Clock Pattern Flag |
AnnaBridge | 174:b96e65c34a4d | 9470 | * | | |The value in this field is the frequency patterns of the SPICLK. |
AnnaBridge | 174:b96e65c34a4d | 9471 | * | | |If the bit pattern of VARCLK is '0', the output frequency of SPICLK is according the value of DIVIDER1. |
AnnaBridge | 174:b96e65c34a4d | 9472 | * | | |If the bit patterns of VARCLK are '1', the output frequency of SPICLK is according the value of DIVIDER2. |
AnnaBridge | 174:b96e65c34a4d | 9473 | * | | |Note: It is used for CLKP = 0 only. |
AnnaBridge | 174:b96e65c34a4d | 9474 | */ |
AnnaBridge | 174:b96e65c34a4d | 9475 | __IO uint32_t VARCLK; |
AnnaBridge | 174:b96e65c34a4d | 9476 | |
AnnaBridge | 174:b96e65c34a4d | 9477 | /** |
AnnaBridge | 174:b96e65c34a4d | 9478 | * DMA |
AnnaBridge | 174:b96e65c34a4d | 9479 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9480 | * Offset: 0x38 SPI DMA Control Register |
AnnaBridge | 174:b96e65c34a4d | 9481 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9482 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9483 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9484 | * |[0] |TX_DMA_EN |Transmit PDMA Enable (PDMA Writes Data To SPI) |
AnnaBridge | 174:b96e65c34a4d | 9485 | * | | |Set this bit to 1 will start the transmit PDMA process. |
AnnaBridge | 174:b96e65c34a4d | 9486 | * | | |SPI controller will issue request to PDMA controller automatically. |
AnnaBridge | 174:b96e65c34a4d | 9487 | * | | |If using PDMA mode to transfer data, remember not to set GO_BUSY bit of SPI_CNTRL register. |
AnnaBridge | 174:b96e65c34a4d | 9488 | * | | |The DMA controller inside SPI controller will set it automatically whenever necessary. |
AnnaBridge | 174:b96e65c34a4d | 9489 | * | | |Note: |
AnnaBridge | 174:b96e65c34a4d | 9490 | * | | |1. Two transaction need minimal 18 APB clock + 8 SPI serial clocks suspend interval in master mode for edge mode and 18 APB clock + 9.5 serial clocks for level mode. |
AnnaBridge | 174:b96e65c34a4d | 9491 | * | | |2. If the 2-bit function is enabled, the requirement timing shall append 18 APB clock based on the above clock period. |
AnnaBridge | 174:b96e65c34a4d | 9492 | * | | |Hardware will clear this bit to 0 automatically after PDMA transfer done. If FIFO mode not release, it should be remove. |
AnnaBridge | 174:b96e65c34a4d | 9493 | * |[1] |RX_DMA_EN |Receiving PDMA Enable(PDMA Reads SPI Data To Memory) |
AnnaBridge | 174:b96e65c34a4d | 9494 | * | | |Set this bit to "1" will start the receive PDMA process. |
AnnaBridge | 174:b96e65c34a4d | 9495 | * | | |SPI controller will issue request to PDMA controller automatically when there is data written into the received buffer or the status of RX_EMPTY status is set to 0 in FIFO mode. |
AnnaBridge | 174:b96e65c34a4d | 9496 | * | | |If using the RX_PDMA mode to receive data but TX_DMA is disabled, the GO_BUSY bit shall be set by user. |
AnnaBridge | 174:b96e65c34a4d | 9497 | * | | |Hardware will clear this bit to 0 automatically after PDMA transfer done. |
AnnaBridge | 174:b96e65c34a4d | 9498 | * | | |In Slave mode and the FIFO bit is disabled, if the receive PDMA is enabled but the transmit PDMA is disabled, the minimal suspend interval between two successive transactions input is need to be larger than 9 SPI slave engine clock + 4 APB clock for edge mode and 9.5 SPI slave engine clock + 4 APB clock |
AnnaBridge | 174:b96e65c34a4d | 9499 | * |[2] |PDMA_RST |PDMA Reset |
AnnaBridge | 174:b96e65c34a4d | 9500 | * | | |It is used to reset the SPI PDMA function into default state. |
AnnaBridge | 174:b96e65c34a4d | 9501 | * | | |0 = After reset PDMA function or in normal operation. |
AnnaBridge | 174:b96e65c34a4d | 9502 | * | | |1 = Reset PDMA function. |
AnnaBridge | 174:b96e65c34a4d | 9503 | * | | |Note: it is auto cleared to "0" after the reset function done. |
AnnaBridge | 174:b96e65c34a4d | 9504 | */ |
AnnaBridge | 174:b96e65c34a4d | 9505 | __IO uint32_t DMA; |
AnnaBridge | 174:b96e65c34a4d | 9506 | |
AnnaBridge | 174:b96e65c34a4d | 9507 | /** |
AnnaBridge | 174:b96e65c34a4d | 9508 | * FFCTL |
AnnaBridge | 174:b96e65c34a4d | 9509 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9510 | * Offset: 0x3C SPI FIFO Control Register |
AnnaBridge | 174:b96e65c34a4d | 9511 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9512 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9513 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9514 | * |[0] |RX_CLR |Receiving FIFO Counter Clear |
AnnaBridge | 174:b96e65c34a4d | 9515 | * | | |This bit is used to clear the receiver counter in FIFO Mode. |
AnnaBridge | 174:b96e65c34a4d | 9516 | * | | |This bit can be written "1" to clear the receiver counter and this bit will be cleared to "0" automatically after clearing receiving counter. |
AnnaBridge | 174:b96e65c34a4d | 9517 | * | | |After the clear operation, the flag of RX_EMPTY in SPI_STATUS[0] will be set to "1". |
AnnaBridge | 174:b96e65c34a4d | 9518 | * |[1] |TX_CLR |Transmitting FIFO Counter Clear |
AnnaBridge | 174:b96e65c34a4d | 9519 | * | | |This bit is used to clear the transmit counter in FIFO Mode. |
AnnaBridge | 174:b96e65c34a4d | 9520 | * | | |This bit can be written "1" to clear the transmitting counter and this bit will be cleared to "0" automatically after clearing transmitting counter. |
AnnaBridge | 174:b96e65c34a4d | 9521 | * | | |After the clear operation, the flag of TX_EMPTY in SPI_STATUS[2] will be set to "1". |
AnnaBridge | 174:b96e65c34a4d | 9522 | * |[2] |RXINT_EN |RX Threshold Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 9523 | * | | |0 = Rx threshold interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9524 | * | | |1 = RX threshold interrupt Enable. |
AnnaBridge | 174:b96e65c34a4d | 9525 | * |[3] |TXINT_EN |TX Threshold Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 9526 | * | | |0 = Tx threshold interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9527 | * | | |1 = TX threshold interrupt Enable. |
AnnaBridge | 174:b96e65c34a4d | 9528 | * |[4] |RXOVINT_EN|RX FIFO Over Run Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 9529 | * | | |0 = RX FIFO over run interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9530 | * | | |1 = RX FIFO over run interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9531 | * |[7] |TIMEOUT_EN|RX Read Timeout Function Enable |
AnnaBridge | 174:b96e65c34a4d | 9532 | * | | |0 = RX read Timeout function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9533 | * | | |1 = RX read Timeout function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9534 | * |[26:24] |RX_THRESHOLD|Received FIFO Threshold |
AnnaBridge | 174:b96e65c34a4d | 9535 | * | | |3-bits register, value from 0 ~7. |
AnnaBridge | 174:b96e65c34a4d | 9536 | * | | |If RX valid data counts large than RXTHRESHOLD, RXINT_STS will set to 1, else RXINT_STS will set to 0. |
AnnaBridge | 174:b96e65c34a4d | 9537 | * |[30:28] |TX_THRESHOLD|Transmit FIFO Threshold |
AnnaBridge | 174:b96e65c34a4d | 9538 | * | | |3-bit register, value from 0 ~7. |
AnnaBridge | 174:b96e65c34a4d | 9539 | * | | |If TX valid data counts small or equal than TXTHRESHOLD, TXINT_STS will set to 1, else TXINT_STS will set to 0 |
AnnaBridge | 174:b96e65c34a4d | 9540 | */ |
AnnaBridge | 174:b96e65c34a4d | 9541 | __IO uint32_t FFCTL; |
AnnaBridge | 174:b96e65c34a4d | 9542 | } SPI_T; |
AnnaBridge | 174:b96e65c34a4d | 9543 | |
AnnaBridge | 174:b96e65c34a4d | 9544 | /** |
AnnaBridge | 174:b96e65c34a4d | 9545 | @addtogroup SPI_CONST SPI Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 9546 | Constant Definitions for SPI Controller |
AnnaBridge | 174:b96e65c34a4d | 9547 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 9548 | |
AnnaBridge | 174:b96e65c34a4d | 9549 | #define SPI_CTL_GO_BUSY_Pos (0) /*!< SPI_T::CTL: GO_BUSY Position */ |
AnnaBridge | 174:b96e65c34a4d | 9550 | #define SPI_CTL_GO_BUSY_Msk (0x1ul << SPI_CTL_GO_BUSY_Pos) /*!< SPI_T::CTL: GO_BUSY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9551 | |
AnnaBridge | 174:b96e65c34a4d | 9552 | #define SPI_CTL_RX_NEG_Pos (1) /*!< SPI_T::CTL: RX_NEG Position */ |
AnnaBridge | 174:b96e65c34a4d | 9553 | #define SPI_CTL_RX_NEG_Msk (0x1ul << SPI_CTL_RX_NEG_Pos) /*!< SPI_T::CTL: RX_NEG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9554 | |
AnnaBridge | 174:b96e65c34a4d | 9555 | #define SPI_CTL_TX_NEG_Pos (2) /*!< SPI_T::CTL: TX_NEG Position */ |
AnnaBridge | 174:b96e65c34a4d | 9556 | #define SPI_CTL_TX_NEG_Msk (0x1ul << SPI_CTL_TX_NEG_Pos) /*!< SPI_T::CTL: TX_NEG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9557 | |
AnnaBridge | 174:b96e65c34a4d | 9558 | #define SPI_CTL_TX_BIT_LEN_Pos (3) /*!< SPI_T::CTL: TX_BIT_LEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9559 | #define SPI_CTL_TX_BIT_LEN_Msk (0x1ful << SPI_CTL_TX_BIT_LEN_Pos) /*!< SPI_T::CTL: TX_BIT_LEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9560 | |
AnnaBridge | 174:b96e65c34a4d | 9561 | #define SPI_CTL_LSB_Pos (10) /*!< SPI_T::CTL: LSB Position */ |
AnnaBridge | 174:b96e65c34a4d | 9562 | #define SPI_CTL_LSB_Msk (0x1ul << SPI_CTL_LSB_Pos) /*!< SPI_T::CTL: LSB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9563 | |
AnnaBridge | 174:b96e65c34a4d | 9564 | #define SPI_CTL_CLKP_Pos (11) /*!< SPI_T::CTL: CLKP Position */ |
AnnaBridge | 174:b96e65c34a4d | 9565 | #define SPI_CTL_CLKP_Msk (0x1ul << SPI_CTL_CLKP_Pos) /*!< SPI_T::CTL: CLKP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9566 | |
AnnaBridge | 174:b96e65c34a4d | 9567 | #define SPI_CTL_SP_CYCLE_Pos (12) /*!< SPI_T::CTL: SP_CYCLE Position */ |
AnnaBridge | 174:b96e65c34a4d | 9568 | #define SPI_CTL_SP_CYCLE_Msk (0xful << SPI_CTL_SP_CYCLE_Pos) /*!< SPI_T::CTL: SP_CYCLE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9569 | |
AnnaBridge | 174:b96e65c34a4d | 9570 | #define SPI_CTL_INTEN_Pos (17) /*!< SPI_T::CTL: INTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9571 | #define SPI_CTL_INTEN_Msk (0x1ul << SPI_CTL_INTEN_Pos) /*!< SPI_T::CTL: INTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9572 | |
AnnaBridge | 174:b96e65c34a4d | 9573 | #define SPI_CTL_SLAVE_Pos (18) /*!< SPI_T::CTL: SLAVE Position */ |
AnnaBridge | 174:b96e65c34a4d | 9574 | #define SPI_CTL_SLAVE_Msk (0x1ul << SPI_CTL_SLAVE_Pos) /*!< SPI_T::CTL: SLAVE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9575 | |
AnnaBridge | 174:b96e65c34a4d | 9576 | #define SPI_CTL_REORDER_Pos (19) /*!< SPI_T::CTL: REORDER Position */ |
AnnaBridge | 174:b96e65c34a4d | 9577 | #define SPI_CTL_REORDER_Msk (0x1ul << SPI_CTL_REORDER_Pos) /*!< SPI_T::CTL: REORDER Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9578 | |
AnnaBridge | 174:b96e65c34a4d | 9579 | #define SPI_CTL_FIFOM_Pos (21) /*!< SPI_T::CTL: FIFOM Position */ |
AnnaBridge | 174:b96e65c34a4d | 9580 | #define SPI_CTL_FIFOM_Msk (0x1ul << SPI_CTL_FIFOM_Pos) /*!< SPI_T::CTL: FIFOM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9581 | |
AnnaBridge | 174:b96e65c34a4d | 9582 | #define SPI_CTL_TWOB_Pos (22) /*!< SPI_T::CTL: TWOB Position */ |
AnnaBridge | 174:b96e65c34a4d | 9583 | #define SPI_CTL_TWOB_Msk (0x1ul << SPI_CTL_TWOB_Pos) /*!< SPI_T::CTL: TWOB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9584 | |
AnnaBridge | 174:b96e65c34a4d | 9585 | #define SPI_CTL_VARCLK_EN_Pos (23) /*!< SPI_T::CTL: VARCLK_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9586 | #define SPI_CTL_VARCLK_EN_Msk (0x1ul << SPI_CTL_VARCLK_EN_Pos) /*!< SPI_T::CTL: VARCLK_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9587 | |
AnnaBridge | 174:b96e65c34a4d | 9588 | #define SPI_CTL_DUAL_IO_DIR_Pos (28) /*!< SPI_T::CTL: DUAL_IO_DIR Position */ |
AnnaBridge | 174:b96e65c34a4d | 9589 | #define SPI_CTL_DUAL_IO_DIR_Msk (0x1ul << SPI_CTL_DUAL_IO_DIR_Pos) /*!< SPI_T::CTL: DUAL_IO_DIR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9590 | |
AnnaBridge | 174:b96e65c34a4d | 9591 | #define SPI_CTL_DUAL_IO_EN_Pos (29) /*!< SPI_T::CTL: DUAL_IO_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9592 | #define SPI_CTL_DUAL_IO_EN_Msk (0x1ul << SPI_CTL_DUAL_IO_EN_Pos) /*!< SPI_T::CTL: DUAL_IO_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9593 | |
AnnaBridge | 174:b96e65c34a4d | 9594 | #define SPI_CTL_WKEUP_EN_Pos (31) /*!< SPI_T::CTL: WKEUP_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9595 | #define SPI_CTL_WKEUP_EN_Msk (0x1ul << SPI_CTL_WKEUP_EN_Pos) /*!< SPI_T::CTL: WKEUP_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9596 | |
AnnaBridge | 174:b96e65c34a4d | 9597 | #define SPI_STATUS_RX_EMPTY_Pos (0) /*!< SPI_T::STATUS: RX_EMPTY Position */ |
AnnaBridge | 174:b96e65c34a4d | 9598 | #define SPI_STATUS_RX_EMPTY_Msk (0x1ul << SPI_STATUS_RX_EMPTY_Pos) /*!< SPI_T::STATUS: RX_EMPTY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9599 | |
AnnaBridge | 174:b96e65c34a4d | 9600 | #define SPI_STATUS_RX_FULL_Pos (1) /*!< SPI_T::STATUS: RX_FULL Position */ |
AnnaBridge | 174:b96e65c34a4d | 9601 | #define SPI_STATUS_RX_FULL_Msk (0x1ul << SPI_STATUS_RX_FULL_Pos) /*!< SPI_T::STATUS: RX_FULL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9602 | |
AnnaBridge | 174:b96e65c34a4d | 9603 | #define SPI_STATUS_TX_EMPTY_Pos (2) /*!< SPI_T::STATUS: TX_EMPTY Position */ |
AnnaBridge | 174:b96e65c34a4d | 9604 | #define SPI_STATUS_TX_EMPTY_Msk (0x1ul << SPI_STATUS_TX_EMPTY_Pos) /*!< SPI_T::STATUS: TX_EMPTY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9605 | |
AnnaBridge | 174:b96e65c34a4d | 9606 | #define SPI_STATUS_TX_FULL_Pos (3) /*!< SPI_T::STATUS: TX_FULL Position */ |
AnnaBridge | 174:b96e65c34a4d | 9607 | #define SPI_STATUS_TX_FULL_Msk (0x1ul << SPI_STATUS_TX_FULL_Pos) /*!< SPI_T::STATUS: TX_FULL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9608 | |
AnnaBridge | 174:b96e65c34a4d | 9609 | #define SPI_STATUS_LTRIG_FLAG_Pos (4) /*!< SPI_T::STATUS: LTRIG_FLAG Position */ |
AnnaBridge | 174:b96e65c34a4d | 9610 | #define SPI_STATUS_LTRIG_FLAG_Msk (0x1ul << SPI_STATUS_LTRIG_FLAG_Pos) /*!< SPI_T::STATUS: LTRIG_FLAG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9611 | |
AnnaBridge | 174:b96e65c34a4d | 9612 | #define SPI_STATUS_SLV_START_INTSTS_Pos (6) /*!< SPI_T::STATUS: SLV_START_INTSTS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9613 | #define SPI_STATUS_SLV_START_INTSTS_Msk (0x1ul << SPI_STATUS_SLV_START_INTSTS_Pos) /*!< SPI_T::STATUS: SLV_START_INTSTS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9614 | |
AnnaBridge | 174:b96e65c34a4d | 9615 | #define SPI_STATUS_INTSTS_Pos (7) /*!< SPI_T::STATUS: INTSTS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9616 | #define SPI_STATUS_INTSTS_Msk (0x1ul << SPI_STATUS_INTSTS_Pos) /*!< SPI_T::STATUS: INTSTS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9617 | |
AnnaBridge | 174:b96e65c34a4d | 9618 | #define SPI_STATUS_RXINT_STS_Pos (8) /*!< SPI_T::STATUS: RXINT_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9619 | #define SPI_STATUS_RXINT_STS_Msk (0x1ul << SPI_STATUS_RXINT_STS_Pos) /*!< SPI_T::STATUS: RXINT_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9620 | |
AnnaBridge | 174:b96e65c34a4d | 9621 | #define SPI_STATUS_RX_OVER_RUN_Pos (9) /*!< SPI_T::STATUS: RX_OVER_RUN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9622 | #define SPI_STATUS_RX_OVER_RUN_Msk (0x1ul << SPI_STATUS_RX_OVER_RUN_Pos) /*!< SPI_T::STATUS: RX_OVER_RUN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9623 | |
AnnaBridge | 174:b96e65c34a4d | 9624 | #define SPI_STATUS_TXINT_STS_Pos (10) /*!< SPI_T::STATUS: TXINT_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9625 | #define SPI_STATUS_TXINT_STS_Msk (0x1ul << SPI_STATUS_TXINT_STS_Pos) /*!< SPI_T::STATUS: TXINT_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9626 | |
AnnaBridge | 174:b96e65c34a4d | 9627 | #define SPI_STATUS_TIME_OUT_STS_Pos (12) /*!< SPI_T::STATUS: TIME_OUT_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9628 | #define SPI_STATUS_TIME_OUT_STS_Msk (0x1ul << SPI_STATUS_TIME_OUT_STS_Pos) /*!< SPI_T::STATUS: TIME_OUT_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9629 | |
AnnaBridge | 174:b96e65c34a4d | 9630 | #define SPI_STATUS_RX_FIFO_CNT_Pos (16) /*!< SPI_T::STATUS: RX_FIFO_CNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 9631 | #define SPI_STATUS_RX_FIFO_CNT_Msk (0xful << SPI_STATUS_RX_FIFO_CNT_Pos) /*!< SPI_T::STATUS: RX_FIFO_CNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9632 | |
AnnaBridge | 174:b96e65c34a4d | 9633 | #define SPI_STATUS_TX_FIFO_CNT_Pos (20) /*!< SPI_T::STATUS: TX_FIFO_CNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 9634 | #define SPI_STATUS_TX_FIFO_CNT_Msk (0xful << SPI_STATUS_TX_FIFO_CNT_Pos) /*!< SPI_T::STATUS: TX_FIFO_CNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9635 | |
AnnaBridge | 174:b96e65c34a4d | 9636 | #define SPI_CLKDIV_DIVIDER1_Pos (0) /*!< SPI_T::CLKDIV: DIVIDER1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 9637 | #define SPI_CLKDIV_DIVIDER1_Msk (0xfful << SPI_CLKDIV_DIVIDER1_Pos) /*!< SPI_T::CLKDIV: DIVIDER1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9638 | |
AnnaBridge | 174:b96e65c34a4d | 9639 | #define SPI_CLKDIV_DIVIDER2_Pos (16) /*!< SPI_T::CLKDIV: DIVIDER2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 9640 | #define SPI_CLKDIV_DIVIDER2_Msk (0xfful << SPI_CLKDIV_DIVIDER2_Pos) /*!< SPI_T::CLKDIV: DIVIDER2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9641 | |
AnnaBridge | 174:b96e65c34a4d | 9642 | #define SPI_SSR_SSR_Pos (0) /*!< SPI_T::SSR: SSR Position */ |
AnnaBridge | 174:b96e65c34a4d | 9643 | #define SPI_SSR_SSR_Msk (0x3ul << SPI_SSR_SSR_Pos) /*!< SPI_T::SSR: SSR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9644 | |
AnnaBridge | 174:b96e65c34a4d | 9645 | #define SPI_SSR_SS_LVL_Pos (2) /*!< SPI_T::SSR: SS_LVL Position */ |
AnnaBridge | 174:b96e65c34a4d | 9646 | #define SPI_SSR_SS_LVL_Msk (0x1ul << SPI_SSR_SS_LVL_Pos) /*!< SPI_T::SSR: SS_LVL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9647 | |
AnnaBridge | 174:b96e65c34a4d | 9648 | #define SPI_SSR_AUTOSS_Pos (3) /*!< SPI_T::SSR: AUTOSS Position */ |
AnnaBridge | 174:b96e65c34a4d | 9649 | #define SPI_SSR_AUTOSS_Msk (0x1ul << SPI_SSR_AUTOSS_Pos) /*!< SPI_T::SSR: AUTOSS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9650 | |
AnnaBridge | 174:b96e65c34a4d | 9651 | #define SPI_SSR_SS_LTRIG_Pos (4) /*!< SPI_T::SSR: SS_LTRIG Position */ |
AnnaBridge | 174:b96e65c34a4d | 9652 | #define SPI_SSR_SS_LTRIG_Msk (0x1ul << SPI_SSR_SS_LTRIG_Pos) /*!< SPI_T::SSR: SS_LTRIG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9653 | |
AnnaBridge | 174:b96e65c34a4d | 9654 | #define SPI_SSR_NOSLVSEL_Pos (5) /*!< SPI_T::SSR: NOSLVSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 9655 | #define SPI_SSR_NOSLVSEL_Msk (0x1ul << SPI_SSR_NOSLVSEL_Pos) /*!< SPI_T::SSR: NOSLVSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9656 | |
AnnaBridge | 174:b96e65c34a4d | 9657 | #define SPI_SSR_SLV_ABORT_Pos (8) /*!< SPI_T::SSR: SLV_ABORT Position */ |
AnnaBridge | 174:b96e65c34a4d | 9658 | #define SPI_SSR_SLV_ABORT_Msk (0x1ul << SPI_SSR_SLV_ABORT_Pos) /*!< SPI_T::SSR: SLV_ABORT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9659 | |
AnnaBridge | 174:b96e65c34a4d | 9660 | #define SPI_SSR_SSTA_INTEN_Pos (9) /*!< SPI_T::SSR: SSTA_INTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9661 | #define SPI_SSR_SSTA_INTEN_Msk (0x1ul << SPI_SSR_SSTA_INTEN_Pos) /*!< SPI_T::SSR: SSTA_INTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9662 | |
AnnaBridge | 174:b96e65c34a4d | 9663 | #define SPI_SSR_SS_INT_OPT_Pos (16) /*!< SPI_T::SSR: SS_INT_OPT Position */ |
AnnaBridge | 174:b96e65c34a4d | 9664 | #define SPI_SSR_SS_INT_OPT_Msk (0x1ul << SPI_SSR_SS_INT_OPT_Pos) /*!< SPI_T::SSR: SS_INT_OPT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9665 | |
AnnaBridge | 174:b96e65c34a4d | 9666 | #define SPI_RX0_RDATA_Pos (0) /*!< SPI_T::RX0: RDATA Position */ |
AnnaBridge | 174:b96e65c34a4d | 9667 | #define SPI_RX0_RDATA_Msk (0xfffffffful << SPI_RX0_RDATA_Pos) /*!< SPI_T::RX0: RDATA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9668 | |
AnnaBridge | 174:b96e65c34a4d | 9669 | #define SPI_RX1_RDATA_Pos (0) /*!< SPI_T::RX1: RDATA Position */ |
AnnaBridge | 174:b96e65c34a4d | 9670 | #define SPI_RX1_RDATA_Msk (0xfffffffful << SPI_RX1_RDATA_Pos) /*!< SPI_T::RX1: RDATA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9671 | |
AnnaBridge | 174:b96e65c34a4d | 9672 | #define SPI_TX0_TDATA_Pos (0) /*!< SPI_T::TX0: TDATA Position */ |
AnnaBridge | 174:b96e65c34a4d | 9673 | #define SPI_TX0_TDATA_Msk (0xfffffffful << SPI_TX0_TDATA_Pos) /*!< SPI_T::TX0: TDATA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9674 | |
AnnaBridge | 174:b96e65c34a4d | 9675 | #define SPI_TX1_TDATA_Pos (0) /*!< SPI_T::TX1: TDATA Position */ |
AnnaBridge | 174:b96e65c34a4d | 9676 | #define SPI_TX1_TDATA_Msk (0xfffffffful << SPI_TX1_TDATA_Pos) /*!< SPI_T::TX1: TDATA Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9677 | |
AnnaBridge | 174:b96e65c34a4d | 9678 | #define SPI_VARCLK_VARCLK_Pos (0) /*!< SPI_T::VARCLK: VARCLK Position */ |
AnnaBridge | 174:b96e65c34a4d | 9679 | #define SPI_VARCLK_VARCLK_Msk (0xfffffffful << SPI_VARCLK_VARCLK_Pos) /*!< SPI_T::VARCLK: VARCLK Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9680 | |
AnnaBridge | 174:b96e65c34a4d | 9681 | #define SPI_DMA_TX_DMA_EN_Pos (0) /*!< SPI_T::DMA: TX_DMA_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9682 | #define SPI_DMA_TX_DMA_EN_Msk (0x1ul << SPI_DMA_TX_DMA_EN_Pos) /*!< SPI_T::DMA: TX_DMA_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9683 | |
AnnaBridge | 174:b96e65c34a4d | 9684 | #define SPI_DMA_RX_DMA_EN_Pos (1) /*!< SPI_T::DMA: RX_DMA_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9685 | #define SPI_DMA_RX_DMA_EN_Msk (0x1ul << SPI_DMA_RX_DMA_EN_Pos) /*!< SPI_T::DMA: RX_DMA_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9686 | |
AnnaBridge | 174:b96e65c34a4d | 9687 | #define SPI_DMA_PDMA_RST_Pos (2) /*!< SPI_T::DMA: PDMA_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 9688 | #define SPI_DMA_PDMA_RST_Msk (0x1ul << SPI_DMA_PDMA_RST_Pos) /*!< SPI_T::DMA: PDMA_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9689 | |
AnnaBridge | 174:b96e65c34a4d | 9690 | #define SPI_FFCTL_RX_CLR_Pos (0) /*!< SPI_T::FFCTL: RX_CLR Position */ |
AnnaBridge | 174:b96e65c34a4d | 9691 | #define SPI_FFCTL_RX_CLR_Msk (0x1ul << SPI_FFCTL_RX_CLR_Pos) /*!< SPI_T::FFCTL: RX_CLR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9692 | |
AnnaBridge | 174:b96e65c34a4d | 9693 | #define SPI_FFCTL_TX_CLR_Pos (1) /*!< SPI_T::FFCTL: TX_CLR Position */ |
AnnaBridge | 174:b96e65c34a4d | 9694 | #define SPI_FFCTL_TX_CLR_Msk (0x1ul << SPI_FFCTL_TX_CLR_Pos) /*!< SPI_T::FFCTL: TX_CLR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9695 | |
AnnaBridge | 174:b96e65c34a4d | 9696 | #define SPI_FFCTL_RX_INTEN_Pos (2) /*!< SPI_T::FFCTL: RX_INTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9697 | #define SPI_FFCTL_RX_INTEN_Msk (0x1ul << SPI_FFCTL_RX_INTEN_Pos) /*!< SPI_T::FFCTL: RX_INTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9698 | |
AnnaBridge | 174:b96e65c34a4d | 9699 | #define SPI_FFCTL_TX_INTEN_Pos (3) /*!< SPI_T::FFCTL: TX_INTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9700 | #define SPI_FFCTL_TX_INTEN_Msk (0x1ul << SPI_FFCTL_TX_INTEN_Pos) /*!< SPI_T::FFCTL: TX_INTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9701 | |
AnnaBridge | 174:b96e65c34a4d | 9702 | #define SPI_FFCTL_RXOVR_INTEN_Pos (4) /*!< SPI_T::FFCTL: RXOVR_INTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9703 | #define SPI_FFCTL_RXOVR_INTEN_Msk (0x1ul << SPI_FFCTL_RXOVR_INTEN_Pos) /*!< SPI_T::FFCTL: RXOVR_INTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9704 | |
AnnaBridge | 174:b96e65c34a4d | 9705 | #define SPI_FFCTL_TIMEOUT_EN_Pos (7) /*!< SPI_T::FFCTL: TIMEOUT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9706 | #define SPI_FFCTL_TIMEOUT_EN_Msk (0x1ul << SPI_FFCTL_TIMEOUT_EN_Pos) /*!< SPI_T::FFCTL: TIMEOUT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9707 | |
AnnaBridge | 174:b96e65c34a4d | 9708 | #define SPI_FFCTL_RX_THRESHOLD_Pos (24) /*!< SPI_T::FFCTL: RX_THRESHOLD Position */ |
AnnaBridge | 174:b96e65c34a4d | 9709 | #define SPI_FFCTL_RX_THRESHOLD_Msk (0x7ul << SPI_FFCTL_RX_THRESHOLD_Pos) /*!< SPI_T::FFCTL: RX_THRESHOLD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9710 | |
AnnaBridge | 174:b96e65c34a4d | 9711 | #define SPI_FFCTL_TX_THRESHOLD_Pos (28) /*!< SPI_T::FFCTL: TX_THRESHOLD Position */ |
AnnaBridge | 174:b96e65c34a4d | 9712 | #define SPI_FFCTL_TX_THRESHOLD_Msk (0x7ul << SPI_FFCTL_TX_THRESHOLD_Pos) /*!< SPI_T::FFCTL: TX_THRESHOLD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9713 | |
AnnaBridge | 174:b96e65c34a4d | 9714 | /**@}*/ /* SPI_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 9715 | /**@}*/ /* end of SPI register group */ |
AnnaBridge | 174:b96e65c34a4d | 9716 | |
AnnaBridge | 174:b96e65c34a4d | 9717 | |
AnnaBridge | 174:b96e65c34a4d | 9718 | /*---------------------- Timer Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 9719 | /** |
AnnaBridge | 174:b96e65c34a4d | 9720 | @addtogroup TIMER Timer Controller(TIMER) |
AnnaBridge | 174:b96e65c34a4d | 9721 | Memory Mapped Structure for TIMER Controller |
AnnaBridge | 174:b96e65c34a4d | 9722 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 9723 | |
AnnaBridge | 174:b96e65c34a4d | 9724 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 9725 | |
AnnaBridge | 174:b96e65c34a4d | 9726 | |
AnnaBridge | 174:b96e65c34a4d | 9727 | /** |
AnnaBridge | 174:b96e65c34a4d | 9728 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 9729 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9730 | * Offset: 0x00 Timer x Control Register |
AnnaBridge | 174:b96e65c34a4d | 9731 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9732 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9733 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9734 | * |[0] |TMR_EN |Timer Counter Enable Bit |
AnnaBridge | 174:b96e65c34a4d | 9735 | * | | |0 = Stops/Suspends counting. |
AnnaBridge | 174:b96e65c34a4d | 9736 | * | | |1 = Starts counting. |
AnnaBridge | 174:b96e65c34a4d | 9737 | * | | |Note1: Set TMR_EN to 1 enables 24-bit counter keeps up counting from the last stop counting value. |
AnnaBridge | 174:b96e65c34a4d | 9738 | * | | |Note2: This bit is auto-cleared by hardware in one-shot mode (MODE_SEL [5:4] =2'b00) once the value of 24-bit up counter equals the TMRx_CMPR. |
AnnaBridge | 174:b96e65c34a4d | 9739 | * |[1] |SW_RST |Software Reset |
AnnaBridge | 174:b96e65c34a4d | 9740 | * | | |Set this bit will reset the timer counter, pre-scale counter and also force TMR_CTL [TMR_EN] to 0. |
AnnaBridge | 174:b96e65c34a4d | 9741 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 9742 | * | | |1 = Reset Timer's pre-scale counter, internal 24-bit up-counter and TMR_CTL [TMR_EN] bit. |
AnnaBridge | 174:b96e65c34a4d | 9743 | * | | |Note: This bit will be auto cleared and takes at least 3 TMRx_CLK clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 9744 | * |[2] |WAKE_EN |Wake-Up Enable |
AnnaBridge | 174:b96e65c34a4d | 9745 | * | | |When WAKE_EN is set and the TMR_IS or TCAP_IS is set, the timer controller will generate a wake-up trigger event to CPU. |
AnnaBridge | 174:b96e65c34a4d | 9746 | * | | |0 = Wake-up trigger event Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9747 | * | | |1 = Wake-up trigger event Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9748 | * |[3] |DBGACK_EN |ICE Debug Mode Acknowledge Ineffective Enable |
AnnaBridge | 174:b96e65c34a4d | 9749 | * | | |0 = ICE debug mode acknowledgement effects TIMER counting and TIMER counter will be held while ICE debug mode acknowledged. |
AnnaBridge | 174:b96e65c34a4d | 9750 | * | | |1 = ICE debug mode acknowledgement is ineffective and TIMER counter will keep going no matter ICE debug mode acknowledged or not. |
AnnaBridge | 174:b96e65c34a4d | 9751 | * |[5:4] |MODE_SEL |Timer Operating Mode Select |
AnnaBridge | 174:b96e65c34a4d | 9752 | * | | |00 = The timer is operating in the one-shot mode. |
AnnaBridge | 174:b96e65c34a4d | 9753 | * | | |In this mode, the associated interrupt signal is generated (if TMR_IER [TMR_IE] is enabled) once the value of 24-bit up counter equals the TMRx_CMPR. |
AnnaBridge | 174:b96e65c34a4d | 9754 | * | | |And TMR_CTL [TMR_EN] is automatically cleared by hardware. |
AnnaBridge | 174:b96e65c34a4d | 9755 | * | | |01 = The timer is operating in the periodic mode. |
AnnaBridge | 174:b96e65c34a4d | 9756 | * | | |In this mode, the associated interrupt signal is generated periodically (if TMR_IER [TMR_IE] is enabled) while the value of 24-bit up counter equals the TMRx_CMPR. |
AnnaBridge | 174:b96e65c34a4d | 9757 | * | | |After that, the 24-bit counter will be reset and starts counting from zero again. |
AnnaBridge | 174:b96e65c34a4d | 9758 | * | | |10 = The timer is operating in the periodic mode with output toggling. |
AnnaBridge | 174:b96e65c34a4d | 9759 | * | | |In this mode, the associated interrupt signal is generated periodically (if TMR_IER [TMR_IE] is enabled) while the value of 24-bit up counter equals the TMRx_CMPR. |
AnnaBridge | 174:b96e65c34a4d | 9760 | * | | |After that, the 24-bit counter will be reset and starts counting from zero again. |
AnnaBridge | 174:b96e65c34a4d | 9761 | * | | |At the same time, timer controller will also toggle the output pin TMRx_TOG_OUT to its inverse level (from low to high or from high to low). |
AnnaBridge | 174:b96e65c34a4d | 9762 | * | | |Note: The default level of TMRx_TOG_OUT after reset is low. |
AnnaBridge | 174:b96e65c34a4d | 9763 | * | | |11 = The timer is operating in continuous counting mode. |
AnnaBridge | 174:b96e65c34a4d | 9764 | * | | |In this mode, the associated interrupt signal is generated when TMR_DR = TMR_CMPR (if TMR_IER [TMR_IE] is enabled). |
AnnaBridge | 174:b96e65c34a4d | 9765 | * | | |However, the 24-bit up-counter counts continuously without reset. |
AnnaBridge | 174:b96e65c34a4d | 9766 | * |[7] |TMR_ACT |Timer Active Status Bit (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 9767 | * | | |This bit indicates the timer counter status of timer. |
AnnaBridge | 174:b96e65c34a4d | 9768 | * | | |0 = Timer is not active. |
AnnaBridge | 174:b96e65c34a4d | 9769 | * | | |1 = Timer is in active. |
AnnaBridge | 174:b96e65c34a4d | 9770 | * |[8] |ADC_TEEN |TMR_IS Or TCAP_IS Trigger ADC Enable |
AnnaBridge | 174:b96e65c34a4d | 9771 | * | | |This bit controls if TMR_IS or TCAP_IS could trigger ADC. |
AnnaBridge | 174:b96e65c34a4d | 9772 | * | | |When ADC_TEEN is set, TMR_IS is set and the CAP_TRG_EN is low, the timer controller will generate an internal trigger event to ADC controller. |
AnnaBridge | 174:b96e65c34a4d | 9773 | * | | |When ADC_TEEN is set, TCAP_IS is set and the CAP_TRG_EN is high, the timer controller will generate an internal trigger event to ADC controller. |
AnnaBridge | 174:b96e65c34a4d | 9774 | * | | |0 = TMR_IS or TCAP_IS trigger ADC Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9775 | * | | |1 = TMR_IS or TCAP_IS trigger ADC Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9776 | * |[9] |DAC_TEEN |TMR_IS Or TCAP_IS Trigger DAC Enable |
AnnaBridge | 174:b96e65c34a4d | 9777 | * | | |This bit controls if TMR_IS or TCAP_IS could trigger DAC. |
AnnaBridge | 174:b96e65c34a4d | 9778 | * | | |When DAC_TEEN is set, TMR_IS is set and the CAP_TRG_EN is low, the timer controller will generate an internal trigger event to DAC controller. |
AnnaBridge | 174:b96e65c34a4d | 9779 | * | | |When DAC_TEEN is set, TCAP_IS is set and the CAP_TRG_EN is high, the timer controller will generate an internal trigger event to DAC controller. |
AnnaBridge | 174:b96e65c34a4d | 9780 | * | | |0 = TMR_IS or TCAP_IS trigger DAC Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9781 | * | | |1 = TMR_IS or TCAP_IS trigger DAC Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9782 | * |[10] |PDMA_TEEN |TMR_IS Or TCAP_IS Trigger PDMA Enable |
AnnaBridge | 174:b96e65c34a4d | 9783 | * | | |This bit controls if TMR_IS or TCAP_IS could trigger PDMA. |
AnnaBridge | 174:b96e65c34a4d | 9784 | * | | |When PDMA_TEEN is set, TMR_IS is set and the CAP_TRG_EN is low, the timer controller will generate an internal trigger event to PDMA controller. |
AnnaBridge | 174:b96e65c34a4d | 9785 | * | | |When PDMA_TEEN is set, TCAP_IS is set and the CAP_TRG_EN is high, the timer controller will generate an internal trigger event to PDMA controller. |
AnnaBridge | 174:b96e65c34a4d | 9786 | * | | |0 = TMR_IS or TCAP_IS trigger PDMA Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9787 | * | | |1 = TMR_IS or TCAP_IS trigger PDMA Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9788 | * |[11] |CAP_TRG_EN|TCAP_IS Trigger Mode Enable |
AnnaBridge | 174:b96e65c34a4d | 9789 | * | | |This bit controls if the TMR_IS or TCAP_IS is used to trigger PDMA, DAC and ADC while TMR_IS or TCAP_IS is set. |
AnnaBridge | 174:b96e65c34a4d | 9790 | * | | |If this bit is low and TMR_IS is set, timer will generate an internal trigger event to PDMA, DAC or ADC while related trigger enable bit (PDMA_TEEN, DAC_TEEN or ADC_TEEN) is also set. |
AnnaBridge | 174:b96e65c34a4d | 9791 | * | | |If this bit is set high and TCAP_IS is set, timer will generate an internal trigger event to PDMA, DAC or ADC while related trigger enable bit (PDMA_TEEN, DAC_TEEN or ADC_TEEN) is also set. |
AnnaBridge | 174:b96e65c34a4d | 9792 | * | | |0 = TMR_IS is used to trigger PDMA, DAC and ADC. |
AnnaBridge | 174:b96e65c34a4d | 9793 | * | | |1 = TCAP_IS is used to trigger PDMA, DAC and ADC. |
AnnaBridge | 174:b96e65c34a4d | 9794 | * |[12] |EVENT_EN |Event Counting Mode Enable |
AnnaBridge | 174:b96e65c34a4d | 9795 | * | | |When EVENT_EN is set, the increase of 24-bit up-counting timer is controlled by external event pin. |
AnnaBridge | 174:b96e65c34a4d | 9796 | * | | |While the transition of external event pin matches the definition of EVENT_EDGE, the 24-bit up-counting timer increases by 1. |
AnnaBridge | 174:b96e65c34a4d | 9797 | * | | |Or, the 24-bit up-counting timer will keep its value unchanged. |
AnnaBridge | 174:b96e65c34a4d | 9798 | * | | |0 = Timer counting is not controlled by external event pin. |
AnnaBridge | 174:b96e65c34a4d | 9799 | * | | |1 = Timer counting is controlled by external event pin. |
AnnaBridge | 174:b96e65c34a4d | 9800 | * | | |Note: When EVENT_EN is enabled, user can not choose EXT_TMx(GPB) as clock source. |
AnnaBridge | 174:b96e65c34a4d | 9801 | * | | |However, the speed of chosen clock must 3 times greater than the speed of EXT_TMx(GPB). |
AnnaBridge | 174:b96e65c34a4d | 9802 | * |[13] |EVENT_EDGE|Event Counting Mode Edge Selection |
AnnaBridge | 174:b96e65c34a4d | 9803 | * | | |This bit indicates which edge of external event pin enabling the timer to increase 1. |
AnnaBridge | 174:b96e65c34a4d | 9804 | * | | |0 = A falling edge of external event enabling the timer to increase 1. |
AnnaBridge | 174:b96e65c34a4d | 9805 | * | | |1 = A rising edge of external event enabling the timer to increase 1. |
AnnaBridge | 174:b96e65c34a4d | 9806 | * |[14] |EVNT_DEB_EN|External Event De-Bounce Enable |
AnnaBridge | 174:b96e65c34a4d | 9807 | * | | |When EVNT_DEB_EN is set, the external event pin de-bounce circuit will be enabled to eliminate the bouncing of the signal. |
AnnaBridge | 174:b96e65c34a4d | 9808 | * | | |In de-bounce circuit the external event pin will be sampled 4 times by TMRx_CLK. |
AnnaBridge | 174:b96e65c34a4d | 9809 | * | | |0 = De-bounce circuit Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9810 | * | | |1 = De-bounce circuit Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9811 | * | | |Note: When EVENT_EN is enabled, enable this bit is recommended. |
AnnaBridge | 174:b96e65c34a4d | 9812 | * | | |And, while EVENT_EN is disabled, disable this bit is recommended to save power consumption. |
AnnaBridge | 174:b96e65c34a4d | 9813 | * |[16] |TCAP_EN |Tcapture Pin Functional Enable |
AnnaBridge | 174:b96e65c34a4d | 9814 | * | | |This bit controls if the transition on Tcapture pin could be used as timer counter reset function or timer capture function. |
AnnaBridge | 174:b96e65c34a4d | 9815 | * | | |0 = The transition on Tcapture pin is ignored. |
AnnaBridge | 174:b96e65c34a4d | 9816 | * | | |1 = The transition on Tcapture pin will result in the capture or reset of 24-bit timer counter. |
AnnaBridge | 174:b96e65c34a4d | 9817 | * | | |Note: For TMRx_CTL, if INTR_TRG_EN is set, the TCAP_EN will be forced to low and the Tcapture pin transition is ignored. |
AnnaBridge | 174:b96e65c34a4d | 9818 | * | | |Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the TCAP_EN will be forced to high. |
AnnaBridge | 174:b96e65c34a4d | 9819 | * |[17] |TCAP_MODE |Tcapture Pin Function Mode Selection |
AnnaBridge | 174:b96e65c34a4d | 9820 | * | | |This bit indicates if the transition on Tcapture pin is used as timer counter reset function or timer capture function. |
AnnaBridge | 174:b96e65c34a4d | 9821 | * | | |0 = The transition on Tcapture pin is used as timer capture function. |
AnnaBridge | 174:b96e65c34a4d | 9822 | * | | |1 = The transition on Tcapture pin is used as timer counter reset function. |
AnnaBridge | 174:b96e65c34a4d | 9823 | * | | |Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the TCAP_MODE will be forced to low. |
AnnaBridge | 174:b96e65c34a4d | 9824 | * |[19:18] |TCAP_EDGE |Tcapture Pin Edge Detect Selection |
AnnaBridge | 174:b96e65c34a4d | 9825 | * | | |This field defines that active transition of Tcapture pin is for timer counter reset function or for timer capture function. |
AnnaBridge | 174:b96e65c34a4d | 9826 | * | | |For timer counter reset function and free-counting mode of timer capture function, the configurations are: |
AnnaBridge | 174:b96e65c34a4d | 9827 | * | | |00 = A falling edge (1 to 0 transition) on Tcapture pin is an active transition. |
AnnaBridge | 174:b96e65c34a4d | 9828 | * | | |01 = A rising edge (0 to 1 transition) on Tcapture pin is an active transition. |
AnnaBridge | 174:b96e65c34a4d | 9829 | * | | |10 = Both falling edge (1 to 0 transition) and rising edge (0 to 1 transition) on Tcapture pin are active transitions. |
AnnaBridge | 174:b96e65c34a4d | 9830 | * | | |11 = Both falling edge (1 to 0 transition) and rising edge (0 to 1 transition) on Tcapture pin are active transitions. |
AnnaBridge | 174:b96e65c34a4d | 9831 | * | | |For trigger-counting mode of timer capture function, the configurations are: |
AnnaBridge | 174:b96e65c34a4d | 9832 | * | | |00 = 1st falling edge on Tcapture pin triggers 24-bit timer to start counting, while 2nd falling edge triggers 24-bit timer to stop counting. |
AnnaBridge | 174:b96e65c34a4d | 9833 | * | | |01 = 1st rising edge on Tcapture pin triggers 24-bit timer to start counting, while 2nd rising edge triggers 24-bit timer to stop counting. |
AnnaBridge | 174:b96e65c34a4d | 9834 | * | | |10 = Falling edge on Tcapture pin triggers 24-bit timer to start counting, while rising edge triggers 24-bit timer to stop counting. |
AnnaBridge | 174:b96e65c34a4d | 9835 | * | | |11 = Rising edge on Tcapture pin triggers 24-bit timer to start counting, while falling edge triggers 24-bit timer to stop counting. |
AnnaBridge | 174:b96e65c34a4d | 9836 | * | | |Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the TCAP_EDGE will be forced to 11. |
AnnaBridge | 174:b96e65c34a4d | 9837 | * |[20] |TCAP_CNT_MODE|Timer Capture Counting Mode Selection |
AnnaBridge | 174:b96e65c34a4d | 9838 | * | | |This bit indicates the behavior of 24-bit up-counting timer while TCAP_EN is set to high. |
AnnaBridge | 174:b96e65c34a4d | 9839 | * | | |If this bit is 0, the free-counting mode, the behavior of 24-bit up-counting timer is defined by MODE_SEL field. |
AnnaBridge | 174:b96e65c34a4d | 9840 | * | | |When TCAP_EN is set, TCAP_MODE is 0, and the transition of Tcapture pin matches the TCAP_EDGE setting, the value of 24-bit up-counting timer will be saved into register TMRx_TCAPn. |
AnnaBridge | 174:b96e65c34a4d | 9841 | * | | |If this bit is 1, Trigger-counting mode, 24-bit up-counting timer will be not counting and keep its value at zero. |
AnnaBridge | 174:b96e65c34a4d | 9842 | * | | |When TCAP_EN is set, TCAP_MODE is 0, and once the transition of external pin matches the 1st transition of TCAP_EDGE setting, the 24-bit up-counting timer will start counting. |
AnnaBridge | 174:b96e65c34a4d | 9843 | * | | |And then if the transition of external pin matches the 2nd transition of TCAP_EDGE setting, the 24-bit up-counting timer will stop counting. |
AnnaBridge | 174:b96e65c34a4d | 9844 | * | | |And its value will be saved into register TMRx_TCAPn. |
AnnaBridge | 174:b96e65c34a4d | 9845 | * | | |0 = Capture with free-counting timer mode. |
AnnaBridge | 174:b96e65c34a4d | 9846 | * | | |1 = Capture with trigger-counting timer mode. |
AnnaBridge | 174:b96e65c34a4d | 9847 | * | | |Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the CAP_CNT_MOD will be forced to high, the capture with Trigger-counting Timer mode. |
AnnaBridge | 174:b96e65c34a4d | 9848 | * |[22] |TCAP_DEB_EN|Tcapture Pin De-Bounce Enable |
AnnaBridge | 174:b96e65c34a4d | 9849 | * | | |When CAP_DEB_EN is set, the Tcapture pin de-bounce circuit will be enabled to eliminate the bouncing of the signal. |
AnnaBridge | 174:b96e65c34a4d | 9850 | * | | |In de-bounce circuit the Tcapture pin signal will be sampled 4 times by TMRx_CLK. |
AnnaBridge | 174:b96e65c34a4d | 9851 | * | | |0 = De-bounce circuit Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9852 | * | | |1 = De-bounce circuit Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9853 | * | | |Note: When TCAP_EN is enabled, enable this bit is recommended. |
AnnaBridge | 174:b96e65c34a4d | 9854 | * | | |And, while TCAP_EN is disabled, disable this bit is recommended to save power consumption. |
AnnaBridge | 174:b96e65c34a4d | 9855 | * |[24] |INTR_TRG_EN|Inter-Timer Trigger Mode Enable |
AnnaBridge | 174:b96e65c34a4d | 9856 | * | | |This bit controls if Inter-timer Trigger mode is enabled. |
AnnaBridge | 174:b96e65c34a4d | 9857 | * | | |If Inter-timer Trigger mode is enabled, the TMRx will be in counter mode and counting with external Clock Source or event. |
AnnaBridge | 174:b96e65c34a4d | 9858 | * | | |And, TMRx+1 will be in trigger-counting mode of capture function. |
AnnaBridge | 174:b96e65c34a4d | 9859 | * | | |0 = Inter-timer trigger mode Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9860 | * | | |1 = Inter-timer trigger mode Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9861 | * | | |Note: For TMRx+1_CTL, this bit is ignored and the read back value is always 1'b0. |
AnnaBridge | 174:b96e65c34a4d | 9862 | */ |
AnnaBridge | 174:b96e65c34a4d | 9863 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 9864 | |
AnnaBridge | 174:b96e65c34a4d | 9865 | /** |
AnnaBridge | 174:b96e65c34a4d | 9866 | * PRECNT |
AnnaBridge | 174:b96e65c34a4d | 9867 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9868 | * Offset: 0x04 Timer x Pre-Scale Counter Register |
AnnaBridge | 174:b96e65c34a4d | 9869 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9870 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9871 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9872 | * |[7:0] |PRESCALE_CNT|Pre-Scale Counter |
AnnaBridge | 174:b96e65c34a4d | 9873 | * | | |Clock input is divided by PRESCALE_CNT + 1 before it is fed to the counter. |
AnnaBridge | 174:b96e65c34a4d | 9874 | * | | |If PRESCALE_CNT =0, then there is no scaling. |
AnnaBridge | 174:b96e65c34a4d | 9875 | */ |
AnnaBridge | 174:b96e65c34a4d | 9876 | __IO uint32_t PRECNT; |
AnnaBridge | 174:b96e65c34a4d | 9877 | |
AnnaBridge | 174:b96e65c34a4d | 9878 | /** |
AnnaBridge | 174:b96e65c34a4d | 9879 | * CMPR |
AnnaBridge | 174:b96e65c34a4d | 9880 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9881 | * Offset: 0x08 Timer x Compare Register |
AnnaBridge | 174:b96e65c34a4d | 9882 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9883 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9884 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9885 | * |[23:0] |TMR_CMP |Timer Compared Value |
AnnaBridge | 174:b96e65c34a4d | 9886 | * | | |TMR_CMP is a 24-bit compared register. |
AnnaBridge | 174:b96e65c34a4d | 9887 | * | | |When the internal 24-bit up-counter counts and its value is equal to TMR_CMP value, a Timer Interrupt is requested if the timer interrupt is enabled with TMR_IER [TMR_IE] is enabled. |
AnnaBridge | 174:b96e65c34a4d | 9888 | * | | |The TMR_CMP value defines the timer counting cycle time. |
AnnaBridge | 174:b96e65c34a4d | 9889 | * | | |Time-out period = (Period of timer clock input) * (8-bit PRESCALE_CNT + 1) * (24-bit TMR_CMP). |
AnnaBridge | 174:b96e65c34a4d | 9890 | * | | |Note1: Never write 0x0 or 0x1 in TMR_CMP, or the core will run into unknown state. |
AnnaBridge | 174:b96e65c34a4d | 9891 | * | | |Note2: No matter TMR_CTL [TMR_EN] is 0 or 1, whenever software write a new value into this register, TIMER will restart counting using this new value and abort previous count. |
AnnaBridge | 174:b96e65c34a4d | 9892 | */ |
AnnaBridge | 174:b96e65c34a4d | 9893 | __IO uint32_t CMPR; |
AnnaBridge | 174:b96e65c34a4d | 9894 | |
AnnaBridge | 174:b96e65c34a4d | 9895 | /** |
AnnaBridge | 174:b96e65c34a4d | 9896 | * IER |
AnnaBridge | 174:b96e65c34a4d | 9897 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9898 | * Offset: 0x0C Timer x Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 9899 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9900 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9901 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9902 | * |[0] |TMR_IE |Timer Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 9903 | * | | |0 = Timer Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9904 | * | | |1 = Timer Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9905 | * | | |Note: If timer interrupt is enabled, the timer asserts its interrupt signal when the associated counter is equal to TMR_CMPR. |
AnnaBridge | 174:b96e65c34a4d | 9906 | * |[1] |TCAP_IE |Timer Capture Function Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 9907 | * | | |0 = Timer External Pin Function Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 9908 | * | | |1 = Timer External Pin Function Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 9909 | * | | |Note: If timer external pin function interrupt is enabled, the timer asserts its interrupt signal when the TCAP_EN is set and the transition of external pin matches the TCAP_EDGE setting |
AnnaBridge | 174:b96e65c34a4d | 9910 | */ |
AnnaBridge | 174:b96e65c34a4d | 9911 | __IO uint32_t IER; |
AnnaBridge | 174:b96e65c34a4d | 9912 | |
AnnaBridge | 174:b96e65c34a4d | 9913 | /** |
AnnaBridge | 174:b96e65c34a4d | 9914 | * ISR |
AnnaBridge | 174:b96e65c34a4d | 9915 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9916 | * Offset: 0x10 Timer x Interrupt Status Register |
AnnaBridge | 174:b96e65c34a4d | 9917 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9918 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9919 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9920 | * |[0] |TMR_IS |Timer Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 9921 | * | | |This bit indicates the interrupt status of Timer. |
AnnaBridge | 174:b96e65c34a4d | 9922 | * | | |This bit is set by hardware when the up counting value of internal 24-bit counter matches the timer compared value (TMR_CMPR). |
AnnaBridge | 174:b96e65c34a4d | 9923 | * | | |Write 1 to clear this bit to 0. |
AnnaBridge | 174:b96e65c34a4d | 9924 | * | | |If this bit is active and TMR_IE is enabled, Timer will trigger an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 9925 | * |[1] |TCAP_IS |Timer Capture Function Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 9926 | * | | |This bit indicates the external pin function interrupt status of Timer. |
AnnaBridge | 174:b96e65c34a4d | 9927 | * | | |This bit is set by hardware when TCAP_EN is set high, and the transition of external pin matches the TCAP_EDGE setting. |
AnnaBridge | 174:b96e65c34a4d | 9928 | * | | |Write 1 to clear this bit to zero. |
AnnaBridge | 174:b96e65c34a4d | 9929 | * | | |If this bit is active and TCAP_IE is enabled, Timer will trigger an interrupt to CPU. |
AnnaBridge | 174:b96e65c34a4d | 9930 | * |[4] |TMR_Wake_STS|Timer Wake-Up Status |
AnnaBridge | 174:b96e65c34a4d | 9931 | * | | |If timer causes CPU wakes up from power-down mode, this bit will be set to high. |
AnnaBridge | 174:b96e65c34a4d | 9932 | * | | |It must be cleared by software with a write 1 to this bit. |
AnnaBridge | 174:b96e65c34a4d | 9933 | * | | |0 = Timer does not cause system wake-up. |
AnnaBridge | 174:b96e65c34a4d | 9934 | * | | |1 = Wakes system up from power-down mode by Timer timeout. |
AnnaBridge | 174:b96e65c34a4d | 9935 | * |[5] |NCAP_DET_STS|New Capture Detected Status |
AnnaBridge | 174:b96e65c34a4d | 9936 | * | | |This status is to indicate there is a new incoming capture event detected before CPU clearing the TCAP_IS status. |
AnnaBridge | 174:b96e65c34a4d | 9937 | * | | |If the above condition occurred, the Timer will keep register TMRx_CAP unchanged and drop the new capture value. |
AnnaBridge | 174:b96e65c34a4d | 9938 | * | | |This bit is also cleared to 0 while TCAP_IS is cleared. |
AnnaBridge | 174:b96e65c34a4d | 9939 | * | | |0 = New incoming capture event didn't detect before CPU clearing TCAP_IS status. |
AnnaBridge | 174:b96e65c34a4d | 9940 | * | | |1 = New incoming capture event detected before CPU clearing TCAP_IS status. |
AnnaBridge | 174:b96e65c34a4d | 9941 | */ |
AnnaBridge | 174:b96e65c34a4d | 9942 | __IO uint32_t ISR; |
AnnaBridge | 174:b96e65c34a4d | 9943 | |
AnnaBridge | 174:b96e65c34a4d | 9944 | /** |
AnnaBridge | 174:b96e65c34a4d | 9945 | * DR |
AnnaBridge | 174:b96e65c34a4d | 9946 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9947 | * Offset: 0x14 Timer x Data Register |
AnnaBridge | 174:b96e65c34a4d | 9948 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9949 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9950 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9951 | * |[23:0] |TDR |Timer Data Register |
AnnaBridge | 174:b96e65c34a4d | 9952 | * | | |User can read this register for internal 24-bit timer up-counter value. |
AnnaBridge | 174:b96e65c34a4d | 9953 | */ |
AnnaBridge | 174:b96e65c34a4d | 9954 | __I uint32_t DR; |
AnnaBridge | 174:b96e65c34a4d | 9955 | |
AnnaBridge | 174:b96e65c34a4d | 9956 | /** |
AnnaBridge | 174:b96e65c34a4d | 9957 | * TCAP |
AnnaBridge | 174:b96e65c34a4d | 9958 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 9959 | * Offset: 0x18 Timer x Capture Data Register |
AnnaBridge | 174:b96e65c34a4d | 9960 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 9961 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 9962 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 9963 | * |[23:0] |CAP |Timer Capture Data Register |
AnnaBridge | 174:b96e65c34a4d | 9964 | * | | |When TCAP_EN is set, TCAP_MODE is 0, and the transition of external pin matches the TCAP_EDGE setting, the value of 24-bit up-counting timer will be saved into register TMRx_TCAP. |
AnnaBridge | 174:b96e65c34a4d | 9965 | * | | |User can read this register for the counter value. |
AnnaBridge | 174:b96e65c34a4d | 9966 | */ |
AnnaBridge | 174:b96e65c34a4d | 9967 | __I uint32_t TCAP; |
AnnaBridge | 174:b96e65c34a4d | 9968 | } TIMER_T; |
AnnaBridge | 174:b96e65c34a4d | 9969 | |
AnnaBridge | 174:b96e65c34a4d | 9970 | |
AnnaBridge | 174:b96e65c34a4d | 9971 | /** |
AnnaBridge | 174:b96e65c34a4d | 9972 | @addtogroup TMR_CONST TIMER Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 9973 | Constant Definitions for TIMER Controller |
AnnaBridge | 174:b96e65c34a4d | 9974 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 9975 | |
AnnaBridge | 174:b96e65c34a4d | 9976 | #define TIMER_CTL_TMR_EN_Pos (0) /*!< TIMER_T::CTL: TMR_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9977 | #define TIMER_CTL_TMR_EN_Msk (0x1ul << TIMER_CTL_TMR_EN_Pos) /*!< TIMER_T::CTL: TMR_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9978 | |
AnnaBridge | 174:b96e65c34a4d | 9979 | #define TIMER_CTL_SW_RST_Pos (1) /*!< TIMER_T::CTL: SW_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 9980 | #define TIMER_CTL_SW_RST_Msk (0x1ul << TIMER_CTL_SW_RST_Pos) /*!< TIMER_T::CTL: SW_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9981 | |
AnnaBridge | 174:b96e65c34a4d | 9982 | #define TIMER_CTL_WAKE_EN_Pos (2) /*!< TIMER_T::CTL: WAKE_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9983 | #define TIMER_CTL_WAKE_EN_Msk (0x1ul << TIMER_CTL_WAKE_EN_Pos) /*!< TIMER_T::CTL: WAKE_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9984 | |
AnnaBridge | 174:b96e65c34a4d | 9985 | #define TIMER_CTL_DBGACK_EN_Pos (3) /*!< TIMER_T::CTL: DBGACK_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9986 | #define TIMER_CTL_DBGACK_EN_Msk (0x1ul << TIMER_CTL_DBGACK_EN_Pos) /*!< TIMER_T::CTL: DBGACK_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9987 | |
AnnaBridge | 174:b96e65c34a4d | 9988 | #define TIMER_CTL_MODE_SEL_Pos (4) /*!< TIMER_T::CTL: MODE_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 9989 | #define TIMER_CTL_MODE_SEL_Msk (0x3ul << TIMER_CTL_MODE_SEL_Pos) /*!< TIMER_T::CTL: MODE_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9990 | |
AnnaBridge | 174:b96e65c34a4d | 9991 | #define TIMER_CTL_TMR_ACT_Pos (7) /*!< TIMER_T::CTL: TMR_ACT Position */ |
AnnaBridge | 174:b96e65c34a4d | 9992 | #define TIMER_CTL_TMR_ACT_Msk (0x1ul << TIMER_CTL_TMR_ACT_Pos) /*!< TIMER_T::CTL: TMR_ACT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9993 | |
AnnaBridge | 174:b96e65c34a4d | 9994 | #define TIMER_CTL_ADC_TEEN_Pos (8) /*!< TIMER_T::CTL: ADC_TEEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9995 | #define TIMER_CTL_ADC_TEEN_Msk (0x1ul << TIMER_CTL_ADC_TEEN_Pos) /*!< TIMER_T::CTL: ADC_TEEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9996 | |
AnnaBridge | 174:b96e65c34a4d | 9997 | #define TIMER_CTL_DAC_TEEN_Pos (9) /*!< TIMER_T::CTL: DAC_TEEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 9998 | #define TIMER_CTL_DAC_TEEN_Msk (0x1ul << TIMER_CTL_DAC_TEEN_Pos) /*!< TIMER_T::CTL: DAC_TEEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 9999 | |
AnnaBridge | 174:b96e65c34a4d | 10000 | #define TIMER_CTL_PDMA_TEEN_Pos (10) /*!< TIMER_T::CTL: PDMA_TEEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10001 | #define TIMER_CTL_PDMA_TEEN_Msk (0x1ul << TIMER_CTL_PDMA_TEEN_Pos) /*!< TIMER_T::CTL: PDMA_TEEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10002 | |
AnnaBridge | 174:b96e65c34a4d | 10003 | #define TIMER_CTL_CAP_TRG_EN_Pos (11) /*!< TIMER_T::CTL: CAP_TRG_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10004 | #define TIMER_CTL_CAP_TRG_EN_Msk (0x1ul << TIMER_CTL_CAP_TRG_EN_Pos) /*!< TIMER_T::CTL: CAP_TRG_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10005 | |
AnnaBridge | 174:b96e65c34a4d | 10006 | #define TIMER_CTL_EVENT_EN_Pos (12) /*!< TIMER_T::CTL: EVENT_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10007 | #define TIMER_CTL_EVENT_EN_Msk (0x1ul << TIMER_CTL_EVENT_EN_Pos) /*!< TIMER_T::CTL: EVENT_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10008 | |
AnnaBridge | 174:b96e65c34a4d | 10009 | #define TIMER_CTL_EVENT_EDGE_Pos (13) /*!< TIMER_T::CTL: EVENT_EDGE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10010 | #define TIMER_CTL_EVENT_EDGE_Msk (0x1ul << TIMER_CTL_EVENT_EDGE_Pos) /*!< TIMER_T::CTL: EVENT_EDGE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10011 | |
AnnaBridge | 174:b96e65c34a4d | 10012 | #define TIMER_CTL_EVNT_DEB_EN_Pos (14) /*!< TIMER_T::CTL: EVNT_DEB_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10013 | #define TIMER_CTL_EVNT_DEB_EN_Msk (0x1ul << TIMER_CTL_EVNT_DEB_EN_Pos) /*!< TIMER_T::CTL: EVNT_DEB_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10014 | |
AnnaBridge | 174:b96e65c34a4d | 10015 | #define TIMER_CTL_TCAP_EN_Pos (16) /*!< TIMER_T::CTL: TCAP_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10016 | #define TIMER_CTL_TCAP_EN_Msk (0x1ul << TIMER_CTL_TCAP_EN_Pos) /*!< TIMER_T::CTL: TCAP_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10017 | |
AnnaBridge | 174:b96e65c34a4d | 10018 | #define TIMER_CTL_TCAP_MODE_Pos (17) /*!< TIMER_T::CTL: TCAP_MODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10019 | #define TIMER_CTL_TCAP_MODE_Msk (0x1ul << TIMER_CTL_TCAP_MODE_Pos) /*!< TIMER_T::CTL: TCAP_MODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10020 | |
AnnaBridge | 174:b96e65c34a4d | 10021 | #define TIMER_CTL_TCAP_EDGE_Pos (18) /*!< TIMER_T::CTL: TCAP_EDGE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10022 | #define TIMER_CTL_TCAP_EDGE_Msk (0x3ul << TIMER_CTL_TCAP_EDGE_Pos) /*!< TIMER_T::CTL: TCAP_EDGE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10023 | |
AnnaBridge | 174:b96e65c34a4d | 10024 | #define TIMER_CTL_TCAP_CNT_MODE_Pos (20) /*!< TIMER_T::CTL: TCAP_CNT_MODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10025 | #define TIMER_CTL_TCAP_CNT_MODE_Msk (0x1ul << TIMER_CTL_TCAP_CNT_MODE_Pos) /*!< TIMER_T::CTL: TCAP_CNT_MODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10026 | |
AnnaBridge | 174:b96e65c34a4d | 10027 | #define TIMER_CTL_TCAP_DEB_EN_Pos (22) /*!< TIMER_T::CTL: TCAP_DEB_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10028 | #define TIMER_CTL_TCAP_DEB_EN_Msk (0x1ul << TIMER_CTL_TCAP_DEB_EN_Pos) /*!< TIMER_T::CTL: TCAP_DEB_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10029 | |
AnnaBridge | 174:b96e65c34a4d | 10030 | #define TIMER_CTL_INTR_TRG_EN_Pos (24) /*!< TIMER_T::CTL: INTR_TRG_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10031 | #define TIMER_CTL_INTR_TRG_EN_Msk (0x1ul << TIMER_CTL_INTR_TRG_EN_Pos) /*!< TIMER_T::CTL: INTR_TRG_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10032 | |
AnnaBridge | 174:b96e65c34a4d | 10033 | #define TIMER_PRECNT_PRESCALE_CNT_Pos (0) /*!< TIMER_T::PRECNT: PRESCALE_CNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 10034 | #define TIMER_PRECNT_PRESCALE_CNT_Msk (0xfful << TIMER_PRECNT_PRESCALE_CNT_Pos) /*!< TIMER_T::PRECNT: PRESCALE_CNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10035 | |
AnnaBridge | 174:b96e65c34a4d | 10036 | #define TIMER_CMPR_TMR_CMP_Pos (0) /*!< TIMER_T::CMPR: TMR_CMP Position */ |
AnnaBridge | 174:b96e65c34a4d | 10037 | #define TIMER_CMPR_TMR_CMP_Msk (0xfffffful << TIMER_CMPR_TMR_CMP_Pos) /*!< TIMER_T::CMPR: TMR_CMP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10038 | |
AnnaBridge | 174:b96e65c34a4d | 10039 | #define TIMER_IER_TMR_IE_Pos (0) /*!< TIMER_T::IER: TMR_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10040 | #define TIMER_IER_TMR_IE_Msk (0x1ul << TIMER_IER_TMR_IE_Pos) /*!< TIMER_T::IER: TMR_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10041 | |
AnnaBridge | 174:b96e65c34a4d | 10042 | #define TIMER_IER_TCAP_IE_Pos (1) /*!< TIMER_T::IER: TCAP_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10043 | #define TIMER_IER_TCAP_IE_Msk (0x1ul << TIMER_IER_TCAP_IE_Pos) /*!< TIMER_T::IER: TCAP_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10044 | |
AnnaBridge | 174:b96e65c34a4d | 10045 | #define TIMER_ISR_TMR_IS_Pos (0) /*!< TIMER_T::ISR: TMR_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10046 | #define TIMER_ISR_TMR_IS_Msk (0x1ul << TIMER_ISR_TMR_IS_Pos) /*!< TIMER_T::ISR: TMR_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10047 | |
AnnaBridge | 174:b96e65c34a4d | 10048 | #define TIMER_ISR_TCAP_IS_Pos (1) /*!< TIMER_T::ISR: TCAP_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10049 | #define TIMER_ISR_TCAP_IS_Msk (0x1ul << TIMER_ISR_TCAP_IS_Pos) /*!< TIMER_T::ISR: TCAP_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10050 | |
AnnaBridge | 174:b96e65c34a4d | 10051 | #define TIMER_ISR_TMR_WAKE_STS_Pos (4) /*!< TIMER_T::ISR: TMR_WAKE_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10052 | #define TIMER_ISR_TMR_WAKE_STS_Msk (0x1ul << TIMER_ISR_TMR_WAKE_STS_Pos) /*!< TIMER_T::ISR: TMR_WAKE_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10053 | |
AnnaBridge | 174:b96e65c34a4d | 10054 | #define TIMER_ISR_NCAP_DET_STS_Pos (5) /*!< TIMER_T::ISR: NCAP_DET_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10055 | #define TIMER_ISR_NCAP_DET_STS_Msk (0x1ul << TIMER_ISR_NCAP_DET_STS_Pos) /*!< TIMER_T::ISR: NCAP_DET_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10056 | |
AnnaBridge | 174:b96e65c34a4d | 10057 | #define TIMER_DR_TDR_Pos (0) /*!< TIMER_T::DR: TDR Position */ |
AnnaBridge | 174:b96e65c34a4d | 10058 | #define TIMER_DR_TDR_Msk (0xfffffful << TIMER_DR_TDR_Pos) /*!< TIMER_T::DR: TDR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10059 | |
AnnaBridge | 174:b96e65c34a4d | 10060 | #define TIMER_TCAP_CAP_Pos (0) /*!< TIMER_T::TCAP: CAP Position */ |
AnnaBridge | 174:b96e65c34a4d | 10061 | #define TIMER_TCAP_CAP_Msk (0xfffffful << TIMER_TCAP_CAP_Pos) /*!< TIMER_T::TCAP: CAP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10062 | |
AnnaBridge | 174:b96e65c34a4d | 10063 | /**@}*/ /* TMR_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 10064 | |
AnnaBridge | 174:b96e65c34a4d | 10065 | |
AnnaBridge | 174:b96e65c34a4d | 10066 | /**@}*/ /* end of TMR register group */ |
AnnaBridge | 174:b96e65c34a4d | 10067 | |
AnnaBridge | 174:b96e65c34a4d | 10068 | |
AnnaBridge | 174:b96e65c34a4d | 10069 | |
AnnaBridge | 174:b96e65c34a4d | 10070 | /*---------------------- Universal Asynchronous Receiver/Transmitter Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 10071 | /** |
AnnaBridge | 174:b96e65c34a4d | 10072 | @addtogroup UART Universal Asynchronous Receiver/Transmitter Controller(UART) |
AnnaBridge | 174:b96e65c34a4d | 10073 | Memory Mapped Structure for UART Controller |
AnnaBridge | 174:b96e65c34a4d | 10074 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 10075 | |
AnnaBridge | 174:b96e65c34a4d | 10076 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 10077 | |
AnnaBridge | 174:b96e65c34a4d | 10078 | |
AnnaBridge | 174:b96e65c34a4d | 10079 | union { |
AnnaBridge | 174:b96e65c34a4d | 10080 | |
AnnaBridge | 174:b96e65c34a4d | 10081 | /** |
AnnaBridge | 174:b96e65c34a4d | 10082 | * RBR |
AnnaBridge | 174:b96e65c34a4d | 10083 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10084 | * Offset: 0x00 UART Receive Buffer Register |
AnnaBridge | 174:b96e65c34a4d | 10085 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10086 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10087 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10088 | * |[7:0] |RBR |Receiving Buffer |
AnnaBridge | 174:b96e65c34a4d | 10089 | * | | |By reading this register, the UART Controller will return an 8-bit data received from RX pin (LSB first). |
AnnaBridge | 174:b96e65c34a4d | 10090 | */ |
AnnaBridge | 174:b96e65c34a4d | 10091 | __I uint32_t RBR; |
AnnaBridge | 174:b96e65c34a4d | 10092 | |
AnnaBridge | 174:b96e65c34a4d | 10093 | |
AnnaBridge | 174:b96e65c34a4d | 10094 | /** |
AnnaBridge | 174:b96e65c34a4d | 10095 | * THR |
AnnaBridge | 174:b96e65c34a4d | 10096 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10097 | * Offset: 0x00 UART Transmit Buffer Register |
AnnaBridge | 174:b96e65c34a4d | 10098 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10099 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10100 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10101 | * |[7:0] |THR |Transmit Buffer |
AnnaBridge | 174:b96e65c34a4d | 10102 | * | | |By writing to this register, the UART sends out an 8-bit data through the TX pin (LSB first). |
AnnaBridge | 174:b96e65c34a4d | 10103 | */ |
AnnaBridge | 174:b96e65c34a4d | 10104 | __O uint32_t THR; |
AnnaBridge | 174:b96e65c34a4d | 10105 | }; |
AnnaBridge | 174:b96e65c34a4d | 10106 | |
AnnaBridge | 174:b96e65c34a4d | 10107 | /** |
AnnaBridge | 174:b96e65c34a4d | 10108 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 10109 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10110 | * Offset: 0x04 UART Control State Register. |
AnnaBridge | 174:b96e65c34a4d | 10111 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10112 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10113 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10114 | * |[0] |RX_RST |RX Software Reset |
AnnaBridge | 174:b96e65c34a4d | 10115 | * | | |When RX_RST is set, all the bytes in the receiving FIFO and RX internal state machine are cleared. |
AnnaBridge | 174:b96e65c34a4d | 10116 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 10117 | * | | |1 = Reset the RX internal state machine and pointers. |
AnnaBridge | 174:b96e65c34a4d | 10118 | * | | |Note: This bit will be auto cleared and take at least 3 UART engine clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 10119 | * |[1] |TX_RST |TX Software Reset |
AnnaBridge | 174:b96e65c34a4d | 10120 | * | | |When TX_RST is set, all the bytes in the transmitting FIFO and TX internal state machine are cleared. |
AnnaBridge | 174:b96e65c34a4d | 10121 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 10122 | * | | |1 = Reset the TX internal state machine and pointers. |
AnnaBridge | 174:b96e65c34a4d | 10123 | * | | |Note: This bit will be auto cleared and take at least 3 UART engine clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 10124 | * |[2] |RX_DIS |Receiver Disable Register |
AnnaBridge | 174:b96e65c34a4d | 10125 | * | | |The receiver is disabled or not (set "1" to disable receiver) |
AnnaBridge | 174:b96e65c34a4d | 10126 | * | | |0 = Receiver Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10127 | * | | |1 = Receiver Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10128 | * | | |Note1: When used for RS-485 NMM mode, user can set this bit to receive data before detecting address byte. |
AnnaBridge | 174:b96e65c34a4d | 10129 | * | | |Note2: In RS-485 AAD mode, this bit will be setting to "1" automatically. |
AnnaBridge | 174:b96e65c34a4d | 10130 | * | | |Note3: In RS-485 AUD mode and LIN "break + sync +PID" header mode, hardware will control data automatically, so don't fill any value to this bit. |
AnnaBridge | 174:b96e65c34a4d | 10131 | * |[3] |TX_DIS |Transfer Disable Register |
AnnaBridge | 174:b96e65c34a4d | 10132 | * | | |The transceiver is disabled or not (set "1" to disable transceiver) |
AnnaBridge | 174:b96e65c34a4d | 10133 | * | | |0 = Transfer Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10134 | * | | |1 = Transfer Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10135 | * |[4] |AUTO_RTS_EN|RTSn Auto-Flow Control Enable |
AnnaBridge | 174:b96e65c34a4d | 10136 | * | | |0 = RTSn auto-flow control. Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10137 | * | | |1 = RTSn auto-flow control Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10138 | * | | |Note: When RTSn auto-flow is enabled, if the number of bytes in the RX-FIFO equals the UART_FCR [RTS_Tri_Lev], the UART will reassert RTSn signal. |
AnnaBridge | 174:b96e65c34a4d | 10139 | * |[5] |AUTO_CTS_EN|CTSn Auto-Flow Control Enable |
AnnaBridge | 174:b96e65c34a4d | 10140 | * | | |0 = CTSn auto-flow control. Disabled |
AnnaBridge | 174:b96e65c34a4d | 10141 | * | | |1 = CTSn auto-flow control Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10142 | * | | |Note: When CTSn auto-flow is enabled, the UART will send data to external device when CTSn input assert (UART will not send data to device until CTSn is asserted). |
AnnaBridge | 174:b96e65c34a4d | 10143 | * |[6] |DMA_RX_EN |RX DMA Enable |
AnnaBridge | 174:b96e65c34a4d | 10144 | * | | |This bit can enable or disable RX PDMA service. |
AnnaBridge | 174:b96e65c34a4d | 10145 | * | | |0 = RX PDMA service function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10146 | * | | |1 = RX PDMA service function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10147 | * |[7] |DMA_TX_EN |TX DMA Enable |
AnnaBridge | 174:b96e65c34a4d | 10148 | * | | |This bit can enable or disable TX PDMA service. |
AnnaBridge | 174:b96e65c34a4d | 10149 | * | | |0 = TX PDMA service function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10150 | * | | |1 = TX PDMA service function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10151 | * |[8] |WAKE_CTS_EN|CTSn Wake-Up Function Enable |
AnnaBridge | 174:b96e65c34a4d | 10152 | * | | |0 = CTSn wake-up system function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10153 | * | | |1 = Wake-up function Enabled when the system is in power-down mode, an external CTSn change will wake-up system from power-down mode. |
AnnaBridge | 174:b96e65c34a4d | 10154 | * |[9] |WAKE_DATA_EN|Incoming Data Wake-Up Function Enable |
AnnaBridge | 174:b96e65c34a4d | 10155 | * | | |0 = Incoming data wake-up system Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10156 | * | | |1 = Incoming data wake-up function Enabled when the system is in power-down mode, incoming data will wake-up system from power-down mode. |
AnnaBridge | 174:b96e65c34a4d | 10157 | * | | |Note: Hardware will clear this bit when the incoming data wake-up operation finishes and "system clock" work stable |
AnnaBridge | 174:b96e65c34a4d | 10158 | * |[12] |ABAUD_EN |Auto-Baud Rate Detect Enable |
AnnaBridge | 174:b96e65c34a4d | 10159 | * | | |0 = Auto-baud rate detect function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10160 | * | | |1 = Auto-baud rate detect function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10161 | * | | |Note: When the auto-baud rate detect operation finishes, hardware will clear this bit and the associated interrupt (INT_ABAUD) will be generated (If UART_IER [ABAUD_IE] be enabled). |
AnnaBridge | 174:b96e65c34a4d | 10162 | */ |
AnnaBridge | 174:b96e65c34a4d | 10163 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 10164 | |
AnnaBridge | 174:b96e65c34a4d | 10165 | /** |
AnnaBridge | 174:b96e65c34a4d | 10166 | * TLCTL |
AnnaBridge | 174:b96e65c34a4d | 10167 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10168 | * Offset: 0x08 UART Transfer Line Control Register. |
AnnaBridge | 174:b96e65c34a4d | 10169 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10170 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10171 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10172 | * |[1:0] |DATA_LEN |Data Length |
AnnaBridge | 174:b96e65c34a4d | 10173 | * | | |00 = 5 bits. |
AnnaBridge | 174:b96e65c34a4d | 10174 | * | | |01 = 6 bits. |
AnnaBridge | 174:b96e65c34a4d | 10175 | * | | |10 = 7 bits. |
AnnaBridge | 174:b96e65c34a4d | 10176 | * | | |11 = 8 bits. |
AnnaBridge | 174:b96e65c34a4d | 10177 | * |[2] |NSB |Number Of STOP Bit Length |
AnnaBridge | 174:b96e65c34a4d | 10178 | * | | |1 = 1.5 "STOP bit" is generated in the transmitted data when 5-bit word length is selected, and 2 STOP bit" is generated when 6, 7 and 8 bits data length is selected. |
AnnaBridge | 174:b96e65c34a4d | 10179 | * | | |0 = 1 " STOP bit" is generated in the transmitted data. |
AnnaBridge | 174:b96e65c34a4d | 10180 | * |[3] |PBE |Parity Bit Enable |
AnnaBridge | 174:b96e65c34a4d | 10181 | * | | |1 = Parity bit is generated or checked bet"een the "last data"word "it" and "stop bit" of the serial data. |
AnnaBridge | 174:b96e65c34a4d | 10182 | * | | |0 = Parity bit is not generated (transmitting data) or checked (receiving data) during transfer. |
AnnaBridge | 174:b96e65c34a4d | 10183 | * |[4] |EPE |Even Parity Enable |
AnnaBridge | 174:b96e65c34a4d | 10184 | * | | |1 = Even number of logic 1's are transmitted or check the data word and parity bits in receiving mode. |
AnnaBridge | 174:b96e65c34a4d | 10185 | * | | |0 = Odd number of logic 1's are transmitted or check the data word and parity bits in receiving mode. |
AnnaBridge | 174:b96e65c34a4d | 10186 | * | | |Note: This bit has effect only when PBE bit (parity bit enable) is set. |
AnnaBridge | 174:b96e65c34a4d | 10187 | * |[5] |SPE |Stick Parity Enable |
AnnaBridge | 174:b96e65c34a4d | 10188 | * | | |1 = When bits PBE, EPE and SPE are set, the parity bit is transmitted and checked as "0". |
AnnaBridge | 174:b96e65c34a4d | 10189 | * | | |When PBE and SPE are set and EPE is cleared, the parity bit is transmitted and checked as "1". |
AnnaBridge | 174:b96e65c34a4d | 10190 | * | | |In RS-485 mode, PBE, EPE and SPE can control bit 9. |
AnnaBridge | 174:b96e65c34a4d | 10191 | * | | |0 = Stick parity Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10192 | * |[6] |BCB |Break Control Bit |
AnnaBridge | 174:b96e65c34a4d | 10193 | * | | |When this bit is set to logic "1", the serial data output (TX) is forced to the Spacing State (logic "0"). |
AnnaBridge | 174:b96e65c34a4d | 10194 | * | | |This bit acts only on TX pin and has no effect on the transmitter logic. |
AnnaBridge | 174:b96e65c34a4d | 10195 | * |[9:8] |RFITL |RX-FIFO Interrupt (INT_RDA) Trigger Level |
AnnaBridge | 174:b96e65c34a4d | 10196 | * | | |When the number of bytes in the receiving FIFO is equal to the RFITL then the RDA_IF will be set (if IER [RDA_IEN] is enabled, an interrupt will be generated) |
AnnaBridge | 174:b96e65c34a4d | 10197 | * | | |00 = INTR_RDA Trigger Level 1 byte. |
AnnaBridge | 174:b96e65c34a4d | 10198 | * | | |01 = INTR_RDA Trigger Level 4 byte. |
AnnaBridge | 174:b96e65c34a4d | 10199 | * | | |10 = INTR_RDA Trigger Level 8 byte. |
AnnaBridge | 174:b96e65c34a4d | 10200 | * | | |11 = INTR_RDA Trigger Level 14 byte. |
AnnaBridge | 174:b96e65c34a4d | 10201 | * | | |Note: When operating in IrDA mode or RS-485 mode, the RFITL must be set to "0". |
AnnaBridge | 174:b96e65c34a4d | 10202 | * |[13:12] |RTS_TRI_LEV|RTSn Trigger Level (For Auto-Flow Control Use) |
AnnaBridge | 174:b96e65c34a4d | 10203 | * | | |00 = Trigger level 1 byte. |
AnnaBridge | 174:b96e65c34a4d | 10204 | * | | |01 = Trigger level 4 bytes. |
AnnaBridge | 174:b96e65c34a4d | 10205 | * | | |10 = Trigger level 8 bytes. |
AnnaBridge | 174:b96e65c34a4d | 10206 | * | | |11 = Trigger level 14 bytes. |
AnnaBridge | 174:b96e65c34a4d | 10207 | * | | |Note: This field is used for auto RTSn flow control. |
AnnaBridge | 174:b96e65c34a4d | 10208 | */ |
AnnaBridge | 174:b96e65c34a4d | 10209 | __IO uint32_t TLCTL; |
AnnaBridge | 174:b96e65c34a4d | 10210 | |
AnnaBridge | 174:b96e65c34a4d | 10211 | /** |
AnnaBridge | 174:b96e65c34a4d | 10212 | * IER |
AnnaBridge | 174:b96e65c34a4d | 10213 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10214 | * Offset: 0x0C UART Interrupt Enable Register. |
AnnaBridge | 174:b96e65c34a4d | 10215 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10216 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10217 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10218 | * |[0] |RDA_IE |Receive Data Available Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10219 | * | | |0 = INT_RDA Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10220 | * | | |1 = INT_RDA Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10221 | * |[1] |THRE_IE |Transmit Holding Register Empty Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10222 | * | | |0 = INT_THRE Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10223 | * | | |1 = INT_THRE Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10224 | * |[2] |RLS_IE |Receive Line Status Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10225 | * | | |0 = INT_RLS Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10226 | * | | |1 = INT_RLS Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10227 | * |[3] |MODEM_IE |Modem Status Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10228 | * | | |0 = INT_MOS Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10229 | * | | |1 = INT_MOS Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10230 | * |[4] |RTO_IE |RX Time-Out Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10231 | * | | |0 = INT_TOUT Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10232 | * | | |1 = INT_TOUT Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10233 | * |[5] |BUF_ERR_IE|Buffer Error Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10234 | * | | |0 = INT_BUT_ERR Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10235 | * | | |1 = INT_BUF_ERR Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10236 | * |[6] |WAKE_IE |Wake-Up Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10237 | * | | |0 = INT_WAKE Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10238 | * | | |1 = INT_WAKE Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10239 | * |[7] |ABAUD_IE |Auto-Baud Rate Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10240 | * | | |0 = INT_ABAUD Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10241 | * | | |1 = INT_ABAUD Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10242 | * |[8] |LIN_IE |LIN Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10243 | * | | |0 = INT_LIN Masked off. |
AnnaBridge | 174:b96e65c34a4d | 10244 | * | | |1 = INT_LIN Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10245 | */ |
AnnaBridge | 174:b96e65c34a4d | 10246 | __IO uint32_t IER; |
AnnaBridge | 174:b96e65c34a4d | 10247 | |
AnnaBridge | 174:b96e65c34a4d | 10248 | /** |
AnnaBridge | 174:b96e65c34a4d | 10249 | * ISR |
AnnaBridge | 174:b96e65c34a4d | 10250 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10251 | * Offset: 0x10 UART Interrupt Status Register. |
AnnaBridge | 174:b96e65c34a4d | 10252 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10253 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10254 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10255 | * |[0] |RDA_IS |Receive Data Available Interrupt Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10256 | * | | |When the number of bytes in the RX-FIFO equals the RFITL then the RDA_IF will be set. |
AnnaBridge | 174:b96e65c34a4d | 10257 | * | | |If IER [RDA_IEN] is set then the RDA interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10258 | * | | |Note: This bit is read only and it will be cleared when the number of unread bytes of RX-FIFO drops below the threshold level (RFITL). |
AnnaBridge | 174:b96e65c34a4d | 10259 | * |[1] |THRE_IS |Transmit Holding Register Empty Interrupt Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10260 | * | | |This bit is set when the last data of TX-FIFO is transferred to Transmitter Shift Register. |
AnnaBridge | 174:b96e65c34a4d | 10261 | * | | |If IER [THRE_IEN] is set that the THRE interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10262 | * | | |Note: This bit is read only and it will be cleared when writing data into THR (TX-FIFO not empty). |
AnnaBridge | 174:b96e65c34a4d | 10263 | * |[2] |RLS_IS |Receive Line Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10264 | * | | |This bit is set when the RX received data has parity error (UART_FSR [PE_F]), framing error (UART_FSR [FE_F]), break error (UART_FSR [BI_F]) or RS-485 detect address byte (UART_TRSR [RS-485_ADDET_F]).If IER [RLS_IEN] is set then the RLS interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10265 | * | | |Note1: This bit is read only, but can be cleared by it by writing "1" to UART_FSR [BI_F], UART_FSR [FE_F], UART_FSR [PE_F] or UART_TRSR [RS-485_ADDET_F]. |
AnnaBridge | 174:b96e65c34a4d | 10266 | * | | |Note2: This bit is cleared when all the BI_F, FE_F, PE_F and RS-485_ADDET_F are cleared. |
AnnaBridge | 174:b96e65c34a4d | 10267 | * |[3] |MODEM_IS |MODEM Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10268 | * | | |This bit is set when the CTSn pin has state change (DCTSF = "1"). |
AnnaBridge | 174:b96e65c34a4d | 10269 | * | | |If IER [MODEM_IEN] is set then the modem interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10270 | * | | |Note: This bit is read only, but can be cleared by it by writing "1" to UART_MCSR [DCT_F]. |
AnnaBridge | 174:b96e65c34a4d | 10271 | * |[4] |RTO_IS |RX Time-Out Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10272 | * | | |This bit is set when the RX-FIFO is not empty and no activities occur in the RX-FIFO and the time-out counter equal to TOIC. |
AnnaBridge | 174:b96e65c34a4d | 10273 | * | | |If IER [Tout_IEN] is set then the tout interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10274 | * | | |Note: This bit is read only and user can read UART_RBR (RX is in active) to clear it. |
AnnaBridge | 174:b96e65c34a4d | 10275 | * |[5] |BUF_ERR_IS|Buffer Error Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10276 | * | | |This bit is set when the TX or RX-FIFO overflowed. |
AnnaBridge | 174:b96e65c34a4d | 10277 | * | | |When BUF_ERR_IS is set, the transfer maybe not correct. |
AnnaBridge | 174:b96e65c34a4d | 10278 | * | | |If IER [BUF_ER_IEN] is set then the buffer error interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10279 | * | | |Note1: This bit is read only, but can be cleared by it by writing "1" to UART_FSR [TX_OVER_F] or UART_FSR [RX_OVER_F]. |
AnnaBridge | 174:b96e65c34a4d | 10280 | * | | |Note2: This bit is cleared when both the TX_OVER_F and RX_OVER_F are cleared. |
AnnaBridge | 174:b96e65c34a4d | 10281 | * |[6] |WAKE_IS |Wake-Up Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10282 | * | | |This bit is set in Power-down mode, the receiver received data or CTSn signal. |
AnnaBridge | 174:b96e65c34a4d | 10283 | * | | |If IER [WAKE_IE] is set then the wake-up interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10284 | * | | |Note: This bit is read only, but can be cleared by it by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10285 | * |[7] |ABAUD_IS |Auto-Baud Rate Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10286 | * | | |This bit is set when auto-baud rate detection function finished or the auto-baud rate counter was overflow and if IER [ABAUD_IE] is set then the auto-baud rate interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10287 | * | | |Note1: This bit is read only, but can be cleared by it by writing "1" to UART_TRSR [ABAUD_TOUT_F] or UART_TRSR [ABAUD_F]. |
AnnaBridge | 174:b96e65c34a4d | 10288 | * | | |Note2: This bit is cleared when both the ABAUD_TOUT_F and ABAUD_F are cleared. |
AnnaBridge | 174:b96e65c34a4d | 10289 | * |[8] |LIN_IS |LIN Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10290 | * | | |This bit is set when the LIN TX header transmitted, RX header received or the SIN does not equal SOUT and if IER [LIN_IE] is set then the LIN interrupt will be generated. |
AnnaBridge | 174:b96e65c34a4d | 10291 | * | | |Note1: This bit is read only, but can be cleared by it by writing "1" to UART_TRSR [BIT_ERR_F], UART_TRSR [BIT_TX_F] or UART_TRSR [LIN_RX_F]. |
AnnaBridge | 174:b96e65c34a4d | 10292 | * | | |Note2: This bit is cleared when both the BIT_ERR_F, BIT_TX_F and LIN_RX_F are cleared. |
AnnaBridge | 174:b96e65c34a4d | 10293 | */ |
AnnaBridge | 174:b96e65c34a4d | 10294 | __IO uint32_t ISR; |
AnnaBridge | 174:b96e65c34a4d | 10295 | |
AnnaBridge | 174:b96e65c34a4d | 10296 | /** |
AnnaBridge | 174:b96e65c34a4d | 10297 | * TRSR |
AnnaBridge | 174:b96e65c34a4d | 10298 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10299 | * Offset: 0x14 UART Transfer State Status Register. |
AnnaBridge | 174:b96e65c34a4d | 10300 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10301 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10302 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10303 | * |[0] |RS485_ADDET_F|RS-485 Address Byte Detection Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10304 | * | | |This bit is set to logic "1" and set UART_ALT_CTL [RS-485_ADD_EN] whenever in RS-485 mode the receiver detected any address byte character (bit 9 ='1') bit". |
AnnaBridge | 174:b96e65c34a4d | 10305 | * | | |This bit is reset whenever the CPU writes "1" to this bit. |
AnnaBridge | 174:b96e65c34a4d | 10306 | * | | |Note1: This field is used for RS-485 mode. |
AnnaBridge | 174:b96e65c34a4d | 10307 | * | | |Note2: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10308 | * |[1] |ABAUD_F |Auto-Baud Rate Interrupt (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10309 | * | | |This bit is set to logic "1" when auto-baud rate detect function finished. |
AnnaBridge | 174:b96e65c34a4d | 10310 | * | | |Note: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10311 | * |[2] |ABAUD_TOUT_F|Auto-Baud Rate Time-Out Interrupt (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10312 | * | | |This bit is set to logic "1" in Auto-baud Rate Detect mode and the baud rate counter is overflow. |
AnnaBridge | 174:b96e65c34a4d | 10313 | * | | |Note: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10314 | * |[3] |LIN_TX_F |LIN TX Interrupt Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10315 | * | | |This bit is set to logic "1" when LIN transmitted header field. |
AnnaBridge | 174:b96e65c34a4d | 10316 | * | | |The header may be "break field" or "break field + sync field" or "break field + sync field + PID field", it can be choose by setting UART_ALT_CTL[LIN_HEAD_SEL] register. |
AnnaBridge | 174:b96e65c34a4d | 10317 | * | | |Note: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10318 | * |[4] |LIN_RX_F |LIN RX Interrupt Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10319 | * | | |This bit is set to logic "1" when received LIN header field. |
AnnaBridge | 174:b96e65c34a4d | 10320 | * | | |The header may be "break field" or "break field + sync field" or "break field + sync field + PID field", and it can be choose by setting UART_ALT_CTL [LIN_HEAD_SEL] register. |
AnnaBridge | 174:b96e65c34a4d | 10321 | * | | |If the field includes "break field", when the receiver received break field then the LIN_RX_F will be set. |
AnnaBridge | 174:b96e65c34a4d | 10322 | * | | |The controller will receive next data and put it in FIFO. |
AnnaBridge | 174:b96e65c34a4d | 10323 | * | | |If the field includes "break field + sync field", hardware will wait for the flag LIN_RX_F in UART_TRSR to check RX received break field and sync field. |
AnnaBridge | 174:b96e65c34a4d | 10324 | * | | |If the break and sync field is received, hardware will set UART_TRSR [LIN_RX_F] flag, and if the break is received but the sync field does not equal 0x55, then hardware will set UART_TRSR [LIN_RX_F] and UART_TRSR [LIN_RX_SYNC_ERR_F] flag. |
AnnaBridge | 174:b96e65c34a4d | 10325 | * | | |The break and sync data (equals 0x55 or not) will not be stored in FIFO. |
AnnaBridge | 174:b96e65c34a4d | 10326 | * | | |If the field includes "break field + sync field + PID field", In this operation mode, hardware will control data automatically. |
AnnaBridge | 174:b96e65c34a4d | 10327 | * | | |Hardware will ignore any data until received break + sync (0x55) + PID value match the UART_ALT_CTL [ADDR_MATCH] value (break + sync + PID will not be stored in FIFO). |
AnnaBridge | 174:b96e65c34a4d | 10328 | * | | |When received break + sync (0x55) + PID value match the UART_ALT_CTL [ADDR_MATCH] value, hardware will set UART_TRSR [LIN_RX_F] and the following all data will be accepted and stored in the RX-FIFO until detect next break field. |
AnnaBridge | 174:b96e65c34a4d | 10329 | * | | |If the receiver received break + wrong sync (not equal 0x55) + PID value, hardware will set UART_TRSR [LIN_RX_F] and UART_TRSR [LIN_RX_SYNC_ERR_F] flag and the receiver will be disabled. |
AnnaBridge | 174:b96e65c34a4d | 10330 | * | | |If the receiver received break + sync (0x55) + wrong PID value, hardware will set UART_TRSR [LIN_RX_F] flag and the receiver will be disabled. |
AnnaBridge | 174:b96e65c34a4d | 10331 | * | | |Note: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10332 | * |[5] |BIT_ERR_F |Bit Error Detect Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10333 | * | | |At TX transfer state, hardware will monitoring the bus state, if the input pin (SIN) state is not equal to the output pin (SOUT) state, BIT_ERR_F will be set. |
AnnaBridge | 174:b96e65c34a4d | 10334 | * | | |When occur bit error, hardware will generate an interrupt to CPU (INT_LIN). |
AnnaBridge | 174:b96e65c34a4d | 10335 | * | | |Note1: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10336 | * | | |Note2: This bit is only valid when enabling the bit error detection function (UART_ALT_CTL [BIT_ERR_EN] = "1"). |
AnnaBridge | 174:b96e65c34a4d | 10337 | * |[8] |LIN_RX_SYNC_ERR_F|LIN RX SYNC Error Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10338 | * | | |This bit is set to logic "1" when LIN received incorrect SYNC field. |
AnnaBridge | 174:b96e65c34a4d | 10339 | * | | |User can choose the header by setting UART_ALT_CTL [LIN_HEAD_SEL] register. |
AnnaBridge | 174:b96e65c34a4d | 10340 | * | | |If the field includes "break field + sync field" and if the sync data does not equal 0x55, the LIN_RX_F and LIN_RX_SYNC_ERR_F will be set and the wrong sync data will be ignored. |
AnnaBridge | 174:b96e65c34a4d | 10341 | * | | |The controller will receive next data and put it in FIFO. |
AnnaBridge | 174:b96e65c34a4d | 10342 | * | | |If the field includes "break field + sync field + PID field" and if the sync data does not equal 0x55, the LIN_RX_F and LIN_RX_SYNC_ERR_F will be set and the wrong sync data will be ignored. |
AnnaBridge | 174:b96e65c34a4d | 10343 | * | | |The controller will receive next data and put it in FIFO. |
AnnaBridge | 174:b96e65c34a4d | 10344 | * | | |Note: This bit is read only, but can be cleared by writing "1" to LIN_RX_F. |
AnnaBridge | 174:b96e65c34a4d | 10345 | */ |
AnnaBridge | 174:b96e65c34a4d | 10346 | __IO uint32_t TRSR; |
AnnaBridge | 174:b96e65c34a4d | 10347 | |
AnnaBridge | 174:b96e65c34a4d | 10348 | /** |
AnnaBridge | 174:b96e65c34a4d | 10349 | * FSR |
AnnaBridge | 174:b96e65c34a4d | 10350 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10351 | * Offset: 0x18 UART FIFO State Status Register. |
AnnaBridge | 174:b96e65c34a4d | 10352 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10353 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10354 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10355 | * |[0] |RX_OVER_F |RX Overflow Error Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10356 | * | | |This bit is set when RX-FIFO overflow. |
AnnaBridge | 174:b96e65c34a4d | 10357 | * | | |If the number of bytes of received data is greater than RX-FIFO (UART_RBR) size, 16 bytes of UART0/UART1, this bit will be set. |
AnnaBridge | 174:b96e65c34a4d | 10358 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10359 | * |[1] |RX_EMPTY_F|Receiver FIFO Empty (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10360 | * | | |This bit initiate RX-FIFO empty or not. |
AnnaBridge | 174:b96e65c34a4d | 10361 | * | | |When the last byte of RX-FIFO has been read by CPU, hardware sets this bit high. |
AnnaBridge | 174:b96e65c34a4d | 10362 | * | | |It will be cleared when UART receives any new data. |
AnnaBridge | 174:b96e65c34a4d | 10363 | * |[2] |RX_FULL_F |Receiver FIFO Full (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10364 | * | | |This bit initiates RX-FIFO full or not. |
AnnaBridge | 174:b96e65c34a4d | 10365 | * | | |This bit is set when RX_POINTER_F is equal to 16, otherwise is cleared by hardware. |
AnnaBridge | 174:b96e65c34a4d | 10366 | * |[4] |PE_F |Parity Error State Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10367 | * | | |This bit is set to logic "1" whenever the received character does not have a valid "parity bit", and it is reset whenever the CPU writes "1" to this bit. |
AnnaBridge | 174:b96e65c34a4d | 10368 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10369 | * |[5] |FE_F |Framing Error Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10370 | * | | |This bit is set to logic "1" whenever the received character does not have a valid "stop bit" (that is, the stop bit following the last data bit or parity bit is detected as a logic "0"), and it is reset whenever the CPU writes "1" to this bit. |
AnnaBridge | 174:b96e65c34a4d | 10371 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10372 | * |[6] |BI_F |Break Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10373 | * | | |This bit is set to a logic "1" whenever the received data input(RX) is held in the "spacing state" (logic "0") for longer than a full word transmission time (that is, the total time of "start bit" + data bits + parity + stop bits) and it is reset whenever the CPU writes "1" to this bit. |
AnnaBridge | 174:b96e65c34a4d | 10374 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10375 | * |[8] |TX_OVER_F |TX Overflow Error Interrupt Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10376 | * | | |If TX-FIFO (UART_THR) is full, an additional write to UART_THR will cause this bit to logic "1". |
AnnaBridge | 174:b96e65c34a4d | 10377 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10378 | * |[9] |TX_EMPTY_F|Transmitter FIFO Empty (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10379 | * | | |This bit indicates TX-FIFO empty or not. |
AnnaBridge | 174:b96e65c34a4d | 10380 | * | | |When the last byte of TX-FIFO has been transferred to Transmitter Shift Register, hardware sets this bit high. |
AnnaBridge | 174:b96e65c34a4d | 10381 | * | | |It will be cleared when writing data into THR (TX-FIFO not empty). |
AnnaBridge | 174:b96e65c34a4d | 10382 | * |[10] |TX_FULL_F |Transmitter FIFO Full (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10383 | * | | |This bit indicates TX-FIFO full or not. |
AnnaBridge | 174:b96e65c34a4d | 10384 | * | | |This bit is set when TX_POINTER_F is equal to 16, otherwise is cleared by hardware. |
AnnaBridge | 174:b96e65c34a4d | 10385 | * |[11] |TE_F |Transmitter Empty Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10386 | * | | |Bit is set by hardware when TX is inactive. (TX shift register does not have data) |
AnnaBridge | 174:b96e65c34a4d | 10387 | * | | |Bit is cleared automatically when TX-FIFO is transfer data to TX shift register or TX is empty but the transfer does not finish. |
AnnaBridge | 174:b96e65c34a4d | 10388 | * |[20:16] |RX_POINTER_F|RX-FIFO Pointer (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10389 | * | | |This field indicates the RX-FIFO Buffer Pointer. |
AnnaBridge | 174:b96e65c34a4d | 10390 | * | | |When UART receives one byte from external device, RX_POINTER_F increases one. |
AnnaBridge | 174:b96e65c34a4d | 10391 | * | | |When one byte of RX-FIFO is read by CPU, RX_POINTER_F decreases one. |
AnnaBridge | 174:b96e65c34a4d | 10392 | * |[28:24] |TX_POINTER_F|TX-FIFO Pointer (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10393 | * | | |This field indicates the TX-FIFO Buffer Pointer. |
AnnaBridge | 174:b96e65c34a4d | 10394 | * | | |When CPU writes one byte data into UART_THR, TX_POINTER_F increases one. |
AnnaBridge | 174:b96e65c34a4d | 10395 | * | | |When one byte of TX-FIFO is transferred to Transmitter Shift Register, TX_POINTER_F decreases one. |
AnnaBridge | 174:b96e65c34a4d | 10396 | */ |
AnnaBridge | 174:b96e65c34a4d | 10397 | __IO uint32_t FSR; |
AnnaBridge | 174:b96e65c34a4d | 10398 | |
AnnaBridge | 174:b96e65c34a4d | 10399 | /** |
AnnaBridge | 174:b96e65c34a4d | 10400 | * MCSR |
AnnaBridge | 174:b96e65c34a4d | 10401 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10402 | * Offset: 0x1C UART Modem State Status Register. |
AnnaBridge | 174:b96e65c34a4d | 10403 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10404 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10405 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10406 | * |[0] |LEV_RTS |RTSn Trigger Level |
AnnaBridge | 174:b96e65c34a4d | 10407 | * | | |This bit can change the RTSn trigger level. |
AnnaBridge | 174:b96e65c34a4d | 10408 | * | | |0 = low level triggered. |
AnnaBridge | 174:b96e65c34a4d | 10409 | * | | |1 = high level triggered. |
AnnaBridge | 174:b96e65c34a4d | 10410 | * | | |Note: In RS-485 AUD mode and RTS Auto-flow control mode, hardware will control the output RTS pin automatically, so the table indicates the default value. |
AnnaBridge | 174:b96e65c34a4d | 10411 | * | | |Note: The default setting in UART mode is LEV_RTS = "0" and RTS_ST = "1". |
AnnaBridge | 174:b96e65c34a4d | 10412 | * |[1] |RTS_ST |RTSn Pin State (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10413 | * | | |This bit is the pin status of RTSn. |
AnnaBridge | 174:b96e65c34a4d | 10414 | * |[16] |LEV_CTS |CTSn Trigger Level |
AnnaBridge | 174:b96e65c34a4d | 10415 | * | | |This bit can change the CTSn trigger level. |
AnnaBridge | 174:b96e65c34a4d | 10416 | * | | |0 = Low level triggered. |
AnnaBridge | 174:b96e65c34a4d | 10417 | * | | |1 = High level triggered. |
AnnaBridge | 174:b96e65c34a4d | 10418 | * |[17] |CTS_ST |CTSn Pin Status (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10419 | * | | |This bit is the pin status of CTSn. |
AnnaBridge | 174:b96e65c34a4d | 10420 | * |[18] |DCT_F |Detect CTSn State Change Status Flag (Read Only) |
AnnaBridge | 174:b96e65c34a4d | 10421 | * | | |This bit is set whenever CTSn input has change state, and it will generate Modem interrupt to CPU when UART_IER [Modem_IEN]. |
AnnaBridge | 174:b96e65c34a4d | 10422 | * | | |Note: This bit is read only, but it can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 10423 | */ |
AnnaBridge | 174:b96e65c34a4d | 10424 | __IO uint32_t MCSR; |
AnnaBridge | 174:b96e65c34a4d | 10425 | |
AnnaBridge | 174:b96e65c34a4d | 10426 | /** |
AnnaBridge | 174:b96e65c34a4d | 10427 | * TMCTL |
AnnaBridge | 174:b96e65c34a4d | 10428 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10429 | * Offset: 0x20 UART Time-Out Control State Register. |
AnnaBridge | 174:b96e65c34a4d | 10430 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10431 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10432 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10433 | * |[8:0] |TOIC |Time-Out Comparator |
AnnaBridge | 174:b96e65c34a4d | 10434 | * | | |The time-out counter resets and starts counting (the counting clock = baud rate) whenever the RX-FIFO receives a new data word. |
AnnaBridge | 174:b96e65c34a4d | 10435 | * | | |Once the content of time-out counter (TOUT_CNT) is equal to time-out interrupt comparator (TOIC), a receiver time-out interrupt (INT_TOUT) is generated if UART_IER [RTO_IEN]. |
AnnaBridge | 174:b96e65c34a4d | 10436 | * | | |A new incoming data word or RX-FIFO empty clears INT_TOUT. |
AnnaBridge | 174:b96e65c34a4d | 10437 | * | | |Note1: Fill all "0" to this field indicates to disable this function. |
AnnaBridge | 174:b96e65c34a4d | 10438 | * | | |Note2: The real time-out value is TOIC + 1. |
AnnaBridge | 174:b96e65c34a4d | 10439 | * | | |Note3: The counting clock is baud rate clock. |
AnnaBridge | 174:b96e65c34a4d | 10440 | * | | |Note4: The UART data format is start bit + 8 data bits + parity bit + stop bit, although software can configure this field by any value but it is recommend to filled this field great than 0xA. |
AnnaBridge | 174:b96e65c34a4d | 10441 | * |[23:16] |DLY |TX Delay Time Value |
AnnaBridge | 174:b96e65c34a4d | 10442 | * | | |This field is use to program the transfer delay time between the last stop bit leaving the TX-FIFO and the de-assertion of by setting UART_TMCTL [DLY] register. |
AnnaBridge | 174:b96e65c34a4d | 10443 | * | | |Note1: Fill all "0" to this field indicates to disable this function. |
AnnaBridge | 174:b96e65c34a4d | 10444 | * | | |Note2: The real delay value is DLY. |
AnnaBridge | 174:b96e65c34a4d | 10445 | * | | |Note3: The counting clock is baud rate clock. |
AnnaBridge | 174:b96e65c34a4d | 10446 | */ |
AnnaBridge | 174:b96e65c34a4d | 10447 | __IO uint32_t TMCTL; |
AnnaBridge | 174:b96e65c34a4d | 10448 | |
AnnaBridge | 174:b96e65c34a4d | 10449 | /** |
AnnaBridge | 174:b96e65c34a4d | 10450 | * BAUD |
AnnaBridge | 174:b96e65c34a4d | 10451 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10452 | * Offset: 0x24 UART Baud Rate Divisor Register |
AnnaBridge | 174:b96e65c34a4d | 10453 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10454 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10455 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10456 | * |[15:0] |BRD |Baud Rate Divider |
AnnaBridge | 174:b96e65c34a4d | 10457 | * |[31] |DIV_16_EN |Divider 16 Enable |
AnnaBridge | 174:b96e65c34a4d | 10458 | * | | |The BRD = Baud Rate Divider, and the baud rate equation is Baud Rate = UART_CLK/ [16 * (BRD + 1)]; The default value of M is 16. |
AnnaBridge | 174:b96e65c34a4d | 10459 | * | | |0 = The equation of baud rate is UART_CLK / [ (BRD+1)]. |
AnnaBridge | 174:b96e65c34a4d | 10460 | * | | |1 = The equation of baud rate is UART_CLK / [16 * (BRD+1)]. |
AnnaBridge | 174:b96e65c34a4d | 10461 | * | | |Note: In IrDA mode, this bit must disable. |
AnnaBridge | 174:b96e65c34a4d | 10462 | */ |
AnnaBridge | 174:b96e65c34a4d | 10463 | __IO uint32_t BAUD; |
AnnaBridge | 174:b96e65c34a4d | 10464 | uint32_t RESERVE0[2]; |
AnnaBridge | 174:b96e65c34a4d | 10465 | |
AnnaBridge | 174:b96e65c34a4d | 10466 | |
AnnaBridge | 174:b96e65c34a4d | 10467 | /** |
AnnaBridge | 174:b96e65c34a4d | 10468 | * IRCR |
AnnaBridge | 174:b96e65c34a4d | 10469 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10470 | * Offset: 0x30 UART IrDA Control Register. |
AnnaBridge | 174:b96e65c34a4d | 10471 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10472 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10473 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10474 | * |[1] |TX_SELECT |TX_SELECT |
AnnaBridge | 174:b96e65c34a4d | 10475 | * | | |0 = IrDA receiver Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10476 | * | | |1 = IrDA transmitter Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10477 | * | | |Note: In IrDA mode, the UART_BAUD [DIV_16_EN) register must be set (the baud equation must be Clock / 16 * (BRD) |
AnnaBridge | 174:b96e65c34a4d | 10478 | * |[5] |INV_TX |INV_TX |
AnnaBridge | 174:b96e65c34a4d | 10479 | * | | |0 = No inversion. |
AnnaBridge | 174:b96e65c34a4d | 10480 | * | | |1 = Inverse TX output signal. |
AnnaBridge | 174:b96e65c34a4d | 10481 | * |[6] |INV_RX |INV_RX |
AnnaBridge | 174:b96e65c34a4d | 10482 | * | | |0 = No inversion. |
AnnaBridge | 174:b96e65c34a4d | 10483 | * | | |1 = Inverse RX input signal. |
AnnaBridge | 174:b96e65c34a4d | 10484 | */ |
AnnaBridge | 174:b96e65c34a4d | 10485 | __IO uint32_t IRCR; |
AnnaBridge | 174:b96e65c34a4d | 10486 | |
AnnaBridge | 174:b96e65c34a4d | 10487 | /** |
AnnaBridge | 174:b96e65c34a4d | 10488 | * ALT_CTL |
AnnaBridge | 174:b96e65c34a4d | 10489 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10490 | * Offset: 0x34 UART Alternate Control State Register. |
AnnaBridge | 174:b96e65c34a4d | 10491 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10492 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10493 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10494 | * |[2:0] |LIN_TX_BCNT|LIN TX Break Field Count Register |
AnnaBridge | 174:b96e65c34a4d | 10495 | * | | |The field contains 3-bit LIN TX break field count. |
AnnaBridge | 174:b96e65c34a4d | 10496 | * | | |Note: The break field length is LIN_TX_BCNT + 8. |
AnnaBridge | 174:b96e65c34a4d | 10497 | * |[5:4] |LIN_HEAD_SEL|LIN Header Selection |
AnnaBridge | 174:b96e65c34a4d | 10498 | * | | |00 = The LIN header includes "break field". |
AnnaBridge | 174:b96e65c34a4d | 10499 | * | | |01 = The LIN header includes "break field + sync field". |
AnnaBridge | 174:b96e65c34a4d | 10500 | * | | |10 = The LIN header includes "break field + sync field + PID field". |
AnnaBridge | 174:b96e65c34a4d | 10501 | * | | |11 = Reserved. |
AnnaBridge | 174:b96e65c34a4d | 10502 | * |[6] |LIN_RX_EN |LIN RX Enable |
AnnaBridge | 174:b96e65c34a4d | 10503 | * | | |When LIN RX mode enabled and received a break field or sync field or PID field (Select by LIN_Header_SEL), the controller will generator a interrupt to CPU (INT_LIN) |
AnnaBridge | 174:b96e65c34a4d | 10504 | * | | |0 = LIN RX mode Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10505 | * | | |1 = LIN RX mode Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10506 | * |[7] |LIN_TX_EN |LIN TX Header Trigger Enable |
AnnaBridge | 174:b96e65c34a4d | 10507 | * | | |0 = LIN TX Header Trigger Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10508 | * | | |1 = LIN TX Header Trigger Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10509 | * | | |Note1: When TX header field (break field or break and sync field or break, sync and PID field) transfer operation finished, this bit will be cleared automatically and generate a interrupt to CPU (INT_LIN). |
AnnaBridge | 174:b96e65c34a4d | 10510 | * | | |Note2: If user wants to receive transmit data, it recommended to enable LIN_RX_EN bit. |
AnnaBridge | 174:b96e65c34a4d | 10511 | * |[8] |Bit_ERR_EN|Bit Error Detect Enable |
AnnaBridge | 174:b96e65c34a4d | 10512 | * | | |0 = Bit error detection function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10513 | * | | |1 = Bit error detection Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10514 | * | | |Note: In LIN function mode, when bit error occurs, hardware will generate an interrupt to CPU (INT_LIN). |
AnnaBridge | 174:b96e65c34a4d | 10515 | * |[16] |RS485_NMM |RS-485 Normal Multi-Drop Operation Mode (RS-485 NMM Mode) |
AnnaBridge | 174:b96e65c34a4d | 10516 | * | | |0 = RS-485 Normal Multi-drop Operation mode (NMM) Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10517 | * | | |1 = RS-485 Normal Multi-drop Operation mode (NMM) Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10518 | * | | |Note: It can't be active in RS-485_AAD Operation mode. |
AnnaBridge | 174:b96e65c34a4d | 10519 | * |[17] |RS485_AAD |RS-485 Auto Address Detection Operation Mode (RS-485 AAD Mode) |
AnnaBridge | 174:b96e65c34a4d | 10520 | * | | |0 = RS-485 Auto Address Detection Operation mode (AAD) Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10521 | * | | |1 = RS-485 Auto Address Detection Operation mode (AAD) Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10522 | * | | |Note: It can't be active in RS-485_NMM Operation mode. |
AnnaBridge | 174:b96e65c34a4d | 10523 | * |[18] |RS485_AUD |RS-485 Auto Direction Mode (RS-485 AUD Mode) |
AnnaBridge | 174:b96e65c34a4d | 10524 | * | | |0 = RS-485 Auto Direction mode (AUD) Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10525 | * | | |1 = RS-485 Auto Direction mode (AUD) Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10526 | * | | |Note: It can be active in RS-485_AAD or RS-485_NMM operation mode. |
AnnaBridge | 174:b96e65c34a4d | 10527 | * |[19] |RS485_ADD_EN|RS-485 Address Detection Enable |
AnnaBridge | 174:b96e65c34a4d | 10528 | * | | |This bit is used to enable RS-485 hardware address detection mode. |
AnnaBridge | 174:b96e65c34a4d | 10529 | * | | |If hardware detects address byte, and then the controller will set UART_TRSR [RS485_ADDET_F] = "1". |
AnnaBridge | 174:b96e65c34a4d | 10530 | * | | |0 = Address detection mode Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10531 | * | | |1 = Address detection mode Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10532 | * | | |Note: This field is used for RS-485 any operation mode. |
AnnaBridge | 174:b96e65c34a4d | 10533 | * |[31:24] |ADDR_PID_MATCH|Address / PID Match Value Register |
AnnaBridge | 174:b96e65c34a4d | 10534 | * | | |This field contains the RS-485 address match values in RS-485 Function mode. |
AnnaBridge | 174:b96e65c34a4d | 10535 | * | | |This field contains the LIN protected identifier field n LIN Function mode, software fills ID0~ID5 (ADDR_PID_MATCH [5:0]), hardware will calculate P0 and P1. |
AnnaBridge | 174:b96e65c34a4d | 10536 | * | | |Note: This field is used for RS-485 auto address detection mode or used for LIN protected identifier field (PID). |
AnnaBridge | 174:b96e65c34a4d | 10537 | */ |
AnnaBridge | 174:b96e65c34a4d | 10538 | __IO uint32_t ALT_CTL; |
AnnaBridge | 174:b96e65c34a4d | 10539 | |
AnnaBridge | 174:b96e65c34a4d | 10540 | /** |
AnnaBridge | 174:b96e65c34a4d | 10541 | * FUN_SEL |
AnnaBridge | 174:b96e65c34a4d | 10542 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10543 | * Offset: 0x38 UART Function Select Register. |
AnnaBridge | 174:b96e65c34a4d | 10544 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10545 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10546 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10547 | * |[1:0] |FUN_SEL |Function Select Enable |
AnnaBridge | 174:b96e65c34a4d | 10548 | * | | |00 = UART function mode. |
AnnaBridge | 174:b96e65c34a4d | 10549 | * | | |01 = LIN function mode. |
AnnaBridge | 174:b96e65c34a4d | 10550 | * | | |10 = IrDA Function. |
AnnaBridge | 174:b96e65c34a4d | 10551 | * | | |11 = RS-485 Function. |
AnnaBridge | 174:b96e65c34a4d | 10552 | */ |
AnnaBridge | 174:b96e65c34a4d | 10553 | __IO uint32_t FUN_SEL; |
AnnaBridge | 174:b96e65c34a4d | 10554 | |
AnnaBridge | 174:b96e65c34a4d | 10555 | } UART_T; |
AnnaBridge | 174:b96e65c34a4d | 10556 | |
AnnaBridge | 174:b96e65c34a4d | 10557 | /** |
AnnaBridge | 174:b96e65c34a4d | 10558 | @addtogroup UART_CONST UART Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 10559 | Constant Definitions for UART Controller |
AnnaBridge | 174:b96e65c34a4d | 10560 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 10561 | |
AnnaBridge | 174:b96e65c34a4d | 10562 | #define UART_DAT_DAT_Pos (0) /*!< UART_T::DAT: DAT Position */ |
AnnaBridge | 174:b96e65c34a4d | 10563 | #define UART_DAT_DAT_Msk (0xfful << UART_DAT_DAT_Pos) /*!< UART_T::DAT: DAT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10564 | |
AnnaBridge | 174:b96e65c34a4d | 10565 | #define UART_CTL_RX_RST_Pos (0) /*!< UART_T::CTL: RX_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 10566 | #define UART_CTL_RX_RST_Msk (0x1ul << UART_CTL_RX_RST_Pos) /*!< UART_T::CTL: RX_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10567 | |
AnnaBridge | 174:b96e65c34a4d | 10568 | #define UART_CTL_TX_RST_Pos (1) /*!< UART_T::CTL: TX_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 10569 | #define UART_CTL_TX_RST_Msk (0x1ul << UART_CTL_TX_RST_Pos) /*!< UART_T::CTL: TX_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10570 | |
AnnaBridge | 174:b96e65c34a4d | 10571 | #define UART_CTL_RX_DIS_Pos (2) /*!< UART_T::CTL: RX_DIS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10572 | #define UART_CTL_RX_DIS_Msk (0x1ul << UART_CTL_RX_DIS_Pos) /*!< UART_T::CTL: RX_DIS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10573 | |
AnnaBridge | 174:b96e65c34a4d | 10574 | #define UART_CTL_TX_DIS_Pos (3) /*!< UART_T::CTL: TX_DIS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10575 | #define UART_CTL_TX_DIS_Msk (0x1ul << UART_CTL_TX_DIS_Pos) /*!< UART_T::CTL: TX_DIS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10576 | |
AnnaBridge | 174:b96e65c34a4d | 10577 | #define UART_CTL_AUTO_RTS_EN_Pos (4) /*!< UART_T::CTL: AUTO_RTS_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10578 | #define UART_CTL_AUTO_RTS_EN_Msk (0x1ul << UART_CTL_AUTO_RTS_EN_Pos) /*!< UART_T::CTL: AUTO_RTS_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10579 | |
AnnaBridge | 174:b96e65c34a4d | 10580 | #define UART_CTL_AUTO_CTS_EN_Pos (5) /*!< UART_T::CTL: AUTO_CTS_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10581 | #define UART_CTL_AUTO_CTS_EN_Msk (0x1ul << UART_CTL_AUTO_CTS_EN_Pos) /*!< UART_T::CTL: AUTO_CTS_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10582 | |
AnnaBridge | 174:b96e65c34a4d | 10583 | #define UART_CTL_DMA_RX_EN_Pos (6) /*!< UART_T::CTL: DMA_RX_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10584 | #define UART_CTL_DMA_RX_EN_Msk (0x1ul << UART_CTL_DMA_RX_EN_Pos) /*!< UART_T::CTL: DMA_RX_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10585 | |
AnnaBridge | 174:b96e65c34a4d | 10586 | #define UART_CTL_DMA_TX_EN_Pos (7) /*!< UART_T::CTL: DMA_TX_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10587 | #define UART_CTL_DMA_TX_EN_Msk (0x1ul << UART_CTL_DMA_TX_EN_Pos) /*!< UART_T::CTL: DMA_TX_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10588 | |
AnnaBridge | 174:b96e65c34a4d | 10589 | #define UART_CTL_WAKE_CTS_EN_Pos (8) /*!< UART_T::CTL: WAKE_CTS_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10590 | #define UART_CTL_WAKE_CTS_EN_Msk (0x1ul << UART_CTL_WAKE_CTS_EN_Pos) /*!< UART_T::CTL: WAKE_CTS_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10591 | |
AnnaBridge | 174:b96e65c34a4d | 10592 | #define UART_CTL_WAKE_DATA_EN_Pos (9) /*!< UART_T::CTL: WAKE_DATA_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10593 | #define UART_CTL_WAKE_DATA_EN_Msk (0x1ul << UART_CTL_WAKE_DATA_EN_Pos) /*!< UART_T::CTL: WAKE_DATA_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10594 | |
AnnaBridge | 174:b96e65c34a4d | 10595 | #define UART_CTL_ABAUD_EN_Pos (12) /*!< UART_T::CTL: ABAUD_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10596 | #define UART_CTL_ABAUD_EN_Msk (0x1ul << UART_CTL_ABAUD_EN_Pos) /*!< UART_T::CTL: ABAUD_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10597 | |
AnnaBridge | 174:b96e65c34a4d | 10598 | #define UART_TLCTL_DATA_LEN_Pos (0) /*!< UART_T::TLCTL: DATA_LEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10599 | #define UART_TLCTL_DATA_LEN_Msk (0x3ul << UART_TLCTL_DATA_LEN_Pos) /*!< UART_T::TLCTL: DATA_LEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10600 | |
AnnaBridge | 174:b96e65c34a4d | 10601 | #define UART_TLCTL_NSB_Pos (2) /*!< UART_T::TLCTL: NSB Position */ |
AnnaBridge | 174:b96e65c34a4d | 10602 | #define UART_TLCTL_NSB_Msk (0x1ul << UART_TLCTL_NSB_Pos) /*!< UART_T::TLCTL: NSB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10603 | |
AnnaBridge | 174:b96e65c34a4d | 10604 | #define UART_TLCTL_PBE_Pos (3) /*!< UART_T::TLCTL: PBE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10605 | #define UART_TLCTL_PBE_Msk (0x1ul << UART_TLCTL_PBE_Pos) /*!< UART_T::TLCTL: PBE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10606 | |
AnnaBridge | 174:b96e65c34a4d | 10607 | #define UART_TLCTL_EPE_Pos (4) /*!< UART_T::TLCTL: EPE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10608 | #define UART_TLCTL_EPE_Msk (0x1ul << UART_TLCTL_EPE_Pos) /*!< UART_T::TLCTL: EPE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10609 | |
AnnaBridge | 174:b96e65c34a4d | 10610 | #define UART_TLCTL_SPE_Pos (5) /*!< UART_T::TLCTL: SPE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10611 | #define UART_TLCTL_SPE_Msk (0x1ul << UART_TLCTL_SPE_Pos) /*!< UART_T::TLCTL: SPE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10612 | |
AnnaBridge | 174:b96e65c34a4d | 10613 | #define UART_TLCTL_BCB_Pos (6) /*!< UART_T::TLCTL: BCB Position */ |
AnnaBridge | 174:b96e65c34a4d | 10614 | #define UART_TLCTL_BCB_Msk (0x1ul << UART_TLCTL_BCB_Pos) /*!< UART_T::TLCTL: BCB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10615 | |
AnnaBridge | 174:b96e65c34a4d | 10616 | #define UART_TLCTL_RFITL_Pos (8) /*!< UART_T::TLCTL: RFITL Position */ |
AnnaBridge | 174:b96e65c34a4d | 10617 | #define UART_TLCTL_RFITL_Msk (0x3ul << UART_TLCTL_RFITL_Pos) /*!< UART_T::TLCTL: RFITL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10618 | |
AnnaBridge | 174:b96e65c34a4d | 10619 | #define UART_TLCTL_RTS_TRI_LEV_Pos (12) /*!< UART_T::TLCTL: RTS_TRI_LEV Position */ |
AnnaBridge | 174:b96e65c34a4d | 10620 | #define UART_TLCTL_RTS_TRI_LEV_Msk (0x3ul << UART_TLCTL_RTS_TRI_LEV_Pos) /*!< UART_T::TLCTL: RTS_TRI_LEV Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10621 | |
AnnaBridge | 174:b96e65c34a4d | 10622 | #define UART_IER_RDA_IE_Pos (0) /*!< UART_T::IER: RDA_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10623 | #define UART_IER_RDA_IE_Msk (0x1ul << UART_IER_RDA_IE_Pos) /*!< UART_T::IER: RDA_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10624 | |
AnnaBridge | 174:b96e65c34a4d | 10625 | #define UART_IER_THRE_IE_Pos (1) /*!< UART_T::IER: THRE_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10626 | #define UART_IER_THRE_IE_Msk (0x1ul << UART_IER_THRE_IE_Pos) /*!< UART_T::IER: THRE_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10627 | |
AnnaBridge | 174:b96e65c34a4d | 10628 | #define UART_IER_RLS_IE_Pos (2) /*!< UART_T::IER: RLS_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10629 | #define UART_IER_RLS_IE_Msk (0x1ul << UART_IER_RLS_IE_Pos) /*!< UART_T::IER: RLS_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10630 | |
AnnaBridge | 174:b96e65c34a4d | 10631 | #define UART_IER_MODEM_IE_Pos (3) /*!< UART_T::IER: MODEM_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10632 | #define UART_IER_MODEM_IE_Msk (0x1ul << UART_IER_MODEM_IE_Pos) /*!< UART_T::IER: MODEM_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10633 | |
AnnaBridge | 174:b96e65c34a4d | 10634 | #define UART_IER_RTO_IE_Pos (4) /*!< UART_T::IER: RTO_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10635 | #define UART_IER_RTO_IE_Msk (0x1ul << UART_IER_RTO_IE_Pos) /*!< UART_T::IER: RTO_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10636 | |
AnnaBridge | 174:b96e65c34a4d | 10637 | #define UART_IER_BUF_ERR_IE_Pos (5) /*!< UART_T::IER: BUF_ERR_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10638 | #define UART_IER_BUF_ERR_IE_Msk (0x1ul << UART_IER_BUF_ERR_IE_Pos) /*!< UART_T::IER: BUF_ERR_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10639 | |
AnnaBridge | 174:b96e65c34a4d | 10640 | #define UART_IER_WAKE_IE_Pos (6) /*!< UART_T::IER: WAKE_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10641 | #define UART_IER_WAKE_IE_Msk (0x1ul << UART_IER_WAKE_IE_Pos) /*!< UART_T::IER: WAKE_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10642 | |
AnnaBridge | 174:b96e65c34a4d | 10643 | #define UART_IER_ABAUD_IE_Pos (7) /*!< UART_T::IER: ABAUD_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10644 | #define UART_IER_ABAUD_IE_Msk (0x1ul << UART_IER_ABAUD_IE_Pos) /*!< UART_T::IER: ABAUD_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10645 | |
AnnaBridge | 174:b96e65c34a4d | 10646 | #define UART_IER_LIN_IE_Pos (8) /*!< UART_T::IER: LIN_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 10647 | #define UART_IER_LIN_IE_Msk (0x1ul << UART_IER_LIN_IE_Pos) /*!< UART_T::IER: LIN_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10648 | |
AnnaBridge | 174:b96e65c34a4d | 10649 | #define UART_ISR_RDA_IS_Pos (0) /*!< UART_T::ISR: RDA_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10650 | #define UART_ISR_RDA_IS_Msk (0x1ul << UART_ISR_RDA_IS_Pos) /*!< UART_T::ISR: RDA_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10651 | |
AnnaBridge | 174:b96e65c34a4d | 10652 | #define UART_ISR_THRE_IS_Pos (1) /*!< UART_T::ISR: THRE_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10653 | #define UART_ISR_THRE_IS_Msk (0x1ul << UART_ISR_THRE_IS_Pos) /*!< UART_T::ISR: THRE_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10654 | |
AnnaBridge | 174:b96e65c34a4d | 10655 | #define UART_ISR_RLS_IS_Pos (2) /*!< UART_T::ISR: RLS_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10656 | #define UART_ISR_RLS_IS_Msk (0x1ul << UART_ISR_RLS_IS_Pos) /*!< UART_T::ISR: RLS_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10657 | |
AnnaBridge | 174:b96e65c34a4d | 10658 | #define UART_ISR_MODEM_IS_Pos (3) /*!< UART_T::ISR: MODEM_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10659 | #define UART_ISR_MODEM_IS_Msk (0x1ul << UART_ISR_MODEM_IS_Pos) /*!< UART_T::ISR: MODEM_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10660 | |
AnnaBridge | 174:b96e65c34a4d | 10661 | #define UART_ISR_RTO_IS_Pos (4) /*!< UART_T::ISR: RTO_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10662 | #define UART_ISR_RTO_IS_Msk (0x1ul << UART_ISR_RTO_IS_Pos) /*!< UART_T::ISR: RTO_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10663 | |
AnnaBridge | 174:b96e65c34a4d | 10664 | #define UART_ISR_BUF_ERR_IS_Pos (5) /*!< UART_T::ISR: BUF_ERR_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10665 | #define UART_ISR_BUF_ERR_IS_Msk (0x1ul << UART_ISR_BUF_ERR_IS_Pos) /*!< UART_T::ISR: BUF_ERR_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10666 | |
AnnaBridge | 174:b96e65c34a4d | 10667 | #define UART_ISR_WAKE_IS_Pos (6) /*!< UART_T::ISR: WAKE_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10668 | #define UART_ISR_WAKE_IS_Msk (0x1ul << UART_ISR_WAKE_IS_Pos) /*!< UART_T::ISR: WAKE_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10669 | |
AnnaBridge | 174:b96e65c34a4d | 10670 | #define UART_ISR_ABAUD_IS_Pos (7) /*!< UART_T::ISR: ABAUD_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10671 | #define UART_ISR_ABAUD_IS_Msk (0x1ul << UART_ISR_ABAUD_IS_Pos) /*!< UART_T::ISR: ABAUD_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10672 | |
AnnaBridge | 174:b96e65c34a4d | 10673 | #define UART_ISR_LIN_IS_Pos (8) /*!< UART_T::ISR: LIN_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10674 | #define UART_ISR_LIN_IS_Msk (0x1ul << UART_ISR_LIN_IS_Pos) /*!< UART_T::ISR: LIN_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10675 | |
AnnaBridge | 174:b96e65c34a4d | 10676 | #define UART_TRSR_RS485_ADDET_F_Pos (0) /*!< UART_T::TRSR: RS485_ADDET_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10677 | #define UART_TRSR_RS485_ADDET_F_Msk (0x1ul << UART_TRSR_RS485_ADDET_F_Pos) /*!< UART_T::TRSR: RS485_ADDET_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10678 | |
AnnaBridge | 174:b96e65c34a4d | 10679 | #define UART_TRSR_ABAUD_F_Pos (1) /*!< UART_T::TRSR: ABAUD_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10680 | #define UART_TRSR_ABAUD_F_Msk (0x1ul << UART_TRSR_ABAUD_F_Pos) /*!< UART_T::TRSR: ABAUD_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10681 | |
AnnaBridge | 174:b96e65c34a4d | 10682 | #define UART_TRSR_ABAUD_TOUT_F_Pos (2) /*!< UART_T::TRSR: ABAUD_TOUT_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10683 | #define UART_TRSR_ABAUD_TOUT_F_Msk (0x1ul << UART_TRSR_ABAUD_TOUT_F_Pos) /*!< UART_T::TRSR: ABAUD_TOUT_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10684 | |
AnnaBridge | 174:b96e65c34a4d | 10685 | #define UART_TRSR_LIN_TX_F_Pos (3) /*!< UART_T::TRSR: LIN_TX_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10686 | #define UART_TRSR_LIN_TX_F_Msk (0x1ul << UART_TRSR_LIN_TX_F_Pos) /*!< UART_T::TRSR: LIN_TX_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10687 | |
AnnaBridge | 174:b96e65c34a4d | 10688 | #define UART_TRSR_LIN_RX_F_Pos (4) /*!< UART_T::TRSR: LIN_RX_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10689 | #define UART_TRSR_LIN_RX_F_Msk (0x1ul << UART_TRSR_LIN_RX_F_Pos) /*!< UART_T::TRSR: LIN_RX_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10690 | |
AnnaBridge | 174:b96e65c34a4d | 10691 | #define UART_TRSR_BIT_ERR_F_Pos (5) /*!< UART_T::TRSR: BIT_ERR_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10692 | #define UART_TRSR_BIT_ERR_F_Msk (0x1ul << UART_TRSR_BIT_ERR_F_Pos) /*!< UART_T::TRSR: BIT_ERR_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10693 | |
AnnaBridge | 174:b96e65c34a4d | 10694 | #define UART_TRSR_LIN_RX_SYNC_ERR_F_Pos (8) /*!< UART_T::TRSR: LIN_RX_SYNC_ERR_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10695 | #define UART_TRSR_LIN_RX_SYNC_ERR_F_Msk (0x1ul << UART_TRSR_LIN_RX_SYNC_ERR_F_Pos) /*!< UART_T::TRSR: LIN_RX_SYNC_ERR_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10696 | |
AnnaBridge | 174:b96e65c34a4d | 10697 | #define UART_FSR_RX_OVER_F_Pos (0) /*!< UART_T::FSR: RX_OVER_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10698 | #define UART_FSR_RX_OVER_F_Msk (0x1ul << UART_FSR_RX_OVER_F_Pos) /*!< UART_T::FSR: RX_OVER_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10699 | |
AnnaBridge | 174:b96e65c34a4d | 10700 | #define UART_FSR_RX_EMPTY_F_Pos (1) /*!< UART_T::FSR: RX_EMPTY_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10701 | #define UART_FSR_RX_EMPTY_F_Msk (0x1ul << UART_FSR_RX_EMPTY_F_Pos) /*!< UART_T::FSR: RX_EMPTY_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10702 | |
AnnaBridge | 174:b96e65c34a4d | 10703 | #define UART_FSR_RX_FULL_F_Pos (2) /*!< UART_T::FSR: RX_FULL_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10704 | #define UART_FSR_RX_FULL_F_Msk (0x1ul << UART_FSR_RX_FULL_F_Pos) /*!< UART_T::FSR: RX_FULL_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10705 | |
AnnaBridge | 174:b96e65c34a4d | 10706 | #define UART_FSR_PE_F_Pos (4) /*!< UART_T::FSR: PE_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10707 | #define UART_FSR_PE_F_Msk (0x1ul << UART_FSR_PE_F_Pos) /*!< UART_T::FSR: PE_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10708 | |
AnnaBridge | 174:b96e65c34a4d | 10709 | #define UART_FSR_FE_F_Pos (5) /*!< UART_T::FSR: FE_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10710 | #define UART_FSR_FE_F_Msk (0x1ul << UART_FSR_FE_F_Pos) /*!< UART_T::FSR: FE_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10711 | |
AnnaBridge | 174:b96e65c34a4d | 10712 | #define UART_FSR_BI_F_Pos (6) /*!< UART_T::FSR: BI_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10713 | #define UART_FSR_BI_F_Msk (0x1ul << UART_FSR_BI_F_Pos) /*!< UART_T::FSR: BI_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10714 | |
AnnaBridge | 174:b96e65c34a4d | 10715 | #define UART_FSR_TX_OVER_F_Pos (8) /*!< UART_T::FSR: TX_OVER_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10716 | #define UART_FSR_TX_OVER_F_Msk (0x1ul << UART_FSR_TX_OVER_F_Pos) /*!< UART_T::FSR: TX_OVER_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10717 | |
AnnaBridge | 174:b96e65c34a4d | 10718 | #define UART_FSR_TX_EMPTY_F_Pos (9) /*!< UART_T::FSR: TX_EMPTY_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10719 | #define UART_FSR_TX_EMPTY_F_Msk (0x1ul << UART_FSR_TX_EMPTY_F_Pos) /*!< UART_T::FSR: TX_EMPTY_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10720 | |
AnnaBridge | 174:b96e65c34a4d | 10721 | #define UART_FSR_TX_FULL_F_Pos (10) /*!< UART_T::FSR: TX_FULL_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10722 | #define UART_FSR_TX_FULL_F_Msk (0x1ul << UART_FSR_TX_FULL_F_Pos) /*!< UART_T::FSR: TX_FULL_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10723 | |
AnnaBridge | 174:b96e65c34a4d | 10724 | #define UART_FSR_TE_F_Pos (11) /*!< UART_T::FSR: TE_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10725 | #define UART_FSR_TE_F_Msk (0x1ul << UART_FSR_TE_F_Pos) /*!< UART_T::FSR: TE_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10726 | |
AnnaBridge | 174:b96e65c34a4d | 10727 | #define UART_FSR_RX_POINTER_F_Pos (16) /*!< UART_T::FSR: RX_POINTER_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10728 | #define UART_FSR_RX_POINTER_F_Msk (0x1ful << UART_FSR_RX_POINTER_F_Pos) /*!< UART_T::FSR: RX_POINTER_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10729 | |
AnnaBridge | 174:b96e65c34a4d | 10730 | #define UART_FSR_TX_POINTER_F_Pos (24) /*!< UART_T::FSR: TX_POINTER_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10731 | #define UART_FSR_TX_POINTER_F_Msk (0x1ful << UART_FSR_TX_POINTER_F_Pos) /*!< UART_T::FSR: TX_POINTER_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10732 | |
AnnaBridge | 174:b96e65c34a4d | 10733 | #define UART_MCSR_LEV_RTS_Pos (0) /*!< UART_T::MCSR: LEV_RTS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10734 | #define UART_MCSR_LEV_RTS_Msk (0x1ul << UART_MCSR_LEV_RTS_Pos) /*!< UART_T::MCSR: LEV_RTS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10735 | |
AnnaBridge | 174:b96e65c34a4d | 10736 | #define UART_MCSR_RTS_ST_Pos (1) /*!< UART_T::MCSR: RTS_ST Position */ |
AnnaBridge | 174:b96e65c34a4d | 10737 | #define UART_MCSR_RTS_ST_Msk (0x1ul << UART_MCSR_RTS_ST_Pos) /*!< UART_T::MCSR: RTS_ST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10738 | |
AnnaBridge | 174:b96e65c34a4d | 10739 | #define UART_MCSR_LEV_CTS_Pos (16) /*!< UART_T::MCSR: LEV_CTS Position */ |
AnnaBridge | 174:b96e65c34a4d | 10740 | #define UART_MCSR_LEV_CTS_Msk (0x1ul << UART_MCSR_LEV_CTS_Pos) /*!< UART_T::MCSR: LEV_CTS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10741 | |
AnnaBridge | 174:b96e65c34a4d | 10742 | #define UART_MCSR_CTS_ST_Pos (17) /*!< UART_T::MCSR: CTS_ST Position */ |
AnnaBridge | 174:b96e65c34a4d | 10743 | #define UART_MCSR_CTS_ST_Msk (0x1ul << UART_MCSR_CTS_ST_Pos) /*!< UART_T::MCSR: CTS_ST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10744 | |
AnnaBridge | 174:b96e65c34a4d | 10745 | #define UART_MCSR_DCT_F_Pos (18) /*!< UART_T::MCSR: DCT_F Position */ |
AnnaBridge | 174:b96e65c34a4d | 10746 | #define UART_MCSR_DCT_F_Msk (0x1ul << UART_MCSR_DCT_F_Pos) /*!< UART_T::MCSR: DCT_F Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10747 | |
AnnaBridge | 174:b96e65c34a4d | 10748 | #define UART_TMCTL_TOIC_Pos (0) /*!< UART_T::TMCTL: TOIC Position */ |
AnnaBridge | 174:b96e65c34a4d | 10749 | #define UART_TMCTL_TOIC_Msk (0x1fful << UART_TMCTL_TOIC_Pos) /*!< UART_T::TMCTL: TOIC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10750 | |
AnnaBridge | 174:b96e65c34a4d | 10751 | #define UART_TMCTL_DLY_Pos (16) /*!< UART_T::TMCTL: DLY Position */ |
AnnaBridge | 174:b96e65c34a4d | 10752 | #define UART_TMCTL_DLY_Msk (0xfful << UART_TMCTL_DLY_Pos) /*!< UART_T::TMCTL: DLY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10753 | |
AnnaBridge | 174:b96e65c34a4d | 10754 | #define UART_BAUD_BRD_Pos (0) /*!< UART_T::BAUD: BRD Position */ |
AnnaBridge | 174:b96e65c34a4d | 10755 | #define UART_BAUD_BRD_Msk (0xfffful << UART_BAUD_BRD_Pos) /*!< UART_T::BAUD: BRD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10756 | |
AnnaBridge | 174:b96e65c34a4d | 10757 | #define UART_BAUD_DIV_16_EN_Pos (31) /*!< UART_T::BAUD: DIV_16_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10758 | #define UART_BAUD_DIV_16_EN_Msk (0x1ul << UART_BAUD_DIV_16_EN_Pos) /*!< UART_T::BAUD: DIV_16_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10759 | |
AnnaBridge | 174:b96e65c34a4d | 10760 | #define UART_IRCR_TX_SELECT_Pos (1) /*!< UART_T::IRCR: TX_SELECT Position */ |
AnnaBridge | 174:b96e65c34a4d | 10761 | #define UART_IRCR_TX_SELECT_Msk (0x1ul << UART_IRCR_TX_SELECT_Pos) /*!< UART_T::IRCR: TX_SELECT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10762 | |
AnnaBridge | 174:b96e65c34a4d | 10763 | #define UART_IRCR_INV_TX_Pos (5) /*!< UART_T::IRCR: INV_TX Position */ |
AnnaBridge | 174:b96e65c34a4d | 10764 | #define UART_IRCR_INV_TX_Msk (0x1ul << UART_IRCR_INV_TX_Pos) /*!< UART_T::IRCR: INV_TX Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10765 | |
AnnaBridge | 174:b96e65c34a4d | 10766 | #define UART_IRCR_INV_RX_Pos (6) /*!< UART_T::IRCR: INV_RX Position */ |
AnnaBridge | 174:b96e65c34a4d | 10767 | #define UART_IRCR_INV_RX_Msk (0x1ul << UART_IRCR_INV_RX_Pos) /*!< UART_T::IRCR: INV_RX Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10768 | |
AnnaBridge | 174:b96e65c34a4d | 10769 | #define UART_ALT_CTL_LIN_TX_BCNT_Pos (0) /*!< UART_T::ALT_CTL: LIN_TX_BCNT Position */ |
AnnaBridge | 174:b96e65c34a4d | 10770 | #define UART_ALT_CTL_LIN_TX_BCNT_Msk (0x7ul << UART_ALT_CTL_LIN_TX_BCNT_Pos) /*!< UART_T::ALT_CTL: LIN_TX_BCNT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10771 | |
AnnaBridge | 174:b96e65c34a4d | 10772 | #define UART_ALT_CTL_LIN_HEAD_SEL_Pos (4) /*!< UART_T::ALT_CTL: LIN_HEAD_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 10773 | #define UART_ALT_CTL_LIN_HEAD_SEL_Msk (0x3ul << UART_ALT_CTL_LIN_HEAD_SEL_Pos) /*!< UART_T::ALT_CTL: LIN_HEAD_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10774 | |
AnnaBridge | 174:b96e65c34a4d | 10775 | #define UART_ALT_CTL_LIN_RX_EN_Pos (6) /*!< UART_T::ALT_CTL: LIN_RX_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10776 | #define UART_ALT_CTL_LIN_RX_EN_Msk (0x1ul << UART_ALT_CTL_LIN_RX_EN_Pos) /*!< UART_T::ALT_CTL: LIN_RX_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10777 | |
AnnaBridge | 174:b96e65c34a4d | 10778 | #define UART_ALT_CTL_LIN_TX_EN_Pos (7) /*!< UART_T::ALT_CTL: LIN_TX_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10779 | #define UART_ALT_CTL_LIN_TX_EN_Msk (0x1ul << UART_ALT_CTL_LIN_TX_EN_Pos) /*!< UART_T::ALT_CTL: LIN_TX_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10780 | |
AnnaBridge | 174:b96e65c34a4d | 10781 | #define UART_ALT_CTL_Bit_ERR_EN_Pos (8) /*!< UART_T::ALT_CTL: Bit_ERR_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10782 | #define UART_ALT_CTL_Bit_ERR_EN_Msk (0x1ul << UART_ALT_CTL_Bit_ERR_EN_Pos) /*!< UART_T::ALT_CTL: Bit_ERR_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10783 | |
AnnaBridge | 174:b96e65c34a4d | 10784 | #define UART_ALT_CTL_RS485_NMM_Pos (16) /*!< UART_T::ALT_CTL: RS485_NMM Position */ |
AnnaBridge | 174:b96e65c34a4d | 10785 | #define UART_ALT_CTL_RS485_NMM_Msk (0x1ul << UART_ALT_CTL_RS485_NMM_Pos) /*!< UART_T::ALT_CTL: RS485_NMM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10786 | |
AnnaBridge | 174:b96e65c34a4d | 10787 | #define UART_ALT_CTL_RS485_AAD_Pos (17) /*!< UART_T::ALT_CTL: RS485_AAD Position */ |
AnnaBridge | 174:b96e65c34a4d | 10788 | #define UART_ALT_CTL_RS485_AAD_Msk (0x1ul << UART_ALT_CTL_RS485_AAD_Pos) /*!< UART_T::ALT_CTL: RS485_AAD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10789 | |
AnnaBridge | 174:b96e65c34a4d | 10790 | #define UART_ALT_CTL_RS485_AUD_Pos (18) /*!< UART_T::ALT_CTL: RS485_AUD Position */ |
AnnaBridge | 174:b96e65c34a4d | 10791 | #define UART_ALT_CTL_RS485_AUD_Msk (0x1ul << UART_ALT_CTL_RS485_AUD_Pos) /*!< UART_T::ALT_CTL: RS485_AUD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10792 | |
AnnaBridge | 174:b96e65c34a4d | 10793 | #define UART_ALT_CTL_RS485_ADD_EN_Pos (19) /*!< UART_T::ALT_CTL: RS485_ADD_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 10794 | #define UART_ALT_CTL_RS485_ADD_EN_Msk (0x1ul << UART_ALT_CTL_RS485_ADD_EN_Pos) /*!< UART_T::ALT_CTL: RS485_ADD_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10795 | |
AnnaBridge | 174:b96e65c34a4d | 10796 | #define UART_ALT_CTL_ADDR_PID_MATCH_Pos (24) /*!< UART_T::ALT_CTL: ADDR_PID_MATCH Position */ |
AnnaBridge | 174:b96e65c34a4d | 10797 | #define UART_ALT_CTL_ADDR_PID_MATCH_Msk (0xfful << UART_ALT_CTL_ADDR_PID_MATCH_Pos) /*!< UART_T::ALT_CTL: ADDR_PID_MATCH Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10798 | |
AnnaBridge | 174:b96e65c34a4d | 10799 | #define UART_FUN_SEL_FUN_SEL_Pos (0) /*!< UART_T::FUN_SEL: FUN_SEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 10800 | #define UART_FUN_SEL_FUN_SEL_Msk (0x3ul << UART_FUN_SEL_FUN_SEL_Pos) /*!< UART_T::FUN_SEL: FUN_SEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 10801 | |
AnnaBridge | 174:b96e65c34a4d | 10802 | /**@}*/ /* UART_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 10803 | /**@}*/ /* end of UART register group */ |
AnnaBridge | 174:b96e65c34a4d | 10804 | |
AnnaBridge | 174:b96e65c34a4d | 10805 | |
AnnaBridge | 174:b96e65c34a4d | 10806 | /*---------------------- USB Device Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 10807 | /** |
AnnaBridge | 174:b96e65c34a4d | 10808 | @addtogroup USBD USB Device Controller(USBD) |
AnnaBridge | 174:b96e65c34a4d | 10809 | Memory Mapped Structure for USBD Controller |
AnnaBridge | 174:b96e65c34a4d | 10810 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 10811 | |
AnnaBridge | 174:b96e65c34a4d | 10812 | /** |
AnnaBridge | 174:b96e65c34a4d | 10813 | * @brief USBD endpoints register |
AnnaBridge | 174:b96e65c34a4d | 10814 | */ |
AnnaBridge | 174:b96e65c34a4d | 10815 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 10816 | |
AnnaBridge | 174:b96e65c34a4d | 10817 | |
AnnaBridge | 174:b96e65c34a4d | 10818 | /** |
AnnaBridge | 174:b96e65c34a4d | 10819 | * BUFSEGx |
AnnaBridge | 174:b96e65c34a4d | 10820 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10821 | * Offset: 0x20+x*0x10 Endpoint x Buffer Segmentation Register |
AnnaBridge | 174:b96e65c34a4d | 10822 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10823 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10824 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10825 | * |[8:3] |BUFSEG |It Is Used To Define The Offset Address For Each Endpoint With The USB SRAM Starting Address Its physical address is USB_SRAM address + {BUFSEG[5:0], 000}; where the USB_SRAM = USB_BASE + 0x100h. |
AnnaBridge | 174:b96e65c34a4d | 10826 | * | | |Refer to the section 5.4.3.3 for the endpoint SRAM structure and its description. |
AnnaBridge | 174:b96e65c34a4d | 10827 | */ |
AnnaBridge | 174:b96e65c34a4d | 10828 | __IO uint32_t BUFSEG; |
AnnaBridge | 174:b96e65c34a4d | 10829 | |
AnnaBridge | 174:b96e65c34a4d | 10830 | /** |
AnnaBridge | 174:b96e65c34a4d | 10831 | * MXPLDx |
AnnaBridge | 174:b96e65c34a4d | 10832 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10833 | * Offset: 0x24+x*0x10 Endpoint x Maximal Payload Register |
AnnaBridge | 174:b96e65c34a4d | 10834 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10835 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10836 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10837 | * |[8:0] |MXPLD |Maximal Payload |
AnnaBridge | 174:b96e65c34a4d | 10838 | * | | |It is used to define the length of data which is transmitted to host (IN token) or the actual length of data receiving from host (OUT token). |
AnnaBridge | 174:b96e65c34a4d | 10839 | * | | |It also used to indicate that the endpoint is ready to be transmitted in IN token or received in OUT token. |
AnnaBridge | 174:b96e65c34a4d | 10840 | * | | |(1). When the register is written by CPU, |
AnnaBridge | 174:b96e65c34a4d | 10841 | * | | |For IN token, the value of MXPLD is used to define the length of data to be transmitted and indicate the data buffer is ready. |
AnnaBridge | 174:b96e65c34a4d | 10842 | * | | |For OUT token, it means that the controller is ready to receive data from host and the value of MXPLD is the maximal data length comes from host. |
AnnaBridge | 174:b96e65c34a4d | 10843 | * | | |(2). When the register is read by CPU, |
AnnaBridge | 174:b96e65c34a4d | 10844 | * | | |For IN token, the value of MXPLD is indicated the length of data be transmitted to host |
AnnaBridge | 174:b96e65c34a4d | 10845 | * | | |For OUT token, the value of MXPLD is indicated the actual length of data receiving from host. |
AnnaBridge | 174:b96e65c34a4d | 10846 | * | | |Note: Once MXPLD is written, the data packets will be transmitted/received immediately after IN/OUT token arrived. |
AnnaBridge | 174:b96e65c34a4d | 10847 | */ |
AnnaBridge | 174:b96e65c34a4d | 10848 | __IO uint32_t MXPLD; |
AnnaBridge | 174:b96e65c34a4d | 10849 | |
AnnaBridge | 174:b96e65c34a4d | 10850 | /** |
AnnaBridge | 174:b96e65c34a4d | 10851 | * CFGx |
AnnaBridge | 174:b96e65c34a4d | 10852 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10853 | * Offset: 0x28+x*0x10 Endpoint x Configuration Register |
AnnaBridge | 174:b96e65c34a4d | 10854 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10855 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10856 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10857 | * |[3:0] |EP_NUM |Endpoint Number |
AnnaBridge | 174:b96e65c34a4d | 10858 | * | | |These bits are used to define the endpoint number of the current endpoint |
AnnaBridge | 174:b96e65c34a4d | 10859 | * |[4] |ISOCH |Isochronous Endpoint |
AnnaBridge | 174:b96e65c34a4d | 10860 | * | | |This bit is used to set the endpoint as Isochronous endpoint, no handshake. |
AnnaBridge | 174:b96e65c34a4d | 10861 | * |[6:5] |EPMODE |Endpoint Mode |
AnnaBridge | 174:b96e65c34a4d | 10862 | * | | |00 = Endpoint is disabled. |
AnnaBridge | 174:b96e65c34a4d | 10863 | * | | |01 = Out endpoint. |
AnnaBridge | 174:b96e65c34a4d | 10864 | * | | |10 = IN endpoint. |
AnnaBridge | 174:b96e65c34a4d | 10865 | * | | |11 = Undefined. |
AnnaBridge | 174:b96e65c34a4d | 10866 | * |[7] |DSQ_SYNC |Data Sequence Synchronization |
AnnaBridge | 174:b96e65c34a4d | 10867 | * | | |0 = DATA0 PID. |
AnnaBridge | 174:b96e65c34a4d | 10868 | * | | |1 = DATA1 PID. |
AnnaBridge | 174:b96e65c34a4d | 10869 | * | | |It is used to specify the DATA0 or DATA1 PID in the current transaction. |
AnnaBridge | 174:b96e65c34a4d | 10870 | * | | |It will toggle automatically in IN token after host response ACK. |
AnnaBridge | 174:b96e65c34a4d | 10871 | * | | |In the other tokens, the user shall take care of it to confirm the right PID in its transaction. |
AnnaBridge | 174:b96e65c34a4d | 10872 | * |[8] |CSTALL |Clear STALL Response |
AnnaBridge | 174:b96e65c34a4d | 10873 | * | | |0 = Disable the device to clear the STALL handshake in setup stage. |
AnnaBridge | 174:b96e65c34a4d | 10874 | * | | |1 = Clear the device to response STALL handshake in setup stage. |
AnnaBridge | 174:b96e65c34a4d | 10875 | * |[9] |SSTALL |Set STALL Response |
AnnaBridge | 174:b96e65c34a4d | 10876 | * | | |0 = Disable the device to response STALL. |
AnnaBridge | 174:b96e65c34a4d | 10877 | * | | |1 = Set the device to respond STALL automatically. |
AnnaBridge | 174:b96e65c34a4d | 10878 | * |[15] |CLRRDY |Clear Ready |
AnnaBridge | 174:b96e65c34a4d | 10879 | * | | |When the USBD_MXPLDx register is set by user, it means that the endpoint is ready to transmit or receive data. |
AnnaBridge | 174:b96e65c34a4d | 10880 | * | | |If the user wants to disable this transaction before the transaction start, users can set this bit to 1 to disable it and it is auto clear to 0. |
AnnaBridge | 174:b96e65c34a4d | 10881 | * | | |For IN token, write '1' to clear the IN token had ready to transmit the data to USB. |
AnnaBridge | 174:b96e65c34a4d | 10882 | * | | |For OUT token, write '1' to clear the OUT token had ready to receive the data from USB. |
AnnaBridge | 174:b96e65c34a4d | 10883 | * | | |This bit is write 1 only and is always 0 when it is read back. |
AnnaBridge | 174:b96e65c34a4d | 10884 | */ |
AnnaBridge | 174:b96e65c34a4d | 10885 | __IO uint32_t CFG; |
AnnaBridge | 174:b96e65c34a4d | 10886 | uint32_t RESERVE; |
AnnaBridge | 174:b96e65c34a4d | 10887 | |
AnnaBridge | 174:b96e65c34a4d | 10888 | } USBD_EP_T; |
AnnaBridge | 174:b96e65c34a4d | 10889 | |
AnnaBridge | 174:b96e65c34a4d | 10890 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 10891 | |
AnnaBridge | 174:b96e65c34a4d | 10892 | |
AnnaBridge | 174:b96e65c34a4d | 10893 | /** |
AnnaBridge | 174:b96e65c34a4d | 10894 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 10895 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10896 | * Offset: 0x00 USB Control Register |
AnnaBridge | 174:b96e65c34a4d | 10897 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10898 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10899 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10900 | * |[0] |USB_EN |USB Function Enable |
AnnaBridge | 174:b96e65c34a4d | 10901 | * | | |0 = USB Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10902 | * | | |1 = USB Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10903 | * |[1] |PHY_EN |PHY Transceiver Enable |
AnnaBridge | 174:b96e65c34a4d | 10904 | * | | |0 = PHY transceiver Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10905 | * | | |1 = PHY transceiver Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10906 | * |[2] |PWRDB |Power Down PHY Transceiver, Low Active |
AnnaBridge | 174:b96e65c34a4d | 10907 | * | | |0 = Power-down related circuit of PHY transceiver. |
AnnaBridge | 174:b96e65c34a4d | 10908 | * | | |1 = Turn-on related circuit of PHY transceiver. |
AnnaBridge | 174:b96e65c34a4d | 10909 | * |[3] |DPPU_EN |Pull-Up Resistor On USB_DP Enable |
AnnaBridge | 174:b96e65c34a4d | 10910 | * | | |0 = Pull-up resistor in USB_DP bus Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10911 | * | | |1 = Pull-up resistor in USB_DP bus will be active. |
AnnaBridge | 174:b96e65c34a4d | 10912 | * |[4] |DRVSE0 |Force USB PHY Transceiver To Drive SE0 (Single Ended Zero) |
AnnaBridge | 174:b96e65c34a4d | 10913 | * | | |The Single Ended Zero is present when both lines (USB_DP, USB_DM) are being pulled low. |
AnnaBridge | 174:b96e65c34a4d | 10914 | * | | |0 = None. |
AnnaBridge | 174:b96e65c34a4d | 10915 | * | | |1 = Force USB PHY transceiver to drive SE0. |
AnnaBridge | 174:b96e65c34a4d | 10916 | * | | |The default value is "1". |
AnnaBridge | 174:b96e65c34a4d | 10917 | * |[8] |RWAKEUP |Remote Wake-Up |
AnnaBridge | 174:b96e65c34a4d | 10918 | * | | |0 = Don't force USB bus to K state. |
AnnaBridge | 174:b96e65c34a4d | 10919 | * | | |1 = Force USB bus to K (USB_DP low, USB_DM: high) state, used for remote wake-up. |
AnnaBridge | 174:b96e65c34a4d | 10920 | * |[9] |WAKEUP_EN |Wake-Up Function Enable |
AnnaBridge | 174:b96e65c34a4d | 10921 | * | | |0 = USB wake-up function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10922 | * | | |1 = USB wake-up function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10923 | */ |
AnnaBridge | 174:b96e65c34a4d | 10924 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 10925 | |
AnnaBridge | 174:b96e65c34a4d | 10926 | /** |
AnnaBridge | 174:b96e65c34a4d | 10927 | * BUSSTS |
AnnaBridge | 174:b96e65c34a4d | 10928 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10929 | * Offset: 0x04 USB Bus Status Register |
AnnaBridge | 174:b96e65c34a4d | 10930 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10931 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10932 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10933 | * |[0] |USBRST |USB Reset Status |
AnnaBridge | 174:b96e65c34a4d | 10934 | * | | |1 = Bus reset when SE0 (single-ended 0) more than 2.5uS. It is read only. |
AnnaBridge | 174:b96e65c34a4d | 10935 | * |[1] |SUSPEND |Suspend Status |
AnnaBridge | 174:b96e65c34a4d | 10936 | * | | |1 = Bus idle more than 3 ms, either cable is plugged off or host is sleeping. It is read only. |
AnnaBridge | 174:b96e65c34a4d | 10937 | * |[2] |RESUME |Resume Status |
AnnaBridge | 174:b96e65c34a4d | 10938 | * | | |1 = Resume from suspend. It is read only. |
AnnaBridge | 174:b96e65c34a4d | 10939 | * |[3] |TIMEOUT |Time-Out Flag |
AnnaBridge | 174:b96e65c34a4d | 10940 | * | | |1 = Bus no any response more than 18 bits time. It is read only. |
AnnaBridge | 174:b96e65c34a4d | 10941 | * |[4] |FLDET |Device Floating Detection |
AnnaBridge | 174:b96e65c34a4d | 10942 | * | | |0 = The controller didn't attach into the USB. |
AnnaBridge | 174:b96e65c34a4d | 10943 | * | | |1 = When the controller is attached into the USB, this bit will be set as "1". |
AnnaBridge | 174:b96e65c34a4d | 10944 | */ |
AnnaBridge | 174:b96e65c34a4d | 10945 | __I uint32_t BUSSTS; |
AnnaBridge | 174:b96e65c34a4d | 10946 | |
AnnaBridge | 174:b96e65c34a4d | 10947 | /** |
AnnaBridge | 174:b96e65c34a4d | 10948 | * INTEN |
AnnaBridge | 174:b96e65c34a4d | 10949 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10950 | * Offset: 0x08 Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 10951 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10952 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10953 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10954 | * |[0] |BUSEVT_IE |Bus Event Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10955 | * | | |0 = BUS event interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10956 | * | | |1 = BUS event interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10957 | * |[1] |USBEVT_IE |USB Event Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10958 | * | | |0 = USB event interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10959 | * | | |1 = USB event interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10960 | * |[2] |FLDET_IE |Floating Detect Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10961 | * | | |0 = Floating detect Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10962 | * | | |1 = Floating detect Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10963 | * |[3] |WAKEUP_IE |USB Wake-Up Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 10964 | * | | |0 = Wake-up Interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 10965 | * | | |1 = Wake-up Interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 10966 | */ |
AnnaBridge | 174:b96e65c34a4d | 10967 | __IO uint32_t INTEN; |
AnnaBridge | 174:b96e65c34a4d | 10968 | |
AnnaBridge | 174:b96e65c34a4d | 10969 | /** |
AnnaBridge | 174:b96e65c34a4d | 10970 | * INTSTS |
AnnaBridge | 174:b96e65c34a4d | 10971 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 10972 | * Offset: 0x0C Interrupt Event Status Register |
AnnaBridge | 174:b96e65c34a4d | 10973 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 10974 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 10975 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 10976 | * |[0] |BUS_STS |BUS Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 10977 | * | | |The BUS event means there is bus suspense or bus resume in the bus. |
AnnaBridge | 174:b96e65c34a4d | 10978 | * | | |This bit is used to indicate that there is one of events in the bus. |
AnnaBridge | 174:b96e65c34a4d | 10979 | * | | |0 = No BUS event is occurred. |
AnnaBridge | 174:b96e65c34a4d | 10980 | * | | |1 = BUS event occurred; check USB_BUSSTS [3:0] to know which kind of bus event was occurred, cleared by write "1" to USB_INTSTS [0]. |
AnnaBridge | 174:b96e65c34a4d | 10981 | * |[1] |USB_STS |USB Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 10982 | * | | |The USB event means that there is Setup Token, IN token, OUT ACK, ISO IN, or ISO OUT event in the bus. |
AnnaBridge | 174:b96e65c34a4d | 10983 | * | | |This bit is used to indicate that there is one of events in the bus. |
AnnaBridge | 174:b96e65c34a4d | 10984 | * | | |0 = No USB event is occurred. |
AnnaBridge | 174:b96e65c34a4d | 10985 | * | | |1 = USB event occurred, check EPSTS0~7[3:0] in USB_EPSTS [31:8] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [1] or USB_INTSTS[31] or EPEVT0~7. |
AnnaBridge | 174:b96e65c34a4d | 10986 | * |[2] |FLD_STS |Floating Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 10987 | * | | |0 = There is not attached event in the USB. |
AnnaBridge | 174:b96e65c34a4d | 10988 | * | | |1 = There is attached event in the USB and it is cleared by write "1" to USB_INTSTS [2]. |
AnnaBridge | 174:b96e65c34a4d | 10989 | * |[3] |WKEUP_STS |Wake-Up Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 10990 | * | | |0 = No wake-up event is occurred. |
AnnaBridge | 174:b96e65c34a4d | 10991 | * | | |1 = Wake-up event occurred, cleared by write 1 to USB_INTSTS [3]. |
AnnaBridge | 174:b96e65c34a4d | 10992 | * |[16] |EPEVT0 |USB Event Status On EP0 |
AnnaBridge | 174:b96e65c34a4d | 10993 | * | | |0 = No event occurred in Endpoint 0. |
AnnaBridge | 174:b96e65c34a4d | 10994 | * | | |1 = USB event occurred on Endpoint 0, check USB_EPSTS[11:8] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [16] or USB_INTSTS [1]. |
AnnaBridge | 174:b96e65c34a4d | 10995 | * |[17] |EPEVT1 |USB Event Status On EP1 |
AnnaBridge | 174:b96e65c34a4d | 10996 | * | | |0 = No event occurred in Endpoint 1. |
AnnaBridge | 174:b96e65c34a4d | 10997 | * | | |1 = USB event occurred on Endpoint 1, check USB_EPSTS[15:12] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [17] or USB_INTSTS [1]. |
AnnaBridge | 174:b96e65c34a4d | 10998 | * |[18] |EPEVT2 |USB Event Status On EP2 |
AnnaBridge | 174:b96e65c34a4d | 10999 | * | | |0 = No event occurred in Endpoint 2. |
AnnaBridge | 174:b96e65c34a4d | 11000 | * | | |1 = USB event occurred on Endpoint 2, check USB_EPSTS[19:16] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [18] or USB_INTSTS [1]. |
AnnaBridge | 174:b96e65c34a4d | 11001 | * |[19] |EPEVT3 |USB Event Status On EP3 |
AnnaBridge | 174:b96e65c34a4d | 11002 | * | | |0 = No event occurred in Endpoint 3. |
AnnaBridge | 174:b96e65c34a4d | 11003 | * | | |1 = USB event occurred on Endpoint 3, check USB_EPSTS[23:20] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [19] or USB_INTSTS [1]. |
AnnaBridge | 174:b96e65c34a4d | 11004 | * |[20] |EPEVT4 |USB Event Status On EP4 |
AnnaBridge | 174:b96e65c34a4d | 11005 | * | | |0 = No event occurred in Endpoint 4. |
AnnaBridge | 174:b96e65c34a4d | 11006 | * | | |1 = USB event occurred on Endpoint 4, check USB_EPSTS[27:24] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [20] or USB_INTSTS [1]. |
AnnaBridge | 174:b96e65c34a4d | 11007 | * |[21] |EPEVT5 |USB Event Status On EP5 |
AnnaBridge | 174:b96e65c34a4d | 11008 | * | | |0 = No event occurred in Endpoint 5. |
AnnaBridge | 174:b96e65c34a4d | 11009 | * | | |1 = USB event occurred on Endpoint 5, check USB_EPSTS[31:28] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [21] or USB_INTSTS [1]. |
AnnaBridge | 174:b96e65c34a4d | 11010 | * |[22] |EPEVT6 |USB Event Status On EP6 |
AnnaBridge | 174:b96e65c34a4d | 11011 | * | | |0 = No event occurred in Endpoint 6. |
AnnaBridge | 174:b96e65c34a4d | 11012 | * | | |1 = USB event occurred on Endpoint 6, check USB_EPSTS2[2:0] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [22] or USB_INTSTS [1]. |
AnnaBridge | 174:b96e65c34a4d | 11013 | * |[23] |EPEVT7 |USB Event Status On EP7 |
AnnaBridge | 174:b96e65c34a4d | 11014 | * | | |0 = No event occurred in Endpoint 7. |
AnnaBridge | 174:b96e65c34a4d | 11015 | * | | |1 = USB event occurred on Endpoint 7, check USB_EPSTS2[6:4] to know which kind of USB event was occurred, cleared by write "1" to USB_INTSTS [23] or USB_INTSTS [1]. |
AnnaBridge | 174:b96e65c34a4d | 11016 | * |[31] |SETUP |Setup Event Status |
AnnaBridge | 174:b96e65c34a4d | 11017 | * | | |0 = No Setup event. |
AnnaBridge | 174:b96e65c34a4d | 11018 | * | | |1 = Setup event occurred, cleared by write "1" to USB_INTSTS[31]. |
AnnaBridge | 174:b96e65c34a4d | 11019 | */ |
AnnaBridge | 174:b96e65c34a4d | 11020 | __IO uint32_t INTSTS; |
AnnaBridge | 174:b96e65c34a4d | 11021 | |
AnnaBridge | 174:b96e65c34a4d | 11022 | /** |
AnnaBridge | 174:b96e65c34a4d | 11023 | * FADDR |
AnnaBridge | 174:b96e65c34a4d | 11024 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11025 | * Offset: 0x10 Device 's Function Address Register |
AnnaBridge | 174:b96e65c34a4d | 11026 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11027 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11028 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11029 | * |[6:0] |FADDR |USB device's function address |
AnnaBridge | 174:b96e65c34a4d | 11030 | */ |
AnnaBridge | 174:b96e65c34a4d | 11031 | __IO uint32_t FADDR; |
AnnaBridge | 174:b96e65c34a4d | 11032 | |
AnnaBridge | 174:b96e65c34a4d | 11033 | /** |
AnnaBridge | 174:b96e65c34a4d | 11034 | * EPSTS |
AnnaBridge | 174:b96e65c34a4d | 11035 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11036 | * Offset: 0x14 Endpoint Status Register |
AnnaBridge | 174:b96e65c34a4d | 11037 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11038 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11039 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11040 | * |[7] |OVERRUN |Overrun |
AnnaBridge | 174:b96e65c34a4d | 11041 | * | | |It means the received data is over the maximum payload number or not. |
AnnaBridge | 174:b96e65c34a4d | 11042 | * | | |0 = No overrun. |
AnnaBridge | 174:b96e65c34a4d | 11043 | * | | |1 = Out Data more than the Max Payload in MXPLD register or the Setup Data more than 8 Bytes. |
AnnaBridge | 174:b96e65c34a4d | 11044 | * |[11:8] |EPSTS0 |Endpoint 0 Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11045 | * | | |These bits are used to show the current status of this endpoint. |
AnnaBridge | 174:b96e65c34a4d | 11046 | * | | |Definition is the same with EPSTS5(USB_EPSTS[27:24]). |
AnnaBridge | 174:b96e65c34a4d | 11047 | * |[15:12] |EPSTS1 |Endpoint 1 Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11048 | * | | |These bits are used to show the current status of this endpoint. |
AnnaBridge | 174:b96e65c34a4d | 11049 | * | | |Definition is the same with EPSTS5(USB_EPSTS[27:24]). |
AnnaBridge | 174:b96e65c34a4d | 11050 | * |[19:16] |EPSTS2 |Endpoint 2 Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11051 | * | | |These bits are used to show the current status of this endpoint. |
AnnaBridge | 174:b96e65c34a4d | 11052 | * | | |Definition is the same with EPSTS5(USB_EPSTS[27:24]). |
AnnaBridge | 174:b96e65c34a4d | 11053 | * |[23:20] |EPSTS3 |Endpoint 3 Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11054 | * | | |These bits are used to show the current status of this endpoint. |
AnnaBridge | 174:b96e65c34a4d | 11055 | * | | |Definition is the same with EPSTS5(USB_EPSTS[27:24]). |
AnnaBridge | 174:b96e65c34a4d | 11056 | * |[27:24] |EPSTS4 |Endpoint 4 Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11057 | * | | |These bits are used to show the current status of this endpoint. |
AnnaBridge | 174:b96e65c34a4d | 11058 | * | | |Definition is the same with EPSTS5(USB_EPSTS[27:24]). |
AnnaBridge | 174:b96e65c34a4d | 11059 | * |[31:28] |EPSTS5 |Endpoint 5 Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11060 | * | | |These bits are used to show the current status of this endpoint. |
AnnaBridge | 174:b96e65c34a4d | 11061 | * | | |0000 = INACK. |
AnnaBridge | 174:b96e65c34a4d | 11062 | * | | |0001 = IN NAK (INTERNAL ONLY). |
AnnaBridge | 174:b96e65c34a4d | 11063 | * | | |0010 = OUT Packet Data0 ACK. |
AnnaBridge | 174:b96e65c34a4d | 11064 | * | | |0011 = Setup ACK |
AnnaBridge | 174:b96e65c34a4d | 11065 | * | | |0110 = OUT Packet Data1 ACK. |
AnnaBridge | 174:b96e65c34a4d | 11066 | * | | |0111 = Isochronous transfer end. |
AnnaBridge | 174:b96e65c34a4d | 11067 | */ |
AnnaBridge | 174:b96e65c34a4d | 11068 | __I uint32_t EPSTS; |
AnnaBridge | 174:b96e65c34a4d | 11069 | |
AnnaBridge | 174:b96e65c34a4d | 11070 | /** |
AnnaBridge | 174:b96e65c34a4d | 11071 | * BUFSEG |
AnnaBridge | 174:b96e65c34a4d | 11072 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11073 | * Offset: 0x18 Setup Token Buffer Segmentation Register |
AnnaBridge | 174:b96e65c34a4d | 11074 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11075 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11076 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11077 | * |[8:3] |BUFSEG |This Register Is Used For Setup Token Only |
AnnaBridge | 174:b96e65c34a4d | 11078 | * | | |It is used to define the offset address for the Setup Token with the USB SRAM starting address. |
AnnaBridge | 174:b96e65c34a4d | 11079 | * | | |Its physical address is USB_SRAM address + {BUFSEG[5:0], 000} where the USB_SRAM = USB_BASE + 0x100h. |
AnnaBridge | 174:b96e65c34a4d | 11080 | */ |
AnnaBridge | 174:b96e65c34a4d | 11081 | __IO uint32_t BUFSEG; |
AnnaBridge | 174:b96e65c34a4d | 11082 | |
AnnaBridge | 174:b96e65c34a4d | 11083 | /** |
AnnaBridge | 174:b96e65c34a4d | 11084 | * EPSTS2 |
AnnaBridge | 174:b96e65c34a4d | 11085 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11086 | * Offset: 0x1C Endpoint Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11087 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11088 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11089 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11090 | * |[2:0] |EPSTS6 |Endpoint 6 Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11091 | * | | |These bits are used to show the current status of this endpoint. |
AnnaBridge | 174:b96e65c34a4d | 11092 | * | | |Definition is the same with EPSTS5(USB_EPSTS[27:24]). |
AnnaBridge | 174:b96e65c34a4d | 11093 | * |[6:4] |EPSTS7 |Endpoint 7 Bus Status |
AnnaBridge | 174:b96e65c34a4d | 11094 | * | | |These bits are used to show the current status of this endpoint. |
AnnaBridge | 174:b96e65c34a4d | 11095 | * | | |Definition is the same with EPSTS5(USB_EPSTS[27:24]). |
AnnaBridge | 174:b96e65c34a4d | 11096 | */ |
AnnaBridge | 174:b96e65c34a4d | 11097 | __I uint32_t EPSTS2; |
AnnaBridge | 174:b96e65c34a4d | 11098 | |
AnnaBridge | 174:b96e65c34a4d | 11099 | |
AnnaBridge | 174:b96e65c34a4d | 11100 | USBD_EP_T EP[8]; |
AnnaBridge | 174:b96e65c34a4d | 11101 | |
AnnaBridge | 174:b96e65c34a4d | 11102 | uint32_t RESERVE0; |
AnnaBridge | 174:b96e65c34a4d | 11103 | |
AnnaBridge | 174:b96e65c34a4d | 11104 | /** |
AnnaBridge | 174:b96e65c34a4d | 11105 | * PDMA |
AnnaBridge | 174:b96e65c34a4d | 11106 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11107 | * Offset: 0xA4 USB PDMA Control Register |
AnnaBridge | 174:b96e65c34a4d | 11108 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11109 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11110 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11111 | * |[0] |PDMA_RW |PDMA_RW |
AnnaBridge | 174:b96e65c34a4d | 11112 | * | | |0 = The PDMA will read data from memory to USB buffer. |
AnnaBridge | 174:b96e65c34a4d | 11113 | * | | |1 = The PDMA will read data from USB buffer to memory. |
AnnaBridge | 174:b96e65c34a4d | 11114 | * |[1] |PDMA_TRG |Active PDMA Function |
AnnaBridge | 174:b96e65c34a4d | 11115 | * | | |0 = The PDMA function is not active. |
AnnaBridge | 174:b96e65c34a4d | 11116 | * | | |1 = The PDMA function in USB is active. |
AnnaBridge | 174:b96e65c34a4d | 11117 | * | | |This bit will be automatically cleared after PDMA transfer done. |
AnnaBridge | 174:b96e65c34a4d | 11118 | * |[2] |BYTEM |CPU Access USB SRAM Size Mode Select |
AnnaBridge | 174:b96e65c34a4d | 11119 | * | | |0 = Word Mode: The size of the transfer from CPU to USB SRAM is Word order. |
AnnaBridge | 174:b96e65c34a4d | 11120 | * | | |1 = Byte Mode: The size of the transfer from CPU to USB SRAM is Byte order. |
AnnaBridge | 174:b96e65c34a4d | 11121 | * |[3] |PDMA_RST |PDMA Reset |
AnnaBridge | 174:b96e65c34a4d | 11122 | * | | |It is used to reset the USB PDMA function into default state. |
AnnaBridge | 174:b96e65c34a4d | 11123 | * | | |0 = No Reset PDMA Reset Disable. |
AnnaBridge | 174:b96e65c34a4d | 11124 | * | | |1 = Reset the PDMA function in this controller. |
AnnaBridge | 174:b96e65c34a4d | 11125 | * | | |Note: it is auto cleared to 0 after the reset function done. |
AnnaBridge | 174:b96e65c34a4d | 11126 | */ |
AnnaBridge | 174:b96e65c34a4d | 11127 | __IO uint32_t PDMA; |
AnnaBridge | 174:b96e65c34a4d | 11128 | |
AnnaBridge | 174:b96e65c34a4d | 11129 | } USBD_T; |
AnnaBridge | 174:b96e65c34a4d | 11130 | |
AnnaBridge | 174:b96e65c34a4d | 11131 | /** |
AnnaBridge | 174:b96e65c34a4d | 11132 | @addtogroup USBD_CONST USBD Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 11133 | Constant Definitions for USBD Controller |
AnnaBridge | 174:b96e65c34a4d | 11134 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 11135 | |
AnnaBridge | 174:b96e65c34a4d | 11136 | #define USBD_CTL_USB_EN_Pos (0) /*!< USBD_T::CTL: USB_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 11137 | #define USBD_CTL_USB_EN_Msk (0x1ul << USBD_CTL_USB_EN_Pos) /*!< USBD_T::CTL: USB_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11138 | |
AnnaBridge | 174:b96e65c34a4d | 11139 | #define USBD_CTL_PHY_EN_Pos (1) /*!< USBD_T::CTL: PHY_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 11140 | #define USBD_CTL_PHY_EN_Msk (0x1ul << USBD_CTL_PHY_EN_Pos) /*!< USBD_T::CTL: PHY_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11141 | |
AnnaBridge | 174:b96e65c34a4d | 11142 | #define USBD_CTL_PWRDB_Pos (2) /*!< USBD_T::CTL: PWRDB Position */ |
AnnaBridge | 174:b96e65c34a4d | 11143 | #define USBD_CTL_PWRDB_Msk (0x1ul << USBD_CTL_PWRDB_Pos) /*!< USBD_T::CTL: PWRDB Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11144 | |
AnnaBridge | 174:b96e65c34a4d | 11145 | #define USBD_CTL_DPPU_EN_Pos (3) /*!< USBD_T::CTL: DPPU_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 11146 | #define USBD_CTL_DPPU_EN_Msk (0x1ul << USBD_CTL_DPPU_EN_Pos) /*!< USBD_T::CTL: DPPU_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11147 | |
AnnaBridge | 174:b96e65c34a4d | 11148 | #define USBD_CTL_DRVSE0_Pos (4) /*!< USBD_T::CTL: DRVSE0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11149 | #define USBD_CTL_DRVSE0_Msk (0x1ul << USBD_CTL_DRVSE0_Pos) /*!< USBD_T::CTL: DRVSE0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11150 | |
AnnaBridge | 174:b96e65c34a4d | 11151 | #define USBD_CTL_RWAKEUP_Pos (8) /*!< USBD_T::CTL: RWAKEUP Position */ |
AnnaBridge | 174:b96e65c34a4d | 11152 | #define USBD_CTL_RWAKEUP_Msk (0x1ul << USBD_CTL_RWAKEUP_Pos) /*!< USBD_T::CTL: RWAKEUP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11153 | |
AnnaBridge | 174:b96e65c34a4d | 11154 | #define USBD_CTL_WAKEUP_EN_Pos (9) /*!< USBD_T::CTL: WAKEUP_EN Position */ |
AnnaBridge | 174:b96e65c34a4d | 11155 | #define USBD_CTL_WAKEUP_EN_Msk (0x1ul << USBD_CTL_WAKEUP_EN_Pos) /*!< USBD_T::CTL: WAKEUP_EN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11156 | |
AnnaBridge | 174:b96e65c34a4d | 11157 | #define USBD_BUSSTS_USBRST_Pos (0) /*!< USBD_T::BUSSTS: USBRST Position */ |
AnnaBridge | 174:b96e65c34a4d | 11158 | #define USBD_BUSSTS_USBRST_Msk (0x1ul << USBD_BUSSTS_USBRST_Pos) /*!< USBD_T::BUSSTS: USBRST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11159 | |
AnnaBridge | 174:b96e65c34a4d | 11160 | #define USBD_BUSSTS_SUSPEND_Pos (1) /*!< USBD_T::BUSSTS: SUSPEND Position */ |
AnnaBridge | 174:b96e65c34a4d | 11161 | #define USBD_BUSSTS_SUSPEND_Msk (0x1ul << USBD_BUSSTS_SUSPEND_Pos) /*!< USBD_T::BUSSTS: SUSPEND Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11162 | |
AnnaBridge | 174:b96e65c34a4d | 11163 | #define USBD_BUSSTS_RESUME_Pos (2) /*!< USBD_T::BUSSTS: RESUME Position */ |
AnnaBridge | 174:b96e65c34a4d | 11164 | #define USBD_BUSSTS_RESUME_Msk (0x1ul << USBD_BUSSTS_RESUME_Pos) /*!< USBD_T::BUSSTS: RESUME Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11165 | |
AnnaBridge | 174:b96e65c34a4d | 11166 | #define USBD_BUSSTS_TIMEOUT_Pos (3) /*!< USBD_T::BUSSTS: TIMEOUT Position */ |
AnnaBridge | 174:b96e65c34a4d | 11167 | #define USBD_BUSSTS_TIMEOUT_Msk (0x1ul << USBD_BUSSTS_TIMEOUT_Pos) /*!< USBD_T::BUSSTS: TIMEOUT Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11168 | |
AnnaBridge | 174:b96e65c34a4d | 11169 | #define USBD_BUSSTS_FLDET_Pos (4) /*!< USBD_T::BUSSTS: FLDET Position */ |
AnnaBridge | 174:b96e65c34a4d | 11170 | #define USBD_BUSSTS_FLDET_Msk (0x1ul << USBD_BUSSTS_FLDET_Pos) /*!< USBD_T::BUSSTS: FLDET Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11171 | |
AnnaBridge | 174:b96e65c34a4d | 11172 | #define USBD_INTEN_BUSEVT_IE_Pos (0) /*!< USBD_T::INTEN: BUSEVT_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11173 | #define USBD_INTEN_BUSEVT_IE_Msk (0x1ul << USBD_INTEN_BUSEVT_IE_Pos) /*!< USBD_T::INTEN: BUSEVT_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11174 | |
AnnaBridge | 174:b96e65c34a4d | 11175 | #define USBD_INTEN_USBEVT_IE_Pos (1) /*!< USBD_T::INTEN: USBEVT_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11176 | #define USBD_INTEN_USBEVT_IE_Msk (0x1ul << USBD_INTEN_USBEVT_IE_Pos) /*!< USBD_T::INTEN: USBEVT_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11177 | |
AnnaBridge | 174:b96e65c34a4d | 11178 | #define USBD_INTEN_FLDET_IE_Pos (2) /*!< USBD_T::INTEN: FLDET_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11179 | #define USBD_INTEN_FLDET_IE_Msk (0x1ul << USBD_INTEN_FLDET_IE_Pos) /*!< USBD_T::INTEN: FLDET_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11180 | |
AnnaBridge | 174:b96e65c34a4d | 11181 | #define USBD_INTEN_WAKEUP_IE_Pos (3) /*!< USBD_T::INTEN: WAKEUP_IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11182 | #define USBD_INTEN_WAKEUP_IE_Msk (0x1ul << USBD_INTEN_WAKEUP_IE_Pos) /*!< USBD_T::INTEN: WAKEUP_IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11183 | |
AnnaBridge | 174:b96e65c34a4d | 11184 | #define USBD_INTSTS_BUS_STS_Pos (0) /*!< USBD_T::INTSTS: BUS_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 11185 | #define USBD_INTSTS_BUS_STS_Msk (0x1ul << USBD_INTSTS_BUS_STS_Pos) /*!< USBD_T::INTSTS: BUS_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11186 | |
AnnaBridge | 174:b96e65c34a4d | 11187 | #define USBD_INTSTS_USB_STS_Pos (1) /*!< USBD_T::INTSTS: USB_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 11188 | #define USBD_INTSTS_USB_STS_Msk (0x1ul << USBD_INTSTS_USB_STS_Pos) /*!< USBD_T::INTSTS: USB_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11189 | |
AnnaBridge | 174:b96e65c34a4d | 11190 | #define USBD_INTSTS_FLD_STS_Pos (2) /*!< USBD_T::INTSTS: FLD_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 11191 | #define USBD_INTSTS_FLD_STS_Msk (0x1ul << USBD_INTSTS_FLD_STS_Pos) /*!< USBD_T::INTSTS: FLD_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11192 | |
AnnaBridge | 174:b96e65c34a4d | 11193 | #define USBD_INTSTS_WKEUP_STS_Pos (3) /*!< USBD_T::INTSTS: WKEUP_STS Position */ |
AnnaBridge | 174:b96e65c34a4d | 11194 | #define USBD_INTSTS_WKEUP_STS_Msk (0x1ul << USBD_INTSTS_WKEUP_STS_Pos) /*!< USBD_T::INTSTS: WKEUP_STS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11195 | |
AnnaBridge | 174:b96e65c34a4d | 11196 | #define USBD_INTSTS_EPEVT0_Pos (16) /*!< USBD_T::INTSTS: EPEVT0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11197 | #define USBD_INTSTS_EPEVT0_Msk (0x1ul << USBD_INTSTS_EPEVT0_Pos) /*!< USBD_T::INTSTS: EPEVT0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11198 | |
AnnaBridge | 174:b96e65c34a4d | 11199 | #define USBD_INTSTS_EPEVT1_Pos (17) /*!< USBD_T::INTSTS: EPEVT1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11200 | #define USBD_INTSTS_EPEVT1_Msk (0x1ul << USBD_INTSTS_EPEVT1_Pos) /*!< USBD_T::INTSTS: EPEVT1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11201 | |
AnnaBridge | 174:b96e65c34a4d | 11202 | #define USBD_INTSTS_EPEVT2_Pos (18) /*!< USBD_T::INTSTS: EPEVT2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11203 | #define USBD_INTSTS_EPEVT2_Msk (0x1ul << USBD_INTSTS_EPEVT2_Pos) /*!< USBD_T::INTSTS: EPEVT2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11204 | |
AnnaBridge | 174:b96e65c34a4d | 11205 | #define USBD_INTSTS_EPEVT3_Pos (19) /*!< USBD_T::INTSTS: EPEVT3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11206 | #define USBD_INTSTS_EPEVT3_Msk (0x1ul << USBD_INTSTS_EPEVT3_Pos) /*!< USBD_T::INTSTS: EPEVT3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11207 | |
AnnaBridge | 174:b96e65c34a4d | 11208 | #define USBD_INTSTS_EPEVT4_Pos (20) /*!< USBD_T::INTSTS: EPEVT4 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11209 | #define USBD_INTSTS_EPEVT4_Msk (0x1ul << USBD_INTSTS_EPEVT4_Pos) /*!< USBD_T::INTSTS: EPEVT4 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11210 | |
AnnaBridge | 174:b96e65c34a4d | 11211 | #define USBD_INTSTS_EPEVT5_Pos (21) /*!< USBD_T::INTSTS: EPEVT5 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11212 | #define USBD_INTSTS_EPEVT5_Msk (0x1ul << USBD_INTSTS_EPEVT5_Pos) /*!< USBD_T::INTSTS: EPEVT5 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11213 | |
AnnaBridge | 174:b96e65c34a4d | 11214 | #define USBD_INTSTS_EPEVT6_Pos (22) /*!< USBD_T::INTSTS: EPEVT6 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11215 | #define USBD_INTSTS_EPEVT6_Msk (0x1ul << USBD_INTSTS_EPEVT6_Pos) /*!< USBD_T::INTSTS: EPEVT6 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11216 | |
AnnaBridge | 174:b96e65c34a4d | 11217 | #define USBD_INTSTS_EPEVT7_Pos (23) /*!< USBD_T::INTSTS: EPEVT7 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11218 | #define USBD_INTSTS_EPEVT7_Msk (0x1ul << USBD_INTSTS_EPEVT7_Pos) /*!< USBD_T::INTSTS: EPEVT7 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11219 | |
AnnaBridge | 174:b96e65c34a4d | 11220 | #define USBD_INTSTS_SETUP_Pos (31) /*!< USBD_T::INTSTS: SETUP Position */ |
AnnaBridge | 174:b96e65c34a4d | 11221 | #define USBD_INTSTS_SETUP_Msk (0x1ul << USBD_INTSTS_SETUP_Pos) /*!< USBD_T::INTSTS: SETUP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11222 | |
AnnaBridge | 174:b96e65c34a4d | 11223 | #define USBD_FADDR_FADDR_Pos (0) /*!< USBD_T::FADDR: FADDR Position */ |
AnnaBridge | 174:b96e65c34a4d | 11224 | #define USBD_FADDR_FADDR_Msk (0x7ful << USBD_FADDR_FADDR_Pos) /*!< USBD_T::FADDR: FADDR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11225 | |
AnnaBridge | 174:b96e65c34a4d | 11226 | #define USBD_EPSTS_OVERRUN_Pos (7) /*!< USBD_T::EPSTS: OVERRUN Position */ |
AnnaBridge | 174:b96e65c34a4d | 11227 | #define USBD_EPSTS_OVERRUN_Msk (0x1ul << USBD_EPSTS_OVERRUN_Pos) /*!< USBD_T::EPSTS: OVERRUN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11228 | |
AnnaBridge | 174:b96e65c34a4d | 11229 | #define USBD_EPSTS_EPSTS0_Pos (8) /*!< USBD_T::EPSTS: EPSTS0 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11230 | #define USBD_EPSTS_EPSTS0_Msk (0xful << USBD_EPSTS_EPSTS0_Pos) /*!< USBD_T::EPSTS: EPSTS0 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11231 | |
AnnaBridge | 174:b96e65c34a4d | 11232 | #define USBD_EPSTS_EPSTS1_Pos (12) /*!< USBD_T::EPSTS: EPSTS1 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11233 | #define USBD_EPSTS_EPSTS1_Msk (0xful << USBD_EPSTS_EPSTS1_Pos) /*!< USBD_T::EPSTS: EPSTS1 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11234 | |
AnnaBridge | 174:b96e65c34a4d | 11235 | #define USBD_EPSTS_EPSTS2_Pos (16) /*!< USBD_T::EPSTS: EPSTS2 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11236 | #define USBD_EPSTS_EPSTS2_Msk (0xful << USBD_EPSTS_EPSTS2_Pos) /*!< USBD_T::EPSTS: EPSTS2 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11237 | |
AnnaBridge | 174:b96e65c34a4d | 11238 | #define USBD_EPSTS_EPSTS3_Pos (20) /*!< USBD_T::EPSTS: EPSTS3 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11239 | #define USBD_EPSTS_EPSTS3_Msk (0xful << USBD_EPSTS_EPSTS3_Pos) /*!< USBD_T::EPSTS: EPSTS3 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11240 | |
AnnaBridge | 174:b96e65c34a4d | 11241 | #define USBD_EPSTS_EPSTS4_Pos (24) /*!< USBD_T::EPSTS: EPSTS4 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11242 | #define USBD_EPSTS_EPSTS4_Msk (0xful << USBD_EPSTS_EPSTS4_Pos) /*!< USBD_T::EPSTS: EPSTS4 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11243 | |
AnnaBridge | 174:b96e65c34a4d | 11244 | #define USBD_EPSTS_EPSTS5_Pos (28) /*!< USBD_T::EPSTS: EPSTS5 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11245 | #define USBD_EPSTS_EPSTS5_Msk (0xful << USBD_EPSTS_EPSTS5_Pos) /*!< USBD_T::EPSTS: EPSTS5 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11246 | |
AnnaBridge | 174:b96e65c34a4d | 11247 | #define USBD_BUFSEG_BUFSEG_Pos (3) /*!< USBD_T::BUFSEG: BUFSEG Position */ |
AnnaBridge | 174:b96e65c34a4d | 11248 | #define USBD_BUFSEG_BUFSEG_Msk (0x3ful << USBD_BUFSEG_BUFSEG_Pos) /*!< USBD_T::BUFSEG: BUFSEG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11249 | |
AnnaBridge | 174:b96e65c34a4d | 11250 | #define USBD_EPSTS2_EPSTS6_Pos (0) /*!< USBD_T::EPSTS2: EPSTS6 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11251 | #define USBD_EPSTS2_EPSTS6_Msk (0x7ul << USBD_EPSTS2_EPSTS6_Pos) /*!< USBD_T::EPSTS2: EPSTS6 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11252 | |
AnnaBridge | 174:b96e65c34a4d | 11253 | #define USBD_EPSTS2_EPSTS7_Pos (4) /*!< USBD_T::EPSTS2: EPSTS7 Position */ |
AnnaBridge | 174:b96e65c34a4d | 11254 | #define USBD_EPSTS2_EPSTS7_Msk (0x7ul << USBD_EPSTS2_EPSTS7_Pos) /*!< USBD_T::EPSTS2: EPSTS7 Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11255 | |
AnnaBridge | 174:b96e65c34a4d | 11256 | #define USBD_BUFSEG_BUFSEG_Pos (3) /*!< USBD_T::BUFSEG: BUFSEG Position */ |
AnnaBridge | 174:b96e65c34a4d | 11257 | #define USBD_BUFSEG_BUFSEG_Msk (0x3ful << USBD_BUFSEG_BUFSEG_Pos) /*!< USBD_T::BUFSEG: BUFSEG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11258 | |
AnnaBridge | 174:b96e65c34a4d | 11259 | #define USBD_MXPLD_MXPLD_Pos (0) /*!< USBD_T::MXPLD: MXPLD Position */ |
AnnaBridge | 174:b96e65c34a4d | 11260 | #define USBD_MXPLD_MXPLD_Msk (0x1fful << USBD_MXPLD_MXPLD_Pos) /*!< USBD_T::MXPLD: MXPLD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11261 | |
AnnaBridge | 174:b96e65c34a4d | 11262 | #define USBD_CFG_EP_NUM_Pos (0) /*!< USBD_T::CFG: EP_NUM Position */ |
AnnaBridge | 174:b96e65c34a4d | 11263 | #define USBD_CFG_EP_NUM_Msk (0xful << USBD_CFG_EP_NUM_Pos) /*!< USBD_T::CFG: EP_NUM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11264 | |
AnnaBridge | 174:b96e65c34a4d | 11265 | #define USBD_CFG_ISOCH_Pos (4) /*!< USBD_T::CFG: ISOCH Position */ |
AnnaBridge | 174:b96e65c34a4d | 11266 | #define USBD_CFG_ISOCH_Msk (0x1ul << USBD_CFG_ISOCH_Pos) /*!< USBD_T::CFG: ISOCH Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11267 | |
AnnaBridge | 174:b96e65c34a4d | 11268 | #define USBD_CFG_EPMODE_Pos (5) /*!< USBD_T::CFG: EPMODE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11269 | #define USBD_CFG_EPMODE_Msk (0x3ul << USBD_CFG_EPMODE_Pos) /*!< USBD_T::CFG: EPMODE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11270 | |
AnnaBridge | 174:b96e65c34a4d | 11271 | #define USBD_CFG_DSQ_SYNC_Pos (7) /*!< USBD_T::CFG: DSQ_SYNC Position */ |
AnnaBridge | 174:b96e65c34a4d | 11272 | #define USBD_CFG_DSQ_SYNC_Msk (0x1ul << USBD_CFG_DSQ_SYNC_Pos) /*!< USBD_T::CFG: DSQ_SYNC Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11273 | |
AnnaBridge | 174:b96e65c34a4d | 11274 | #define USBD_CFG_CSTALL_Pos (8) /*!< USBD_T::CFG: CSTALL Position */ |
AnnaBridge | 174:b96e65c34a4d | 11275 | #define USBD_CFG_CSTALL_Msk (0x1ul << USBD_CFG_CSTALL_Pos) /*!< USBD_T::CFG: CSTALL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11276 | |
AnnaBridge | 174:b96e65c34a4d | 11277 | #define USBD_CFG_SSTALL_Pos (9) /*!< USBD_T::CFG: SSTALL Position */ |
AnnaBridge | 174:b96e65c34a4d | 11278 | #define USBD_CFG_SSTALL_Msk (0x1ul << USBD_CFG_SSTALL_Pos) /*!< USBD_T::CFG: SSTALL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11279 | |
AnnaBridge | 174:b96e65c34a4d | 11280 | #define USBD_CFG_CLRRDY_Pos (15) /*!< USBD_T::CFG: CLRRDY Position */ |
AnnaBridge | 174:b96e65c34a4d | 11281 | #define USBD_CFG_CLRRDY_Msk (0x1ul << USBD_CFG_CLRRDY_Pos) /*!< USBD_T::CFG: CLRRDY Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11282 | |
AnnaBridge | 174:b96e65c34a4d | 11283 | #define USBD_PDMA_PDMA_RW_Pos (0) /*!< USBD_T::PDMA: PDMA_RW Position */ |
AnnaBridge | 174:b96e65c34a4d | 11284 | #define USBD_PDMA_PDMA_RW_Msk (0x1ul << USBD_PDMA_PDMA_RW_Pos) /*!< USBD_T::PDMA: PDMA_RW Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11285 | |
AnnaBridge | 174:b96e65c34a4d | 11286 | #define USBD_PDMA_PDMA_TRG_Pos (1) /*!< USBD_T::PDMA: PDMA_TRG Position */ |
AnnaBridge | 174:b96e65c34a4d | 11287 | #define USBD_PDMA_PDMA_TRG_Msk (0x1ul << USBD_PDMA_PDMA_TRG_Pos) /*!< USBD_T::PDMA: PDMA_TRG Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11288 | |
AnnaBridge | 174:b96e65c34a4d | 11289 | #define USBD_PDMA_BYTEM_Pos (2) /*!< USBD_T::PDMA: BYTEM Position */ |
AnnaBridge | 174:b96e65c34a4d | 11290 | #define USBD_PDMA_BYTEM_Msk (0x1ul << USBD_PDMA_BYTEM_Pos) /*!< USBD_T::PDMA: BYTEM Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11291 | |
AnnaBridge | 174:b96e65c34a4d | 11292 | #define USBD_PDMA_PDMA_RST_Pos (3) /*!< USBD_T::PDMA: PDMA_RST Position */ |
AnnaBridge | 174:b96e65c34a4d | 11293 | #define USBD_PDMA_PDMA_RST_Msk (0x1ul << USBD_PDMA_PDMA_RST_Pos) /*!< USBD_T::PDMA: PDMA_RST Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11294 | |
AnnaBridge | 174:b96e65c34a4d | 11295 | /**@}*/ /* USBD_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 11296 | /**@}*/ /* end of USBD register group */ |
AnnaBridge | 174:b96e65c34a4d | 11297 | |
AnnaBridge | 174:b96e65c34a4d | 11298 | |
AnnaBridge | 174:b96e65c34a4d | 11299 | /*---------------------- Watch Dog Timer Controller -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 11300 | /** |
AnnaBridge | 174:b96e65c34a4d | 11301 | @addtogroup WDT Watch Dog Timer Controller(WDT) |
AnnaBridge | 174:b96e65c34a4d | 11302 | Memory Mapped Structure for WDT Controller |
AnnaBridge | 174:b96e65c34a4d | 11303 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 11304 | |
AnnaBridge | 174:b96e65c34a4d | 11305 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 11306 | |
AnnaBridge | 174:b96e65c34a4d | 11307 | |
AnnaBridge | 174:b96e65c34a4d | 11308 | /** |
AnnaBridge | 174:b96e65c34a4d | 11309 | * CTL |
AnnaBridge | 174:b96e65c34a4d | 11310 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11311 | * Offset: 0x00 Watchdog Timer Control Register |
AnnaBridge | 174:b96e65c34a4d | 11312 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11313 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11314 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11315 | * |[0] |WTR |Clear Watchdog Timer |
AnnaBridge | 174:b96e65c34a4d | 11316 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 11317 | * | | |Set this bit will clear the Watchdog timer. |
AnnaBridge | 174:b96e65c34a4d | 11318 | * | | |0 = No effect. |
AnnaBridge | 174:b96e65c34a4d | 11319 | * | | |1 = Reset the contents of the Watchdog timer. |
AnnaBridge | 174:b96e65c34a4d | 11320 | * | | |Note: This bit will be auto cleared after few clock cycles. |
AnnaBridge | 174:b96e65c34a4d | 11321 | * |[1] |WTRE |Watchdog Timer Reset Function Enable |
AnnaBridge | 174:b96e65c34a4d | 11322 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 11323 | * | | |Setting this bit will enable the Watchdog timer reset function. |
AnnaBridge | 174:b96e65c34a4d | 11324 | * | | |0 = Watchdog timer reset function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 11325 | * | | |1 = Watchdog timer reset function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 11326 | * |[2] |WTWKE |Watchdog Timer Wake-Up Function Enable |
AnnaBridge | 174:b96e65c34a4d | 11327 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 11328 | * | | |0 = Watchdog timer Wake-up CPU function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 11329 | * | | |1 = Wake-up function Enabled so that Watchdog timer time-out can wake up CPU from power-down mode. |
AnnaBridge | 174:b96e65c34a4d | 11330 | * |[3] |WTE |Watchdog Timer Enable |
AnnaBridge | 174:b96e65c34a4d | 11331 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 11332 | * | | |0 = Watchdog timer Disabled (this action will reset the internal counter). |
AnnaBridge | 174:b96e65c34a4d | 11333 | * | | |1 = Watchdog timer Enabled. |
AnnaBridge | 174:b96e65c34a4d | 11334 | * |[6:4] |WTIS |Watchdog Timer Interval Selection |
AnnaBridge | 174:b96e65c34a4d | 11335 | * | | |This is a protected register. Please refer to open lock sequence to program it. |
AnnaBridge | 174:b96e65c34a4d | 11336 | * | | |These three bits select the time-out interval for the Watchdog timer. |
AnnaBridge | 174:b96e65c34a4d | 11337 | * | | |This count is free running counter. |
AnnaBridge | 174:b96e65c34a4d | 11338 | * | | |Please refer to the Table 5-16. |
AnnaBridge | 174:b96e65c34a4d | 11339 | * |[9:8] |WTRDSEL |Watchdog Timer Reset Delay Select |
AnnaBridge | 174:b96e65c34a4d | 11340 | * | | |When watchdog timeout happened, software has a time named watchdog reset delay period to clear watchdog timer to prevent watchdog reset happened. |
AnnaBridge | 174:b96e65c34a4d | 11341 | * | | |Software can select a suitable value of watchdog reset delay period for different watchdog timeout period. |
AnnaBridge | 174:b96e65c34a4d | 11342 | * | | |00 = Watchdog reset delay period is 1026 watchdog clock |
AnnaBridge | 174:b96e65c34a4d | 11343 | * | | |01 = Watchdog reset delay period is 130 watchdog clock |
AnnaBridge | 174:b96e65c34a4d | 11344 | * | | |10 = Watchdog reset delay period is 18 watchdog clock |
AnnaBridge | 174:b96e65c34a4d | 11345 | * | | |11 = Watchdog reset delay period is 3 watchdog clock |
AnnaBridge | 174:b96e65c34a4d | 11346 | * | | |This register will be reset if watchdog reset happened |
AnnaBridge | 174:b96e65c34a4d | 11347 | */ |
AnnaBridge | 174:b96e65c34a4d | 11348 | __IO uint32_t CTL; |
AnnaBridge | 174:b96e65c34a4d | 11349 | |
AnnaBridge | 174:b96e65c34a4d | 11350 | /** |
AnnaBridge | 174:b96e65c34a4d | 11351 | * IER |
AnnaBridge | 174:b96e65c34a4d | 11352 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11353 | * Offset: 0x04 Watchdog Timer Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 11354 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11355 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11356 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11357 | * |[0] |WDT_IE |Watchdog Timer Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 11358 | * | | |0 = Watchdog timer interrupt Disabled. |
AnnaBridge | 174:b96e65c34a4d | 11359 | * | | |1 = Watchdog timer interrupt Enabled. |
AnnaBridge | 174:b96e65c34a4d | 11360 | */ |
AnnaBridge | 174:b96e65c34a4d | 11361 | __IO uint32_t IER; |
AnnaBridge | 174:b96e65c34a4d | 11362 | |
AnnaBridge | 174:b96e65c34a4d | 11363 | /** |
AnnaBridge | 174:b96e65c34a4d | 11364 | * ISR |
AnnaBridge | 174:b96e65c34a4d | 11365 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11366 | * Offset: 0x08 Watchdog Timer Interrupt Status Register |
AnnaBridge | 174:b96e65c34a4d | 11367 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11368 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11369 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11370 | * |[0] |IS |Watchdog Timer Interrupt Status |
AnnaBridge | 174:b96e65c34a4d | 11371 | * | | |If the Watchdog timer interrupt is enabled, then the hardware will set this bit to indicate that the Watchdog timer interrupt has occurred. |
AnnaBridge | 174:b96e65c34a4d | 11372 | * | | |If the Watchdog timer interrupt is not enabled, then this bit indicates that a time-out period has elapsed. |
AnnaBridge | 174:b96e65c34a4d | 11373 | * | | |0 = Watchdog timer interrupt did not occur. |
AnnaBridge | 174:b96e65c34a4d | 11374 | * | | |1 = Watchdog timer interrupt occurs. |
AnnaBridge | 174:b96e65c34a4d | 11375 | * | | |Note: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 11376 | * |[1] |RST_IS |Watchdog Timer Reset Status |
AnnaBridge | 174:b96e65c34a4d | 11377 | * | | |When the Watchdog timer initiates a reset, the hardware will set this bit. |
AnnaBridge | 174:b96e65c34a4d | 11378 | * | | |This flag can be read by software to determine the source of reset. |
AnnaBridge | 174:b96e65c34a4d | 11379 | * | | |Software is responsible to clear it manually by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 11380 | * | | |If WTRE is disabled, then the Watchdog timer has no effect on this bit. |
AnnaBridge | 174:b96e65c34a4d | 11381 | * | | |0 = Watchdog timer reset did not occur. |
AnnaBridge | 174:b96e65c34a4d | 11382 | * | | |1 = Watchdog timer reset occurs. |
AnnaBridge | 174:b96e65c34a4d | 11383 | * | | |Note: This bit is read only, but can be cleared by writing "1" to it. |
AnnaBridge | 174:b96e65c34a4d | 11384 | * |[2] |WAKE_IS |Watchdog Timer Wake-Up Status |
AnnaBridge | 174:b96e65c34a4d | 11385 | * | | |If Watchdog timer causes system to wake up from power-down mode, this bit will be set to high. |
AnnaBridge | 174:b96e65c34a4d | 11386 | * | | |It must be cleared by software with a write "1" to this bit. |
AnnaBridge | 174:b96e65c34a4d | 11387 | * | | |0 = Watchdog timer does not cause system wake-up. |
AnnaBridge | 174:b96e65c34a4d | 11388 | * | | |1 = Wake system up from power-down mode by Watchdog time-out. |
AnnaBridge | 174:b96e65c34a4d | 11389 | * | | |Note1: When system in power-down mode and watchdog time-out, hardware will set WDT_WAKE_IS and WDT_IS. |
AnnaBridge | 174:b96e65c34a4d | 11390 | * | | |Note2: After one engine clock, this bit can be cleared by writing "1" to it |
AnnaBridge | 174:b96e65c34a4d | 11391 | */ |
AnnaBridge | 174:b96e65c34a4d | 11392 | __IO uint32_t ISR; |
AnnaBridge | 174:b96e65c34a4d | 11393 | |
AnnaBridge | 174:b96e65c34a4d | 11394 | } WDT_T; |
AnnaBridge | 174:b96e65c34a4d | 11395 | |
AnnaBridge | 174:b96e65c34a4d | 11396 | /** |
AnnaBridge | 174:b96e65c34a4d | 11397 | @addtogroup WDT_CONST WDT Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 11398 | Constant Definitions for WDT Controller |
AnnaBridge | 174:b96e65c34a4d | 11399 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 11400 | |
AnnaBridge | 174:b96e65c34a4d | 11401 | #define WDT_CTL_WTR_Pos (0) /*!< WDT_T::CTL: WTR Position */ |
AnnaBridge | 174:b96e65c34a4d | 11402 | #define WDT_CTL_WTR_Msk (0x1ul << WDT_CTL_WTR_Pos) /*!< WDT_T::CTL: WTR Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11403 | |
AnnaBridge | 174:b96e65c34a4d | 11404 | #define WDT_CTL_WTRE_Pos (1) /*!< WDT_T::CTL: WTRE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11405 | #define WDT_CTL_WTRE_Msk (0x1ul << WDT_CTL_WTRE_Pos) /*!< WDT_T::CTL: WTRE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11406 | |
AnnaBridge | 174:b96e65c34a4d | 11407 | #define WDT_CTL_WTWKE_Pos (2) /*!< WDT_T::CTL: WTWKE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11408 | #define WDT_CTL_WTWKE_Msk (0x1ul << WDT_CTL_WTWKE_Pos) /*!< WDT_T::CTL: WTWKE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11409 | |
AnnaBridge | 174:b96e65c34a4d | 11410 | #define WDT_CTL_WTE_Pos (3) /*!< WDT_T::CTL: WTE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11411 | #define WDT_CTL_WTE_Msk (0x1ul << WDT_CTL_WTE_Pos) /*!< WDT_T::CTL: WTE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11412 | |
AnnaBridge | 174:b96e65c34a4d | 11413 | #define WDT_CTL_WTIS_Pos (4) /*!< WDT_T::CTL: WTIS Position */ |
AnnaBridge | 174:b96e65c34a4d | 11414 | #define WDT_CTL_WTIS_Msk (0x7ul << WDT_CTL_WTIS_Pos) /*!< WDT_T::CTL: WTIS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11415 | |
AnnaBridge | 174:b96e65c34a4d | 11416 | #define WDT_CTL_WTRDSEL_Pos (8) /*!< WDT_T::CTL: WTRDSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 11417 | #define WDT_CTL_WTRDSEL_Msk (0x3ul << WDT_CTL_WTRDSEL_Pos) /*!< WDT_T::CTL: WTRDSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11418 | |
AnnaBridge | 174:b96e65c34a4d | 11419 | #define WDT_IER_IE_Pos (0) /*!< WDT_T::IER: IE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11420 | #define WDT_IER_IE_Msk (0x1ul << WDT_IER_IE_Pos) /*!< WDT_T::IER: IE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11421 | |
AnnaBridge | 174:b96e65c34a4d | 11422 | #define WDT_ISR_IS_Pos (0) /*!< WDT_T::ISR: IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 11423 | #define WDT_ISR_IS_Msk (0x1ul << WDT_ISR_IS_Pos) /*!< WDT_T::ISR: IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11424 | |
AnnaBridge | 174:b96e65c34a4d | 11425 | #define WDT_ISR_RST_IS_Pos (1) /*!< WDT_T::ISR: RST_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 11426 | #define WDT_ISR_RST_IS_Msk (0x1ul << WDT_ISR_RST_IS_Pos) /*!< WDT_T::ISR: RST_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11427 | |
AnnaBridge | 174:b96e65c34a4d | 11428 | #define WDT_ISR_WAKE_IS_Pos (2) /*!< WDT_T::ISR: WAKE_IS Position */ |
AnnaBridge | 174:b96e65c34a4d | 11429 | #define WDT_ISR_WAKE_IS_Msk (0x1ul << WDT_ISR_WAKE_IS_Pos) /*!< WDT_T::ISR: WAKE_IS Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11430 | |
AnnaBridge | 174:b96e65c34a4d | 11431 | /**@}*/ /* WDT_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 11432 | /**@}*/ /* end of WDT register group */ |
AnnaBridge | 174:b96e65c34a4d | 11433 | |
AnnaBridge | 174:b96e65c34a4d | 11434 | |
AnnaBridge | 174:b96e65c34a4d | 11435 | /*---------------------- Window Watchdog Timer -------------------------*/ |
AnnaBridge | 174:b96e65c34a4d | 11436 | /** |
AnnaBridge | 174:b96e65c34a4d | 11437 | @addtogroup WWDT Window Watchdog Timer(WWDT) |
AnnaBridge | 174:b96e65c34a4d | 11438 | Memory Mapped Structure for WWDT Controller |
AnnaBridge | 174:b96e65c34a4d | 11439 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 11440 | |
AnnaBridge | 174:b96e65c34a4d | 11441 | typedef struct { |
AnnaBridge | 174:b96e65c34a4d | 11442 | |
AnnaBridge | 174:b96e65c34a4d | 11443 | |
AnnaBridge | 174:b96e65c34a4d | 11444 | /** |
AnnaBridge | 174:b96e65c34a4d | 11445 | * RLD |
AnnaBridge | 174:b96e65c34a4d | 11446 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11447 | * Offset: 0x00 Window Watchdog Timer Reload Counter Register |
AnnaBridge | 174:b96e65c34a4d | 11448 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11449 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11450 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11451 | * |[31:0] |RLD |Window Watchdog Timer Reload Counter Register |
AnnaBridge | 174:b96e65c34a4d | 11452 | * | | |Writing 0x00005AA5 to this register will reload the Window Watchdog Timer counter value to 0x3F. |
AnnaBridge | 174:b96e65c34a4d | 11453 | * | | |Note: SW only can write WWDTRLD when WWDT counter value between 0 and WINCMP. |
AnnaBridge | 174:b96e65c34a4d | 11454 | * | | |If SW writes WWDTRLD when WWDT counter value larger than WINCMP, WWDT will generate RESET signal. |
AnnaBridge | 174:b96e65c34a4d | 11455 | */ |
AnnaBridge | 174:b96e65c34a4d | 11456 | __O uint32_t RLD; |
AnnaBridge | 174:b96e65c34a4d | 11457 | |
AnnaBridge | 174:b96e65c34a4d | 11458 | /** |
AnnaBridge | 174:b96e65c34a4d | 11459 | * CR |
AnnaBridge | 174:b96e65c34a4d | 11460 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11461 | * Offset: 0x04 Window Watchdog Timer Control Register |
AnnaBridge | 174:b96e65c34a4d | 11462 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11463 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11464 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11465 | * |[0] |WWDTEN |Window Watchdog Enable |
AnnaBridge | 174:b96e65c34a4d | 11466 | * | | |Set this bit to enable Window Watchdog timer. |
AnnaBridge | 174:b96e65c34a4d | 11467 | * | | |0 = Window Watchdog timer function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 11468 | * | | |1 = Window Watchdog timer function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 11469 | * |[11:8] |PERIODSEL |WWDT Pre-Scale Period Select |
AnnaBridge | 174:b96e65c34a4d | 11470 | * | | |These three bits select the pre-scale for the WWDT counter period. |
AnnaBridge | 174:b96e65c34a4d | 11471 | * | | |Please refer to Table 5-17 |
AnnaBridge | 174:b96e65c34a4d | 11472 | * |[21:16] |WINCMP |WWDT Window Compare Register |
AnnaBridge | 174:b96e65c34a4d | 11473 | * | | |Set this register to adjust the valid reload window. |
AnnaBridge | 174:b96e65c34a4d | 11474 | * | | |Note: SW only can write WWDTRLD when WWDT counter value between 0 and WINCMP. |
AnnaBridge | 174:b96e65c34a4d | 11475 | * | | |If SW writes WWDTRLD when WWDT counter value larger than WWCMP, WWDT will generate RESET signal. |
AnnaBridge | 174:b96e65c34a4d | 11476 | * |[31] |DBGEN |WWDT Debug Enable |
AnnaBridge | 174:b96e65c34a4d | 11477 | * | | |0 = WWDT stopped count if system is in Debug mode. |
AnnaBridge | 174:b96e65c34a4d | 11478 | * | | |1 = WWDT still counted even system is in Debug mode. |
AnnaBridge | 174:b96e65c34a4d | 11479 | */ |
AnnaBridge | 174:b96e65c34a4d | 11480 | __IO uint32_t CR; |
AnnaBridge | 174:b96e65c34a4d | 11481 | |
AnnaBridge | 174:b96e65c34a4d | 11482 | /** |
AnnaBridge | 174:b96e65c34a4d | 11483 | * IER |
AnnaBridge | 174:b96e65c34a4d | 11484 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11485 | * Offset: 0x08 Window Watchdog Timer Interrupt Enable Register |
AnnaBridge | 174:b96e65c34a4d | 11486 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11487 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11488 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11489 | * |[0] |WWDTIE |WWDT Interrupt Enable |
AnnaBridge | 174:b96e65c34a4d | 11490 | * | | |Setting this bit will enable the Watchdog timer interrupt function. |
AnnaBridge | 174:b96e65c34a4d | 11491 | * | | |0 = Watchdog timer interrupt function Disabled. |
AnnaBridge | 174:b96e65c34a4d | 11492 | * | | |1 = Watchdog timer interrupt function Enabled. |
AnnaBridge | 174:b96e65c34a4d | 11493 | */ |
AnnaBridge | 174:b96e65c34a4d | 11494 | __IO uint32_t IER; |
AnnaBridge | 174:b96e65c34a4d | 11495 | |
AnnaBridge | 174:b96e65c34a4d | 11496 | /** |
AnnaBridge | 174:b96e65c34a4d | 11497 | * STS |
AnnaBridge | 174:b96e65c34a4d | 11498 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11499 | * Offset: 0x0C Window Watchdog Timer Status Register |
AnnaBridge | 174:b96e65c34a4d | 11500 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11501 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11502 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11503 | * |[0] |IF |WWDT Compare Match Interrupt Flag |
AnnaBridge | 174:b96e65c34a4d | 11504 | * | | |When WWCMP match the WWDT counter, then this bit is set to 1. |
AnnaBridge | 174:b96e65c34a4d | 11505 | * | | |This bit will be cleared by software write 1 to this bit. |
AnnaBridge | 174:b96e65c34a4d | 11506 | * |[1] |RF |WWDT Reset Flag |
AnnaBridge | 174:b96e65c34a4d | 11507 | * | | |When WWDT counter down count to 0 or write WWDTRLD during WWDT counter larger than WINCMP, chip will be reset and this bit is set to 1. |
AnnaBridge | 174:b96e65c34a4d | 11508 | * | | |Software can write 1 to clear this bit to 0. |
AnnaBridge | 174:b96e65c34a4d | 11509 | */ |
AnnaBridge | 174:b96e65c34a4d | 11510 | __IO uint32_t STS; |
AnnaBridge | 174:b96e65c34a4d | 11511 | |
AnnaBridge | 174:b96e65c34a4d | 11512 | /** |
AnnaBridge | 174:b96e65c34a4d | 11513 | * WWDTVAL |
AnnaBridge | 174:b96e65c34a4d | 11514 | * =================================================================================================== |
AnnaBridge | 174:b96e65c34a4d | 11515 | * Offset: 0x10 Window Watchdog Timer Counter Value Register |
AnnaBridge | 174:b96e65c34a4d | 11516 | * --------------------------------------------------------------------------------------------------- |
AnnaBridge | 174:b96e65c34a4d | 11517 | * |Bits |Field |Descriptions |
AnnaBridge | 174:b96e65c34a4d | 11518 | * | :----: | :----: | :---- | |
AnnaBridge | 174:b96e65c34a4d | 11519 | * |[5:0] |VAL |WWDT Counter Value |
AnnaBridge | 174:b96e65c34a4d | 11520 | * | | |This register reflects the counter value of window watchdog. This register is read only |
AnnaBridge | 174:b96e65c34a4d | 11521 | */ |
AnnaBridge | 174:b96e65c34a4d | 11522 | __I uint32_t VAL; |
AnnaBridge | 174:b96e65c34a4d | 11523 | |
AnnaBridge | 174:b96e65c34a4d | 11524 | } WWDT_T; |
AnnaBridge | 174:b96e65c34a4d | 11525 | |
AnnaBridge | 174:b96e65c34a4d | 11526 | /** |
AnnaBridge | 174:b96e65c34a4d | 11527 | @addtogroup WWDT_CONST WWDT Bit Field Definition |
AnnaBridge | 174:b96e65c34a4d | 11528 | Constant Definitions for WWDT Controller |
AnnaBridge | 174:b96e65c34a4d | 11529 | @{ */ |
AnnaBridge | 174:b96e65c34a4d | 11530 | |
AnnaBridge | 174:b96e65c34a4d | 11531 | #define WWDT_RLD_WWDTRLD_Pos (0) /*!< WWDT_T::RLD: RLD Position */ |
AnnaBridge | 174:b96e65c34a4d | 11532 | #define WWDT_RLD_WWDTRLD_Msk (0xfffffffful << WWDT_RLD_RLD_Pos) /*!< WWDT_T::RLD: RLD Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11533 | |
AnnaBridge | 174:b96e65c34a4d | 11534 | #define WWDT_CR_WWDTEN_Pos (0) /*!< WWDT_T::CR: WWDTEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 11535 | #define WWDT_CR_WWDTEN_Msk (0x1ul << WWDT_CR_WWDTEN_Pos) /*!< WWDT_T::CR: WWDTEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11536 | |
AnnaBridge | 174:b96e65c34a4d | 11537 | #define WWDT_CR_PERIODSEL_Pos (8) /*!< WWDT_T::CR: PERIODSEL Position */ |
AnnaBridge | 174:b96e65c34a4d | 11538 | #define WWDT_CR_PERIODSEL_Msk (0xful << WWDT_CR_PERIODSEL_Pos) /*!< WWDT_T::CR: PERIODSEL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11539 | |
AnnaBridge | 174:b96e65c34a4d | 11540 | #define WWDT_CR_WINCMP_Pos (16) /*!< WWDT_T::CR: WINCMP Position */ |
AnnaBridge | 174:b96e65c34a4d | 11541 | #define WWDT_CR_WINCMP_Msk (0x3ful << WWDT_CR_WINCMP_Pos) /*!< WWDT_T::CR: WINCMP Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11542 | |
AnnaBridge | 174:b96e65c34a4d | 11543 | #define WWDT_CR_DBGEN_Pos (31) /*!< WWDT_T::CR: DBGEN Position */ |
AnnaBridge | 174:b96e65c34a4d | 11544 | #define WWDT_CR_DBGEN_Msk (0x1ul << WWDT_CR_DBGEN_Pos) /*!< WWDT_T::CR: DBGEN Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11545 | |
AnnaBridge | 174:b96e65c34a4d | 11546 | #define WWDT_IER_WWDTIE_Pos (0) /*!< WWDT_T::IER: WWDTIE Position */ |
AnnaBridge | 174:b96e65c34a4d | 11547 | #define WWDT_IER_WWDTIE_Msk (0x1ul << WWDT_IER_WWDTIE_Pos) /*!< WWDT_T::IER: WWDTIE Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11548 | |
AnnaBridge | 174:b96e65c34a4d | 11549 | #define WWDT_STS_IF_Pos (0) /*!< WWDT_T::STS: IF Position */ |
AnnaBridge | 174:b96e65c34a4d | 11550 | #define WWDT_STS_IF_Msk (0x1ul << WWDT_STS_IF_Pos) /*!< WWDT_T::STS: IF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11551 | |
AnnaBridge | 174:b96e65c34a4d | 11552 | #define WWDT_STS_RF_Pos (1) /*!< WWDT_T::STS: RF Position */ |
AnnaBridge | 174:b96e65c34a4d | 11553 | #define WWDT_STS_RF_Msk (0x1ul << WWDT_STS_RF_Pos) /*!< WWDT_T::STS: RF Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11554 | |
AnnaBridge | 174:b96e65c34a4d | 11555 | #define WWDT_VAL_WWDTVAL_Pos (0) /*!< WWDT_T::VAL: WWDTVAL Position */ |
AnnaBridge | 174:b96e65c34a4d | 11556 | #define WWDT_VAL_WWDTVAL_Msk (0x3ful << WWDT_VAL_WWDTVAL_Pos) /*!< WWDT_T::VAL: WWDTVAL Mask */ |
AnnaBridge | 174:b96e65c34a4d | 11557 | |
AnnaBridge | 174:b96e65c34a4d | 11558 | /**@}*/ /* WWDT_CONST */ |
AnnaBridge | 174:b96e65c34a4d | 11559 | /**@}*/ /* end of WWDT register group */ |
AnnaBridge | 174:b96e65c34a4d | 11560 | |
AnnaBridge | 174:b96e65c34a4d | 11561 | |
AnnaBridge | 174:b96e65c34a4d | 11562 | |
AnnaBridge | 174:b96e65c34a4d | 11563 | |
AnnaBridge | 174:b96e65c34a4d | 11564 | #if defined ( __CC_ARM ) |
AnnaBridge | 174:b96e65c34a4d | 11565 | #pragma no_anon_unions |
AnnaBridge | 174:b96e65c34a4d | 11566 | #endif |
AnnaBridge | 174:b96e65c34a4d | 11567 | |
AnnaBridge | 174:b96e65c34a4d | 11568 | /** @addtogroup NANO100_PERIPHERAL_MEM_MAP NANO100 Peripheral Memory Map |
AnnaBridge | 174:b96e65c34a4d | 11569 | Memory Mapped Structure for NANO100 Series Peripheral |
AnnaBridge | 174:b96e65c34a4d | 11570 | @{ |
AnnaBridge | 174:b96e65c34a4d | 11571 | */ |
AnnaBridge | 174:b96e65c34a4d | 11572 | /*!<Peripheral and SRAM base address */ |
AnnaBridge | 174:b96e65c34a4d | 11573 | #define FLASH_BASE ((uint32_t)0x00000000) ///< Flash base address |
AnnaBridge | 174:b96e65c34a4d | 11574 | #define SRAM_BASE ((uint32_t)0x20000000) ///< SRAM base address |
AnnaBridge | 174:b96e65c34a4d | 11575 | #define APB1PERIPH_BASE ((uint32_t)0x40000000) ///< APB1 base address |
AnnaBridge | 174:b96e65c34a4d | 11576 | #define APB2PERIPH_BASE ((uint32_t)0x40100000) ///< APB2 base address |
AnnaBridge | 174:b96e65c34a4d | 11577 | #define AHBPERIPH_BASE ((uint32_t)0x50000000) ///< AHB base address |
AnnaBridge | 174:b96e65c34a4d | 11578 | |
AnnaBridge | 174:b96e65c34a4d | 11579 | /*!<Peripheral memory map */ |
AnnaBridge | 174:b96e65c34a4d | 11580 | |
AnnaBridge | 174:b96e65c34a4d | 11581 | #define WDT_BASE (APB1PERIPH_BASE + 0x04000) ///< WDT register base address |
AnnaBridge | 174:b96e65c34a4d | 11582 | #define WWDT_BASE (APB1PERIPH_BASE + 0x04100) ///< WWDT register base address |
AnnaBridge | 174:b96e65c34a4d | 11583 | #define RTC_BASE (APB1PERIPH_BASE + 0x08000) ///< RTC register base address |
AnnaBridge | 174:b96e65c34a4d | 11584 | #define TIMER0_BASE (APB1PERIPH_BASE + 0x10000) ///< TIMER0 register base address |
AnnaBridge | 174:b96e65c34a4d | 11585 | #define TIMER1_BASE (APB1PERIPH_BASE + 0x10100) ///< TIMER1 register base address |
AnnaBridge | 174:b96e65c34a4d | 11586 | #define I2C0_BASE (APB1PERIPH_BASE + 0x20000) ///< I2C0 register base address |
AnnaBridge | 174:b96e65c34a4d | 11587 | #define SPI0_BASE (APB1PERIPH_BASE + 0x30000) ///< SPI0 register base address |
AnnaBridge | 174:b96e65c34a4d | 11588 | #define PWM0_BASE (APB1PERIPH_BASE + 0x40000) ///< PWM0 register base address |
AnnaBridge | 174:b96e65c34a4d | 11589 | #define UART0_BASE (APB1PERIPH_BASE + 0x50000) ///< UART0 register base address |
AnnaBridge | 174:b96e65c34a4d | 11590 | #define DAC_BASE (APB1PERIPH_BASE + 0xA0000) ///< DAC register base address |
AnnaBridge | 174:b96e65c34a4d | 11591 | #define LCD_BASE (APB1PERIPH_BASE + 0xB0000) ///< LCD register base address |
AnnaBridge | 174:b96e65c34a4d | 11592 | #define SPI2_BASE (APB1PERIPH_BASE + 0xD0000) ///< SPI2 register base address |
AnnaBridge | 174:b96e65c34a4d | 11593 | #define ADC_BASE (APB1PERIPH_BASE + 0xE0000) ///< ADC register base address |
AnnaBridge | 174:b96e65c34a4d | 11594 | |
AnnaBridge | 174:b96e65c34a4d | 11595 | #define TIMER2_BASE (APB2PERIPH_BASE + 0x10000) ///< TIMER2 register base address |
AnnaBridge | 174:b96e65c34a4d | 11596 | #define TIMER3_BASE (APB2PERIPH_BASE + 0x10100) ///< TIMER3 register base address |
AnnaBridge | 174:b96e65c34a4d | 11597 | #define SHADOW_BASE (APB1PERIPH_BASE + 0x10200) ///< GPIO shadow register base address |
AnnaBridge | 174:b96e65c34a4d | 11598 | #define I2C1_BASE (APB2PERIPH_BASE + 0x20000) ///< I2C1 register base address |
AnnaBridge | 174:b96e65c34a4d | 11599 | #define SPI1_BASE (APB2PERIPH_BASE + 0x30000) ///< SPI1 register base address |
AnnaBridge | 174:b96e65c34a4d | 11600 | #define PWM1_BASE (APB2PERIPH_BASE + 0x40000) ///< PWM1 register base address |
AnnaBridge | 174:b96e65c34a4d | 11601 | #define UART1_BASE (APB2PERIPH_BASE + 0x50000) ///< UART1 register base address |
AnnaBridge | 174:b96e65c34a4d | 11602 | #define USBD_BASE (APB1PERIPH_BASE + 0x60000) ///< USBD register base address |
AnnaBridge | 174:b96e65c34a4d | 11603 | #define SC0_BASE (APB2PERIPH_BASE + 0x90000) ///< SC0 register base address |
AnnaBridge | 174:b96e65c34a4d | 11604 | #define I2S_BASE (APB2PERIPH_BASE + 0xA0000) ///< I2S register base address |
AnnaBridge | 174:b96e65c34a4d | 11605 | #define SC1_BASE (APB2PERIPH_BASE + 0xB0000) ///< SC1 register base address |
AnnaBridge | 174:b96e65c34a4d | 11606 | #define SC2_BASE (APB2PERIPH_BASE + 0xC0000) ///< SC2 register base address |
AnnaBridge | 174:b96e65c34a4d | 11607 | |
AnnaBridge | 174:b96e65c34a4d | 11608 | #define SYS_BASE (AHBPERIPH_BASE + 0x00000) ///< SYS register base address |
AnnaBridge | 174:b96e65c34a4d | 11609 | #define CLK_BASE (AHBPERIPH_BASE + 0x00200) ///< CLK register base address |
AnnaBridge | 174:b96e65c34a4d | 11610 | #define INT_BASE (AHBPERIPH_BASE + 0x00300) ///< INT register base address |
AnnaBridge | 174:b96e65c34a4d | 11611 | #define GPIOA_BASE (AHBPERIPH_BASE + 0x04000) ///< GPIO port A register base address |
AnnaBridge | 174:b96e65c34a4d | 11612 | #define GPIOB_BASE (AHBPERIPH_BASE + 0x04040) ///< GPIO port B register base address |
AnnaBridge | 174:b96e65c34a4d | 11613 | #define GPIOC_BASE (AHBPERIPH_BASE + 0x04080) ///< GPIO port C register base address |
AnnaBridge | 174:b96e65c34a4d | 11614 | #define GPIOD_BASE (AHBPERIPH_BASE + 0x040C0) ///< GPIO port D register base address |
AnnaBridge | 174:b96e65c34a4d | 11615 | #define GPIOE_BASE (AHBPERIPH_BASE + 0x04100) ///< GPIO port E register base address |
AnnaBridge | 174:b96e65c34a4d | 11616 | #define GPIOF_BASE (AHBPERIPH_BASE + 0x04140) ///< GPIO port F register base address |
AnnaBridge | 174:b96e65c34a4d | 11617 | #define GPIODBNCE_BASE (AHBPERIPH_BASE + 0x04180) ///< GPIO debounce register base address |
AnnaBridge | 174:b96e65c34a4d | 11618 | #define GPIO_PIN_DATA_BASE (AHBPERIPH_BASE + 0x04200) ///< GPIO bit access register base address |
AnnaBridge | 174:b96e65c34a4d | 11619 | #define VDMA_BASE (AHBPERIPH_BASE + 0x08000) ///< VDMA register base address |
AnnaBridge | 174:b96e65c34a4d | 11620 | #define PDMA1_BASE (AHBPERIPH_BASE + 0x08100) ///< PDMA1 register base address |
AnnaBridge | 174:b96e65c34a4d | 11621 | #define PDMA2_BASE (AHBPERIPH_BASE + 0x08200) ///< PDMA2 register base address |
AnnaBridge | 174:b96e65c34a4d | 11622 | #define PDMA3_BASE (AHBPERIPH_BASE + 0x08300) ///< PDMA3 register base address |
AnnaBridge | 174:b96e65c34a4d | 11623 | #define PDMA4_BASE (AHBPERIPH_BASE + 0x08400) ///< PDMA4 register base address |
AnnaBridge | 174:b96e65c34a4d | 11624 | #define PDMA5_BASE (AHBPERIPH_BASE + 0x08500) ///< PDMA5 register base address |
AnnaBridge | 174:b96e65c34a4d | 11625 | #define PDMA6_BASE (AHBPERIPH_BASE + 0x08600) ///< PDMA6 register base address |
AnnaBridge | 174:b96e65c34a4d | 11626 | #define PDMACRC_BASE (AHBPERIPH_BASE + 0x08E00) ///< PDMA global control register base address |
AnnaBridge | 174:b96e65c34a4d | 11627 | #define PDMAGCR_BASE (AHBPERIPH_BASE + 0x08F00) ///< PDMA CRC register base address |
AnnaBridge | 174:b96e65c34a4d | 11628 | #define FMC_BASE (AHBPERIPH_BASE + 0x0C000) ///< FMC register base address |
AnnaBridge | 174:b96e65c34a4d | 11629 | #define EBI_BASE (AHBPERIPH_BASE + 0x10000) ///< EBI register base address |
AnnaBridge | 174:b96e65c34a4d | 11630 | |
AnnaBridge | 174:b96e65c34a4d | 11631 | /*@}*/ /* end of group NANO100_PERIPHERAL_MEM_MAP */ |
AnnaBridge | 174:b96e65c34a4d | 11632 | |
AnnaBridge | 174:b96e65c34a4d | 11633 | |
AnnaBridge | 174:b96e65c34a4d | 11634 | /** @addtogroup NANO100_PERIPHERAL_DECLARATION NANO100 Peripheral Declaration |
AnnaBridge | 174:b96e65c34a4d | 11635 | The Declaration of NANO100 Series Peripheral |
AnnaBridge | 174:b96e65c34a4d | 11636 | @{ |
AnnaBridge | 174:b96e65c34a4d | 11637 | */ |
AnnaBridge | 174:b96e65c34a4d | 11638 | #define WDT ((WDT_T *) WDT_BASE) ///< Pointer to WDT register structure |
AnnaBridge | 174:b96e65c34a4d | 11639 | #define WWDT ((WWDT_T *) WWDT_BASE) ///< Pointer to WWDT register structure |
AnnaBridge | 174:b96e65c34a4d | 11640 | #define RTC ((RTC_T *) RTC_BASE) ///< Pointer to RTC register structure |
AnnaBridge | 174:b96e65c34a4d | 11641 | #define TIMER0 ((TIMER_T *) TIMER0_BASE) ///< Pointer to TIMER0 register structure |
AnnaBridge | 174:b96e65c34a4d | 11642 | #define TIMER1 ((TIMER_T *) TIMER1_BASE) ///< Pointer to TIMER1 register structure |
AnnaBridge | 174:b96e65c34a4d | 11643 | #define TIMER2 ((TIMER_T *) TIMER2_BASE) ///< Pointer to TIMER2 register structure |
AnnaBridge | 174:b96e65c34a4d | 11644 | #define TIMER3 ((TIMER_T *) TIMER3_BASE) ///< Pointer to TIMER3 register structure |
AnnaBridge | 174:b96e65c34a4d | 11645 | #define SHADOW ((SHADOW_T *) SHADOW_BASE) ///< Pointer to GPIO shadow register structure |
AnnaBridge | 174:b96e65c34a4d | 11646 | #define I2C0 ((I2C_T *) I2C0_BASE) ///< Pointer to I2C0 register structure |
AnnaBridge | 174:b96e65c34a4d | 11647 | #define I2C1 ((I2C_T *) I2C1_BASE) ///< Pointer to I2C1 register structure |
AnnaBridge | 174:b96e65c34a4d | 11648 | #define SPI0 ((SPI_T *) SPI0_BASE) ///< Pointer to SPI0 register structure |
AnnaBridge | 174:b96e65c34a4d | 11649 | #define SPI1 ((SPI_T *) SPI1_BASE) ///< Pointer to SPI1 register structure |
AnnaBridge | 174:b96e65c34a4d | 11650 | #define SPI2 ((SPI_T *) SPI2_BASE) ///< Pointer to SPI2 register structure |
AnnaBridge | 174:b96e65c34a4d | 11651 | #define PWM0 ((PWM_T *) PWM0_BASE) ///< Pointer to PWM0 register structure |
AnnaBridge | 174:b96e65c34a4d | 11652 | #define PWM1 ((PWM_T *) PWM1_BASE) ///< Pointer to PWM1 register structure |
AnnaBridge | 174:b96e65c34a4d | 11653 | #define UART0 ((UART_T *) UART0_BASE) ///< Pointer to UART0 register structure |
AnnaBridge | 174:b96e65c34a4d | 11654 | #define UART1 ((UART_T *) UART1_BASE) ///< Pointer to UART1 register structure |
AnnaBridge | 174:b96e65c34a4d | 11655 | #define LCD ((LCD_T *) LCD_BASE) ///< Pointer to LCD register structure |
AnnaBridge | 174:b96e65c34a4d | 11656 | #define ADC ((ADC_T *) ADC_BASE) ///< Pointer to ADC register structure |
AnnaBridge | 174:b96e65c34a4d | 11657 | #define SC0 ((SC_T *) SC0_BASE) ///< Pointer to SC0 register structure |
AnnaBridge | 174:b96e65c34a4d | 11658 | #define SC1 ((SC_T *) SC1_BASE) ///< Pointer to SC1 register structure |
AnnaBridge | 174:b96e65c34a4d | 11659 | #define SC2 ((SC_T *) SC2_BASE) ///< Pointer to SC2 register structure |
AnnaBridge | 174:b96e65c34a4d | 11660 | #define USBD ((USBD_T *) USBD_BASE) ///< Pointer to USBD register structure |
AnnaBridge | 174:b96e65c34a4d | 11661 | #define I2S ((I2S_T *) I2S_BASE) ///< Pointer to I2S register structure |
AnnaBridge | 174:b96e65c34a4d | 11662 | #define DAC ((DAC_T *) DAC_BASE) ///< Pointer to DAC register structure |
AnnaBridge | 174:b96e65c34a4d | 11663 | |
AnnaBridge | 174:b96e65c34a4d | 11664 | #define SYS ((SYS_T *) SYS_BASE) ///< Pointer to SYS register structure |
AnnaBridge | 174:b96e65c34a4d | 11665 | #define CLK ((CLK_T *) CLK_BASE) ///< Pointer to CLK register structure |
AnnaBridge | 174:b96e65c34a4d | 11666 | #define INTR ((INTR_T *) INTID_BASE) ///< Pointer to INTR register structure |
AnnaBridge | 174:b96e65c34a4d | 11667 | #define PA ((GPIO_T *) GPIOA_BASE) ///< Pointer to GPIO port A register structure |
AnnaBridge | 174:b96e65c34a4d | 11668 | #define PB ((GPIO_T *) GPIOB_BASE) ///< Pointer to GPIO port B register structure |
AnnaBridge | 174:b96e65c34a4d | 11669 | #define PC ((GPIO_T *) GPIOC_BASE) ///< Pointer to GPIO port C register structure |
AnnaBridge | 174:b96e65c34a4d | 11670 | #define PD ((GPIO_T *) GPIOD_BASE) ///< Pointer to GPIO port D register structure |
AnnaBridge | 174:b96e65c34a4d | 11671 | #define PE ((GPIO_T *) GPIOE_BASE) ///< Pointer to GPIO port E register structure |
AnnaBridge | 174:b96e65c34a4d | 11672 | #define PF ((GPIO_T *) GPIOF_BASE) ///< Pointer to GPIO port F register structure |
AnnaBridge | 174:b96e65c34a4d | 11673 | #define GPIO ((GP_DB_T *) GPIODBNCE_BASE) ///< Pointer to GPIO debounce register structure |
AnnaBridge | 174:b96e65c34a4d | 11674 | #define VDMA ((VDMA_T *) VDMA_BASE) ///< Pointer to VDMA register structure |
AnnaBridge | 174:b96e65c34a4d | 11675 | #define PDMA1 ((PDMA_T *) PDMA1_BASE) ///< Pointer to PDMA1 register structure |
AnnaBridge | 174:b96e65c34a4d | 11676 | #define PDMA2 ((PDMA_T *) PDMA2_BASE) ///< Pointer to PDMA2 register structure |
AnnaBridge | 174:b96e65c34a4d | 11677 | #define PDMA3 ((PDMA_T *) PDMA3_BASE) ///< Pointer to PDMA3 register structure |
AnnaBridge | 174:b96e65c34a4d | 11678 | #define PDMA4 ((PDMA_T *) PDMA4_BASE) ///< Pointer to PDMA4 register structure |
AnnaBridge | 174:b96e65c34a4d | 11679 | #define PDMA5 ((PDMA_T *) PDMA5_BASE) ///< Pointer to PDMA5 register structure |
AnnaBridge | 174:b96e65c34a4d | 11680 | #define PDMA6 ((PDMA_T *) PDMA6_BASE) ///< Pointer to PDMA6 register structure |
AnnaBridge | 174:b96e65c34a4d | 11681 | #define PDMACRC ((DMA_CRC_T *) PDMACRC_BASE) ///< Pointer to PDMA CRC register structure |
AnnaBridge | 174:b96e65c34a4d | 11682 | #define PDMAGCR ((DMA_GCR_T *) PDMAGCR_BASE) ///< Pointer to PDMA global control register structure |
AnnaBridge | 174:b96e65c34a4d | 11683 | #define FMC ((FMC_T *) FMC_BASE) ///< Pointer to FMC register structure |
AnnaBridge | 174:b96e65c34a4d | 11684 | #define EBI ((EBI_T *) EBI_BASE) ///< Pointer to EBI register structure |
AnnaBridge | 174:b96e65c34a4d | 11685 | |
AnnaBridge | 174:b96e65c34a4d | 11686 | /*@}*/ /* end of group NANO100_PERIPHERAL_DECLARATION */ |
AnnaBridge | 174:b96e65c34a4d | 11687 | |
AnnaBridge | 174:b96e65c34a4d | 11688 | /*@}*/ /* end of group NANO100_Peripherals */ |
AnnaBridge | 174:b96e65c34a4d | 11689 | |
AnnaBridge | 174:b96e65c34a4d | 11690 | /** @addtogroup NANO100_IO_ROUTINE NANO100 I/O Routines |
AnnaBridge | 174:b96e65c34a4d | 11691 | The Declaration of NANO100 I/O Routines |
AnnaBridge | 174:b96e65c34a4d | 11692 | @{ |
AnnaBridge | 174:b96e65c34a4d | 11693 | */ |
AnnaBridge | 174:b96e65c34a4d | 11694 | |
AnnaBridge | 174:b96e65c34a4d | 11695 | typedef volatile unsigned char vu8; ///< Define 8-bit unsigned volatile data type |
AnnaBridge | 174:b96e65c34a4d | 11696 | typedef volatile unsigned short vu16; ///< Define 16-bit unsigned volatile data type |
AnnaBridge | 174:b96e65c34a4d | 11697 | typedef volatile unsigned long vu32; ///< Define 32-bit unsigned volatile data type |
AnnaBridge | 174:b96e65c34a4d | 11698 | |
AnnaBridge | 174:b96e65c34a4d | 11699 | /** |
AnnaBridge | 174:b96e65c34a4d | 11700 | * @brief Get a 8-bit unsigned value from specified address |
AnnaBridge | 174:b96e65c34a4d | 11701 | * @param[in] addr Address to get 8-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11702 | * @return 8-bit unsigned value stored in specified address |
AnnaBridge | 174:b96e65c34a4d | 11703 | */ |
AnnaBridge | 174:b96e65c34a4d | 11704 | #define M8(addr) (*((vu8 *) (addr))) |
AnnaBridge | 174:b96e65c34a4d | 11705 | |
AnnaBridge | 174:b96e65c34a4d | 11706 | /** |
AnnaBridge | 174:b96e65c34a4d | 11707 | * @brief Get a 16-bit unsigned value from specified address |
AnnaBridge | 174:b96e65c34a4d | 11708 | * @param[in] addr Address to get 16-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11709 | * @return 16-bit unsigned value stored in specified address |
AnnaBridge | 174:b96e65c34a4d | 11710 | * @note The input address must be 16-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11711 | */ |
AnnaBridge | 174:b96e65c34a4d | 11712 | #define M16(addr) (*((vu16 *) (addr))) |
AnnaBridge | 174:b96e65c34a4d | 11713 | |
AnnaBridge | 174:b96e65c34a4d | 11714 | /** |
AnnaBridge | 174:b96e65c34a4d | 11715 | * @brief Get a 32-bit unsigned value from specified address |
AnnaBridge | 174:b96e65c34a4d | 11716 | * @param[in] addr Address to get 32-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11717 | * @return 32-bit unsigned value stored in specified address |
AnnaBridge | 174:b96e65c34a4d | 11718 | * @note The input address must be 32-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11719 | */ |
AnnaBridge | 174:b96e65c34a4d | 11720 | #define M32(addr) (*((vu32 *) (addr))) |
AnnaBridge | 174:b96e65c34a4d | 11721 | |
AnnaBridge | 174:b96e65c34a4d | 11722 | /** |
AnnaBridge | 174:b96e65c34a4d | 11723 | * @brief Set a 32-bit unsigned value to specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11724 | * @param[in] port Port address to set 32-bit data |
AnnaBridge | 174:b96e65c34a4d | 11725 | * @param[in] value Value to write to I/O port |
AnnaBridge | 174:b96e65c34a4d | 11726 | * @return None |
AnnaBridge | 174:b96e65c34a4d | 11727 | * @note The output port must be 32-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11728 | */ |
AnnaBridge | 174:b96e65c34a4d | 11729 | #define outpw(port,value) *((volatile unsigned int *)(port)) = value |
AnnaBridge | 174:b96e65c34a4d | 11730 | |
AnnaBridge | 174:b96e65c34a4d | 11731 | /** |
AnnaBridge | 174:b96e65c34a4d | 11732 | * @brief Get a 32-bit unsigned value from specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11733 | * @param[in] port Port address to get 32-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11734 | * @return 32-bit unsigned value stored in specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11735 | * @note The input port must be 32-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11736 | */ |
AnnaBridge | 174:b96e65c34a4d | 11737 | #define inpw(port) (*((volatile unsigned int *)(port))) |
AnnaBridge | 174:b96e65c34a4d | 11738 | |
AnnaBridge | 174:b96e65c34a4d | 11739 | /** |
AnnaBridge | 174:b96e65c34a4d | 11740 | * @brief Set a 16-bit unsigned value to specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11741 | * @param[in] port Port address to set 16-bit data |
AnnaBridge | 174:b96e65c34a4d | 11742 | * @param[in] value Value to write to I/O port |
AnnaBridge | 174:b96e65c34a4d | 11743 | * @return None |
AnnaBridge | 174:b96e65c34a4d | 11744 | * @note The output port must be 16-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11745 | */ |
AnnaBridge | 174:b96e65c34a4d | 11746 | #define outps(port,value) *((volatile unsigned short *)(port)) = value |
AnnaBridge | 174:b96e65c34a4d | 11747 | |
AnnaBridge | 174:b96e65c34a4d | 11748 | /** |
AnnaBridge | 174:b96e65c34a4d | 11749 | * @brief Get a 16-bit unsigned value from specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11750 | * @param[in] port Port address to get 16-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11751 | * @return 16-bit unsigned value stored in specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11752 | * @note The input port must be 16-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11753 | */ |
AnnaBridge | 174:b96e65c34a4d | 11754 | #define inps(port) (*((volatile unsigned short *)(port))) |
AnnaBridge | 174:b96e65c34a4d | 11755 | |
AnnaBridge | 174:b96e65c34a4d | 11756 | /** |
AnnaBridge | 174:b96e65c34a4d | 11757 | * @brief Set a 8-bit unsigned value to specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11758 | * @param[in] port Port address to set 8-bit data |
AnnaBridge | 174:b96e65c34a4d | 11759 | * @param[in] value Value to write to I/O port |
AnnaBridge | 174:b96e65c34a4d | 11760 | * @return None |
AnnaBridge | 174:b96e65c34a4d | 11761 | */ |
AnnaBridge | 174:b96e65c34a4d | 11762 | #define outpb(port,value) *((volatile unsigned char *)(port)) = value |
AnnaBridge | 174:b96e65c34a4d | 11763 | |
AnnaBridge | 174:b96e65c34a4d | 11764 | /** |
AnnaBridge | 174:b96e65c34a4d | 11765 | * @brief Get a 8-bit unsigned value from specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11766 | * @param[in] port Port address to get 8-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11767 | * @return 8-bit unsigned value stored in specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11768 | */ |
AnnaBridge | 174:b96e65c34a4d | 11769 | #define inpb(port) (*((volatile unsigned char *)(port))) |
AnnaBridge | 174:b96e65c34a4d | 11770 | |
AnnaBridge | 174:b96e65c34a4d | 11771 | /** |
AnnaBridge | 174:b96e65c34a4d | 11772 | * @brief Set a 32-bit unsigned value to specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11773 | * @param[in] port Port address to set 32-bit data |
AnnaBridge | 174:b96e65c34a4d | 11774 | * @param[in] value Value to write to I/O port |
AnnaBridge | 174:b96e65c34a4d | 11775 | * @return None |
AnnaBridge | 174:b96e65c34a4d | 11776 | * @note The output port must be 32-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11777 | */ |
AnnaBridge | 174:b96e65c34a4d | 11778 | #define outp32(port,value) *((volatile unsigned int *)(port)) = value |
AnnaBridge | 174:b96e65c34a4d | 11779 | |
AnnaBridge | 174:b96e65c34a4d | 11780 | /** |
AnnaBridge | 174:b96e65c34a4d | 11781 | * @brief Get a 32-bit unsigned value from specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11782 | * @param[in] port Port address to get 32-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11783 | * @return 32-bit unsigned value stored in specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11784 | * @note The input port must be 32-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11785 | */ |
AnnaBridge | 174:b96e65c34a4d | 11786 | #define inp32(port) (*((volatile unsigned int *)(port))) |
AnnaBridge | 174:b96e65c34a4d | 11787 | |
AnnaBridge | 174:b96e65c34a4d | 11788 | /** |
AnnaBridge | 174:b96e65c34a4d | 11789 | * @brief Set a 16-bit unsigned value to specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11790 | * @param[in] port Port address to set 16-bit data |
AnnaBridge | 174:b96e65c34a4d | 11791 | * @param[in] value Value to write to I/O port |
AnnaBridge | 174:b96e65c34a4d | 11792 | * @return None |
AnnaBridge | 174:b96e65c34a4d | 11793 | * @note The output port must be 16-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11794 | */ |
AnnaBridge | 174:b96e65c34a4d | 11795 | #define outp16(port,value) *((volatile unsigned short *)(port)) = value |
AnnaBridge | 174:b96e65c34a4d | 11796 | |
AnnaBridge | 174:b96e65c34a4d | 11797 | /** |
AnnaBridge | 174:b96e65c34a4d | 11798 | * @brief Get a 16-bit unsigned value from specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11799 | * @param[in] port Port address to get 16-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11800 | * @return 16-bit unsigned value stored in specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11801 | * @note The input port must be 16-bit aligned |
AnnaBridge | 174:b96e65c34a4d | 11802 | */ |
AnnaBridge | 174:b96e65c34a4d | 11803 | #define inp16(port) (*((volatile unsigned short *)(port))) |
AnnaBridge | 174:b96e65c34a4d | 11804 | |
AnnaBridge | 174:b96e65c34a4d | 11805 | /** |
AnnaBridge | 174:b96e65c34a4d | 11806 | * @brief Set a 8-bit unsigned value to specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11807 | * @param[in] port Port address to set 8-bit data |
AnnaBridge | 174:b96e65c34a4d | 11808 | * @param[in] value Value to write to I/O port |
AnnaBridge | 174:b96e65c34a4d | 11809 | * @return None |
AnnaBridge | 174:b96e65c34a4d | 11810 | */ |
AnnaBridge | 174:b96e65c34a4d | 11811 | #define outp8(port,value) *((volatile unsigned char *)(port)) = value |
AnnaBridge | 174:b96e65c34a4d | 11812 | |
AnnaBridge | 174:b96e65c34a4d | 11813 | /** |
AnnaBridge | 174:b96e65c34a4d | 11814 | * @brief Get a 8-bit unsigned value from specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11815 | * @param[in] port Port address to get 8-bit data from |
AnnaBridge | 174:b96e65c34a4d | 11816 | * @return 8-bit unsigned value stored in specified I/O port |
AnnaBridge | 174:b96e65c34a4d | 11817 | */ |
AnnaBridge | 174:b96e65c34a4d | 11818 | #define inp8(port) (*((volatile unsigned char *)(port))) |
AnnaBridge | 174:b96e65c34a4d | 11819 | |
AnnaBridge | 174:b96e65c34a4d | 11820 | /*@}*/ /* end of group NANO100_IO_ROUTINE */ |
AnnaBridge | 174:b96e65c34a4d | 11821 | |
AnnaBridge | 174:b96e65c34a4d | 11822 | /******************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 11823 | /* Legacy Constants */ |
AnnaBridge | 174:b96e65c34a4d | 11824 | /******************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 11825 | /** @addtogroup NANO100_legacy_Constants NANO100 Legacy Constants |
AnnaBridge | 174:b96e65c34a4d | 11826 | NANO100 Legacy Constants |
AnnaBridge | 174:b96e65c34a4d | 11827 | @{ |
AnnaBridge | 174:b96e65c34a4d | 11828 | */ |
AnnaBridge | 174:b96e65c34a4d | 11829 | |
AnnaBridge | 174:b96e65c34a4d | 11830 | #ifndef NULL |
AnnaBridge | 174:b96e65c34a4d | 11831 | #define NULL (0) ///< NULL pointer |
AnnaBridge | 174:b96e65c34a4d | 11832 | #endif |
AnnaBridge | 174:b96e65c34a4d | 11833 | |
AnnaBridge | 174:b96e65c34a4d | 11834 | #define TRUE (1) ///< Boolean true, define to use in API parameters or return value |
AnnaBridge | 174:b96e65c34a4d | 11835 | #define FALSE (0) ///< Boolean false, define to use in API parameters or return value |
AnnaBridge | 174:b96e65c34a4d | 11836 | |
AnnaBridge | 174:b96e65c34a4d | 11837 | #define ENABLE (1) ///< Enable, define to use in API parameters |
AnnaBridge | 174:b96e65c34a4d | 11838 | #define DISABLE (0) ///< Disable, define to use in API parameters |
AnnaBridge | 174:b96e65c34a4d | 11839 | |
AnnaBridge | 174:b96e65c34a4d | 11840 | /* Define one bit mask */ |
AnnaBridge | 174:b96e65c34a4d | 11841 | #define BIT0 (0x00000001) ///< Bit 0 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11842 | #define BIT1 (0x00000002) ///< Bit 1 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11843 | #define BIT2 (0x00000004) ///< Bit 2 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11844 | #define BIT3 (0x00000008) ///< Bit 3 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11845 | #define BIT4 (0x00000010) ///< Bit 4 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11846 | #define BIT5 (0x00000020) ///< Bit 5 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11847 | #define BIT6 (0x00000040) ///< Bit 6 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11848 | #define BIT7 (0x00000080) ///< Bit 7 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11849 | #define BIT8 (0x00000100) ///< Bit 8 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11850 | #define BIT9 (0x00000200) ///< Bit 9 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11851 | #define BIT10 (0x00000400) ///< Bit 10 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11852 | #define BIT11 (0x00000800) ///< Bit 11 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11853 | #define BIT12 (0x00001000) ///< Bit 12 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11854 | #define BIT13 (0x00002000) ///< Bit 13 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11855 | #define BIT14 (0x00004000) ///< Bit 14 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11856 | #define BIT15 (0x00008000) ///< Bit 15 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11857 | #define BIT16 (0x00010000) ///< Bit 16 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11858 | #define BIT17 (0x00020000) ///< Bit 17 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11859 | #define BIT18 (0x00040000) ///< Bit 18 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11860 | #define BIT19 (0x00080000) ///< Bit 19 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11861 | #define BIT20 (0x00100000) ///< Bit 20 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11862 | #define BIT21 (0x00200000) ///< Bit 21 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11863 | #define BIT22 (0x00400000) ///< Bit 22 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11864 | #define BIT23 (0x00800000) ///< Bit 23 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11865 | #define BIT24 (0x01000000) ///< Bit 24 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11866 | #define BIT25 (0x02000000) ///< Bit 25 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11867 | #define BIT26 (0x04000000) ///< Bit 26 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11868 | #define BIT27 (0x08000000) ///< Bit 27 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11869 | #define BIT28 (0x10000000) ///< Bit 28 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11870 | #define BIT29 (0x20000000) ///< Bit 29 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11871 | #define BIT30 (0x40000000) ///< Bit 30 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11872 | #define BIT31 (0x80000000) ///< Bit 31 mask of an 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11873 | |
AnnaBridge | 174:b96e65c34a4d | 11874 | /* Byte Mask Definitions */ |
AnnaBridge | 174:b96e65c34a4d | 11875 | #define BYTE0_Msk (0x000000FF) ///< Mask to get bit0~bit7 from a 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11876 | #define BYTE1_Msk (0x0000FF00) ///< Mask to get bit8~bit15 from a 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11877 | #define BYTE2_Msk (0x00FF0000) ///< Mask to get bit16~bit23 from a 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11878 | #define BYTE3_Msk (0xFF000000) ///< Mask to get bit24~bit31 from a 32 bit integer |
AnnaBridge | 174:b96e65c34a4d | 11879 | |
AnnaBridge | 174:b96e65c34a4d | 11880 | #define GET_BYTE0(u32Param) ((u32Param & BYTE0_Msk) ) /*!< Extract Byte 0 (Bit 0~ 7) from parameter u32Param */ |
AnnaBridge | 174:b96e65c34a4d | 11881 | #define GET_BYTE1(u32Param) ((u32Param & BYTE1_Msk) >> 8) /*!< Extract Byte 1 (Bit 8~15) from parameter u32Param */ |
AnnaBridge | 174:b96e65c34a4d | 11882 | #define GET_BYTE2(u32Param) ((u32Param & BYTE2_Msk) >> 16) /*!< Extract Byte 2 (Bit 16~23) from parameter u32Param */ |
AnnaBridge | 174:b96e65c34a4d | 11883 | #define GET_BYTE3(u32Param) ((u32Param & BYTE3_Msk) >> 24) /*!< Extract Byte 3 (Bit 24~31) from parameter u32Param */ |
AnnaBridge | 174:b96e65c34a4d | 11884 | |
AnnaBridge | 174:b96e65c34a4d | 11885 | /*@}*/ /* end of group NANO100_legacy_Constants */ |
AnnaBridge | 174:b96e65c34a4d | 11886 | |
AnnaBridge | 174:b96e65c34a4d | 11887 | /*@}*/ /* end of group NANO100_Definitions */ |
AnnaBridge | 174:b96e65c34a4d | 11888 | |
AnnaBridge | 174:b96e65c34a4d | 11889 | #ifdef __cplusplus |
AnnaBridge | 174:b96e65c34a4d | 11890 | } |
AnnaBridge | 174:b96e65c34a4d | 11891 | #endif |
AnnaBridge | 174:b96e65c34a4d | 11892 | |
AnnaBridge | 174:b96e65c34a4d | 11893 | |
AnnaBridge | 174:b96e65c34a4d | 11894 | /******************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 11895 | /* Peripheral header files */ |
AnnaBridge | 174:b96e65c34a4d | 11896 | /******************************************************************************/ |
AnnaBridge | 174:b96e65c34a4d | 11897 | #include "nano100_sys.h" |
AnnaBridge | 174:b96e65c34a4d | 11898 | #include "nano100_clk.h" |
AnnaBridge | 174:b96e65c34a4d | 11899 | #include "nano100_adc.h" |
AnnaBridge | 174:b96e65c34a4d | 11900 | #include "nano100_dac.h" |
AnnaBridge | 174:b96e65c34a4d | 11901 | #include "nano100_fmc.h" |
AnnaBridge | 174:b96e65c34a4d | 11902 | #include "nano100_ebi.h" |
AnnaBridge | 174:b96e65c34a4d | 11903 | #include "nano100_gpio.h" |
AnnaBridge | 174:b96e65c34a4d | 11904 | #include "nano100_i2c.h" |
AnnaBridge | 174:b96e65c34a4d | 11905 | #include "nano100_crc.h" |
AnnaBridge | 174:b96e65c34a4d | 11906 | #include "nano100_pdma.h" |
AnnaBridge | 174:b96e65c34a4d | 11907 | #include "nano100_pwm.h" |
AnnaBridge | 174:b96e65c34a4d | 11908 | #include "nano100_rtc.h" |
AnnaBridge | 174:b96e65c34a4d | 11909 | #include "nano100_sc.h" |
AnnaBridge | 174:b96e65c34a4d | 11910 | #include "nano100_scuart.h" |
AnnaBridge | 174:b96e65c34a4d | 11911 | #include "nano100_spi.h" |
AnnaBridge | 174:b96e65c34a4d | 11912 | #include "nano100_timer.h" |
AnnaBridge | 174:b96e65c34a4d | 11913 | #include "nano100_uart.h" |
AnnaBridge | 174:b96e65c34a4d | 11914 | #include "nano100_usbd.h" |
AnnaBridge | 174:b96e65c34a4d | 11915 | #include "nano100_wdt.h" |
AnnaBridge | 174:b96e65c34a4d | 11916 | #include "nano100_wwdt.h" |
AnnaBridge | 174:b96e65c34a4d | 11917 | #include "nano100_i2s.h" |
AnnaBridge | 174:b96e65c34a4d | 11918 | #include "nano100_lcd.h" |
AnnaBridge | 174:b96e65c34a4d | 11919 | |
AnnaBridge | 174:b96e65c34a4d | 11920 | #endif // __NANO100SERIES_H__ |
AnnaBridge | 174:b96e65c34a4d | 11921 | |
AnnaBridge | 174:b96e65c34a4d | 11922 | /*** (C) COPYRIGHT 2016 Nuvoton Technology Corp. ***/ |
AnnaBridge | 174:b96e65c34a4d | 11923 |