Page 1
The document following this cover page is marked as “Cypress” document as this is the company that originally developed the product. Please note that Infineon will continue to offer the product to new and existing customers as part of the Infineon product portfolio.
Page 2
PSoC 4000 TRM PSoC 4000 Family ® PSoC 4 Registers Technical Reference Manual (TRM) Document Number: 001-90002 Rev. *E March 15, 2019 Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone: +1.408.943.2600 www.cypress.com...
Register Mapping The Register Mapping section discusses the registers of the PSoC 4 device. It lists all the registers in mapping tables, in address order. Register General Conventions The register conventions specific to this section and the Register Reference chapter are listed in this table. Convention Example Description...
CM0 Registers This section discusses the CM0 registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. CM0 Register Details Register Address Description CM0_DWT_PID4 0xE0001FD0 Watchpoint Unit CoreSight ROM Table Peripheral ID #4 CM0_DWT_PID0 0xE0001FE0 Watchpoint Unit CoreSight ROM Table Peripheral ID #0 CM0_DWT_PID1...
Page 7
Register Address Description CM0_IPR2 0xE000E408 Interrupt Priority Registers. See CM0_IPR0 for the details of bit fields. CM0_IPR3 0xE000E40C Interrupt Priority Registers. See CM0_IPR0 for the details of bit fields. CM0_IPR4 0xE000E410 Interrupt Priority Registers. See CM0_IPR0 for the details of bit fields. CM0_IPR5 0xE000E414 Interrupt Priority Registers.
Page 8
CM0_DWT_PID4 1.1.1 CM0_DWT_PID4 Address = 0xE0001FD0 Watchpoint Unit CoreSight ROM Table Peripheral ID #4 Address: 0xE0001FD0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 9
CM0_DWT_PID0 1.1.2 CM0_DWT_PID0 Address = 0xE0001FE0 Watchpoint Unit CoreSight ROM Table Peripheral ID #0 Address: 0xE0001FE0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 10
CM0_DWT_PID1 1.1.3 CM0_DWT_PID1 Address = 0xE0001FE4 Watchpoint Unit CoreSight ROM Table Peripheral ID #1 Address: 0xE0001FE4 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 11
CM0_DWT_PID2 1.1.4 CM0_DWT_PID2 Address = 0xE0001FE8 Watchpoint Unit CoreSight ROM Table Peripheral ID #2 Address: 0xE0001FE8 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 12
CM0_DWT_PID3 1.1.5 CM0_DWT_PID3 Address = 0xE0001FEC Watchpoint Unit CoreSight ROM Table Peripheral ID #3 Address: 0xE0001FEC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 13
CM0_DWT_CID0 1.1.6 CM0_DWT_CID0 Address = 0xE0001FF0 Watchpoint Unit CoreSight ROM Table Component ID #0 Address: 0xE0001FF0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 14
CM0_DWT_CID1 1.1.7 CM0_DWT_CID1 Address = 0xE0001FF4 Watchpoint Unit CoreSight ROM Table Component ID #1 Address: 0xE0001FF4 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 15
CM0_DWT_CID2 1.1.8 CM0_DWT_CID2 Address = 0xE0001FF8 Watchpoint Unit CoreSight ROM Table Component ID #2 Address: 0xE0001FF8 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 16
CM0_DWT_CID3 1.1.9 CM0_DWT_CID3 Address = 0xE0001FFC Watchpoint Unit CoreSight ROM Table Component ID #3 Address: 0xE0001FFC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 17
CM0_BP_PID4 1.1.10 CM0_BP_PID4 Address = 0xE0002FD0 Breakpoint Unit CoreSight ROM Table Peripheral ID #4 Address: 0xE0002FD0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 18
CM0_BP_PID0 1.1.11 CM0_BP_PID0 Address = 0xE0002FE0 Breakpoint Unit CoreSight ROM Table Peripheral ID #0 Address: 0xE0002FE0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 19
CM0_BP_PID1 1.1.12 CM0_BP_PID1 Address = 0xE0002FE4 Breakpoint Unit CoreSight ROM Table Peripheral ID #1 Address: 0xE0002FE4 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 20
CM0_BP_PID2 1.1.13 CM0_BP_PID2 Address = 0xE0002FE8 Breakpoint Unit CoreSight ROM Table Peripheral ID #2 Address: 0xE0002FE8 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 21
CM0_BP_PID3 1.1.14 CM0_BP_PID3 Address = 0xE0002FEC Breakpoint Unit CoreSight ROM Table Peripheral ID #3 Address: 0xE0002FEC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 22
CM0_BP_CID0 1.1.15 CM0_BP_CID0 Address = 0xE0002FF0 Breakpoint Unit CoreSight ROM Table Component ID #0 Address: 0xE0002FF0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 23
CM0_BP_CID1 1.1.16 CM0_BP_CID1 Address = 0xE0002FF4 Breakpoint Unit CoreSight ROM Table Component ID #1 Address: 0xE0002FF4 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 24
CM0_BP_CID2 1.1.17 CM0_BP_CID2 Address = 0xE0002FF8 Breakpoint Unit CoreSight ROM Table Component ID #2 Address: 0xE0002FF8 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 25
CM0_BP_CID3 1.1.18 CM0_BP_CID3 Address = 0xE0002FFC Breakpoint Unit CoreSight ROM Table Component ID #3 Address: 0xE0002FFC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 27
CM0_SYST_CSR 1.1.19 CM0_SYST_CSR (continued) CLKSOURCE Indicates the SysTick counter clock source: '0': SysTick uses the low frequency clock "clk_lf". For this mode to function, "clk_lf" should be less than half the frequency of "clk_sys". Note that "clk_lf" is generated by a low accuracy ILO (Internal Low power Oscillator), with a target frequency of 32.768 kHz (frequency can be as low as 15 KHz and as high as 60 kHz).
Page 31
CM0_SYST_CALIB 1.1.22 CM0_SYST_CALIB (continued) 23 : 0 TENMS Optionally, holds a reload value to be used for 10ms (100Hz) timing, subject to system clock skew errors. If this field is "0", the calibration value is not known. In PSoC4A-BLE (and later products), SysTick counter functionality on the low frequency clock is provided and this field is 0x00:00147.
Page 39
CM0_ICSR 1.1.29 CM0_ICSR (continued) ISRPREEMPT Indicates whether a pending exception will be serviced on exit from debug halt state. Default Value: 0 ISRPENDING Indicates if an external configurable, NVIC generated, interrupt is pending. Default Value: 0 20 : 12 VECTPENDING The exception number for the highest priority pending exception.
Page 45
CM0_SHCSR 1.1.35 CM0_SHCSR Address = 0xE000ED24 System Handler Control and State Register Address: 0xE000ED24 Retention: Retained Bits SW Access None HW Access None Name None [7:0] Bits SW Access None HW Access None Name SVCALL- None PENDED Bits SW Access None HW Access None...
Page 46
CM0_SCS_PID4 1.1.36 CM0_SCS_PID4 Address = 0xE000EFD0 System Control Space ROM Table Peripheral ID #4 Address: 0xE000EFD0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 47
CM0_SCS_PID0 1.1.37 CM0_SCS_PID0 Address = 0xE000EFE0 System Control Space ROM Table Peripheral ID #0 Address: 0xE000EFE0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 48
CM0_SCS_PID1 1.1.38 CM0_SCS_PID1 Address = 0xE000EFE4 System Control Space ROM Table Peripheral ID #1 Address: 0xE000EFE4 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 49
CM0_SCS_PID2 1.1.39 CM0_SCS_PID2 Address = 0xE000EFE8 System Control Space ROM Table Peripheral ID #2 Address: 0xE000EFE8 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 50
CM0_SCS_PID3 1.1.40 CM0_SCS_PID3 Address = 0xE000EFEC System Control Space ROM Table Peripheral ID #3 Address: 0xE000EFEC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 51
CM0_SCS_CID0 1.1.41 CM0_SCS_CID0 Address = 0xE000EFF0 System Control Space ROM Table Component ID #0 Address: 0xE000EFF0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 52
CM0_SCS_CID1 1.1.42 CM0_SCS_CID1 Address = 0xE000EFF4 System Control Space ROM Table Component ID #1 Address: 0xE000EFF4 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 53
CM0_SCS_CID2 1.1.43 CM0_SCS_CID2 Address = 0xE000EFF8 System Control Space ROM Table Component ID #2 Address: 0xE000EFF8 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 54
CM0_SCS_CID3 1.1.44 CM0_SCS_CID3 Address = 0xE000EFFC System Control Space ROM Table Component ID #3 Address: 0xE000EFFC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access...
Page 55
CM0_ROM_SCS 1.1.45 CM0_ROM_SCS Address = 0xE00FF000 CM0 CoreSight ROM Table Peripheral #0 Address: 0xE00FF000 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 56
CM0_ROM_DWT 1.1.46 CM0_ROM_DWT Address = 0xE00FF004 CM0 CoreSight ROM Table Peripheral #1 Address: 0xE00FF004 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 57
CM0_ROM_BPU 1.1.47 CM0_ROM_BPU Address = 0xE00FF008 CM0 CoreSight ROM Table Peripheral #2 Address: 0xE00FF008 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 58
CM0_ROM_END 1.1.48 CM0_ROM_END Address = 0xE00FF00C CM0 CoreSight ROM Table End Marker Address: 0xE00FF00C Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 59
CM0_ROM_CSMT 1.1.49 CM0_ROM_CSMT Address = 0xE00FFFCC CM0 CoreSight ROM Table Memory Type Address: 0xE00FFFCC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 60
CM0_ROM_PID4 1.1.50 CM0_ROM_PID4 Address = 0xE00FFFD0 CM0 CoreSight ROM Table Peripheral ID #4 Address: 0xE00FFFD0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 61
CM0_ROM_PID0 1.1.51 CM0_ROM_PID0 Address = 0xE00FFFE0 CM0 CoreSight ROM Table Peripheral ID #0 Address: 0xE00FFFE0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 62
CM0_ROM_PID1 1.1.52 CM0_ROM_PID1 Address = 0xE00FFFE4 CM0 CoreSight ROM Table Peripheral ID #1 Address: 0xE00FFFE4 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 63
CM0_ROM_PID2 1.1.53 CM0_ROM_PID2 Address = 0xE00FFFE8 CM0 CoreSight ROM Table Peripheral ID #2 Address: 0xE00FFFE8 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 64
CM0_ROM_PID3 1.1.54 CM0_ROM_PID3 Address = 0xE00FFFEC CM0 CoreSight ROM Table Peripheral ID #3 Address: 0xE00FFFEC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 65
CM0_ROM_CID0 1.1.55 CM0_ROM_CID0 Address = 0xE00FFFF0 CM0 CoreSight ROM Table Component ID #0 Address: 0xE00FFFF0 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 66
CM0_ROM_CID1 1.1.56 CM0_ROM_CID1 Address = 0xE00FFFF4 CM0 CoreSight ROM Table Component ID #1 Address: 0xE00FFFF4 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 67
CM0_ROM_CID2 1.1.57 CM0_ROM_CID2 Address = 0xE00FFFF8 CM0 CoreSight ROM Table Component ID #2 Address: 0xE00FFFF8 Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
Page 68
CM0_ROM_CID3 1.1.58 CM0_ROM_CID3 Address = 0xE00FFFFC CM0 CoreSight ROM Table Component ID #3 Address: 0xE00FFFFC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access...
CPUSS Registers This section discusses the CPUSS registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. CPUSS Register Mapping Details Register Address Description CPUSS_CONFIG 0x40100000 Configuration register CPUSS_SYSREQ 0x40100004 SYSCALL control register CPUSS_SYSARG 0x40100008 SYSARG control register CPUSS_PROTECTION...
Page 72
CPUSS_SYSREQ 2.1.2 CPUSS_SYSREQ (continued) PRIVILEGED Indicates whether the system is in privileged ('1') or user mode ('0'). Only CPU SW executing from ROM can set this field to '1' when ROM_ACCESS_EN is '1' (the CPU is executing a Sys- temCall NMI interrupt handler). Any other write to this field sets is to '0'. This field is used as the AHB-Lite hprot[1] signal to implement Cypress proprietary user/privileged modes.
Page 73
CPUSS_SYSARG 2.1.3 CPUSS_SYSARG Address = 0x40100008 SYSARG control register Address: 0x40100008 Retention: Retained Bits SW Access HW Access Name SYSCALL_ARG [7:0] Bits SW Access HW Access Name SYSCALL_ARG [15:8] Bits SW Access HW Access Name SYSCALL_ARG [23:16] Bits SW Access HW Access Name SYSCALL_ARG [31:24]...
Page 79
CPUSS_WOUNDING 2.1.8 CPUSS_WOUNDING (continued) 18 : 16 RAM_WOUND Indicates the amount of accessible RAM 0 memory capacitty in this part. The value in this field is effectively write-once (it is only possible to set bits, not clear them). The remainder portion of SRAM is not accessible and will return an AHB-Lite bus error.
GPIO Registers This section discusses the GPIO registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. GPIO Register Mapping Details Register Address Description GPIO_PRT0_DR 0x40040000 Port output data register GPIO_PRT0_PS 0x40040004 Port IO pad state register GPIO_PRT0_PC 0x40040008 Port configuration register...
Page 83
Register Address Description GPIO_PRT3_DR 0x40040300 Port output data register GPIO_PRT3_PS 0x40040304 Port IO pad state register GPIO_PRT3_PC 0x40040308 Port configuration register GPIO_PRT3_INTR_CFG 0x4004030C Port interrupt configuration register GPIO_PRT3_INTR 0x40040310 Port interrupt status register GPIO_PRT3_PC2 0x40040318 Port configuration register 2 GPIO_PRT3_DR_SET 0x40040340 Port output data set register.
Page 85
GPIO_PRT0_PS 3.1.2 GPIO_PRT0_PS Address = 0x40040004 Port IO pad state register Address: 0x40040004 Retention: Not Retained Bits SW Access HW Access Name DATA7 DATA6 DATA5 DATA4 DATA3 DATA2 DATA1 DATA0 Bits SW Access None HW Access None Name None [15:9] FLT_DATA Bits SW Access...
Page 86
GPIO_PRT0_PS 3.1.2 GPIO_PRT0_PS (continued) DATA0 IO pad 0 state: 1: Logic high, if the pin voltage is above the input buffer threshold, logic high. 0: Logic low, if the pin voltage is below that threshold, logic low. If the drive mode for the pin is set to high Z Analog, the pin state will read 0 independent of the voltage on the pin.
Page 88
GPIO_PRT0_PC 3.1.3 GPIO_PRT0_PC (continued) 14 : 12 The GPIO drive mode for IO pad 4. Default Value: 0 11 : 9 The GPIO drive mode for IO pad 3. Default Value: 0 8 : 6 The GPIO drive mode for IO pad 2. Default Value: 0 5 : 3 The GPIO drive mode for IO pad 1.
Page 90
GPIO_PRT0_INTR_CFG 3.1.4 GPIO_PRT0_INTR_CFG (continued) 0x3: BOTH : Both rising and falling edges 15 : 14 EDGE7_SEL Sets which edge will trigger an IRQ for IO pad 7. Default Value: 0 13 : 12 EDGE6_SEL Sets which edge will trigger an IRQ for IO pad 6. Default Value: 0 11 : 10 EDGE5_SEL...
Page 92
GPIO_PRT0_INTR 3.1.5 GPIO_PRT0_INTR (continued) DATA7 Interrupt pending on IO pad 7. Firmware writes 1 to clear the interrupt. Default Value: 0 DATA6 Interrupt pending on IO pad 6. Firmware writes 1 to clear the interrupt. Default Value: 0 DATA5 Interrupt pending on IO pad 5. Firmware writes 1 to clear the interrupt. Default Value: 0 DATA4 Interrupt pending on IO pad 4.
Page 94
GPIO_PRT0_PC2 3.1.6 GPIO_PRT0_PC2 (continued) INP_DIS0 Disables the input buffer for IO pad 0 independent of the port control drive mode (PC.DM). This bit should be set when analog signals are present on the pin and PC.DM != 0 is required to use the output driver.
Page 95
GPIO_PRT0_DR_SET 3.1.7 GPIO_PRT0_DR_SET Address = 0x40040040 Port output data set register Address: 0x40040040 Retention: Retained Bits SW Access HW Access Name DATA [7:0] Bits SW Access None HW Access None Name None [15:8] Bits SW Access None HW Access None Name None [23:16] Bits...
Page 96
GPIO_PRT0_DR_CLR 3.1.8 GPIO_PRT0_DR_CLR Address = 0x40040044 Port output data clear register Address: 0x40040044 Retention: Retained Bits SW Access HW Access Name DATA [7:0] Bits SW Access None HW Access None Name None [15:8] Bits SW Access None HW Access None Name None [23:16] Bits...
Page 97
GPIO_PRT0_DR_INV 3.1.9 GPIO_PRT0_DR_INV Address = 0x40040048 Port output data invert register Address: 0x40040048 Retention: Retained Bits SW Access HW Access Name DATA [7:0] Bits SW Access None HW Access None Name None [15:8] Bits SW Access None HW Access None Name None [23:16] Bits...
Page 98
GPIO_PRT2_DR 3.1.10 GPIO_PRT2_DR Address = 0x40040200 Port output data register Address: 0x40040200 Retention: Retained Bits SW Access None HW Access None Name None [7:1] DATA0 Bits SW Access None HW Access None Name None [15:8] Bits SW Access None HW Access None Name None [23:16]...
Page 99
GPIO_PRT2_PS 3.1.11 GPIO_PRT2_PS Address = 0x40040204 Port IO pad state register Address: 0x40040204 Retention: Not Retained Bits SW Access None HW Access None Name None [7:1] DATA0 Bits SW Access None HW Access None Name None [15:9] FLT_DATA Bits SW Access None HW Access None...
Page 103
GPIO_PRT2_INTR_CFG 3.1.13 GPIO_PRT2_INTR_CFG (continued) 0x3: BOTH : Both rising and falling edges 1 : 0 EDGE0_SEL Sets which edge will trigger an IRQ for IO pad 0. Default Value: 0 0x0: DISABLE : Disabled 0x1: RISING : Rising edge 0x2: FALLING : Falling edge 0x3: BOTH : Both rising and falling edges...
Page 109
GPIO_PRT3_PC 3.1.18 GPIO_PRT3_PC (continued) 2 : 0 The GPIO drive mode for IO pad 0. Note: when initializing IO's that are connected to a live bus (such as I2C), make sure the HSIOM is properly configured (HSIOM_PRT_SELx) before turning the IO on here to avoid producing glitches on the bus.
Page 111
GPIO_PRT3_INTR_CFG 3.1.19 GPIO_PRT3_INTR_CFG (continued) 0x3: BOTH : Both rising and falling edges 5 : 4 EDGE2_SEL Sets which edge will trigger an IRQ for IO pad 2. Default Value: 0 3 : 2 EDGE1_SEL Sets which edge will trigger an IRQ for IO pad 1. Default Value: 0 1 : 0 EDGE0_SEL...
HSIOM Registers This section discusses the HSIOM registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. HSIOM Register Mapping Details Register Address Description HSIOM_PORT_SEL0 0x40020000 Port selection register HSIOM_PORT_SEL1 0x40020100 Port selection register. See HSIOM_PORT_SEL0 for the details of bit fields.
Page 118
HSIOM_PORT_SEL0 4.1.1 HSIOM_PORT_SEL0 (continued) 0xc: LCD_COM : LCD common connection. This mode provides DeepSleep functionality (provided that the LCD block is enabled and properly configured). 0xd: LCD_SEG : LCD segment connection. This mode provides DeepSleep functionality (provided that the LCD block is enabled and properly configured).
Page 120
HSIOM_PORT_SEL2 4.1.2 HSIOM_PORT_SEL2 (continued) 0x4: CSD_SENSE : CSD sense connection (analog mode) 0x5: CSD_SHIELD : CSD shield connection (analog mode) 0x6: AMUXA : AMUXBUS A connection. 0x7: AMUXB : AMUXBUS B connection. This mode is also used for CSD GPIO charging. When CSD GPIO charging is enabled in CSD_CONTROL, "oe_n"...
PERI Registers This section discusses the PERI registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. PERI Register Mapping Details Register Address Description PERI_DIV_CMD 0x40010000 Divider command register PERI_PCLK_CTL0 0x40010100 Programmable clock control register PERI_PCLK_CTL1 0x40010104 Programmable clock control register.
Page 128
PERI_DIV_CMD 5.1.1 PERI_DIV_CMD (continued) DISABLE Clock divider disable command (mutually exlusive with ENABLE). SW sets this field to '1' and HW sets this field to '0'. The SEL_DIV and SEL_TYPE fields specify which divider is to be disabled. The HW sets the DISABLE field to '0' immediately and the HW sets the DIV_XXX_CTL.EN field of the divider to '0' immediately.
SCB Registers This section discusses the SCB registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. SCB Register Mapping Details Register Address Description SCB_CTRL 0x40060000 Generic control register. SCB_STATUS 0x40060004 Generic status register. SCB_I2C_CTRL 0x40060060 I2C control register.
Page 132
Register Address Description SCB_EZ_DATA10 0x40060428 Memory buffer registers. See SCB_EZ_DATA0 for the details of bit fields. SCB_EZ_DATA11 0x4006042C Memory buffer registers. See SCB_EZ_DATA0 for the details of bit fields. SCB_EZ_DATA12 0x40060430 Memory buffer registers. See SCB_EZ_DATA0 for the details of bit fields. SCB_EZ_DATA13 0x40060434 Memory buffer registers.
Page 134
SCB_CTRL 6.1.1 SCB_CTRL (continued) 0x0: I2C : Inter-Integrated Circuits (I2C) mode. 0x1: SPI : Serial Peripheral Interface (SPI) mode. 0x2: UART : Universal Asynchronous Receiver/Transmitter (UART) mode. BLOCK Only used in externally clocked mode. If the externally clocked logic and the MMIO SW accesses to EZ memory coincide/collide, this bit determines whether a SW access should block and result in bus wait states ('BLOCK is 1') or not (BLOCK is '0').
Page 135
SCB_CTRL 6.1.1 SCB_CTRL (continued) EC_OP_MODE Internally clocked mode ('0') or externally clocked mode ('1') operation. In internally clocked mode, the serial interface protocols run off the peripheral clock. In externally clocked mode, the serial interface protocols run off the clock as provided by the serial interface. Externally clocked operation mode is only used for synchronous serial interface protocols (SPI and I2C) in slave mode AND EZ mode.
Page 136
SCB_CTRL 6.1.1 SCB_CTRL (continued) 3 : 0 Serial interface bit period oversampling factor expressed in lP clock cycles. Used for SPI and UART functionality. OVS + 1 IP clock cycles constitute a single serial interface clock/bit cycle. The IP clock is provided by the programmable clock IP. This field is NOT used in externally clocked mode.
Page 137
SCB_STATUS 6.1.2 SCB_STATUS Address = 0x40060004 Generic status register. Address: 0x40060004 Retention: Not Retained Bits SW Access None HW Access None Name None [7:1] EC_BUSY Bits SW Access None HW Access None Name None [15:8] Bits SW Access None HW Access None Name None [23:16]...
Page 139
SCB_I2C_CTRL 6.1.3 SCB_I2C_CTRL (continued) S_NOT_READY_- For internally clocked logic only. Only used when: DATA_NACK - non EZ mode. Functionality is as follows: - 1: a received data element byte the slave is immediately NACK'd when the receiver FIFO is full. - 0: clock stretching is performed (till the receiver FIFO is no longer full).
Page 140
SCB_I2C_CTRL 6.1.3 SCB_I2C_CTRL (continued) 7 : 4 LOW_PHASE_OVS Serial I2C interface low phase oversampling factor. LOW_PHASE_OVS + 1 peripheral clock pe- riods constitute the low phase of a bit period. The valid range is [7, 15] with input signal median filtering and [6, 15] without input signal median filtering.
Page 142
SCB_I2C_STATUS 6.1.4 SCB_I2C_STATUS (continued) I2C_EC_BUSY Inidicates whether the externally clocked logic is potentially accessing the EZ memory and/or up- dating BASE_ADDR or CURR_ADDR (this is only possible in EZ mode). This bit can be used by SW to determine whether BASE_ADDR and CURR_ADDR are reliable. Default Value: Undefined BUS_BUSY I2C bus is busy.
Page 144
SCB_I2C_M_CMD 6.1.5 SCB_I2C_M_CMD (continued) M_START_ON_IDLE When '1', transmit a START as soon as the bus is idle (I2C_STATUS.BUS_BUSY is '0', note that BUSY has a default value of '0'). For bus idle detection the hardware relies on STOP detection. As a result, bus idle detection is only functional after at least one I2C bus transfer has been de- tected on the bus (default/reset value of BUSY is '0') .
Page 161
SCB_INTR_I2C_EC 6.1.20 SCB_INTR_I2C_EC (continued) WAKE_UP Wake up request. Active on incoming slave request (with address match). Only used when EC_AM is '1'. Default Value: 0 PSoC 4 Registers TRM, Document Number: 001-90002 Rev. *E...
Page 169
SCB_INTR_S 6.1.27 SCB_INTR_S (continued) I2C_START I2C slave START received. Set to '1', when START or REPEATED START event is detected. In the case of externally clocked address matching (CTRL.EC_AM_MODE is '1') AND clock stretching is performed (till the internally clocked logic takes over) (I2C_C- TRL.S_NOT_READY_ADDR_NACK is '0'), this field is NOT set.
Page 171
SCB_INTR_S_SET 6.1.28 SCB_INTR_S_SET (continued) I2C_NACK Write with '1' to set corresponding bit in interrupt request register. Default Value: 0 I2C_ARB_LOST Write with '1' to set corresponding bit in interrupt request register. Default Value: 0 PSoC 4 Registers TRM, Document Number: 001-90002 Rev. *E...
Page 177
SCB_INTR_TX 6.1.31 SCB_INTR_TX (continued) NOT_FULL TX FIFO is not full. Dependent on CTRL.BYTE_MODE: BYTE_MODE is '0': # entries != FF_DATA_NR/2. BYTE_MODE is '1': # entries != FF_DATA_NR. Only used in FIFO mode. Default Value: 0 TRIGGER Less entries in the TX FIFO than the value specified by TX_FIFO_CTRL. Only used in FIFO mode.
Page 182
SCB_INTR_RX 6.1.35 SCB_INTR_RX (continued) FULL RX FIFO is full. Note that received data frames are lost when the RX FIFO is full. Dependent on CTRL.BYTE_MODET: BYTE_MODE is '0': # entries == FF_DATA_NR/2. BYTE_MODE is '1': # entries == FF_DATA_NR. Only used in FIFO mode. Default Value: 0 NOT_EMPTY RX FIFO is not empty.
SFLASH Registers This section discusses the SFLASH registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. SFLASH Register Mapping Details Register Address Description SFLASH_SILICON_ID 0x0FFFF144 Silicon ID SFLASH_HIB_KEY_DELAY 0x0FFFF150 Hibernate wakeup value for PWR_KEY_DELAY SFLASH_DPSLP_KEY_DELAY 0x0FFFF152 DeepSleep wakeup value for PWR_KEY_DELAY...
Page 187
Register Address Description IMO TempCo Trim Register (SRSS-Lite). See SFLASH_IMO_TCTRIM_LT0 for the details of bit SFLASH_IMO_TCTRIM_LT11 0x0FFFF1D7 fields. IMO TempCo Trim Register (SRSS-Lite). See SFLASH_IMO_TCTRIM_LT0 for the details of bit SFLASH_IMO_TCTRIM_LT12 0x0FFFF1D8 fields. IMO TempCo Trim Register (SRSS-Lite). See SFLASH_IMO_TCTRIM_LT0 for the details of bit SFLASH_IMO_TCTRIM_LT13 0x0FFFF1D9...
Page 188
Register Address Description IMO Frequency Trim Register (SRSS-Lite). See SFLASH_IMO_TRIM_LT0 for the details of bit SFLASH_IMO_TRIM_LT15 0x0FFFF1F4 fields. IMO Frequency Trim Register (SRSS-Lite). See SFLASH_IMO_TRIM_LT0 for the details of bit SFLASH_IMO_TRIM_LT16 0x0FFFF1F5 fields. IMO Frequency Trim Register (SRSS-Lite). See SFLASH_IMO_TRIM_LT0 for the details of bit SFLASH_IMO_TRIM_LT17 0x0FFFF1F6...
Page 189
SFLASH_SILICON_ID 7.1.1 SFLASH_SILICON_ID Address = 0x0FFFF144 Silicon ID Address: 0x0FFFF144 Retention: Retained Bits SW Access HW Access Name ID [7:0] Bits SW Access HW Access Name ID [15:8] Bits SW Access None HW Access None Name None [23:16] Bits SW Access None HW Access None...
Page 190
SFLASH_HIB_KEY_DELAY 7.1.2 SFLASH_HIB_KEY_DELAY Address = 0x0FFFF150 Hibernate wakeup value for PWR_KEY_DELAY Address: 0x0FFFF150 Retention: Retained Bits SW Access HW Access Name WAKEUP_HOLDOFF [7:0] Bits SW Access None HW Access None Name None [15:10] WAKEUP_HOLDOFF [9:8] Bits Name Description 9 : 0 WAKEUP_HOLDOFF Delay (in 12MHz IMO clock cycles) to wait for references to settle on wakeup from hibernate/ deepsleep.
Page 191
SFLASH_DPSLP_KEY_DELAY 7.1.3 SFLASH_DPSLP_KEY_DELAY Address = 0x0FFFF152 DeepSleep wakeup value for PWR_KEY_DELAY Address: 0x0FFFF152 Retention: Retained Bits SW Access HW Access Name WAKEUP_HOLDOFF [7:0] Bits SW Access None HW Access None Name None [15:10] WAKEUP_HOLDOFF [9:8] Bits Name Description 9 : 0 WAKEUP_HOLDOFF Delay (in 12MHz IMO clock cycles) to wait for references to settle on wakeup from hibernate/ deepsleep.
Page 192
SFLASH_SWD_CONFIG 7.1.4 SFLASH_SWD_CONFIG Address = 0x0FFFF154 SWD pinout selector (not present in TSG4/TSG5-M) Address: 0x0FFFF154 Retention: Retained Bits SW Access None HW Access None Name SWD_SE- None [7:1] LECT Bits Name Description SWD_SELECT 0: Use Primary SWD location 1: Use Alternate SWD location Default Value: X PSoC 4 Registers TRM, Document Number: 001-90002 Rev.
Page 195
SFLASH_CSD_TRIM1_HVIDAC 7.1.7 SFLASH_CSD_TRIM1_HVIDAC Address = 0x0FFFF160 CSD Trim Data for HVIDAC operation Address: 0x0FFFF160 Retention: Retained Bits SW Access HW Access Name TRIM8 [7:0] Bits Name Description 7 : 0 TRIM8 Trim data Default Value: X PSoC 4 Registers TRM, Document Number: 001-90002 Rev. *E...
Page 196
SFLASH_CSD_TRIM2_HVIDAC 7.1.8 SFLASH_CSD_TRIM2_HVIDAC Address = 0x0FFFF161 CSD Trim Data for HVIDAC operation Address: 0x0FFFF161 Retention: Retained Bits SW Access HW Access Name TRIM8 [7:0] Bits Name Description 7 : 0 TRIM8 Trim data Default Value: X PSoC 4 Registers TRM, Document Number: 001-90002 Rev. *E...
Page 197
SFLASH_CSD_TRIM1_CSD 7.1.9 SFLASH_CSD_TRIM1_CSD Address = 0x0FFFF162 CSD Trim Data for (normal) CSD operation Address: 0x0FFFF162 Retention: Retained Bits SW Access HW Access Name TRIM8 [7:0] Bits Name Description 7 : 0 TRIM8 Trim data Default Value: X PSoC 4 Registers TRM, Document Number: 001-90002 Rev. *E...
Page 198
SFLASH_CSD_TRIM2_CSD 7.1.10 SFLASH_CSD_TRIM2_CSD Address = 0x0FFFF163 CSD Trim Data for (normal) CSD operation Address: 0x0FFFF163 Retention: Retained Bits SW Access HW Access Name TRIM8 [7:0] Bits Name Description 7 : 0 TRIM8 Trim data Default Value: X PSoC 4 Registers TRM, Document Number: 001-90002 Rev. *E...
Page 199
SFLASH_IMO_TRIM_USBMODE_24 7.1.11 SFLASH_IMO_TRIM_USBMODE_24 Address = 0x0FFFF1BE USB IMO TRIM 24MHz Address: 0x0FFFF1BE Retention: Retained Bits SW Access HW Access Name TRIM_24 [7:0] Bits Name Description 7 : 0 TRIM_24 TRIM value for IMO with USB at 24MHz Default Value: X PSoC 4 Registers TRM, Document Number: 001-90002 Rev.
Page 200
SFLASH_IMO_TRIM_USBMODE_48 7.1.12 SFLASH_IMO_TRIM_USBMODE_48 Address = 0x0FFFF1BF USB IMO TRIM 48MHz Address: 0x0FFFF1BF Retention: Retained Bits SW Access HW Access Name TRIM_24 [7:0] Bits Name Description 7 : 0 TRIM_24 TRIM value for IMO with USB at 24MHz Default Value: X PSoC 4 Registers TRM, Document Number: 001-90002 Rev.
Page 201
SFLASH_IMO_TCTRIM_LT0 7.1.13 SFLASH_IMO_TCTRIM_LT0 Address = 0x0FFFF1CC IMO TempCo Trim Register (SRSS-Lite) Address: 0x0FFFF1CC Retention: Retained Bits SW Access None HW Access None Name None TCTRIM [6:5] STEPSIZE [4:0] Bits Name Description 6 : 5 TCTRIM IMO temperature compesation trim. These bits are determined at manufacturing time to adjust for temperature dependence.
Page 202
SFLASH_IMO_TRIM_LT0 7.1.14 SFLASH_IMO_TRIM_LT0 Address = 0x0FFFF1E5 IMO Frequency Trim Register (SRSS-Lite) Address: 0x0FFFF1E5 Retention: Retained Bits SW Access HW Access Name OFFSET [7:0] Bits Name Description 7 : 0 OFFSET Frequency trim bits. These bits are determined at manufacturing time for each FREQ setting (IMO_TRIM2) and stored in SFLASH.
SPCIF Registers This section discusses the SPCIF registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. SPCIF Register Mapping Details Register Address Description SPCIF_GEOMETRY 0x40110000 Flash/NVL geometry information SPCIF_INTR 0x401107F0 SPCIF interrupt request register SPCIF_INTR_SET 0x401107F4 SPCIF interrupt set request register...
SRSSLT Registers This section discusses the SRSSLT registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. SRSSLT Register Mapping Details Register Address Description PWR_CONTROL 0x40030000 Power Mode Control PWR_KEY_DELAY 0x40030004 Power System Key&Delay Register PWR_DDFT_SELECT 0x4003000C Power DDFT Mode Selection Register...
Page 212
PWR_CONTROL 9.1.1 PWR_CONTROL (continued) LPM_READY Indicates whether the low power mode regulator is ready to enter DEEPSLEEP mode. 0: If DEEPSLEEP mode is requested, device will enter SLEEP mode. When low power regula- tors are ready, device will automatically enter the originally requested mode. 1: Normal operation.
Page 213
PWR_KEY_DELAY 9.1.2 PWR_KEY_DELAY Address = 0x40030004 Power System Key Register Address: 0x40030004 Retention: Retained Bits SW Access HW Access Name WAKEUP_HOLDOFF [7:0] Bits SW Access None HW Access None Name None [15:10] WAKEUP_HOLDOFF [9:8] Bits SW Access None HW Access None Name None [23:16]...
Page 221
CLK_SELECT 9.1.5 CLK_SELECT (continued) 5 : 4 PUMP_SEL Selects clock source for charge pump clock. This clock is not guaranteed to be glitch free when changing any of its sources or settings. Default Value: 0 0x0: GND : No clock, connect to gnd 0x1: IMO : Use main IMO output 0x2: HFCLK :...
Page 225
CLK_DFT_SELECT 9.1.8 CLK_DFT_SELECT (continued) 0x1: DIV_BY_2 : Divide by 2 0x2: DIV_BY_4 : Divide by 4 0x3: DIV_BY_8 : Divide by 8 11 : 8 DFT_SEL1 Select signal for DFT output #1 Default Value: 0 0x0: NC : Disabled - output is 0 0x1: ILO : clk_ilo: ILO output 0x2: IMO :...
Page 226
CLK_DFT_SELECT 9.1.8 CLK_DFT_SELECT (continued) 0x9: SLPCTRLCLK : clk_slpctrl: clock provided to SleepController DFT_EDGE0 Edge sensitivity for in-line divider on output #0 (only relevant when DIV0>0). Default Value: 0 0x0: POSEDGE : Use posedge for divider 0x1: NEGEDGE : Use negedge for divider 5 : 4 DFT_DIV0 DFT Output Divide Down.
Page 227
CLK_DFT_SELECT 9.1.8 CLK_DFT_SELECT (continued) 0x4: EXTCLK : clk_ext: external clock input 0x5: HFCLK : clk_hf: root of the high-speed clock tree 0x6: LFCLK : clk_lf: root of the low-speed clock tree 0x7: SYSCLK : clk_sys: root of the CPU/AHB clock tree (gated version of clk_hf) 0x8: PUMPCLK : clk_pump: clock provided to charge pumps in FLASH and PA 0x9: SLPCTRLCLK :...
TCPWM Registers This section discusses the TCPWM registers of PSoC 4 device. It lists all the registers in mapping tables, in address order. 10.1 TCPWM Register Mapping Details Register Address Description TCPWM_CTRL 0x40050000 TCPWM control register 0. TCPWM_CMD 0x40050008 TCPWM command register. TCPWM_INTR_CAUSE 0x4005000C TCPWM Counter interrupt cause register.
Page 248
TCPWM_CNT0_CTRL 10.1.4 TCPWM_CNT0_CTRL (continued) 0x4: PWM : Pulse width modulation (PWM) mode 0x5: PWM_DT : PWM with deadtime insertion mode 0x6: PWM_PR : Pseudo random pulse width modulation 21 : 20 QUADRATURE_MODE In QUAD mode selects quadrature encoding mode (X1/X2/X4). In PWM, PWM_DT and PWM_PR modes, these two bits can be used to invert "dt_line_out"...
Page 249
TCPWM_CNT0_CTRL 10.1.4 TCPWM_CNT0_CTRL (continued) 0x1: COUNT_DOWN : Count down (to "0"). An underflow event is generated when the counter reaches "0". A terminal count event is generated when the counter reaches "0". 0x2: COUNT_UPDN1 : Count up (to PERIOD), then count down (to "0"). An overflow event is generated when the count- er reaches PERIOD.
Page 250
TCPWM_CNT0_CTRL 10.1.4 TCPWM_CNT0_CTRL (continued) 0x7: DIVBY128 : Divide by 128 (other-than-PWM_DT mode) PWM_STOP_ON_KILL Specifies whether the counter stops on a kill events: '0': kill event does NOT stop counter. '1': kill event stops counter. This field has a function in PWM, PWM_DT and PWM_PR modes only. Default Value: 0 PWM_SYNC_KILL Specifies asynchronous/synchronous kill behavior:...
Page 251
TCPWM_CNT0_STATUS 10.1.5 TCPWM_CNT0_STATUS Address = 0x40050104 Counter status register Address: 0x40050104 Retention: Not Retained Bits SW Access None HW Access None Name None [7:1] DOWN Bits SW Access HW Access Name GENERIC [15:8] Bits SW Access None HW Access None Name None [23:16] Bits...
Page 258
TCPWM_CNT0_TR_CTRL0 10.1.11 TCPWM_CNT0_TR_CTRL0 (continued) 3 : 0 CAPTURE_SEL Selects one of the 16 input triggers as a capture trigger. Input trigger 0 is always '0' and input trigger is always '1'. In the PWM, PWM_DT and PWM_PR modes this trigger is used to switch the values if the compare and period registers with their buffer counterparts.
Page 260
TCPWM_CNT0_TR_CTRL1 10.1.12 TCPWM_CNT0_TR_CTRL1 (continued) 0x3: NO_EDGE_DET : No edge detection, use trigger as is. 7 : 6 STOP_EDGE A stop event, will stop the counter; i.e. it will no longer be running. Stopping will NOT disable the counter. Default Value: 3 0x0: RISING_EDGE : Rising edge.
Page 261
TCPWM_CNT0_TR_CTRL1 10.1.12 TCPWM_CNT0_TR_CTRL1 (continued) 0x1: FALLING_EDGE : Falling edge. Any falling edge generates an event. 0x2: BOTH_EDGES : Rising AND falling edge. Any odd amount of edges generates an event. 0x3: NO_EDGE_DET : No edge detection, use trigger as is. 1 : 0 CAPTURE_EDGE A capture event will copy the counter value into the CC register.
Page 263
TCPWM_CNT0_TR_CTRL2 10.1.13 TCPWM_CNT0_TR_CTRL2 (continued) 0x3: NO_CHANGE : No Change 3 : 2 OVERFLOW_MODE Determines the effect of a counter overflow event (COUNTER reaches PERIOD) on the "line_out" output signals. Default Value: 3 0x0: SET : Set to '1' 0x1: CLEAR : Set to '0' 0x2: INVERT : Invert...
ROM Table Registers This section discusses the ROM Table registers. It lists all the registers in mapping tables, in address order. 11.1 Register Details Register Address Description ROMTABLE_ADDR 0xF0000000 Link to Cortex M0 ROM Table. ROMTABLE_DID 0xF0000FCC Device Type Identifier register. ROMTABLE_PID4 0xF0000FD0 Peripheral Identification Register 4.
Page 269
ROMTABLE_ADDR 11.1.1 ROMTABLE_ADDR Address = 0xF0000000 Link to Cortex M0 ROM Table. Address: 0xF0000000 Retention: Retained Bits SW Access None HW Access None Name FOR- None [7:2] PRESENT MAT_32BIT Bits SW Access None HW Access None Name ADDR_OFFSET [15:12] None [11:8] Bits SW Access HW Access...
Page 270
ROMTABLE_DID 11.1.2 ROMTABLE_DID Address = 0xF0000FCC Device Type Identifier register. Address: 0xF0000FCC Retention: Retained Bits SW Access HW Access Name VALUE [7:0] Bits SW Access HW Access Name VALUE [15:8] Bits SW Access HW Access Name VALUE [23:16] Bits SW Access HW Access Name VALUE [31:24]...
Revision History Revision History Document Title: PSoC 4000 Family PSoC(R) 4 Registers Technical Reference Manual (TRM) Document Number: 001-90002 Origin of Revision ECN# Issue Date Description of Change Change 4186400 11/11/13 NIDH Specification for new silicon. Updated the clock divider descriptions in Clock trim and peripheral divider registers. Updated the IO select 4316501 04/10/14 NIDH...