Table Contents ............................... 10 Introduction ..............................31 Introduction ............................. 31 Notation ..............................31 1.2.1 Notation of numerical value ......................31 CXD5602 Outline ............................33 Introduction ............................. 33 Features ..............................33 Block Diagram ............................36 Architecture Overview ..........................37 CPU Processor ............................38 2.5.1...
Page 3
CXD5602 User Manual 3.2.2 Function List ............................ 86 3.2.3 Function Specification Outlines ....................... 87 3.2.4 Detailed Function and Control Specification ................... 89 Interrupt ..............................112 3.3.1 Overview and Features ........................112 3.3.2 Register Descriptions ........................113 PMU (Power Management Unit) ......................116 3.4.1...
Page 4
CXD5602 User Manual SCU (Sensor Control Unit) ........................243 3.9.1 SCU Overview and Features ......................243 3.9.2 SCU Block Diagram ........................245 3.9.3 Memory Map ..........................246 3.9.4 Clock Control ..........................249 3.9.5 Power Supply Control ........................255 3.9.6 Interrupt ............................255 3.9.7...
Page 5
CXD5602 User Manual 3.18 USB ............................... 954 3.19 CIS I/F ..............................955 3.20 2D Graphics ............................955 3.21 ADC ............................... 956 3.21.1 ADC Overview ..........................956 3.21.2 ADC Block Diagram ........................957 3.21.3 Memory Map ..........................957 3.21.4 Power Supply Control ........................958 3.21.5...
Page 6
CXD5602 User Manual Figure Contents Figure Block Diagram-1 CXD5602 Block Diagram ....................36 Figure Memory Mapping-2 Memory Map of the SYSIOP, GNSS, and APP ............40 Figure Clock and Reset-3 Clock Diagram ....................... 47 Figure Power Management-4 Power Domain Layers ....................48 Figure Power Management-5 CXD5602 Power Domain ..................
Page 7
CXD5602 User Manual Figure PMU (Power Management Unit)-31 PMU Clock System ................. 125 Figure PMU (Power Management Unit)-32 Sleep/Wakeup Control Flow of the Application Processor ..... 157 Figure Clock and Reset (Clock Reset Generator)-33 CRG Control Area within Overall Clock Scheme ..... 159 Figure Clock and Reset (Clock Reset Generator)-34 CRG Clock Scheme ............
Page 8
CXD5602 User Manual Figure SCU (Sensor Control Unit)-69 Sequencer Overall Image ................278 Figure SCU (Sensor Control Unit)-70 Sequencer Process Flow (Example) ............278 Figure SCU (Sensor Control Unit)-71 Overall Data Flow (excluding Data Duplication Function) ...... 279 Figure SCU (Sensor Control Unit)-72 Startup Control ..................280 Figure SCU (Sensor Control Unit)-73 External Bus Transaction Generation ............
Page 9
CXD5602 User Manual Figure APP-107 Input-Output Addresses of Address Converter ................919 Figure APP-108 Address Conversion Operation Scheme ..................920 Figure APP-109 Example of Address Conversion: Conversion of Bit Assignment for ADSP0 ......923 Figure APP-110 Example of Address Conversion: Conversion Address Map for ADSP0 and ADSP1 ....923 Figure APP-111 Success Case 1 of Exclusive Access ...................
Page 10
CXD5602 User Manual Table Contents Table Notation-1 Notation of Numerical Value ...................... 31 Table Memory Mapping-2 Memory Mapping of the SYSIOP Block (SYS Window) ..........41 Table Memory Mapping-3 Memory Mapping of the APP Block (APP Window) ..........42 Table Power Management-4 Power Supply States ....................51 Table I/O Configuration-5 Function List .........................
Page 11
CXD5602 User Manual Table Interrupt-32 List of Interrupt Registers of Application Processor ............... 113 Table Interrupt-33 Interrupt Factor Registers of Application Processor ............... 113 Table PMU (Power Management Unit)-34 Power Supply States................120 Table PMU (Power Management Unit)-35 The Setting of the Power Supply in “Reset” State and After Changing to “Normal”...
Page 12
CXD5602 User Manual Table I2C-74 XOSC (26 MHz), High Performance Mode ..................213 Table I2C-75 XOSC (26 MHz), Low Power Mode ....................213 Table I2C-80 I2C0 and I2C1 Register List ......................214 Table I2C-81 I2C2 Register List ........................... 216 Table I2C-82 I2C4 Register List ........................... 218 Table DMAC-83 DMA Request Bit Assignment ....................
Page 13
CXD5602 User Manual Table SCU (Sensor Control Unit)-117 ........................320 Table SCU (Sensor Control Unit)-118 ........................321 Table SCU (Sensor Control Unit)-119 ........................322 Table SCU (Sensor Control Unit)-120 ........................323 Table SCU (Sensor Control Unit)-121 ........................326 Table SCU (Sensor Control Unit)-122 ........................327 Table SCU (Sensor Control Unit)-123 ........................
Page 14
CXD5602 User Manual Table SCU (Sensor Control Unit)-156 ........................361 Table SCU (Sensor Control Unit)-157 ........................361 Table SCU (Sensor Control Unit)-158 ........................362 Table SCU (Sensor Control Unit)-159 ........................363 Table SCU (Sensor Control Unit)-160 ........................363 Table SCU (Sensor Control Unit)-161 ........................364 Table SCU (Sensor Control Unit)-162 ........................
Page 15
CXD5602 User Manual Table SCU (Sensor Control Unit)-195 ........................382 Table SCU (Sensor Control Unit)-196 ........................383 Table SCU (Sensor Control Unit)-197 ........................383 Table SCU (Sensor Control Unit)-198 ........................384 Table SCU (Sensor Control Unit)-199 ........................384 Table SCU (Sensor Control Unit)-200 ........................385 Table SCU (Sensor Control Unit)-201 ........................
Page 16
CXD5602 User Manual Table SCU (Sensor Control Unit)-234 ........................406 Table SCU (Sensor Control Unit)-235 ........................406 Table SCU (Sensor Control Unit)-236 ........................407 Table SCU (Sensor Control Unit)-237 ........................407 Table SCU (Sensor Control Unit)-238 ........................408 Table SCU (Sensor Control Unit)-239 ........................408 Table SCU (Sensor Control Unit)-240 ........................
Page 17
CXD5602 User Manual Table SCU (Sensor Control Unit)-273 ........................455 Table SCU (Sensor Control Unit)-274 ........................456 Table SCU (Sensor Control Unit)-275 ........................457 Table SCU (Sensor Control Unit)-276 ........................457 Table SCU (Sensor Control Unit)-277 ........................458 Table SCU (Sensor Control Unit)-278 ........................459 Table SCU (Sensor Control Unit)-279 ........................
Page 18
CXD5602 User Manual Table SCU (Sensor Control Unit)-312 ........................488 Table SCU (Sensor Control Unit)-313 ........................488 Table SCU (Sensor Control Unit)-314 ........................489 Table SCU (Sensor Control Unit)-315 ........................490 Table SCU (Sensor Control Unit)-316 ........................491 Table SCU (Sensor Control Unit)-317 ........................492 Table SCU (Sensor Control Unit)-318 ........................
Page 19
CXD5602 User Manual Table SCU (Sensor Control Unit)-351 ........................529 Table SCU (Sensor Control Unit)-352 ........................529 Table SCU (Sensor Control Unit)-353 ........................530 Table SCU (Sensor Control Unit)-354 ........................531 Table SCU (Sensor Control Unit)-355 ........................532 Table SCU (Sensor Control Unit)-356 ........................533 Table SCU (Sensor Control Unit)-357 ........................
Page 20
CXD5602 User Manual Table SCU (Sensor Control Unit)-390 ........................560 Table SCU (Sensor Control Unit)-391 ........................561 Table SCU (Sensor Control Unit)-392 ........................561 Table SCU (Sensor Control Unit)-393 ........................562 Table SCU (Sensor Control Unit)-394 ........................563 Table SCU (Sensor Control Unit)-395 ........................564 Table SCU (Sensor Control Unit)-396 ........................
Page 21
CXD5602 User Manual Table SCU (Sensor Control Unit)-429 ........................590 Table SCU (Sensor Control Unit)-430 ........................591 Table SCU (Sensor Control Unit)-431 ........................591 Table SCU (Sensor Control Unit)-432 ........................592 Table SCU (Sensor Control Unit)-433 ........................593 Table SCU (Sensor Control Unit)-434 ........................594 Table SCU (Sensor Control Unit)-435 ........................
Page 22
CXD5602 User Manual Table SCU (Sensor Control Unit)-468 ........................618 Table SCU (Sensor Control Unit)-469 ........................619 Table SCU (Sensor Control Unit)-470 ........................620 Table SCU (Sensor Control Unit)-471 ........................620 Table SCU (Sensor Control Unit)-472 ........................621 Table SCU (Sensor Control Unit)-473 ........................621 Table SCU (Sensor Control Unit)-474 ........................
Page 23
CXD5602 User Manual Table SCU (Sensor Control Unit)-507 ........................648 Table SCU (Sensor Control Unit)-508 ........................649 Table SCU (Sensor Control Unit)-509 ........................650 Table SCU (Sensor Control Unit)-510 ........................651 Table SCU (Sensor Control Unit)-511 ........................651 Table SCU (Sensor Control Unit)-512 ........................652 Table SCU (Sensor Control Unit)-513 ........................
Page 24
CXD5602 User Manual Table SCU (Sensor Control Unit)-546 ........................681 Table SCU (Sensor Control Unit)-547 ........................681 Table SCU (Sensor Control Unit)-548 ........................682 Table SCU (Sensor Control Unit)-549 ........................683 Table SCU (Sensor Control Unit)-550 ........................684 Table SCU (Sensor Control Unit)-551 ........................685 Table SCU (Sensor Control Unit)-552 ........................
Page 25
CXD5602 User Manual Table SCU (Sensor Control Unit)-585 ........................713 Table SCU (Sensor Control Unit)-586 ........................714 Table SCU (Sensor Control Unit)-587 ........................715 Table SCU (Sensor Control Unit)-588 ........................716 Table SCU (Sensor Control Unit)-589 ........................716 Table SCU (Sensor Control Unit)-590 ........................717 Table SCU (Sensor Control Unit)-591 ........................
Page 26
CXD5602 User Manual Table SCU (Sensor Control Unit)-624 ........................746 Table SCU (Sensor Control Unit)-625 ........................746 Table SCU (Sensor Control Unit)-626 ........................747 Table SCU (Sensor Control Unit)-627 ........................748 Table SCU (Sensor Control Unit)-628 ........................749 Table SCU (Sensor Control Unit)-629 ........................750 Table SCU (Sensor Control Unit)-630 ........................
Page 27
CXD5602 User Manual Table SCU (Sensor Control Unit)-663 ........................778 Table SCU (Sensor Control Unit)-664 ........................779 Table SCU (Sensor Control Unit)-665 ........................780 Table SCU (Sensor Control Unit)-666 ........................781 Table SCU (Sensor Control Unit)-667 ........................781 Table SCU (Sensor Control Unit)-668 ........................782 Table SCU (Sensor Control Unit)-669 ........................
Page 28
CXD5602 User Manual Table SCU (Sensor Control Unit)-702 ........................807 Table SCU (Sensor Control Unit)-703 ........................808 Table SCU (Sensor Control Unit)-704 ........................809 Table SCU (Sensor Control Unit)-705 ........................809 Table SCU (Sensor Control Unit)-706 ........................810 Table SCU (Sensor Control Unit)-707 ........................811 Table SCU (Sensor Control Unit)-708 Power Supply Control Power ON ............
Page 29
CXD5602 User Manual Table SPI-749 SPI0 register Descriptions ......................876 Table SPI-750 SPI3 Register List .......................... 878 Table SPI-751 SPI3 Register Descriptions ......................878 Table SPI-752 SPI4 Register List .......................... 880 Table SPI-753 SPI5 Register List .......................... 882 Table UART-758 XOSC (26 MHz), High Performance Mode ................884 Table UART-759 XOSC (26 MHz), Low Power Mode ..................
Page 30
CXD5602 User Manual Table ADC-812 Power Supply Information ......................958 Table ADC-813 Clock Summary .......................... 959 Table ADC-814 Clock Control Register List ......................960 Table ADC-815 Input Clock Selection ........................961 Table ADC-816 Main Reset Control ........................962 Table ADC-817 Gain Control of the HPADC ....................... 963 Table ADC-818 ADC Sampling Frequency Estimation ..................
CXD5602 User Manual Introduction Introduction This manual is intended for CXD5602 users. Notation 1.2.1 Notation of numerical value The table below shows notation of numerical values used in this document. Table Notation-1 Notation of Numerical Value Base Notation Example Base 16 adds prefixed "0x"...
Page 32
CXD5602 User Manual The notation examples are as follows. 5-bit unsigned signal with integer number is noted as U5.0. 5-bit unsigned signal with decimal point [1].[0] position is noted as U4.1. 5-bit unsigned signal with decimal point [-1].[-2] position is noted as U6.-1.
CXD5602 User Manual CXD5602 Outline Introduction CXD5602GF/GG is a 32 bit RISC low power microprocessor solution for wearable applications. It is based on the ® ® ® ® Cortex -M4 processor with FPU 32 bit RISC and It integrates Arm...
Page 34
CXD5602 User Manual BitBLT, Rotate, Scaling, Blender Connectivity/Storage Interface On-chip USB2.0 Device supported eMMC 4.41 for eMMC Device SD3.0 Host Controller interface SPI and SDIO support for external Wi-Fi transceivers UART support for external Bluetooth transceivers Quad SPI-FLASH Interface ...
Page 35
CXD5602 User Manual Two channels 10 bit high performance ADC Multi-GNSS Controller ® ® Cortex -M4 processor with FPU 32 bit RISC Operating frequency up to 98.208 MHz 64 KByte ROM 640 KByte SRAM CORDIC engine for GNSS support ...
-M4 for the APP. The CXD5602 has a bus architecture using the Bus Matrix so that eight CPUs and the other bus masters can independently access to each slave, not affected by any bus traffic. By Round-robin arbitration inside the Bus Matrix, bus master need not to wait for a long time to access to slave even if access competition occurs.
CXD5602 User Manual CPU Processor 2.5.1 Application Processor ® The application processor integrates six Cortex -M4 processors with FPU to meet the requirements of wearable devices, which demand operation in low power and performance-optimized consumer applications with the ability ®...
Page 39
CXD5602 User Manual Boot from embedded ROM It is used to download the program to either SPI-Flash memory or eMMC via one of the available interfaces (USB device, Configurable I/O<UART>, or the Host Interface<SPI, UART, and I2C>). Processor system peripherals ...
CXD5602 User Manual Memory Mapping Overview of Memory Map Configuration Memory map is made up of three types of views. The “SYS View” can be referred from System and I/O Processor, the “GNSS View” can be referred from the GNSS DSP, and the “APP View” can be referred from Application Processor.
CXD5602 User Manual 2.6.1 Memory Map of Each Block For detailed address information of the SYSIOP block, the GNSS block, and each functional block, refer to the content of each functional block. Table Memory Mapping-2 Memory Mapping of the SYSIOP Block (SYS Window)
The CXD5602 has five types of usable clock sources and is made up of main five clock domains in accordance -43/1010-...
Page 44
A variety of processors can dynamically select multiple usable clock source, and use most suitable clock frequency optimized for the operating conditions by using divider circuit architecture. The functions of clock and reset of the CXD5602 are described below. ...
Page 45
CXD5602 User Manual System reset from Watchdog Timer (WDT) It is a whole chip reset controlled by the WDT of the SYSCPU. You can enable/disable whole chip reset controlled by the WDT with register setting. -45/1010-...
CXD5602 User Manual 2.7.2 Clock Architecture The figure below shows CX5602 clock diagram. The CXD5602 has main five clock domains according to functional blocks. Clock can be selected in accordance with the operating conditions of each functional block. Always On ...
Page 47
CXD5602 User Manual Application Domain 163MHz(High performance mode) / 40MHz(Low Power mode) Application Divider Processor APP Bus Divider Divider Peripheral CIS I/F 49.104MHz Divider SDIO 2D Graphics 49.104MHz eMMC Divider Divider AUDIO MCLK 24.576kHz System and IOP Domain 100MHz(High performance mode)
2.8.1 Overview The CXD5602 has a large power domain, which is divided into 11 domains. It performs ON control of necessary functions only, while performing OFF control of the unnecessary ones, thereby reducing the power consumption. Additionally, the SRAM or analog circuits such as the ADC within the power supply domains enable individual power supply control.
Page 49
DMAC (Clefia) SRAM Engine (128KB) (40KB) × (1KB) Figure Power Management-5 CXD5602 Power Domain The following describes the functions of each power domain. Application Domain PWD_APP All components of Application Domain Including 1.5 MByte SRAM in Application memory and Application Multi-layer Bus ...
Page 50
CXD5602 User Manual Audio Codec System and IOP Domain PWD_SYSIOP System and IOP Domain Excluding 256 KByte SRAM in System and I/O Processor Memory PWD_SYSIOP_SUB Configurable I/O (I2C, SPI, UART) Interface SPI-FLASH Interface ...
Power supply state Description Power Off Both the CXD5602 (referred to as “the LSI” hereinafter) and the CXD5247 are OFF. Deep Sleep The LSI is OFF and the CXD5247 is ON. In this state, the RTC of the CXD5247 is counting, and time information can be obtained from the CXD5247 after the LSI is started.
Page 52
CXD5602 User Manual State: Power OFF CXD5247 CXD5602 System and Application GNSS Sensor State: Normal (Domain ON) IOP Domain Domain Domain Domain (PMIC) (Transition to each state is possible.) CXD5602 System and Application GNSS Sensor IOP Domain ON Domain ON...
CXD5602 User Manual Function Details I/O Configuration 3.1.1 Outline I/O Configuration switches between HOST I/F select function and Serial Wire Debug (SWD) function, and controls Pin Multiplexer. 3.1.2 Function List Table I/O Configuration-5 shows I/O Configuration function list. Table I/O Configuration-5 Function List...
CXD5602 User Manual 3.1.3 Switching between HOST I/F Select Function and SWD Function Once clock is provided to this block after Power-on Reset (POR) release, values of pin SYSTEM0 and pin SYSTEM1 are held inside. A HOST I/F is selected from I2C, SPI, or UART in accordance with the held values.
CXD5602 User Manual 3.1.4 Pin Multiplexer To each pin of this LSI, Pin Multiplexer can assign a role selecting from up to four options. Multiple roles cannot be played at a time. Not only General Purpose Input/Output (GPIO) mode controlled by register, but also...
Page 56
CXD5602 User Manual 0x04100844 IO_SPI0_CS_X IOCELL setting for pin P16_00 0x01010100 0x04100848 IO_SPI0_SCK IOCELL setting for pin P16_01 0x01010100 0x0410084C IO_SPI0_MOSI IOCELL setting for pin P17_00 0x01010100 0x04100850 IO_SPI0_MISO IOCELL setting for pin P17_01 0x01010100 0x04100854 IO_SPI1_CS_X IOCELL setting for pin P18_00...
Page 57
CXD5602 User Manual 0x041008E4 IO_IS_VSYNC IOCELL setting for pin P1m_01 0x01010100 0x041008E8 IO_IS_HSYNC IOCELL setting for pin P1m_02 0x01010100 0x041008EC IO_IS_DATA0 IOCELL setting for pin P1m_03 0x01010100 0x041008F0 IO_IS_DATA1 IOCELL setting for pin P1m_04 0x01010100 0x041008F4 IO_IS_DATA2 IOCELL setting for pin P1m_05...
Page 58
CXD5602 User Manual 0x04100974 IO_I2S0_BCK IOCELL setting for pin P1v_00 0x01010100 0x04100978 IO_I2S0_LRCK IOCELL setting for pin P1v_01 0x01010100 0x0410097C IO_I2S0_DATA_IN IOCELL setting for pin P1v_02 0x01010100 0x04100980 IO_I2S0_DATA_OUT IOCELL setting for pin P1v_03 0x01010100 0x04100984 IO_I2S1_BCK IOCELL setting for pin P1w_00...
Page 59
CXD5602 User Manual 3.1.4.2 Register Descriptions 3.1.4.2.1 Registers for selecting a role of the I/O pins belonging to SYS group Table I/O Configuration-10 shows registers for selecting a role of the I/O pins belonging to SYS group. Setting examples are explained in “3.1.4.3 Function Details”.
Page 60
CXD5602 User Manual Table I/O Configuration-11 shows pin functions selected by IOCSYS_IOMD0 and IOSYS_IOMD1. Table I/O Configuration-11 Table of Role Selection for I/O Pins Belonging to SYS Group Register Register Setting value Name Name P10_00 IOCSYS_IOMD0.I2C4 GPIO I2C_BCK GPIO GPIO...
Page 62
CXD5602 User Manual 3.1.4.2.2 Register for selecting a role of the I/O pins belonging to APP group Table I/O Configuration-12 shows registers for selecting a role of the I/O pins belonging to APP group. Setting examples are explained in “3.1.4.3 Function Details”.
Page 63
CXD5602 User Manual Table I/O Configuration-13 shows pin functions selected by IOCAPP_IOMD. Table I/O Configuration-13 Table of Role Selection for the I/O Pins Belonging to APP Group Pin Name Register Name Register Setting value P1m_00 IOCAPP_IOMD.IS GPIO IS_CLK GPIO GPIO...
Page 65
CXD5602 User Manual 3.1.4.2.3 IOCELL Control Register These registers set IOCELL of each I/O pin. Table I/O Configuration-14 shows overview of registers. Figure I/O Configuration-8 shows a visualized function inside IOCELL controlled by the parameter that is set by IOCELL control register.
Page 66
CXD5602 User Manual IOCELL.LOWEMI IOCELL.PDN IO_Configration IOCELL.PUP GPIO Regs Output Enable IOCSYS{0,1}.* IOCAPP.* Pull up State IO Pin Alternate Function Output Pull Dn State GPIO Regs Alternate Function Input IOCELL.ENZI Figure I/O Configuration-8 Visualized Function inside IOCELL Controlled by IOCELL Control Register...
Page 67
CXD5602 User Manual Table I/O Configuration-15 Correspondence Table of IOCELL Control Registers and Controllable I/O Pins Register Name Pin Name Register Name Pin Name Register Name Pin Name IO_I2C4_BCK P10_00 IO_I2C0_BCK P1j_00 IO_EMMC_DATA2 P1q_00 IO_I2C4_BDT P10_01 IO_I2C0_BDT P1j_01 IO_EMMC_DATA3 P1q_01...
Page 68
CXD5602 User Manual 3.1.4.2.4 I2S Output Control Register This register performs Output Enable setting when pin P1v_{00,01} and pin P1w_{00,01} are used as I2S I/F. I2S is operated in master mode or slave mode. When you use I2S in master mode, set it Output Enable to use P1v_{00,01} and pin P1w_{00,01} as output pin.
Page 69
CXD5602 User Manual 3.1.4.2.6 SDIO Input Control Register This register sets input values to IP (SDIO) inside the LSI when pin P1s_{00,01} is not used as SDIO function (when GPIO mode is selected). For function details, refer to “3.1.4.3.31 SDIO.”...
Page 71
CXD5602 User Manual 3.1.4.3.1 I2C4 The following are settings that pin P10_{00,01} is assigned I2C (for PMIC) role. IO_I2C_BCK.ENZI=1 IO_I2C_BDT.ENZI=1 IOCSYS_IOMD0.I2C4=1 3.1.4.3.2 PMIC_INT The following are settings that pin P11_00 is assigned PMIC_INT role. IO_PMIC_INT.ENZI=1 ...
Page 73
In this mode, the pin P11_00 is used bidirectionally as RTC_IRQ_OUT output role, and as PMIC_INT (for RTC synchronization) input role. By using pins of both CXD5602 and PMIC connected to CXD5602 as Open Drain, the above two roles can be compatible without any dynamic I/O control.
Page 74
CXD5602 User Manual 3.1.4.3.4 RTC_IRQ_OUT The following is a setting that pin P12_00 is assigned RTC_IRQ_OUT role. IOCSYS_IOMD0.RTC_IRQ_OUT=1 3.1.4.3.5 RTC_IRQ_OUT(Open Drain) The following is a setting that pin P12_00 is assigned RTC_IRQ_OUT role (Open Drain). The pin becomes to operate as Open Drain.
Page 75
CXD5602 User Manual 3.1.4.3.6 AP_CLK The following are settings that pin P13_00 is assigned AP_CLK role. IO_AP_CLK.ENZI=1 IOCSYS_IOMD0.AP_CLK=1 3.1.4.3.7 PMU_WDT The following is a setting that pin P13_00 is assigned PMU_WDT role. IOCSYS_IOMD0.AP_CLK=2 3.1.4.3.8 PMU_WDT (Open Drain) The following is a setting that pin P13_00 is assigned PMU_WDT (Open Drain) role.
Page 76
CXD5602 User Manual 3.1.4.3.12 UART1 The following are settings that pin P16_{00,01} are assigned UART role. IO_SPI0_SCK.ENZI=1 IOCSYS_IOMD0.SPI0A=1 3.1.4.3.13 I2C2 The following are settings that pin P17_{00,01} are assigned I2C role. IO_SPI0_MOSI.ENZI=1 IO_SPI0_MISO.ENZI=1 IOCSYS_IOMD0.SPI0B=1 3.1.4.3.14 SPI0 The following are settings that pin P16_{00,01} and P17_{00,01} are assigned SPI role.
Page 77
CXD5602 User Manual 3.1.4.3.16 SPI2 If the pin SYSTEM0 is Low and the pin SYSTEM1 is High when POR is released, pin P00_{00,01} and pin P01_{00,01} are assigned SPI role automatically. For this reason, usually SPI2 role cannot be set by registers.
Page 78
CXD5602 User Manual 3.1.4.3.18 I2C3 If the pin SYSTEM0 is Low and the pin SYSTEM1 is Low when POR is released, pin P00_{00,01} are assigned I2C role automatically. For this reason, usually I2C3 role cannot be set by registers. The following are settings to release roles assigned automatically by pin SYSTEM0 and pin SYSTEM1, and to newly assign pin P00_{00,01} I2C role for debugging.
Page 79
CXD5602 User Manual 3.1.4.3.23 SPI3 The following are settings that pin P1f_00, pin P1g_00, pin P1h_00, and pin P1i_{00,01,02} are assigned SPI role. IO_SPI3_MISO.ENZI=1 IOCSYS_IOMD1.SPI3_CS0_X=1 IOCSYS_IOMD1.SPI3_CS1_X=1 IOCSYS_IOMD1.SPI3_CS2_X=1 IOCSYS_IOMD1.SPI3=1 3.1.4.3.24 I2C0 The following are settings that pin P1j_{00,01} is assigned I2C role.
Page 80
CXD5602 User Manual 3.1.4.3.27 Image Sensor The following are settings that pin P1m_{00,01,02,03,04,05,06,07,08,09,10} are assigned Image Sensor role. IO_IS_CLK.ENZI=1 IO_IS_VSYNC.ENZI=1 IO_IS_HSYNC.ENZI=1 IO_IS_DATA{0~7}.ENZI=1 IOCAPP_IOMD.IS=1 3.1.4.3.28 UART2(APP_UART) The following are settings that pin P1n_{00,01,02,03} are assigned UART role.
Page 81
CXD5602 User Manual 3.1.4.3.31 SDIO The following are settings that pin P1r_{00,01,02,03,04,05}, pin P1s{00,01}, pin P1t_{00,01,02}, and pin P1u_00 are assigned SDIO role. IO_SIDO_CLK.ENZI=1 IO_SIDO_CMD.ENZI=1 IO_SIDO_DATA{0~3}.ENZI=1 IO_SIDO_CD.ENZI=1 IO_SIDO_WP.ENZI=1 IO_SIDO_CLKI.ENZI=1 IOCAPP_IOMD.SDIOA=1 IOCAPP_IOMD.SDIOB=1 ...
Page 83
CXD5602 User Manual While pin P1s_00 and pin P1s_01 are assigned GPIO role, CD/WP signal of internal IP (SDIO) can be set by using IOFIX_APP. Figure I/O Configuration-14 shows connecting diagram of CD/WP signal to SDIO IP. IO Configuration IOCAPP_IMOD.SDIOB GP_SDIO_CD.DIR...
Page 84
CXD5602 User Manual The following are settings that pin P1v_{00,01,02,03} are used as the I2S slave. IO_IOOEN_APP.I2S0_BCK=1 (Output Disable) IO_IOOEN_APP.I2S0_LRCK=1 (Output Disable) IO_I2S0_BCK.ENZI=1 (Input Enable) IO_I2S0_LRCK.ENZI=1 (Input Enable) IO_I2S0_DATA_IN.ENZI=1 (Input Enable) IOCAPP_IOMD.I2S0=1 3.1.4.3.33 I2S1 When you use a pin as I2S role, you need to select I2S role by using IOCAPP_IOMD, as well as decide in which mode I2S role should be played, master or slave.
Page 85
CXD5602 User Manual IO_PDM_IN.ENZI=1 (Input Enable) AUDIO_IF_SEL.PDM_CLK_SEL=0 IOCAPP_IOMD.PDM=1 The following are settings that pin P1y_{00,01,02} are assigned PDM_OUT role (MCK_DMIC output). IO_PDM_IN.ENZI=1 (Input Enable) AUDIO_IF_SEL.PDM_CLK_SEL=1 IOCAPP_IOMD.PDM=1 3.1.4.3.36 USB_VBUSINT The following are settings that pin P1z_00 is assigned USB_VBUSINT input role.
CXD5602 User Manual General Purpose Input/Output (GPIO) 3.2.1 Outlines and Features In the chapter of GPIO, GPIO control, detection control, and pin selection for interrupt are explained. 3.2.2 Function List Table General Purpose Input/Output (GPIO)-19 Function List Function Name Description...
Page 87
CXD5602 User Manual 3.2.3 Function Specification Outlines 3.2.3.1 Function Block Diagrams Figure General Purpose Input/Output (GPIO)-15 shows entire functions of GPIO and Figure General Purpose Input/Output (GPIO)-16 shows Event Detect block inside GPIO function. I/O Function Pull-up/Pull-down Pull up/down, LOWEMI...
Page 88
CXD5602 User Manual Event Detect Wakeup factor (to PMU) RTC0 GNSS Internal signal detection SYSIOP_SUB Pos edge Pulse S et C lr HI F_DETECT_I2C _SLAVE INT_PMIC_I2CM Interrupt (to CPU/DSP) EXDEVICE[11:0] USBVBUS External signal detection USBVBUSN HVDD PMIC_INT Instant High Pulse...
Page 89
CXD5602 User Manual 3.2.4 Detailed Function and Control Specification 3.2.4.1 GPIO Control GPIO Control can be performed when I/O pins are set as GPIO mode. The GPIO mode can be set by using Pin Multiplexer register IOCSYS_IOMD{0,1} or IOCAPP_IOMD{0,1}. For details for setting GPIO mode, refer to Section 3.1.4 (Pin Multiplexer).
Page 90
CXD5602 User Manual Table General Purpose Input/Output (GPIO)-21 Correspondence of GPIO Control Registers to I/O Pins Register Name Pin Name Register Name Pin Name Register Name Pin Name GP_I2C4_BCK P10_00 GP_I2C0_BCK P1j_00 GP_EMMC_DATA2 P1q_00 GP_I2C4_BDT P10_01 GP_I2C0_BDT P1j_01 GP_EMMC_DATA3 P1q_01...
Page 91
CXD5602 User Manual GPIO Output Control 0/1 can be output to an I/O pin according to the control register setting. The status that a control register value is directly output to an I/O pin is called GPIO Output Control. Settings in GPIO Output Control are described below.
Page 92
CXD5602 User Manual GPIO Input Control Values that are input to I/O pins can be read out as the status registers. As for the inputs, the status registers can be read out without any special settings. This function is called “input control” in contrast to output control but actually the “input control”...
Page 93
CXD5602 User Manual 3.2.4.2 I/O Pin Selection In the chapter of I/O Pin Selection, how to select pins used as external interrupts is explained. I/O pins used as interrupts are classified into two groups: SYS group and APP group. You can select six pins each from both SYS group and APP group.
Page 94
CXD5602 User Manual Table General Purpose Input/Output (GPIO)-22 and Table General Purpose Input/Output (GPIO)-24 show registers that select I/O pins, Table General Purpose Input/Output (GPIO)-23 and Table General Purpose Input/Output (GPIO)-25 show selectable I/O pins. Initial value of a register is set as 63. In this case, no I/O pin is selected and an input value to the circuit for detecting interrupts or events is tied to “0”.
Page 95
CXD5602 User Manual Table General Purpose Input/Output (GPIO)-23 Correspondence of I/O Pins to Setting Values (SYS Group) Selected Setting Selected Setting Selected Setting Selected Setting Name Value Name Value Name Value Name Value - P10_00 P16_00 P1l_01 - - P10_01 P16_01 -...
Page 96
CXD5602 User Manual Table General Purpose Input/Output (GPIO)-25 Correspondence of I/O Pins to Setting Values (APP Group) Selected Setting Selected Setting Selected Setting Selected Setting Name Value Name Value Name Value Name Value P1m_00 P1o_01 P1s_01 P1y_02 P1m_01 P1o_02 P1t_00 P1z_00 -...
Page 97
CXD5602 User Manual 3.2.4.3 External Interrupt Selected I/O pins described in the section 3.2.4.2 and some other pins (refer to Table General Purpose Input/Output (GPIO)-27) can be communicated to SYSCPU and DSP as external interrupts with no changes. Besides, not only I/O pins’ values themselves can be communicated to SYSCPU and DSP, but information that an event has been detected (refer to 3.2.4.4) can be as well.
Page 98
CXD5602 User Manual Table General Purpose Input/Output (GPIO)-26 shows control registers for processing external interrupt signals. Table General Purpose Input/Output (GPIO)-26 External Interrupt Selection Address Register Bit Field Type Initial Description Name Name Value 0x04100468 PMU_WAKE_TRIG_ Reserved [31] Reserved CPUINTSEL0...
Page 99
CXD5602 User Manual APPGPI2 [18:16] Refer to SYSGPI3 Reserved [15] Reserved APPGPI1 [14:12] Refer to SYSGPI3 Reserved [11] Reserved APPGPI0 [10:8] Refer to SYSGPI3 Reserved Reserved SYSGPI5 [6:4] Refer to SYSGPI3 Reserved Reserved SYSGPI4 [2:0] Refer to SYSGPI3 0x04100470 PMU_WAKE_TRIG_...
Page 100
CXD5602 User Manual 3.2.4.4 Event Detection Control Event detection asserts when it detects that a signal meets conditions set for detection. It keeps the status until the control register clears the status. Event Detection Control can perform edge detection, level detection, and instant detection of external signals from I/O pins.
Page 101
CXD5602 User Manual Table General Purpose Input/Output (GPIO)-27 shows I/O pins that can be used for event detection. As for I/O pins that can be used for interrupt (refer to 3.2.4.2), bit-field names of interrupt factor registers are described in the “Interrupt Factor”...
Page 102
(6) Both Edge Detection (7) Both Edge Detection (This function removes information of event detection that is made when CXD5602 is reset and then the reset is released while the status of the I/O pin is High. That is because the input value of the I/O pin is not actually changed.)
Page 103
CXD5602 User Manual Figure General Purpose Input/Output (GPIO)-22 shows event detection timings of (0) to (5) of the above seven ways. RTC Clock External Signal (0) Instant High (1) Instant Low Always Event det ect (2) Level High (3) Level Low...
Page 104
CXD5602 User Manual SYSGPI3 [19] SYSGPI2 [18] SYSGPI1 [17] SYSGPI0 [16] HVDD_DET [15] HIF_UART_RXD [14] HIF_SPI_CS_X [13] HIF_SCL_LOW [12] Reserved [11:0] Reserved 0x04100474 PMU_WAKE_TRIG_ Reserved [31] Reserved INTDET0 SYSGPI3 [30:28] Selection of the way of detecting events 0: Instant H,...
Page 105
CXD5602 User Manual APPGPI4 [26:24] refer to SYSGPI3 Reserved [23] Reserved APPGPI3 [22:20] refer to SYSGPI3 Reserved [19] Reserved APPGPI2 [18:16] refer to SYSGPI3 Reserved [15] Reserved APPGPI1 [14:12] refer to SYSGPI3 Reserved [11] Reserved APPGPI0 [10:8] refer to SYSGPI3...
Page 106
CXD5602 User Manual 3.2.4.4.2 Status of Event Detection When an event is detected, a status register for event detection becomes High and keeps the status even if the event ends. Table General Purpose Input/Output (GPIO)-29 shows status registers for event detection.
Page 107
CXD5602 User Manual SCU_INT1 SCU_INT0 CRG_INT 0x04103444 PMU_WAKE_TRIG1 Reserved [31:2] Reserved INT_PMIC_I2CM Status of Event Detection 1: event is detected UNEXP_PMU 0: event is not detected 3.2.4.4.3 Clear of Event Detection Held statuses of Event Detection can be cleared by registers. If you write “1” on the register, clearing process will begin.
Page 108
CXD5602 User Manual INT_SYSIOPSUB [10] INT_GNSS PMU_RTCALMERR PMU_RTCALM2 PMU_RTCALM1 PMU_RTCALM0 SCU_INT3 SCU_INT2 SCU_INT1 SCU_INT0 CRG_INT 0x04103434 PMU_WAKE_TRIG1_CLR Reserved [31:2] Reserved INT_PMIC_I2CM The status can be cleared by writing UNEXP_PMU “1”. 3.2.4.4.4 Flow of Controlling Event Detection when used as Interrupt When you use the results of event detection as interrupts (refer to 3.2.4.4.1), for setting Event Detection and...
Page 109
CXD5602 User Manual interrupts INT_EN*, refer to 3.3.2 (Chapter of Interrupt). 1. Mask an interrupt. INT_EN0.EXDEVICE[0] = 0 2. Set the Event Detection (Pin Multiplexer, I/O pin selection, and way of detecting events). 3. Clear status register of Event Detection (to avoid errors caused by the result of the previous event detection).
Page 110
CXD5602 User Manual Figure General Purpose Input/Output (GPIO)-24 shows the timing diagram. (A) in the table means the time from when an external signal is asserted to when an event detection is held. The time depends on debounce setting. (B) means the time from when the clearing of event detection is executed to when the clearing is completed.
Page 112
CXD5602 User Manual Interrupt 3.3.1 Overview and Features The LSI has individual interrupt controllers for the SYSIOP, GNSS, and APP. The 128 bit interrupt factors are connected to the CPUs of each SYSIOP, GNSS, and APP. Interrupt requests are divided into two main categories: one is internal interrupt generated from each CPU core or Peripheral, and another is external interrupt from I/O.
Page 113
CXD5602 User Manual Interrupt request from Wathdog Timer, WDTINT (bit[20]) is connected to IRQ of Processor 0, and reset signal from Watchdog Timer, WDTRES (bit[21]) is connected to Non-Maskable Interrupt (NMI) of Processor 0 (PID0 in Figure Interrupt-25). WDTRES (bit[23]) of GNSS and WDTRES (bit[23]) of APP are ORed with WDTINT(bit[20]), and the result is provided to NMI of Processor 0.
Page 114
CXD5602 User Manual [19:16] Interrupt request from SCU HOSTIFC [15:13] Interrupt request from Host I/F UART [12] Interrupt request from UART0 UARTDBG [11] Interrupt request from UART1 RTC_INT [10] ORed value between the following: - Interrupt request from RTC1_Misc - Interrupt request from RTC0_Misc...
Page 115
CXD5602 User Manual [30] Interrupt request from SPI Flash controller GNSSOR [29] ORed value of GNSS Receiver interrupts Reserved [28] Reserved CRYPTO_AES_MS [27:26] Interrupt request from Crypto (AES) BusMaster CRYPTO_AES_CO [25:24] Interrupt request from Crypto (AES) AES ADMAC [23:22] Interrupt request from ADMAC...
Page 116
The Power Management Unit (referred to as “PMU” hereinafter) is the block that performs overall power supply control of the CXD5602. The CXD5602 has a large power domain, which is divided into 11 domains. It performs ON control of necessary power domains only, while performing OFF control of the unnecessary ones, thereby reducing the power consumption.
Page 117
CXD5602 User Manual 3.4.1.1 Individual Power Supply Control within the Power Domains The SRAM or analog circuits such as the ADC within the power domains enable individual power supply control. -117/1010-...
Page 119
CXD5602 User Manual Using the PWD_APP of Figure PMU (Power Management Unit)-27 as an example, Figure PMU (Power Management Unit)-28 explains how individual power supply control is performed within the power domains. The PWD_APP has a total of 1.5 Mbytes of SRAM as main memory for the Application Processor. It comprises 12 logic tiles in 128 Kbyte units, and each one can control the power supply individually.
Page 120
Power supply states Description Power Off Both the CXD5602 (referred to as “the LSI” hereinafter) and the CXD5247 are OFF. Deep Sleep The LSI is OFF and the CXD5247 is ON. In this state, the RTC of the CXD5247 is counting, and time information can be obtained from the CXD5247 after the LSI is started.
Page 121
CXD5602 User Manual State: Power OFF CXD5247 CXD5602 System and Application GNSS Sensor State: Normal (Domain ON) IOP Domain Domain Domain Domain (PMIC) (Transition to each state is possible.) CXD5602 System and Application GNSS Sensor IOP Domain Domain ON Domain OFF...
Page 123
CXD5602 User Manual GNSS Domain PWD_GNSS_ITP PWD_GNSS SRAM (GNSS BB#0) SRAM (GNSS BB#1) SRAM (GNSS BB#2) SRAM (GNSS BB#3) SRAM (GNSS BB#4) SRAM (GNSS BB#5) RF (LNA) RF (MIX) RF (IF) RF (ADC) RF (LO) RF (PLL) 3.4.1.3 Block Diagram Figure PMU (Power Management Unit)-30 shows the block diagram of the PMU, which is mainly comprised of three blocks.
Page 124
CXD5602 User Manual layer and lower layer, the Power Control Sequencer first turns ON the power supply of the upper layer (PWD_APP) and then turns ON the power supply of the lower layer (PWD_APP_DSP). The CPU can recognize the completion of power supply control by the interrupt.
Page 125
Figure PMU (Power Management Unit)-31 PMU Clock System Reset The PMU is reset by full reset of the CXD5602 (external reset (RST_X) or RCOSC POR or WDT reset), by automatic release. Reset cannot be applied to the PMU alone. -125/1010-...
Page 126
CXD5602 User Manual 3.4.2 Register List Table PMU (Power Management Unit)-36 shows a list of registers related to each feature of the PMU. Table PMU (Power Management Unit)-36 PMU Register List Address Register Name Type Description Initial Value 0x04100000 PWD_CTL...
Page 127
CXD5602 User Manual 0x04100C40 GNSSDSP_RAMMODE_STAT Power supply status (SRAM for GNSS DSP) 0x0000FFFF 0x04103000 PSW_CHECK Power supply setting check 0x00000000 0x04103004 Reserved Reserved 0x04103034 0x04103C00 GNSS_RAMMODE_SEL Power supply setting (SRAM for GNSS) 0x00000000 0x04103C30 GNSS_RAMMODE_STAT Power supply status (SRAM for GNSS)
Page 128
CXD5602 User Manual 3.4.3 Register Descriptions 3.4.3.1 Register Settings Within the power supply control register (PWD_CTL, *_RAMMODE_SEL, ANA_PW_CTL), there is a Write Enable for each power supply. Power supply control is enabled only for power supplies with Write Enable set to “1”, allowing the control of the desired power supply without performing read-modify-write.
Page 129
CXD5602 User Manual Reserved [11] Reserved PWD_APP_SUB [10] Power supply control setting 1: ON, 0: OFF PWD_APP_DSP PWD_APP Reserved Reserved PWD_SYSIOP_SU Power supply control setting 1: ON, 0: OFF PWD_SYSIOP PWD_CORE Reserved [3:1] Reserved PWD_SCU Power supply control setting 1: ON, 0: OFF Note: The power supplies that are controlled are only the ones to which “1”...
Page 130
CXD5602 User Manual 3.4.3.3 Power Supply Control (SRAM) Table PMU (Power Management Unit)-39 and Table PMU (Power Management Unit)-40 show the registers related to power supply control of the SRAM. For the power supply control method, refer to the control flow described in Section 3.4.4.1.
Page 133
CXD5602 User Manual BKRAM0 [17:16] 2'b11 2'b11: On mode 2'b01: Retention mode 2'b00: ShutDown mode 2'b10: Prohibited setting Reserved [15:6] Reserved SCUSEQ [5:4] 2'b00 Power supply status SCU_FIFO1 [3:2] 2'b00 2'b11: On mode 2'b01: Retention mode SCU_FIFO0 [1:0] 2'b00 2'b00: ShutDown mode...
Page 134
CXD5602 User Manual RAM6 [1:0] 2'b00 3.4.3.4 Power Supply Control (Analog Circuit) Table PMU (Power Management Unit)-41 and Table PMU (Power Management Unit)-42 show the registers related to power supply control of the analog circuit. For the power supply control method, refer to the control flow described from Section 3.4.4.1.1 to Section 3.4.4.1.6.
Page 136
CXD5602 User Manual RCOSC 3.4.3.5 Power Supply Control Request Table PMU (Power Management Unit)-43 shows the power supply control request registers. By writing “1” to PMU_PW_CTL.POWER_CTRL_ON, power supply control starts according to the value of the power supply control setting register (PWD_CTL, *_RAMMODE_SEL, ANA_PW_CTL).
Page 137
CXD5602 User Manual DONE Indicates the status after the interrupt factor is masked by the interrupt mask register. 0x04100044 PMU_RAW_INT Reserved [31:2] Reserved _STAT NOGO_CTRL Interrupt factor 1: Interrupt exists DONE 0: No interrupt 0x04100048 PMU_INT_CLR Reserved [31:2] Reserved The API may change the value. Perform read-modify-write when writing values to NOGO_CTRL and DONE.
Page 138
CXD5602 User Manual Table PMU (Power Management Unit)-46 Power Supply Setting Check Items PSW_CHECK Category Content checked ( ) [31] Power supply “RCOSC power supply and PMU clock source check” control When turning OFF the RCOSC, make sure to change the operation clock of the PMU from RCOSC to RTC_CLK_IN beforehand.
Page 139
CXD5602 User Manual [16] “Power supply setting check (RF and SRAM) of the GNSS Domain” When turning ON the SRAM for GNSS or RF, also turn ON the PWD_GNSS. When turning OFF the PWD_GNSS, also turn OFF the SRAM for GNSS and RF.
Page 140
CXD5602 User Manual When turning ON the SYSPLL, also turn ON the XOSC. When turning OFF the XOSC, also turn OFF the SYSPLL. To turn ON the XOSC ON, SYSPLL: ANA_PW_CTL=0x00060006 To turn OFF the XOSC OFF, SYSPLL: ANA_PW_CTL=0x00060000 (...
Page 145
CXD5602 User Manual 3.4.4.1.1 RCOSC OFF => ON Control Flow The following describes the flow to turn ON the power supply of the RCOSC. 1. RCOSC power supply ON setting ANA_PW_CTL=32'h00010001 2. Interrupt clear PMU_INT_CLR.CLR[1:0]=2'b11 3. Interrupt mask cancel PMU_INT_MASK.MSK[1:0]=2'b00 4.
Page 146
CXD5602 User Manual PMU_PW_CTL.POWER_CTRL_ON=1 5. Interrupt confirmation Confirm PMU_INT_STAT.STAT[1:0]=2'b01 6. Interrupt clear PMU_INT_CLR.CLR[1:0]=2'b11 3.4.4.1.2 XOSC OFF => ON Control Flow The following describes the flow to turn ON the power supply of the XOSC. 1. XOSC parameter setting Refer to Table PMU (Power Management Unit)-48 for the settings of ANA_EN_CTL.
Page 147
CXD5602 User Manual 3. The setting value of current adjustment is different for each frequency of the XOSC. Table PMU (Power Management Unit)-49 shows the assumed combination of the crystal oscillator, damping resistor, and the oscillation circuit setting. Table PMU (Power Management Unit)-49 Current Adjustment Setting...
Page 148
CXD5602 User Manual XOSC_CTRL.IXO_LV_LOGICLK_EN=0 (for each function block) ON => OFF Control Flow The following describes the flow to turn OFF the power supply of the XOSC. As a precondition, make sure that the power supply of the SYSPLL is turned OFF during this operation.
Page 149
CXD5602 User Manual 3.4.4.1.3 SYSPLL OFF => ON Control Flow The following describes the flow to turn ON the power supply of the SYSPLL. As a precondition, perform the control with the power supply of the XOSC turned ON, and the clock supplied to the SYSPLL (XOSC_CTRL.IXO_LV_PLLCLK_EN=1).
Page 150
CXD5602 User Manual 6. Interrupt confirmation Confirm PMU_INT_STAT.STAT[1:0]=2'b01 7. Interrupt clear PMU_INT_CLR.CLR[1:0]=2'b11 8. Clock control Control the supply/stop of the clock in accordance with the function block or Analog circuit you use. In the case of supplying the clock ...
Page 151
CXD5602 User Manual PMU_INT_CLR.CLR[1:0]=2'b11 4. Interrupt mask cancel PMU_INT_MASK.MSK[1:0]=2'b00 5. HPADC power supply ON control PMU_PW_CTL.POWER_CTRL_ON=1 6. Interrupt confirmation Confirm PMU_INT_STAT.STAT[1:0]=2'b01 7. Interrupt clear PMU_INT_CLR.CLR[1:0]=2'b11 8. Reset release SWRESET_SCU.XRST_SCU_HPADC=1 9. Clock control For details, refer to Section xxx. ON => OFF Control Flow The following describes the flow to turn OFF the power supply of the HPADC.
Page 152
CXD5602 User Manual 3.4.4.1.5 LPADC OFF => ON Control Flow The following describes the flow to turn ON the power supply of the LPADC. The PWD_SCU must be turned ON for this operation. 1. LPADC power supply ON setting ANA_PW_CTL=32'h20002000 2.
Page 153
CXD5602 User Manual 8. LPADC clock stop For details, refer to Section xxx. 3.4.4.1.6 OFF => ON Control Flow The following describes the flow to turn ON the power supply of the RF (LNA, MIX, IF, ADC, LO, PLL). The XOSC, PWD_GNSS_ITP, and PWD_GNSS must be turned ON for this operation.
Page 154
CXD5602 User Manual 3.4.5 Power Supply Control Example 3.4.5.1 Actual Example of Power Supply Control By ORing the power supply control setting (PWD_CTL, *_RAMMODE_SEL, ANA_PW_CTL) of each power supply, you can control multiple power supplies together by a single power supply control request (PMU_PW_CTL.POWER_CTRL_ON).
Page 155
3.4.5.2 Application Processor Sleep/Wakeup Control In this document, the term Sleep refers to cases when any of the power domains of the CXD5602 turn OFF, or when the DSP belonging to that power domain is not operating. On the other hand, Wakeup refers to cases when they turn ON, or when the DSP belonging to that power domain starts operating.
Page 156
CXD5602 User Manual PMU (Power Management Unit)-32 shows the control flow diagram. Control Overview Sleep control The Application Processor requests Sleep (PWD_APP_DSP "OFF”) control to the System and I/O Processor. After the Application Processor has made this request, it enters WFI state. The System and I/O Processor then confirms that the Application Processor has entered WFI state, and performs OFF control of the PWD_APP_DSP.
Page 157
CXD5602 User Manual 3. Turn ON the PWD_APP_DSP (Refer to Section 3.4.4.1 Basic flow of power supply control) Control of Application Processor side (reference) Starts when the System and I/O Processor turns ON the power supply of the PWD_APP_DSP 1.
Page 158
3.5.1 Overview The Clock Reset Generator (CRG) is the block that controls the clock and reset of the overall CXD5602. For the clock sources, there are XOSC and RCOSC, SYSPLL, RTC Clock, and RF. The RTC Clock is supplied from the outside of the CXD5602.
Page 159
CXD5602 User Manual Application Domain 163MHz(High performance mode) Divider / 40MHz(Low Power mode) Application Divider Processor APP Bus Divider Divider Peripheral CIS I/F 49.104MHz Divider SDIO 2D Graphics 49.104MHz eMMC Divider Divider AUDIO MCLK 24.576kHz System and IOP Domain 100MHz(High performance mode)
Page 160
CXD5602 User Manual 3.5.3 Analog Circuits The CRG has three analog circuits (RCOSC block, XOSC block, and SYSPLL block). The following shows the setting confirmation registers of each analog circuit. Some of them are RW registers, but use them as RO registers.
Page 161
CXD5602 User Manual *Supported frequencies: 26 MHz The XOSC can be used as the processor’s operation clock and is also supplied as the reference clock to the SYSPLL and RF. 3.5.3.2.1 Register Descriptions Table Clock and Reset (Clock Reset Generator)-52 shows the control registers related to the XOSC block.
Page 162
CXD5602 User Manual 3.5.3.3 SYSPLL Block Setting Confirmation The frequencies of SYSPLL can be confirmed by the XOSC frequency and division ratio setting register as shown in Table Clock and Reset (Clock Reset Generator)-53. Table Clock and Reset (Clock Reset Generator)-53 SYSPLL Frequency Confirmation XOSC SYS_PLL_CTRL2.ISP_L...
Page 163
CXD5602 User Manual _CTRL2 ISP_LV_SELFBDIV [29:27] 3'b001 FBDIV frequency division ratio switching Reserved [26:0] Reserved 3.5.4 Clock Setting Confirmation 3.5.4.1 Register Descriptions The following describes the status confirmation registers of the clock switching and the clock Enable. Some of them are RW registers, but use them as RO registers.
Page 164
CXD5602 User Manual Figure Clock and RORTC_STAT_CLK [13] Indicated as SEL(3) in Reset (Clock Reset Generator)-34 _SEL2 Clock source switching status for power supply control 0: RCOSC 1: RTC Clock Reserved [12] Reserved Figure Clock and RFPLL1_STAT_CLK [11:10] Indicated as SEL(2) in...
Page 165
CXD5602 User Manual 3.5.4.1.2 Clock Enable Table Clock and Reset (Clock Reset Generator)-56 shows the status registers of clock Enable (clock supplied/clock stopped). Table Clock and Reset (Clock Reset Generator)-56 Clock Enable Status Registers Address Register Bit Field Type Initial...
Page 166
CXD5602 User Manual 3.5.5 Power Domain Reset The reset of each power domain can be controlled by the registers excluding some domains. When releasing a reset, first perform ON control of the corresponding power domain, and then release the reset.
Page 167
By detecting the asserting of the WDT within the System and I/O Processor, a reset is automatically issued to each block of the CXD5602. However, reset by the WDT is not performed for the following registers or SRAM. (Reset is performed only during POR).
Page 168
CXD5602 User Manual Register: RAMMODE.LS (0x041006E4) Register: BOOT_CAUSE.RAW_WDT_REBOOT (0x04100484) SRAM: BackUpRAM Note: In the case of accessing the BackUpRAM after reset by WDT, clear the WDT factor register. The WDT asserting flag of the System and I/O Processor is stored in the BOOT_CAUSE.RAW_WDT_REBOOT.
Page 169
CXD5602 User Manual RAW_INITIAL_BO Boot flag 1: Boot by POR or WDT When booted by POR RAW_WDT_REBOOT =0 RAW_INITIAL.BOOT =1 When booted from WDT RAW_WDT_REBOOT =1 RAW_INITIAL.BOOT =1 -169/1010-...
Page 170
RTC1 (power supply domain: PWD_SYSIOP) RTC0 is supplied with VDD_CORE of CXD5602, and after the reset release, it continues counting time. On the other hand, RTC1 counts time only when PWD_SYSIOP is powered on. When the PWD_SYSIOP power supply is turned off, the Time Counter returns to “0”.
Page 171
The clock source of the RTC is selected from either a real time clock (32.768 kHz) provided by an RTC IC outside CXD5602 or real time clock from an internal clock (about 32 kHz) divided from the RCOSC. Initial value after the reset release is “0”...
Page 172
Alarm Timers. Registers are set via APB IF block. APB IF block is operated by PWD_SYSIOP power supply. RTC0 can select one Alarm from three Alarms, and output it from CXD5602 RTC_IRQ_OUT terminal. Update function of Time Counter (Time Update) is shown in the block diagram on the next page.
Page 173
How to set Time Synchronization 3. You can set another RTC Time Counter value inside CXD5602. 4. At the timing of asserting either External Alarm Flag (Interrupt from PMIC_INT) or Alarm from RTC inside CXD5602 (RTCx_ExtAlm), you can set the designated Time Counter value.
Page 174
CXD5602 User Manual to Other RTC Counter Time Counter {Post, Pre} from Other RTC Counter APB IF WrRegPostCnt WrRegPreCnt OffsetVal 1:Register WrRegReq 2:Offset Time Counter Update OffsetReq update done 3:RTC Sync Flag RtcSyncReq 4:External Sync WrIntCtrl CntUpdateEn WrIntCtrl.Edge RTC0_ExtAlm RTC1_ExtAlm...
Page 175
CXD5602 User Manual 3.6.5 Detailed Function and Control Specification 3.6.5.1 List of Registers Table RTC-63 Register List of Counter Value Write Control System Offset Register Name Attribute Function Initial Value 0x00 WrRegPostCnt Time Counter value (PostCounter) 0x00000000 0x04 WrRegPreCnt Time Counter value (PreCounter)
Page 176
CXD5602 User Manual Table RTC-65 Register List of Alarm Control System Offset Register name Attribute Function Initial Value 0x50 SetAlmPostCnt0 Comparison Value of PostCounter for Alarm0 0xFFFFFFFF 0x54 SetAlmPreCnt0 Comparison Value of PostCounter for Alarm0 and Status 0x00007FFF The status of some bits is RO.
Page 177
CXD5602 User Manual (Comparison Value of PostCounter for Alarm1 currently used by RTC) 0x9C DbgSetAlmPreCnt1 Read Value of DbgSetAlmCnt1[14:0] 0x00007FFF (Comparison Value of PreCounter for Alarm1 currently used by RTC) 0xA0 DbgSetAlmPostCnt2 Read Value of DbgSetAlmCnt2[46:15] 0xFFFFFFFF (Comparison Value of PostCounter for Alarm2 currently...
Page 178
CXD5602 User Manual 3.6.5.2 Register Descriptions By turning off the PWD_SYSIOP power supply, all register values of RTC1 (from 0x04109000 to 0x041090C8) return to initial values. However, no register values of RTC0 (from 0x04108000 to 0x041080C8) return to initial values. When tuning on the PWD_SYSIOP power supply again, alarm information set in the RTC0 can be read.
Page 179
CXD5602 User Manual 3.6.5.2.2 WrRegPreCnt(0x04) Reserved Rese rved bit[14:0] : Pre[14:0] (PreCounter Write Value) This is a value reflected on PreCounter of RTC when Write Request (WrRegReq) is issued, or when RTC receives External Alarm Flag. 3.6.5.2.3 WrRegReq(0x08) Reserved...
Page 180
CXD5602 User Manual When WrReg(Post/Pre)Cnt value is reflected to (Post/Pre)Counter and Write Request becomes possible to be issued again, this register is cleared to “0” automatically. 3.6.5.2.4 WrIntCtrl(0x18) Reserved Reserved Edge Reserved Busy bit[0] : Busy (Request for waiting for External Alarm Flag) When you write “1”...
Page 181
CXD5602 User Manual 3.6.5.2.5 WrIntClr(0x1C) Reserved Reserved Busy bit[0] : Busy (Cancel of waiting for External Alarm Flag) When you write “1” on Busy, this register cancels Request for waiting for External Alarm Flag (WrIntCtrl.Busy is cleared to “0”).
Page 182
CXD5602 User Manual 3.6.5.2.7 OffsetReq(0x24) Reserved Busy Reserved bit[0] : BusyA (Correction request for RTC Counter value) This register issues a correction request for RTC Counter value. After issuing the request, it adds OffsetVal value to RTC Counter. BusyA Description of Functions Writing 0: You cannot write “0”.
Page 183
CXD5602 User Manual 3.6.5.2.8 RtcSyncReq(0x28) Reserved Reserved bit[0] : Req (Synchronization request with other RTC Counter) When you write “1”, this register issues a synchronization request. After issuing the request, this register makes one RTC import the other internal RTC counter value to its own value, and makes it synchronize with the other RTC.
Page 184
CXD5602 User Manual 3.6.5.2.9 RdReq(0x30) Reserved Busy Reserved bit[0] : BusyA (Read Request) When you write “1”, this register issues a Read Request. Once the Read Request is issued, RTC Counter value at the time when it is issued can be read from RdPostCnt and RdPreCnt.
Page 185
CXD5602 User Manual 3.6.5.2.11 RdPreCnt(0x38) Reserved Rese rved bit[14:0] : Pre[14:0] (PreCounter value at the time of Read Request) By reading this register, you can see the PreCounter value at the point of time when the read request was issued.
Page 186
CXD5602 User Manual 3.6.5.2.12 RtPostCnt(0x40) Post Post bit[31:0] : Post[31:0] (PostCounter value when RtPostCnt was read) The following are differences from Rd(Post/Pre)Cnt. There is no need to issue a Read Request (RdReq). After you write “1” on RdReq, there is no restriction to wait for RdReq to become 0.
Page 187
CXD5602 User Manual 3.6.5.2.14 SetAlmPostCnt0(0x50) Post Post bit[31:0] : Post[31:0] (Comparison Value of PostCounter for AlmFlg.Flg0 and AlmFlg.ErrFlg0) This register sets Operation time (PostCounter) of Alarm0. This register compares SetAlm(Post/Pre)Cnt0 with RTC Counter (PostCounter and PreCounter) by using absolute value, and generates Normal Alarm0 or Error Alarm0.
Page 188
CXD5602 User Manual 3.6.5.2.15 SetAlmPreCnt0(0x54) Reserved Busy Rese rved bit[14:0] : Pre[14:0] (Comparison value of PreCounter for AlmFlg.Flg0 and AlmFlg.ErrFlg0) This register sets operation time (PreCounter) of Alarm0. It takes time to reflect a new Alarm Operation time. During reflecting, do not update the Alarm Operation time.
Page 189
CXD5602 User Manual 3.6.5.2.16 SetAlmPostCnt1(0x58) Post Post bit[31:0] : Post[31:0] (Comparison Value of PostCounter for AlmFlg.Flg1 and AlmFlg.ErrFlg1) This register sets Operation time (PostCounter) of Alarm1. This register compares SetAlm(Post/Pre)Cnt1 with RTC Counter (PostCounter and PreCounter) by using absolute value, and generates Normal Alarm1 or Error Alarm1.
Page 190
CXD5602 User Manual Reading 1: Alarm Operation time is being reflected. SetAlm(Post/Pre)Cnt1 must not be written. 3.6.5.2.18 SetAlmPostCnt2(0x60) Post Post bit[31:0] : Post[31:0] (Comparison Value of PostCounter for AlmFlg.Flg2) This register sets Operation time (PostCounter) of Alarm2. The function of Alarm2 is different from that of Alarm0 and Alarm1.
Page 191
CXD5602 User Manual SetAlm(Post/Pre)Cnt2 must not be updated). Once the reflection is completed, Busy becomes “0” automatically. Busy Description of Functions Reading 0: Alarm Operation time is not set or reflected completely. Reading 1: Alarm Operation time is being reflected. SetAlm(Post/Pre)Cnt2 must not be written.
Page 192
CXD5602 User Manual Writing 0: invalid Writing 1: deasserts Normal Alarm Flag2 When Normal Alarm Flag2 is deasserted, this register is cleared to “0” automatically. bit[16] : ErrFlg0 (Clear of Error Alarm Flag0) When you write “1” on AlmClr.Flg0, Error Alarm0 Interrupt is deasserted, and Error Alarm Flag0 is cleared.
Page 193
CXD5602 User Manual If conditions are met, interrupt will be asserted. 1'b0 is set on En, an interrupt request is disabled. However, status register AlmFlg.Flg0 transitions to 1'b1 if conditions are met. bit[8] : Busy (Write Busy Status) This register indicates how far AlmOutEn0 register is reflected.
Page 194
CXD5602 User Manual 3.6.5.2.22 AlmOutEn1(0x78) Reserved Reserved Busy Reserved bit[0] : En (Enable Signal for Normal Alarm1 Interrupt) This register does the settings for notifying processor of Normal Alarm Flag1. It takes time to reflect the settings. During reflecting, do not update the settings. You can check whether it is in the process of reflecting by using Busy.
Page 195
CXD5602 User Manual ErrEn Description of Functions Writing 0: disables an interrupt request to processor. Even if conditions are met, interrupt will be deasserted. Writing 1: enables an interrupt request to processor. If conditions are met, interrupt will be asserted.
Page 196
CXD5602 User Manual 3.6.5.2.23 AlmOutEn2(0x7C) Reserved Reserved Busy Reserved bit[0] : En (Enable Signal for Normal Alarm2 Interrupt) This register does the settings for notifying processor of Normal Alarm Flag2. It takes time to reflect the settings. During reflecting, do not update the settings. You can check whether it is in the process of reflecting by using Busy.
Page 197
CXD5602 User Manual 3.6.5.2.24 AlmFlg(0x80) Reserved Flg1 Flg0 Reserved Flg2 Flg1 Flg0 By reading this register, you can see Normal Alarm and Error Alarm Flag (Alarm Interrupt value before controlling registers Enabled or Disabled by using AlmOutEn). When the conditions are as described in the Table RTC-68 below, an Alarm occurs.
Page 198
CXD5602 User Manual Normal Alarm1 Interrupt is asserted. bit[2] : Flg2 (Normal Alarm Flag2) Flg2 Description of Functions Normal Alarm2 Interrupt is deasserted. Normal Alarm2 Interrupt is asserted. bit[0] : ErrFlg0 (Error Alarm Flag0) Flg0 Description of Functions Error Alarm0 Interrupt is deasserted.
Page 199
CXD5602 User Manual Rese rved bit[14:0] : Dbg[14:0] (Current SetAlmPreCnt0 value) This register is used for debugging. By reading this register, you can see SetAlmPreCnt0 Value that is currently used in RTC. By using this register, you can check whether the set value has been normally reflected on SetAlmPreCnt0 or not.
Page 200
CXD5602 User Manual currently used in RTC. By using this register, you can check whether the set value has been normally reflected on SetAlmPreCnt1 or not. 3.6.5.2.29 DbgSetAlmPostCnt2(0xA0) bit[31:0] : Dbg[31:0] (Current SetAlmPostCnt2 value) This register is used for debugging. By reading this register, you can see comparison value of PostCounter for Alarm2 that is currently used in RTC.
Page 201
CXD5602 User Manual 3.6.5.2.31 CntUpdateClr(0xB0) Reserved Reserved When RTC Counter has been updated completely, the interrupt flag notifying that RTC Counter has been updated is asserted (set). If Clear Register is written, the interrupt flag can be deasserted (reset) instantly.
Page 202
CXD5602 User Manual 3.6.5.2.33 CntUpdateFlg(0xB8) Reserved Reserved By reading this register, you can see the interrupt flag notifying that RTC Counter has been updated (Interrupt value before being controlled Enabled or Disabled by CntUpdateEn). If RTC Counter is updated under the following conditions, CntUpdateFlg becomes “1”.
Page 203
CXD5602 User Manual 3.6.5.2.34 DiffSignBit(0xC0) Reserved Reserved bit[0] : Val (sign bit of difference value from other RTC Counter) By reading this register, you can see sign when difference (means one RTC Counter (47 bits) minus other RTC Counter (47 bits)) is calculated.
Page 204
CXD5602 User Manual 3.6.5.2.36 DiffPreCnt (0xC8) Reserved Rese rved bit[14:0] : Val[14:0] (Difference from other RTC Counter value) By reading this register, you can see lower 15 bits of the difference (47 bits) (means one RTC Counter (47 bits) minus other RTC Counter (47 bits)).
Page 205
CXD5602 User Manual EXTALM_SEL Description of Functions 1 is output as an External Output Alarm (RTC0_ExtAlm). (When EXTALM_POL indicates “1”) bit[4] : EXTALM_POL (External Alarm Output Select Signal) This register sets signal logic (positive logic or negative logic) of External Output Alarm.
Page 206
CXD5602 User Manual 3.6.5.2.38 RTC1_RTC_CTL (0x04100730) Reserved EXTALM_S Reserved Reserved SYNC_SEL Reserved Reserved bit[1:0] : EXTALM_SEL [1:0] (External Alarm Output Select Signal) This register selects one AlarmFlag from AlarmFlag0, AlarmFlag1, and AlarmFlag2 as an Alarm output outside (RTC1_ExtAlm). EXTALM_SEL Description of Functions AlarmFlag0 is used as an External Output Alarm (RTC1_ExtAlm).
Page 207
CXD5602 User Manual EXTALM_SEL Description of Functions RTC1_ExtAlm is used as a trigger of Time Synchronization. This alarm is used when IOCSYS_IOMD0.PMIC_INT indicates 2. For details, refer to Chapter 3.1.4.3.2. This alarm is used when IOCSYS_IOMD0.PMIC_INT indicates 3. For details, refer to Chapter 3.1.4.3.3.
Page 208
CXD5602 User Manual 3.6.5.3 Control Flow 3.6.5.3.1 Update of RTC Counter Value This function is used when you reflect values, which are set by registers, on RTC Counter value (PostCounter[31:0], PreCounter[14:0]). The sequence is as follows. 1. On WrRegPostCnt register, write a value that you want to reflect on PostCounter.
Page 209
CXD5602 User Manual 3.6.5.3.3 Synchronization of External RTC Synchronization of External RTC is a function that sets time of RTC inside CXD5602 by receiving interrupts from outside including PMIC (PMIC_INT). Synchronizing CXD5602 with CXD5247 The sequence when CXD5602 (hereinafter called the LSI) is synchronized with CXD5247 (hereinafter called the PMIC) is described below.
Page 210
4. Write “1” on WrIntCtrl.Busy register. Receiving PMIC External Alarm from PMIC_INT, synchronization between RTC in the PMIC and RTC in the CXD5602 will be completed on the time (Y[46:6]-1) designated in 2 above. Once synchronization has been completed, WrIntCtrl.Busy becomes “0”.
Page 211
Difference Calculation between CXD5602 and CXD5247 RTC of CXD5602 operates at 32.7 kHz clock frequency. Meanwhile, RTC of CXD5247 operates at 512 Hz clock frequency. For this reason, there might be time difference between the PMIC and the LSI when CXD5247 (hereinafter called PMIC) is synchronized with CXD5602 (hereinafter called LSI).
Page 212
CXD5602 User Manual 3. On SetAlmPostCnt0 register, write the time that you want to output an Alarm. Make sure to write SetAlmPostCnt0 before SetAlmPreCnt0. 4. On SetAlmPreCnt0 register, write the time that you want to output an Alarm. An Alarm is output at the time set in 3 and 4 above.
Page 213
CXD5602 User Manual Table I2C-70 XOSC (26 MHz), High Performance Mode Clock source SYSPLL XOSC RCOSC frequency M Hz 195.000 156.000 26.000 8.192 0.032768 SYSIOP (ck_ahb_gear,ck_com_gear) M Hz 48.750 39.000 26.000 8.192 0.032768 I2C2 BCK kbps 1.424696 I2C4 BCK kbps 1.424696...
Page 214
CXD5602 User Manual 3.7.2.1 Register List Table I2C-80 shows a register list of the I2C0 and I2C1. Table I2C-72 I2C0 and I2C1 Register List Address Register Name Type Description initial Value 0x0418D400 I2C0 register (For details, refer to the API)
Page 215
CXD5602 User Manual 3.7.2.3 Clock Supply Start and Stop 3.7.2.3.1 Clock Supply Start The following describes the method to start clock supply to the I2C0 and I2C1. 1. Clock supply start (internal circuit initialization) SCU_CKEN.SCU_I2C0 = 1'b1 SCU_CKEN.SCU_I2C1 = 1'b1...
Page 216
CXD5602 User Manual 3.7.3 I2C2 The I2C2 is the I2C master and supports Standard and Fast Mode. 3.7.3.1 Register List Table I2C-81 shows a register list of the I2C2. Table I2C-73 I2C2 Register List Address Register Name Type Description initial...
Page 217
CXD5602 User Manual 3.7.3.3 Clock Supply Start and Stop 3.7.3.3.1 Clock Supply Start The following describes the method to start clock supply to the I2C2. 1. Clock supply start of the AHB/APB Bus Bridge. SYSIOP_SUB_CKEN.COM_BRG = 1'b1 SYSIOP_SUB_CKEN.AHB_BRG_COMIF = 1'b1 2.
Page 218
CXD5602 User Manual 3.7.4 I2C4 The I2C4 is the I2C master and supports Standard and Fast Mode. 3.7.4.1 Register List TTable I2C-82 shows a register list of the I2C4. Table I2C-74 I2C4 Register List Address Register Name Type Description initial...
Page 219
CXD5602 User Manual 3.7.4.3 Clock Supply Start and Stop 3.7.4.3.1 Clock Supply Start The following describes the method to start clock supply to the I2C4. 1. Clock supply start (internal circuit initialization). PMU_CORE_CKEN.RTC_PCLK = 1'b1 PMU_CORE_CKEN.PMU_RTC_PCLK = 1'b1 Reads the address 0x04106000 of I2C4 (dummy read to wait for completion of preceding setting) 2.
Page 220
CXD5602 User Manual DMAC 3.8.1 Overview and Features List of DMACs SDMAC (Power domain: PWD_SYSIOP) The SDMAC is for the Sensor and performs DMA transfer between the SCU and each SRAM HDMAC (Power domain: PWD_SYSIOP) The HDMAC is for the HOSTIFC and performs DMA transfer between the HOSTIFC and each SRAM ...
Page 221
CXD5602 User Manual Table DMAC-83 shows the DMA request bit assignment for Memory-to-peripheral transfer and Peripheral-to-memory transfer of each DMAC. The ADMAC supports Memory-to-memory transfer only. Table DMAC-75 DMA Request Bit Assignment Request Bit SDMAC HDMAC SYDMAC SYSUBDMAC ADMAC IDMAC...
Page 222
CXD5602 User Manual 3.8.3 SDMAC ® Adds a feature to notify the CPU of independent interrupts or each DMA channel to the PrimeCell µDMA Controller (PL230). The interrupt signal is changed from pulse to level The interrupt factor register (dma_done, dma_err) is added.
Page 223
CXD5602 User Manual 3.8.3.1 Register List Table DMAC-84 shows the registers that control the SDMAC. Table DMAC-76 SDMAC Control Register List Address Register Name Type Description initial Value ® 0x04120000 PrimeCell µDMA Controller (PL230) register 0x0412004C 0x04120050 dma_done Notifies DMA transfer completion of each DMA channel...
Page 224
CXD5602 User Manual 3.8.3.2 Register Descriptions Table DMAC-85 shows descriptions of the registers added to the SDMAC. Table DMAC-77 SDMAC Added Registers Bit Field Initial Address Register Name Type Description Name Value 0x04120050 dma_done dma_done [31:0] DMA channel number of DMA transfer completion...
Page 225
CXD5602 User Manual 3.8.3.4 Clock Supply Start and Stop 3.8.3.4.1 Clock Supply Start Perform the following control to start supplying the HCLK clock of the SDMAC. 1. Reset release Automatically released when the PWD_SYSIOP power domain is turned ON. 2. Clock supply start SYSIOP_CKEN.AHB_DMAC0=1'b1...
Page 226
CXD5602 User Manual 3.8.4.1 Register List Table DMAC-86 shows the registers that control the HDMAC. Table DMAC-78 HDMAC Control Register List Address Register Name Type Description initial Value ® 0x04121000 PrimeCell Single Master DMA Controller (PL081) register 0x04121FFC 3.8.4.2 Clock and Reset Figure DMAC-45 shows the clock and reset system diagram of the HDMAC.
Page 227
CXD5602 User Manual 3.8.4.3.2 Clock Supply Stop Perform the following control to stop supplying the HCLK clock of the HDMAC. 1. Clock supply stop SYSIOP_CKEN.AHB_DMAC1=1'b0 3.8.5 SYDMAC 3.8.5.1 Register List Table DMAC-87 shows the registers that control the SYDMAC. Table DMAC-79 SYDMAC Control Register List...
Page 228
CXD5602 User Manual 3.8.5.3 Clock Supply Start and Stop 3.8.5.3.1 Clock Supply Start Perform the following control to start supplying the HCLK clock of the SYDMAC. 1. Reset release Automatically released when the PWD_SYSIOP power domain is turned ON. 2. Clock supply start SYSIOP_CKEN.AHB_DMAC2=1'b1...
Page 229
CXD5602 User Manual RCOSC ck_cpu_bus SYSUBDMAC ck_rf_pll_1 ck_ahb_gear RTC_CLK_IN XOSC HCLK (32.768kHz) GATE Auto(PWD_SYSIOP_SUB Power Domain ON) SYSPLL HRESETn PWD_RESET0.PWD_SYSIOP_SUB CKSEL_ROOT.CPU_PLL_DIV5 CKSEL_ROOT.RFPLL1_STAT_CLK_SEL4 CKSEL_ROOT.STAT_CLK_SEL4 CKDIV_CPU_DSP_BUS.CK_M0 CKDIV_CPU_DSP_BUS.CK_AHB SYSIOP_SUB_CKEN.AHB_DMAC3 Figure DMAC-47 SYSUBDMAC Clock and Reset System 3.8.6.3 Clock Supply Start and Stop 3.8.6.3.1 Clock Supply Start Perform the following control to start supplying the HCLK clock of the SYSUBDMAC.
Page 230
CXD5602 User Manual 3.8.7.2 Clock and Reset Figure DMAC-48 shows the clock and reset system diagram of the ADMAC. RCOSC CK_APP XOSC RTC_CLK_IN(32.768kHz) GATE GEAR_AHB.gear_m_ahb SYSPLL GEAR_AHB.gear_n_ahb ADMAC CK_GATE_AHB.ck_gate_dmac GATE HCLK RESET.xrs_dsp_gen HRESETn APP_CKSEL.APP_PLL_DIV5 APP_CKSEL.STAT_SP_CLK_SEL4 IDMAC APP_CKSEL.STAT_APP_CLK_SEL4 CK_GATE_AHB.ck_gate_img GATE HCLK APP_CKEN.APP...
Page 231
CXD5602 User Manual 3.8.8 IDMAC ® The functions of the IDMAC have been modified based on the PrimeCell DMA Controller (PL080) from ARM Limited. Features of the IDMAC There are five DMA channels, each of which supports unidirectional transfer.
Page 232
CXD5602 User Manual 3.8.8.1 Register List Table DMAC-8 shows the registers that control the IDMAC. Table DMAC-8 IDMAC Control Register List Address Register Name Type Description initial Value 0x04123000 DMACIntStatus Interrupt Status Register 0x04123004 DMACIntTCStatus Interrupt Terminal Count Status Register...
Page 234
CXD5602 User Manual [13] 1'b0 When the arbiter within the DMAC schedules the transfers (for multiple transfer requests), scheme that determines the priority can be read out. Takes the following values depending on the configuration of the DMAC. 0: Fixed-priority...
Page 235
CXD5602 User Manual DMACSR [15:0] Masks the input of the DMA data transfer EQMASK request input terminal DMASREQ[15:0]. When masked, only DMABREQ[15:0] becomes valid. 0: DMASREQ input is masked 1: DMASREQ input is valid Note that the setting of this register...
Page 236
CXD5602 User Manual Channel Control [28] 1'b0 When DMACConfiguration.TS=1 register mapping changes (TransferSize expanded mapping) according to the TS value Indicates the AHB master channel used for the destination data transfer. DMACConfiguration 0: Selects AHB master 1 for the register.
Page 237
CXD5602 User Manual DSIZE [22:21] When DMACConfiguration.TS=1 (TransferSize expanded mapping) Indicates the burst size of the destination data transfer. Make sure to set this value to the burst size of the destination peripheral or to the memory boundary size if the memory is the destination.
Page 238
CXD5602 User Manual TRANSFE [18:0] When DMACConfiguration.TS=1 RSIZE (TransferSize expanded mapping) When the DMA controller is the flow controller, the amount of data transfer to be performed is written to this register. Values can be written from 0 to 524287.
Page 239
CXD5602 User Manual DESTME [25] Sets access of the AHB port, which is set MBURST as the memory access of the Destination side, so that it always conforms to the burst length set by DBSize. This is used to raise the efficiency of memory access.
Page 240
CXD5602 User Manual 0x04123114 DMACDefLLI_n DEFLLI [31:2] The address that points to the Default (n=0-3,step=0x20) Linked List Item. When transfer starts with the DefLLI function enabled, the LLI The register for setting of the address that DefLLI points to is the DefLLI.
Page 241
CXD5602 User Manual Important Points to Note About locked transfer Locked transfer is not supported. Do not set the corresponding function registers. DMACConfiguration Make sure to set the M1, M2 bits to little endian. Setting them to big endian is prohibited.
Page 242
CXD5602 User Manual 3.8.8.3 Clock and Reset Figure DMAC-50 shows the clock and reset system diagram of the IDMAC. RCOSC CK_APP XOSC GATE RTC_CLK_IN(32.768kHz) GEAR_AHB.gear_m_ahb SYSPLL GEAR_AHB.gear_n_ahb ADMAC CK_GATE_AHB.ck_gate_dmac GATE HCLK RESET.xrs_dsp_gen HRESETn APP_CKSEL.APP_PLL_DIV5 APP_CKSEL.STAT_SP_CLK_SEL4 IDMAC GATE APP_CKSEL.STAT_APP_CLK_SEL4 CK_GATE_AHB.ck_gate_img HCLK APP_CKEN.APP...
Page 243
CXD5602 User Manual SCU (Sensor Control Unit) 3.9.1 SCU Overview and Features The Sensor Control Unit (referred to as “SCU” hereinafter) is the block that provides control of capturing output data from the external sensor information. It offers the following features.
Page 244
CXD5602 User Manual Random Access Partitions x 1 Each partition is assigned to regions divided within an SRAM having 40 KByte (32bit x 2048words + 32bit x 8192 words) space. Power supply control of the FIFO SRAM can be performed from the PMU (Power Supply Control Unit) outside the SCU.
Page 246
CXD5602 User Manual 3.9.3 Memory Map Figure SCU (Sensor Control Unit)-52 shows the MemoryMap as seen from the SYSCPU. 0x003F_FFFF Reserved 0xFFFF_FFFF 0x001A_CFFF UART(4K) Reserved 0x001A_C000 (1792M) 0x001A_BFFF 0x9000_0000 SPIM(4K) 0x001A_B000 0x8FFF_FFFF 0x001A_AFFF SPIFLASHIF I2CM(4K) 0x001A_A000 (256M) 0x001A_9FFF 0x8000_0000 HostUART(4K)
Page 247
CXD5602 User Manual Figure SCU (Sensor Control Unit)-53 Memory Mapping within the SCU as seen from the Upper CPUs The Reserved area within this Figure is writing-invalid (no error response) and “0” read during readout (no error response). The data storage region including the FIFO RAM (32 KByte) and FIFO RAM (8 KByte) is 40 KByte. Refer to Section 3.9.8 for details.
Page 248
CXD5602 User Manual The Reserved area within this Figure is writing-invalid (no error response) and “0” read during readout (no error response). Figure SCU (Sensor Control Unit)-54 Memory Mapping as seen from the Internal Sequencer Figure SCU (Sensor Control Unit)-55 shows the Memory Mapping as seen from the SCU window of the HOSTIFC.
Page 249
CXD5602 User Manual 3.9.4 Clock Control 3.9.4.1 Clock Summary Table SCU (Sensor Control Unit)-82 Clock Summary Clock Name Maximum Frequency Maximum Frequency Usage (High Performance mode) (Low Power mode) CK_SCU_SCU 13MHz 13MHz SCU Main CK_SCU_SCU_SC 13MHz 13MHz SCU Main CPU control only...
Page 250
CXD5602 User Manual RCOSC (standard operating frequency of 8.13 MHz) XOSC CK_SCU_32K (RTC clock or RCOSC divided by 250) For the XOSC, frequency divisions of 1, 2, 3, or 4 can be selected by the CRG. However, since the maximum operating frequency of the SCU is 13 MHz, you will need to select the appropriate frequency division in accordance with the crystal oscillator that is connected from outside.
Page 251
CXD5602 User Manual CK_SCU_SPI For SPI CK_SCU_I2C0 For I2C0 CK_SCU_I2C1 For I2C1 CK_SCU_SEQ For sequencer CK_SCU_BRG_H For AHB bridge Directly connected from CK_SCU_32K For PWM timer Selector 1 The Clock Source Selector and frequency division circuit can be controlled from the TOPREG.
Page 252
CXD5602 User Manual provided to CK_SCU_SCU_SPI, CK_SCU_SCU_I2C1, and CK_SCU_SCU_I2C0 are controlled by the signal that is made by ORing dedicated bit in the SCU_CKEN: the signal from the upper layer, and the signal (2) from the internal sequencer of the SCU. Note that each control signal from the internal sequencer that is input to each clock’s control is independent.
Page 253
CXD5602 User Manual 3.9.4.6 Clock Control from Internal Sequencers To reduce power consumption, the firmware of the internal sequencers attempts to stop as many as clocks as possible during Sleep. Also, since SPI, I2C0, and I2C1 are master devices, each of their clocks are controlled by the internal sequencers so they operate only during data transfer (Table SCU (Sensor Control Unit)-94).
Page 254
CXD5602 User Manual Table SCU (Sensor Control Unit)-87 Clock Control from CPU Operation requested from Internal Register clock clock clock clock clock clock clock clock Access (incl. FIFO) (1*) RAM Access clock clock clock clock clock clock clock clock clock...
Page 255
CXD5602 User Manual 3.9.5 Power Supply Control The SCU module belongs to a power domain called PWD_SCU. Within the PWD_SCU, there are power supply control module regions (listed below) as separate power domains. Refer to the PMU Chapter (3.4) for details on the ON/OFF control registers of these power domains.
Page 256
CXD5602 User Manual one signal that is output as INT3. An interrupt mask can be separately set for each of the interrupt factors, and the statuses before and after the masks are applied can be read out. The Edge interrupt factor can be cleared. In addition, depending on the interrupt factor, Level/Edge selection is possible.
Page 257
CXD5602 User Manual Table SCU (Sensor Control Unit)-98 and Table SCU (Sensor Control Unit)-99 show the interrupt factors that are ORed within the SCU. Table SCU (Sensor Control Unit)-90 Information Interrupts Interrupt Name Number Description Edge/L evel LPADC_ALMO 4 (n = 0, ..., The data amount stored in the FIFO for the “n”...
Page 258
CXD5602 User Manual Table SCU (Sensor Control Unit)-91 System Error Interrupts Interrupt Name Number Description Edge/ Level LPADC_OVE The FIFO for the “n” th channel of the LPADC within the ADCIF has Edge R_RUNn 0, ..., 3) overflowed HPADCn_OV 2 (n = 1, 2) The FIFO for the “n”...
Page 259
CXD5602 User Manual Table SCU (Sensor Control Unit)-100 shows the interrupt factors received by the sequencers. Table SCU (Sensor Control Unit)-92 Interrupts for the Sequencers Interrupt Name Number Description EXE_REQ_STTn 10 (n = 0, ..., 9) Execution request to SEQn...
Page 260
CXD5602 User Manual REQ_BEFORE_FINISH This process was not in time by the next startup of the sequencer. A timeout error. 3.9.7 MATH_PROC processing The MATH_PROC processing performs programmable arithmetic processing to the data captured by the sensors. When using MATH_PROC processing, make sure that the data type is “Calculation Operable Sample Type”.
Page 261
CXD5602 User Manual Math function Math function Decim Math function Decim Math function Decim Figure SCU (Sensor Control Unit)-58 Decimation Partition Data Path ・Preprocessing can be performed to the 1, 2, or 3 axis data of the signed 16 bit.
Page 262
CXD5602 User Manual round clip unsigned_to_signed Offset Gain Figure SCU (Sensor Control Unit)-60 Preprocessing Data Flow As for offset addition and gain multiplication, when the data is multiple-axis (2 axis/3 axis), settings can be made independently for each X, Y, and Z axis.
Page 263
CXD5602 User Manual Level wrap wrap Level wrap wrap clip Shift Level wrap wrap clip Shift Level wrap wrap clip Shift Figure SCU (Sensor Control Unit)-61 Decimation Processing Data Flow 3.9.7.3 Math Function Processing 3.9.7.3.1 2nd Order IIR Filter The Math Function is a function block comprised of 2nd order IIR Filters, normalization processing, and excess detection.
Page 264
CXD5602 User Manual Excess Norm. Detector 2nd order 2nd order Figure SCU (Sensor Control Unit)-62 Data Flow within the Math Function The path on the top is output to the FIFO and the path on the bottom is used for excess detection.
Page 265
CXD5602 User Manual 4'b0001 4'b1000 2nd order 2nd order Excess 2nd order 2nd order Excess Norm. Norm. Detector Detector 4'b0010 4'b1001 2nd order 2nd order 2nd order Excess 2nd order Excess Norm. Norm. Detector Detector 4'b0011 4'b1010 2nd order 2nd order...
Page 266
CXD5602 User Manual round clip round shift shift clip round round round round Figure SCU (Sensor Control Unit)-64 2nd Order IIR Filter Internal Data Flow 3.9.7.3.2 Normalization Processing The normalization processing performs simplified conversion of multiple axis (2 axis/3 axis) data to single axis values.
Page 267
CXD5602 User Manual 3.9.7.3.3 Excess Detection The Excess Detection function performs excess detection to the value converted to 1 axis at the normalization processing and then outputs an interrupt to the upper module. Also, the result of this conversion can be used for writing control to the FIFO.
Page 268
CXD5602 User Manual dummy UCOUNT0 UCOUNT1 UTHRESH Upper Upper status in status in LTHRESH Lower Lower status in status in LCOUNT0 LCOUNT1 Upper Upper Upper Detect Detect Detect Lower Lower Lower Detect Detect Detect check the continuity of the status...
Page 269
CXD5602 User Manual E.g.: When UCOUNT0==2/UCOUNT1==4/DELAY_SMAPLE_R==0 A Rise interrupt occurs when Upper data is input two samples in a row, and Upper data continues for three samples after. When Upper data is input two samples in a row, and Lower data continues for LCOUNT0 times or more within three samples, the UCOUNT conditions are not referenced and the continuous match count of UCOUNT1 returns to its initial value.
Page 270
CXD5602 User Manual 3.9.7.4 FIFO Writing The following FIFO writing conditions can be set in conjunction with the interrupts generated by the excess detection function of the Math Function. Stop writing by generating Rise/Fall interrupt ・Performs writing to the FIFO until an interrupt occurs, and after the interrupt, writes to the FIFO until a specified number of samples.
Page 271
CXD5602 User Manual 128-bit : 1 Sample format (16 Byte/Sample) 3.9.8.3 Partition The SRAM for the FIFO has up to 27 partitions. The partitions are classified as follows: … x 4 partitions x 2 sets (Total: 8 partitions) (1) Decimation Partitions (2) Normal Sensor Partitions …...
Page 272
CXD5602 User Manual N3_W_S N3_R0_H N3_R1_C Not Available Not Available N4_W_S N4_R0_H N4_R1_C Not Available Not Available N5_W_S N5_R0_H N5_R1_C Not Available Not Available N6_W_S N6_R0_H N6_R1_C Not Available Not Available N7_W_S N7_R0_H N7_R1_C Not Available Not Available virtual Sensor...
Page 274
CXD5602 User Manual CPU dedicated readout port Host dedicated readout port CPU or Host readout port [Caution] The writing port and readout port must have a one-to-one relation. In the reset initial state, all readout ports are connected to the same readout port Dn_W0_S (n=0,1). Therefore, be sure to make the proper settings.
Page 275
CXD5602 User Manual Valid data amount can be readout separately Watermark Level (Almost Full) can be set separately Interrupts/DMA transfer requests such as the following can be generated separately When the valid data amount becomes equal to or higher than the Watermark, an interrupt is asserted, and when it falls below the Watermark, an interrupt is negated.
Page 276
CXD5602 User Manual Writing side (= latest) time stamp – (valid data samples – 1) x writing time interval 3.9.8.9 FIFO Block Diagram SCU_FIFO HandShake FIFO_REG Timestamp Decorder RAM I/F SRAM Figure SCU (Sensor Control Unit)-68 FIFO Block Diagram 3.9.8.10 FIFO Points of Attention ...
Page 277
CXD5602 User Manual Data Transfer Function Reads the data from the I2C/SPI and transfers it to the FIFO ・Data can be transferred periodically according to the interrupt from the SCU_CTRL. In accordance with the process request from the CPU, data can be read from the I2C/SPI (only one time) and transferred to the FIFO (One-shot Operation) ・Completion of the transfer is notified when the transfer completes.
Page 278
CXD5602 User Manual Among these processes, the Startup control is fully implemented in the hardware while the other operations are implemented in the software of the sequencer controller. There are 10 independent sequencers within the sequencer, each to which separate startup control and sensor polling settings are possible.
Page 280
CXD5602 User Manual 3.9.9.1 Startup Control SPI Master I2C Master 0 I2C Master 1 LPADC HPADC0 HPADC1 SEQUENCER 10 instruction group 3 instruction group Data MATH_PROC formatting request assertion of Generate signal Read Configuration Trigger Singal about request Sensor Control...
Page 281
CXD5602 User Manual 3.9.9.2 External Bus Transaction Generation SPI Master I2C Master 0 I2C Master 1 LPADC HPADC0 HPADC1 SEQUENCER 10 instruction group 3 instruction group Data MATH_PROC formatting request assertion of Generate signal Read Configuration Trigger Singal about request...
Page 282
CXD5602 User Manual 3.9.9.3 External Data Capture SPI Master I2C Master 0 I2C Master 1 LPADC HPADC0 HPADC1 SEQUENCER 10 instruction group 3 instruction group Data MATH_PROC formatting request assertion of Generate signal Read Configuration Trigger Singal about request Sensor...
Page 283
CXD5602 User Manual selected, the data is treated as 16 bit 2 axis data. When non-vector mode is selected, the data is treated as MSB-aligned 16 bit data for each channel. In the case of vector mode, the data readout from HPADC0 is allocated to the LSB side ({x}) and the data readout from HPADC1 is allocated to the MSB side ({y}).
Page 285
CXD5602 User Manual Calculation Inoperable Sample Type Calculation Operable Sample Type Firstly Read Data Lastly Read Data FIFO FIFO OUTPUT_8BIT:1 OUTPUT_8BIT:0 SCU_RAM SEQ_OUT_FORMAT 8bit x n 8bit x 2 x n Max 16Byte in the read order Figure SCU (Sensor Control Unit)-77 Data Stacked in the FIFO (Image) 3.9.9.4 Connectable Sequencers...
Page 286
CXD5602 User Manual when intentionally inserting a STOP command, an overhead of approximately 570 cycles (when RCOSC is 8.192 MHz) occurs due to resending the slave address. 3.9.9.4.2 The SPI can be connected to the any sequencer from SEQ0 to SEQ9.
Page 287
CXD5602 User Manual operation of writing the transfer data to the SEQ_RAM_OUT_n_READ_DATA_m (n is the One-shot Sequencer number n = 0, …, 2, m is the Byte offset of the data readout m = 0, …, 3, refer to Table SCU (Sensor Control Unit)-690) within the SCU_RAM is called “One-shot Operation”...
Page 288
CXD5602 User Manual UNSIGNED_TO_SIGNED Section 3.9.12.3.21 DEC_CLR Section 3.9.12.3.22 MATHFUNC_CLR Section 3.9.12.3.23 DECIMATION_PARAM* Section 3.9.12.3.25 and 3.9.12.3.26 MATHFUNC_SEL Section 3.9.12.3.27 MATHFUNC_POS* Section 3.9.12.3.28, 3.9.12.3.29, and 3.9.12.3.30 MATHFUNC_PARAM_* Section 3.9.12.3.31 to 3.9.12.3.96 EVENT_PARAM0_THRESH Section 3.9.12.3.97 EVENT_PARAM0_COUNT* Section 3.9.12.3.98, 3.9.12.3.99, and 3.9.12.3.100 EVENT_PARAM1_THRESH Section 3.9.12.3.101...
Page 289
CXD5602 User Manual D1_W1_S_CTRL* Section 3.9.12.10.26 and 3.9.12.10.27 D1_W2_S_CTRL* Section 3.9.12.10.31, and 3.9.12.10.32 D1_W3_S_CTRL* Section 3.9.12.10.36 and 3.9.12.10.37 N0_W_S_CTRL* Section 3.9.12.10.41 and 3.9.12.10.42 N1_W_S_CTRL* Section 3.9.12.10.46 and 3.9.12.10.47 N2_W_S_CTRL* Section 3.9.12.10.51 and 3.9.12.10.52 N3_W_S_CTRL* Section 3.9.12.10.56 and 3.9.12.10.57 N4_W_S_CTRL* Section 3.9.12.10.61 and 3.9.12.10.62 N5_W_S_CTRL* Section 3.9.12.10.66 and 3.9.12.10.67...
Page 291
CXD5602 User Manual N3_R1_C_UNDER_RUN N4_R1_C_UNDER_RUN N5_R1_C_UNDER_RUN N6_R1_C_UNDER_RUN N7_R1_C_UNDER_RUN D0_R3_CH_UNDER_RUN D1_R3_CH_UNDER_RUN Table SCU (Sensor Control Unit)-99 Parameters of I2C Resources Sub-resource Item Parameter Descriptions I2C_REG ----- Refer to the I2C (3.7) Chapter for information including the Parameters. Table SCU (Sensor Control Unit)-100 Parameters of SPI Resources...
Page 292
CXD5602 User Manual I2C0 MATH_PROC I2C1 FIFO Sequencer Processing Figure SCU (Sensor Control Unit)-78 Sequencer Data Flow Within the main loop, when a task of the I2C is called up for example, the I2C task will be executed as long as the sequencer number assigned to the I2C task is active.
Page 293
CXD5602 User Manual 3.9.9.10 Data Duplication Function By writing the COPY_ID as the copy destination and the COPY_ENALBE to the SCU_FIFO_COPY_INFO_n (n is sequencer number, 0 to 9) within SCU_RAM, the data is duplicated to the specified Write FIFO. The atomicity of the 3 axis data does not corrupt even when the duplication destination FIFO is dynamically switched during operation of the corresponding sequencer.
Page 294
CXD5602 User Manual sequencer completed one processing SEQ0 Processing START_CTRL interrupt Suspend request Figure SCU (Sensor Control Unit)-79 Sequencer Completed “Operation suspended” refers to cases when one sequencer completes the processing of one main loop and waits for the next startup request (Figure SCU (Sensor Control Unit)-80).
Page 295
CXD5602 User Manual transition does not have to be checked). The judgement is “true” if the corresponding sequencer or ADC has been completed in accordance with the CPU request. 3.9.9.12.2 Suspension Judgement The following event notifies the suspension of operations.
Page 296
CXD5602 User Manual disables the IRQ3 interrupt mask, and waits for an interrupt. (4) Clears the interrupt factor, sets the IRQ3 interrupt mask, and sets HPADC1_ACCESS_INHIBIT_REQ to “0”. (5) Checks that the error flag (SCU_RAM internal parameter SYNCHRO_iSoP2CPU (refer to Section 3.9.12.11)) is not “1”.
Page 297
CXD5602 User Manual 3.9.9.12.4 Error Notification Error detection is performed when a suspend interrupt request is issued, and an error flag is set to the parameter (SYNCHRO_iSoP2CPU (refer to Section 3.9.12.11)) within the SCU_RAM when an error occurs. The conditions for error detection are as follows:...
Page 298
CXD5602 User Manual WAKEUP when the sequencer conditions are met. It is also possible to inhibit sequencers from entering SLEEP. The following shows the conditions of SLEEP, WAKEUP, and SLEEP inhibition. SLEEP Conditions The internal sequencer enters SLEEP when it satisfies all conditions below.
Page 299
CXD5602 User Manual Figure SCU (Sensor Control Unit)-83 DMA Handshake Signal Connections Table SCU (Sensor Control Unit)-109 shows the relation between the DMA request factors within the SCU and the 26 sets of handshake signals. Table SCU (Sensor Control Unit)-101 DMA Handshake Signals and Connection Destination DMAC ch IDs...
Page 301
CXD5602 User Manual PWMn_PARAM register PWMn_CYCLE field … sets the cycle PWMn_PARAM register PWMn_THRESH field … sets the duty (L width) PWMn_EN register PWMn_EN field … selects the permission of operation PWMn_EN register PWM_SELLn field[2:0] … selects the ADC channel used as the reference ...
Page 302
CXD5602 User Manual Table SCU (Sensor Control Unit)-102 PWM Maximum and Minimum Setting Range SCU Frequency Prescaler Setting Output Variable Range (Setting Example) (representative Maximum Frequency Longest Cycle Pulse Width Accuracy example) (Duty 50%) 13 MHz 6.5 MHz (154 ns) 396.7 Hz (2.521 ms)
Page 303
CXD5602 User Manual Set PWMn_THRESH to “0” and select ENABLE + UPDATE fixed to Low Level Set ENABLE to “0” Setting to make PMW Output fixed status (control at PWM combining point) Paste to H Set PWM_SEL_INVn to “0x1” and PWM_SEL_DISn to “0x1”...
Page 304
CXD5602 User Manual Enable control of this synchronization function is controlled by the PWMn_EN field of the PWMn_EN register and synchronization operation starts by using the Writing to the PWMn_UPDATE register as a trigger. The following is an example of the settings.
Page 305
CXD5602 User Manual α maximum value = (2^PWM_CNTENn) - 1 (1/2 --> 1[clk], 1/4 --> 3[clk], …, 1/256 --> 255[clk]) Note: This shift occurs randomly and cannot be controlled. 3.9.11.3.2 ADC-PWM Synchronization Settings Procedure (when you do not want to...
Page 306
CXD5602 User Manual PWM output Data Enable HPADC output (Channel 0) HPADC output (Channel 1) FIFO Write Capture timing is Timing controllable The number of capture data is controllable Figure SCU (Sensor Control Unit)-85 ADC Data Capture Mode using the PWM Output Timing as a Reference When setting the PWM channel n (n = 0, ..., 7), set the following registers in addition to the basic operation...
Page 307
CXD5602 User Manual the ADC side. Table SCU (Sensor Control Unit)-104 ADC Channels and PWM Assignment Register Name Field Name Target ADC LPADC_D1[20:12] DECI _RATIO2 LPADC0 LPADC_D4[20:12] DECI _RATIO2 LPADC1 LPADC_D5[20:12] DECI _RATIO2 LPADC2 LPADC_D6[20:12] DECI _RATIO2 LPADC3 HPADC_D0_D1[20:12] DECI _RATIO2...
Page 308
CXD5602 User Manual [3] Ch0 suspend PWM0_EN = 0x00000010 PWM0_UPDATE = 0x00000001 [4] Ch1 suspend PWM1_EN = 0x00000000 PWM1_UPDATE = 0x00000001 [5] Ch0 suspend and then process PWM_PASE0[15:0] = 0xffff [6] PWM another setting (if you want) The settings for the PWM you want to synchronize can be selected as follows:...
Page 309
CXD5602 User Manual 3.9.11.5.2 PWM Output Synchronization Initialization Procedures Note 1: Do not set PWM_PASEn[15:0] to “0xffff” nor “0x0000”. Note 2: “0xffff” is a setting for clear, and actual phase setting is not permitted. [1]PWM suspend setting PWM0_EN = 0x00000000...
Page 310
CXD5602 User Manual The setting of the PWM channel used for combining can be selected as follows: Table SCU (Sensor Control Unit)-106 Setting of PWM Channels to be Combined PWM_SEL_DISm[7:0] PWM0 Terminal PWM1 Terminal PWM2 Terminal PWM3 Terminal PWM_SEL_INVm[7:0] bit 0...
Page 311
CXD5602 User Manual 3.9.12 SCU Register Details 3.9.12.1 Address Offset The following shows 32 bit address offset from the CPU. Add the following address to the offsets in the table to calculate the address from the CPU. Offset: 0x00190000 (Mirror: 0x04190000) 3.9.12.2...
Page 312
CXD5602 User Manual When the bit is “0”, the operation of all sequencers is suspended. When the bit is “1”, the operation of each sequencer is performed according to the permission of each sequencer. 0x5024 SEQ_ACCESS_INHIBIT 0x00000000 0x5028 START_CTRL_COMMON 0x0000FF00...
Page 322
CXD5602 User Manual 3.9.12.3.3 {0x5020} SEQ_ENABLE_ALL Details Permission/prohibition setting for operations of whole sequencers can be collectively controlled 0: operation is prohibited 1: operation is permitted When the bit is “0”, the operation of all sequencers is suspended. When the bit is “1”, the operation of each sequencer is performed according to the permission of each sequence.
Page 324
CXD5602 User Manual After “I2C1_ACCESS_INHIBIT_REQ==1” is detected, if you stop the I2C1 slave access, the sequencer sets “1” on I2C1_ACCESS_INH this bit. IBIT_ACK You must read or write on the register for I2C1 slave after the bit becomes “1”. After “I2C0_ACCESS_INHIBIT_REQ==1” is detected, if you stop the I2C0 slave access, the sequencer sets “1”...
Page 325
CXD5602 User Manual When the CPU directly accesses I2C1, “1” is set on this bit. SEQ_CTRL holds the access to I2C1 while the bit is “1”. I2C1_ACCESS_INH Note that if this bit is set “1” for longer time than the IBIT_REQ sequencer’s access cycle using I2C1 from SEQ_CTRL, the...
Page 328
CXD5602 User Manual This designates permission/prohibition Sequencer 4’s operation. Even if the operation is START_ENABLE4 RW permitted, when ENABLE_ALL is prohibited, the operation will not start. This designates permission/prohibition Sequencer 3’s operation. Even if the operation is START_ENABLE3 RW permitted, when ENABLE_ALL is prohibited, the operation will not start.
Page 331
CXD5602 User Manual 7..4 Reserved Reserved This designates Sequencer 0’s timer operating frequency division value. START_IN When SEQ_MODE0 is “0” or “1”, this set value is referred. 3..0 TERVAL0 As for the calculating formula of the operating frequency, the range of values that can be set, and set values when using the One-shot Sequencer, refer to START_INTERVAL3.
Page 332
CXD5602 User Manual This designates Sequencer 5’s timer operating frequency division value. START_IN When SEQ_MODE5 is “0” or “1”, this set value is referred. 11..8 TERVAL5 As for the calculating formula of the operating frequency, the range of values that can be set, and set values when using the One-shot Sequencer, refer to START_INTERVAL3.
Page 333
CXD5602 User Manual This designates Sequencer 8’s timer operating frequency division value. START_I When SEQ_MODE8 is “0” or “1”, this set value is referred. 3..0 NTERVA As for the calculating formula of the operating frequency, the range of values that can be set, and set values when using the One-shot Sequencer, refer to START_INTERVAL3.
Page 340
CXD5602 User Manual By writing “1”, Sequencer 4’s execution request is issued only once. When the corresponding START_ENABLE bit is “0”, this register is REQ4 WO 0x0 not active. When SEQ_MODE4 is “2” or “3”, this set value is referred.
Page 344
CXD5602 User Manual Designate “1” to perform offset addition processing and gain OFST_GAIN_ multiplication processing for MATH_PROC of Sequencer 2. If “0” is designated, the value of OFST_GAIN2 is ignored. 7..5 Reserved Reserved Designate “1” to perform offset addition processing and gain OFST_GAIN_ multiplication processing for MATH_PROC of Sequencer 1.
Page 346
CXD5602 User Manual UNSIGNED_TO This controls processing of Sequencer 2. _SIGNED8 As for specifications, refer to UNSIGNED_TO_SIGNED15. 7..5 Reserved Reserved UNSIGNED_TO This controls processing of Sequencer 1. _SIGNED4 As for specifications, refer to UNSIGNED_TO_SIGNED15. 3..1 Reserved Reserved UNSIGNED_TO This controls processing of Sequencer 0.
Page 350
CXD5602 User Manual Level adjust value setting with clipping for D1_W1_S. 13..12 LEVEL_ADJ_1 RW As for specifications, refer to LEVEL_ADJ_3. Decimation ratio for D0_W1_S. 11..8 As for specifications, refer to N3. 7..6 Reserved Reserved Level adjust value setting with clipping for D0_W0_S.
Page 352
CXD5602 User Manual Reserved Reserved Level adjust value setting with clipping for D1_W1_S. 13..12 LEVEL_ADJ_5 As for specifications, refer to LEVEL_ADJ_7. Decimation ratio for D1_W1_S. 11..8 As for specifications, refer to N7. 7..6 Reserved Reserved Level adjust value setting with clipping for D1_W0_S.
Page 354
CXD5602 User Manual 3.9.12.3.28 {0x5090} MATHFUNC_POS0 Details Excess Norm. Detector 2nd order 2nd order Figure SCU (Sensor Control Unit)-86 Processing Block Overview In Figure SCU (Sensor Control Unit)-86, we call insertion IIR on the left side “IIR0”, insertion IIR on the right side “IIR1”.
Page 355
CXD5602 User Manual 31..4 Reserved 0x0000000 Reserved This designates the position where the IIR of 3..0 POS_0 Math Function 0 is inserted. 3.9.12.3.29 {0x5094} MATHFUNC_POS1 Details As for the positions where the IIRs are inserted, refer to Section 3.9.12.3.28 {0x5090} MATHFUNC_POS0.
Page 357
CXD5602 User Manual 3.9.12.3.32 {0x50A4} MATHFUNC_PARAM_C0_0_0_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-140 Register Type: RW (read/write) Local Address: 0x50A4 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 358
CXD5602 User Manual 3.9.12.3.34 {0x50B0} MATHFUNC_PARAM_C1_0_0_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-142 Register Type: RW (read/write) Local Address: 0x50B0 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 359
CXD5602 User Manual 3.9.12.3.36 {0x50B8} MATHFUNC_PARAM_C2_0_0_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-144 Register Type: RW (read/write) Local Address: 0x50B8 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 360
CXD5602 User Manual 3.9.12.3.38 {0x50D0} MATHFUNC_PARAM_C3_0_0_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-146 Register Type: RW (read/write) Local Address: 0x50D0 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 361
CXD5602 User Manual 3.9.12.3.40 {0x50D8} MATHFUNC_PARAM_C4_0_0_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-148 Register Type: RW (read/write) Local Address: 0x50D8 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 362
CXD5602 User Manual 3.9.12.3.42 {0x50E0} MATHFUNC_PARAM_0_1 Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-150 Register Type: RW (read/write) Local Address: 0x50E0 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 363
CXD5602 User Manual 3.9.12.3.43 {0x50E4} MATHFUNC_PARAM_C0_0_1_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-151 Register Type: RW (read/write) Local Address: 0x50E4 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 364
CXD5602 User Manual 3.9.12.3.45 {0x50EC} MATHFUNC_PARAM_C1_0_1_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-153 Register Type: RW (read/write) Local Address: 0x50EC Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 365
CXD5602 User Manual 3.9.12.3.47 {0x50F4} MATHFUNC_PARAM_C2_0_1_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-155 Register Type: RW (read/write) Local Address: 0x50F4 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 366
CXD5602 User Manual 3.9.12.3.49 {0x50FC} MATHFUNC_PARAM_C3_0_1_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-157 Register Type: RW (read/write) Local Address: 0x50FC Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 367
CXD5602 User Manual 3.9.12.3.51 {0x5104} MATHFUNC_PARAM_C4_0_1_MSB Details The IIR Parameter for Math Function 0 Table SCU (Sensor Control Unit)-159 Register Type: RW (read/write) Local Address: 0x5104 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 368
CXD5602 User Manual 3.9.12.3.53 {0x510C} MATHFUNC_PARAM_1_0 Details The IIR Parameter for Math Function 1 Refer to {0x50A0} MATHFUNC_PARAM_0_0 Details Table SCU (Sensor Control Unit)-161 Register Type: RW (read/write) Local Address: 0x510C Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 369
CXD5602 User Manual 3.9.12.3.54 {0x5110} MATHFUNC_PARAM_C0_1_0_MSB Details The IIR Parameter for Math Function 1 Refer to {0x50A4} MATHFUNC_PARAM_C0_0_0_MSB Details Table SCU (Sensor Control Unit)-162 Register Type: RW (read/write) Local Address: 0x5110 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 370
CXD5602 User Manual 3.9.12.3.56 {0x5118} MATHFUNC_PARAM_C1_1_0_MSB Details The IIR Parameter for Math Function 1 Refer to {0x50B0} MATHFUNC_PARAM_C1_0_0_MSB Details Table SCU (Sensor Control Unit)-164 Register Type: RW (read/write) Local Address: 0x5118 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 371
CXD5602 User Manual 3.9.12.3.58 {0x5120} MATHFUNC_PARAM_C2_1_0_MSB Details The IIR Parameter for Math Function 1 Refer to {0x50B8} MATHFUNC_PARAM_C2_0_0_MSB Details Table SCU (Sensor Control Unit)-166 Register Type: RW (read/write) Local Address: 0x5120 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 372
CXD5602 User Manual 3.9.12.3.60 {0x5128} MATHFUNC_PARAM_C3_1_0_MSB Details The IIR Parameter for Math Function 1 Refer to {0x50D0} MATHFUNC_PARAM_C3_0_0_MSB Details Table SCU (Sensor Control Unit)-168 Register Type: RW (read/write) Local Address: 0x5128 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 373
CXD5602 User Manual 3.9.12.3.62 {0x5130} MATHFUNC_PARAM_C4_1_0_MSB Details The IIR Parameter for Math Function 1 Refer {0x50D8} MATHFUNC_PARAM_C4_0_0_MSB Details{0x50D8} MATHFUNC_PARAM_C4_0_0_MSB Details Table SCU (Sensor Control Unit)-170 Register Type: RW (read/write) Local Address: 0x5130 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 374
CXD5602 User Manual 3.9.12.3.64 {0x5138} MATHFUNC_PARAM_1_1 Details The IIR Parameter for Math Function 1 Refer to {0x50E0} MATHFUNC_PARAM_0_1 Details Table SCU (Sensor Control Unit)-172 Register Type: RW (read/write) Local Address: 0x5138 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 375
CXD5602 User Manual 3.9.12.3.65 {0x513C} MATHFUNC_PARAM_C0_1_1_MSB Details The IIR Parameter for Math Function 1 Refer to {0x50E4} MATHFUNC_PARAM_C0_0_1_MSB Details Table SCU (Sensor Control Unit)-173 Register Type: RW (read/write) Local Address: 0x513C Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 376
CXD5602 User Manual 3.9.12.3.67 {0x5144} MATHFUNC_PARAM_C1_1_1_MSB Details The IIR Parameter for Math Function 1 Refer to {0x50EC} MATHFUNC_PARAM_C1_0_1_MSB Details Table SCU (Sensor Control Unit)-175 Register Type: RW (read/write) Local Address: 0x5144 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 377
CXD5602 User Manual 3.9.12.3.69 {0x514C} MATHFUNC_PARAM_C2_1_1_MSB Details The IIR Parameter for Math Function 1 Refer to {0x50F4} MATHFUNC_PARAM_C2_0_1_MSB Details Table SCU (Sensor Control Unit)-177 Register Type: RW (read/write) Local Address: 0x514C Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 378
CXD5602 User Manual 3.9.12.3.71 {0x5154} MATHFUNC_PARAM_C3_1_1_MSB Details The IIR Parameter for Math Function 1 Refer {0x50FC} MATHFUNC_PARAM_C3_0_1_MSB Details_{0x50FC}_MATHFUNC_PARAM_C3_0_1_MSB_ Table SCU (Sensor Control Unit)-179 Register Type: RW (read/write) Local Address: 0x5154 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 379
CXD5602 User Manual 3.9.12.3.73 {0x515C} MATHFUNC_PARAM_C4_1_1_MSB Details The IIR Parameter for Math Function 1 Refer to {0x50FC} MATHFUNC_PARAM_C3_0_1_MSB Details Table SCU (Sensor Control Unit)-181 Register Type: RW (read/write) Local Address: 0x515C Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 380
CXD5602 User Manual 3.9.12.3.75 {0x5164} MATHFUNC_PARAM_2_0 Details The IIR Parameter for Math Function 2 Refer to {0x50A0} MATHFUNC_PARAM_0_0 Details Table SCU (Sensor Control Unit)-183 Register Type: RW (read/write) Local Address: 0x5164 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 381
CXD5602 User Manual 3.9.12.3.76 {0x5168} MATHFUNC_PARAM_C0_2_0_MSB Details The IIR Parameter for Math Function 2 Refer to {0x50A4} MATHFUNC_PARAM_C0_0_0_MSB Details Table SCU (Sensor Control Unit)-184 Register Type: RW (read/write) Local Address: 0x5168 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 382
CXD5602 User Manual 3.9.12.3.78 {0x5170} MATHFUNC_PARAM_C1_2_0_MSB Details The IIR Parameter for Math Function 2 Refer {0x50B0} MATHFUNC_PARAM_C1_0_0_MSB Details_{0x50B0}_MATHFUNC_PARAM_C1_0_0_MSB_ Table SCU (Sensor Control Unit)-186 Register Type: RW (read/write) Local Address: 0x5170 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 383
CXD5602 User Manual 3.9.12.3.80 {0x5178} MATHFUNC_PARAM_C2_2_0_MSB Details The IIR Parameter for Math Function 2 Refer to{0x50B8} MATHFUNC_PARAM_C2_0_0_MSB Details Table SCU (Sensor Control Unit)-188 Register Type: RW (read/write) Local Address: 0x5178 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 384
CXD5602 User Manual 3.9.12.3.82 {0x5180} MATHFUNC_PARAM_C3_2_0_MSB Details The IIR Parameter for Math Function 2 Refer to {0x50D0} MATHFUNC_PARAM_C3_0_0_MSB Details Table SCU (Sensor Control Unit)-190 Register Type: RW (read/write) Local Address: 0x5180 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 385
CXD5602 User Manual 3.9.12.3.84 {0x5188} MATHFUNC_PARAM_C4_2_0_MSB Details The IIR Parameter for Math Function 2 Refer to {0x50D8} MATHFUNC_PARAM_C4_0_0_MSB Details Table SCU (Sensor Control Unit)-192 Register Type: RW (read/write) Local Address: 0x5188 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 386
CXD5602 User Manual 3.9.12.3.86 {0x5190} MATHFUNC_PARAM_2_1 Details The IIR Parameter for Math Function 2 Table SCU (Sensor Control Unit)-194 Register Type: RW (read/write) Local Address: 0x5190 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 387
CXD5602 User Manual 3.9.12.3.87 {0x5194} MATHFUNC_PARAM_C0_2_1_MSB Details The IIR Parameter for Math Function 2 Refer to {0x50E4} MATHFUNC_PARAM_C0_0_1_MSB Details Table SCU (Sensor Control Unit)-195 Register Type: RW (read/write) Local Address: 0x5194 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 388
CXD5602 User Manual 3.9.12.3.89 {0x519C} MATHFUNC_PARAM_C1_2_1_MSB Details The IIR Parameter for Math Function 2 Refer {0x50EC} MATHFUNC_PARAM_C1_0_1_MSB Details_{0x50EC}_MATHFUNC_PARAM_C1_0_1_MSB_ Table SCU (Sensor Control Unit)-197 Register Type: RW (read/write) Local Address: 0x519C Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 389
CXD5602 User Manual 3.9.12.3.91 {0x51A4} MATHFUNC_PARAM_C2_2_1_MSB Details The IIR Parameter for Math Function 2 Refer {0x50F4} MATHFUNC_PARAM_C2_0_1_MSB Details_{0x50F4}_MATHFUNC_PARAM_C2_0_1_MSB_ Table SCU (Sensor Control Unit)-199 Register Type: RW (read/write) Local Address: 0x51A4 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 390
CXD5602 User Manual 3.9.12.3.93 {0x51AC} MATHFUNC_PARAM_C3_2_1_MSB Details The IIR Parameter for Math Function 2 Refer {0x50FC} MATHFUNC_PARAM_C3_0_1_MSB Details_{0x50FC}_MATHFUNC_PARAM_C3_0_1_MSB_ Table SCU (Sensor Control Unit)-201 Register Type: RW (read/write) Local Address: 0x51AC Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 391
CXD5602 User Manual 3.9.12.3.95 {0x51B4} MATHFUNC_PARAM_C4_2_1_MSB Details The IIR Parameter for Math Function 2 Refer {0x50FC} MATHFUNC_PARAM_C3_0_1_MSB Details_{0x50FC}_MATHFUNC_PARAM_C3_0_1_MSB_ Table SCU (Sensor Control Unit)-203 Register Type: RW (read/write) Local Address: 0x51B4 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 392
CXD5602 User Manual 3.9.12.3.97 {0x51BC} EVENT_PARAM0_THRESH Details Continuous Match Detection 0 Continuous Match Detection 1 Comparator status status input Data status (upper, lower) (upper, lower) (unsigned 16bit) (upper, lower) Threshold Level (top) Number of status continuity EVENT_PARAMX_THRESH: UTHRESH Number of status continuity...
Page 411
CXD5602 User Manual D1_R1_C_ALMOST_FULL D0_R2_C_ALMOST_FULL D0_R1_C_ALMOST_FULL MATH_EVENT2_R MATH_EVENT1_R MATH_EVENT0_R HPADC1_ALMOST_FULL HPADC0_ALMOST_FULL LPADC_ALMOST_FULL I2C1 I2C0 Interrupt permission for the SPI or Math Function Event 0. The interrupt is permitted by writing “1”. Writing “0” cannot prohibit the interrupt. -411/1010-...
Page 413
CXD5602 User Manual D1_R1_C_ALMOST_FULL D0_R2_C_ALMOST_FULL D0_R1_C_ALMOST_FULL MATH_EVENT2_R MATH_EVENT1_R MATH_EVENT0_R HPADC1_ALMOST_FULL HPADC0_ALMOST_FULL LPADC_ALMOST_FULL I2C1 I2C0 Interrupt prohibition for the SPI. The interrupt is prohibited by writing “1”. Writing “0” cannot permit the interrupt. -413/1010-...
Page 415
CXD5602 User Manual D0_R2_C_ALMOST_FULL WO 0x0 D0_R1_C_ALMOST_FULL WO 0x0 MATH_EVENT2_R WO 0x0 MATH_EVENT1_R WO 0x0 MATH_EVENT0_R WO 0x0 HPADC1_ALMOST_FULL WO 0x0 HPADC0_ALMOST_FULL WO 0x0 LPADC_ALMOST_FULL WO 0x0 2..0 Reserved WO 0x0 Reserved -415/1010-...
Page 417
CXD5602 User Manual 8..6 Reserved Reserved HPADC1_ALMOST_FULL HPADC0_ALMOST_FULL Set “1” when you want to use interrupt LPADC_ALMOST_FULL as a level interrupt. LPADC_ALMOST_FULL Set “0” when you use the interrupt as an edge detection. 2..0 Reserved Reserved -417/1010-...
Page 419
CXD5602 User Manual D0_R2_C_ALMOST_FULL D0_R1_C_ALMOST_FULL MATH_EVENT2_R MATH_EVENT1_R MATH_EVENT0_R HPADC1_ALMOST_FULL HPADC0_ALMOST_FULL LPADC_ALMOST_FULL I2C1 I2C0 The interrupt status of the SPI or Math Function Event 0 before masking -419/1010-...
Page 421
CXD5602 User Manual D0_R2_C_ALMOST_FULL D0_R1_C_ALMOST_FULL MATH_EVENT2_R MATH_EVENT1_R MATH_EVENT0_R HPADC1_ALMOST_FULL HPADC0_ALMOST_FULL LPADC_ALMOST_FULL I2C1 I2C0 The interrupt status of the SPI or Math Function Event 0 after masking -421/1010-...
Page 437
CXD5602 User Manual REQ_BEFORE_FINISH1 RW Permission of interrupt for requesting the next REQ_BEFORE_FINISH0 RW operation before completion (Sequencer 0) -437/1010-...
Page 439
CXD5602 User Manual REQ_BEFORE_FINISH1 RW Permission of interrupt for requesting the next REQ_BEFORE_FINISH0 RW operation before completion (Sequencer 0) -439/1010-...
Page 441
CXD5602 User Manual REQ_BEFORE_FINISH1 WO 0x0 Clear of interrupt for requesting the next REQ_BEFORE_FINISH0 WO 0x0 operation before completion (Sequencer 0) -441/1010-...
Page 443
CXD5602 User Manual REQ_BEFORE_FINISH1 RO Interrupt status for requesting the next REQ_BEFORE_FINISH0 RO operation before completion (Sequencer 0, before masking) -443/1010-...
Page 445
CXD5602 User Manual REQ_BEFORE_FINISH1 RO Interrupt status for requesting the next REQ_BEFORE_FINISH0 RO operation before completion (Sequencer 0, after masking) -445/1010-...
Page 482
CXD5602 User Manual 3.9.12.3.186 {0x5680} PWM_TIMER01 details When the PWM is not used, PWM generator can be used as a timer. In this case, counter values within the timer can be read. Table SCU (Sensor Control Unit)-294 Register Type: RO (read only)
Page 483
CXD5602 User Manual 3.9.12.3.188 {0x5688} PWM_TIMER45 Details When the PWM is not used, PWM generator can be used as a timer. In this case, counter values within the timer can be read. Table SCU (Sensor Control Unit)-296 Register Type: RO (read only)
Page 484
CXD5602 User Manual 3.9.12.3.190 {0x5690} PWM_FUNCSEL0 Details When synthesizing the PWM, you can designate the polarity of the source PWM (for PWM0-3). Table SCU (Sensor Control Unit)-298 Register Type: RW (read/write) Local Address: 0x5690 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 485
CXD5602 User Manual 3.9.12.3.192 {0x5698} PWM_FUCN2 Details When synthesizing the PWM, you can designate whether to use the PWM or not (for PWM0-3). Table SCU (Sensor Control Unit)-300 Register Type: RW (read/write) Local Address: 0x5698 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 486
CXD5602 User Manual 3.9.12.3.194 {0x56A0} PWM_FUNC4 Details You can select synthesis by ANDing or ORing PWMs (0: AND, 1: OR) Table SCU (Sensor Control Unit)-302 Register Type: RW (read/write) Local Address: 0x56A0 Reset Value: 0x00000000 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0...
Page 488
CXD5602 User Manual 3.9.12.3.196 {0x0 .. 0x3FFC} SEQ_IRAM Details Instruction RAM array for internal sequencer Refer to Section 3.9.12.11. Table SCU (Sensor Control Unit)-304 Memory Type: RW (read/write) Local Address: 0x0 Reset Value: 0xxxxxxxxx Bits Name Type Reset Value Description 31..0...
Page 489
CXD5602 User Manual 3.9.12.4 SCU_ADCIF_REG Register List The following describes 32 bit address offset from the CPU. For calculating the address from the CPU, add this address to each offset in the table. Offset:0x0018dc00 (Mirror:0x0418dc00) For the offset Address from 0x0200 to 0x03D4 of the ADCIF control registers, refer to Chapter of ADC (3.21).
Page 497
CXD5602 User Manual 3.9.12.7 SCU_SEQ_REG Overview Only sequencers in the SCU can access these registers. The following describes 32 bit address offset which can be seen from the sequencer in the SCU. For calculating the address to access from the sequencer in the SCU, add this Offset: 0x0000e400 to each Offset Address (Transaction Port) in the table.
Page 499
CXD5602 User Manual Indicates that one or more data exist in the FIFO for LPADC_NOT_EMPTY1 LPADC Indicates that one or more data exist in the FIFO for LPADC_NOT_EMPTY0 LPADC I2C1_ACTIVE Indicates the operation active status of I2C1 Indicates that the status is I2C1 TX_FIFO Empty, but a...
Page 508
CXD5602 User Manual 3.9.12.9 SCU_FIFO_REG Overview Offset:0x00180000 (Mirror:0x04180000) The following describes 32 bit address offset from the CPU. For calculating the address from the CPU, add this Offset: 0x0000e400 to each Offset Address (Transaction Port) in the table. Offset: 0x0000e400 3.9.12.10...
Page 634
CXD5602 User Manual FIFO_OVER_ Clearing of the write error at FIFO full RUN_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.153 {0x1008} D0_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-482 Register Type: RO (read only) Local Address: 0x1008 Reset Value: 0x00000000...
Page 639
CXD5602 User Manual FIFO_OVER_ Clearing of the write error at FIFO full RUN_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.159 {0x1028} D0_R2_C_STATUS0 Details Table SCU (Sensor Control Unit)-488 Register Type: RO (read only) Local Address: 0x1028 Reset Value: 0x00000000...
Page 644
CXD5602 User Manual FIFO_OVER_ Clearing of the write error at FIFO full RUN_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.165 {0x1048} D1_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-494 Register Type: RO (read only) Local Address: 0x1048 Reset Value: 0x00000000...
Page 649
CXD5602 User Manual FIFO_OVER_ Clearing of the write error at FIFO full RUN_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.171 {0x1068} D1_R2_C_STATUS0 Details Table SCU (Sensor Control Unit)-500 Register Type: RO (read only) Local Address: 0x1068 Reset Value: 0x00000000...
Page 654
CXD5602 User Manual FIFO_OVER_RUN Clearing of the write error at FIFO full _CLR Clears an error occurred by writing at FIFO full 3.9.12.10.177 {0x1088} N0_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-506 Register Type: RO (read only) Local Address: 0x1088 Reset Value: 0x00000000...
Page 659
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.183 {0x10A8} N1_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-512 Register Type: RO (read only) Local Address: 0x10A8 Reset Value: 0x00000000...
Page 664
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.189 {0x10C8} N2_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-518 Register Type: RO (read only) Local Address: 0x10C8 Reset Value: 0x00000000...
Page 669
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.195 {0x10E8} N3_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-524 Register Type: RO (read only) Local Address: 0x10E8 Reset Value: 0x00000000...
Page 674
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.201 {0x1108} N4_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-530 Register Type: RO (read only) Local Address: 0x1108 Reset Value: 0x00000000...
Page 679
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.207 {0x1128} N5_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-536 Register Type: RO (read only) Local Address: 0x1128 Reset Value: 0x00000000...
Page 684
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.213 {0x1148} N6_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-542 Register Type: RO (read only) Local Address: 0x1148 Reset Value: 0x00000000...
Page 689
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.219 {0x1168} N7_R1_C_STATUS0 Details Table SCU (Sensor Control Unit)-548 Register Type: RO (read only) Local Address: 0x1168 Reset Value: 0x00000000...
Page 694
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.225 {0x1188} D0_R3_CH_STATUS0 Details Table SCU (Sensor Control Unit)-554 Register Type: RO (read only) Local Address: 0x1188 Reset Value: 0x00000000...
Page 699
CXD5602 User Manual FIFO_OVER_RU Clearing of the write error at FIFO full N_CLR Clears an error occurred by writing at FIFO full 3.9.12.10.231 {0x11A8} D1_R3_CH_STATUS0 Details Table SCU (Sensor Control Unit)-560 Register Type: RO (read only) Local Address: 0x11A8 Reset Value: 0x00000000...
Page 801
CXD5602 User Manual 3.9.12.11 SCU_RAM Parameters The following table shows the parameters within the SCU_RAM. Since these parameters are within the memory, they are undefined after a reset is performed, and therefore, their initial values must be set from the CPU or the internal sequencer.
Page 802
CXD5602 User Manual For debugging SCU_FIFO_COPY_INFO_n 0x0314 + n x 0x04 Copy enable flag and copy destination Write FIFO ID of write partition 3.9.12.11.1 SCU_SW_REVISION_DATE Table SCU (Sensor Control Unit)-683 OFFSET: 0x0000 NAME Field Name Description SCU_SW_REVISION_DATE [31:0] Year, month, and date that SCU SW was built. The YYYYMMDD can be obtained on hexadecimal.
Page 803
CXD5602 User Manual 3.9.12.11.4 SEQ_SRC_SEL Table SCU (Sensor Control Unit)-686 OFFSET: 0x000c NAME Field Name Description SEQ_SRC_SEL Reserved [31:30] Reserved I2C1_SRC_SEL [29:20] Selects the I2C1 sequencer using each bit. (When the I2C1 sequencer is 4 or 6, select 0x50) I2C0_SRC_SEL [19:10] Selects the I2C0 sequencer using each bit.
Page 804
CXD5602 User Manual 3.9.12.11.6 SEQ_OUT_FORMAT_n Table SCU (Sensor Control Unit)-688 OFFSET: 0x0024 + n x 0x20 (n = 0, ..., 9) NAME Field Name Description SEQ_OUT_FORMAT_ Reserved [31:30] Reserved MATH_WRITE_VEC_ [29:28] Format for writing to the MATH_PROC. Number of vector ELE_NUM elements.
Page 805
CXD5602 User Manual 3.9.12.11.8 SEQ_INSTRUCTION_n Table SCU (Sensor Control Unit)-690) OFFSET: 0x0264 + n x 0x02 (n = 0, …, 127) NAME Field Name Description SEQ_INSTRUCTION_n INSTRUCTION [15:0] Sequencer instructions This parameter cannot be rewritten when the corresponding sequencer is in operation.
Page 806
CXD5602 User Manual SLAVE_ADDRESS is the slave address. WAIT Instruction to insert WAIT The sequencer waits for the number of main loops which is set to WAIT_COUNT and then executes the instruction. Set the actual number of waits – 1.
Page 807
CXD5602 User Manual Only *_ENABLE of this parameter can be rewritten during operation of the ADC. To rewrite only *_ENABLE, Read/Modify/Write access is required. The following tables shows the FIFO_IDs and the FIFOs linked to FIFO_ID. Table SCU (Sensor Control Unit)-693 FIFO_IDs and the FIFOs linked to FIFO_ID...
Page 808
CXD5602 User Manual OFST [29:20] n =0: LPADC0 offset value (X) n = 1: LPADC1 offset value (X) n = 2: LPADC2 offset value (X) n = 3: LPADC3 offset value (X) n = 4: HPADC0 offset value (X) n = 5: HPADC0 offset value (Y) n = 6: HPADC1 offset value (X) Each bit of this parameter can be rewritten when the ADC is in operation.
Page 809
CXD5602 User Manual n corresponds to the following Write FIFOs. n = 0, 1, 2, 3 D0_W0_S, D0_W1_S, D0_W2_S, D0_W3_S n = 4 , 5, 6, 7 D1_W0_S, D1_W1_S, D1_W2_S, D1_W3_S n = 8, 9, 10, 11, 12, 13, 14, 15...
Page 810
CXD5602 User Manual SEQ_RAM_OUT_n_ DATA3 [31:24] The (m x 4 + 4) th Byte of the data read out from the One-shot Sequencer READ_DATA_m DATA2 [23:16] The (m x 4 + 3) th Byte of the data read out from the One-shot Sequencer...
Page 811
CXD5602 User Manual (1) Set the HPADC0_ACCESS_INHIBIT_REQ to “1” (SCU SLEEP release and prohibition) (2) Clear the SCU interrupt factor (3) Disable the iSoP3 IRQ interrupt mask (4) Set the complete/suspend request sequencer number to the SYNCHRO_CPU2iSoP (5) Set the HPADC1_ACCESS_INHIBIT_REQ to “1” (suspend interrupt request)
Page 812
CXD5602 User Manual COPY_ENABLE The copy enable flag of the write partition of sequencer n Each bit of this parameter can be rewritten when the corresponding sequencer n is in operation. 3.9.13 SCU Control Sequence The following describes the control sequence. For details on the control, refer to Section 3.9.13.6.
Page 813
CXD5602 User Manual (28) LPADC0 data rate set (29) LPADC1 data rate set (30) LPADC2 data rate set (31)LPADC3 data rate set (32)HPADC0 data rate set (33)HPADC1 data rate set (34)Sequencer boot wait (35)Sequencer startup (36)LPADC data output enable (37)HPADC0 data output enable (38)HPADC1 data output enable 3.9.13.2...
Page 814
CXD5602 User Manual (6) Writing program to SEQ_IRAM (7) Writing setting and initial value to SEQ_DRAM (8) Sequencer clock stop (9) Sequencer reset release (10) Sequencer clock supply start (11) SPI sequencer operation initial value set (12) I2C0 sequencer operation initial value set...
Page 815
CXD5602 User Manual Transition process to FIFO (32 KByte) All On Transition process to FIFO (32 KByte) All Off 3.9.13.6 Control Setting Details by Function The following describes the control setting details by function. 3.9.13.6.1 Power Supply Control Power ON...
Page 816
CXD5602 User Manual LPADC, SCU.AD 0x0018d LV_CLK_OSC --> The clock source selection setting during the HPADC _SEL high speed sampling mode Power ON 0: XOSC, 1: RCOSC [5:4] LV_CLK_XOS --> The frequency division setting during the use C_DIV of the XOSC as clock source...
Page 817
CXD5602 User Manual Power ON TOPREG 0x0048 [11:0] |=12'h00D Sets the following bits to “1”. RMW (OR) Common (Read [3] I2C interrupt during power supply control Setting Modify [2] Timeout error occurrence interrupt during Write power supply control (OR)) [0] Power supply control completion interrupt...
Page 818
CXD5602 User Manual Caution: The frequencies supported for internal oscillation mode is 26 MHz. The frequencies supported for external clock mode is 26 MHz. Note 2: The settings differ for each crystal oscillator frequency. The IXO_LV_I_VAL1 (before oscillation starts) and IXO_LV_I_VAL3 (after changing the current setting) parameter values are tentative values. During external clock mode, set to “8'd0”.
Page 819
CXD5602 User Manual Confirmati 0x0018de90 SW_RESET Confirms whether turns to “0” 0x0018ded0 SW_RESET Confirms whether turns to “0” -819/1010-...
Page 820
CXD5602 User Manual Table SCU (Sensor Control Unit)-703 AD Conversion Settings Control Register Address Name Setting Descriptions Location Value SCU.ADCIF 0x0018de04 [9:8] LV_CH_SEL_INV --> ADCH selector for GNSS (set for only the Refer to following operating channels) descripti 2'b00 CH0...
Page 821
CXD5602 User Manual Sequencer Clock TOPREG 0x071C SCU_REQ 1'b0 PWD_SCU sequencer clock enable Stop (CK_SCU_SEQ) Interrupt Waits for the clock enable completion Wait interrupt from Clock Reset Generator (CRG) Interrupt TOPREG 0x04F4 [21:0] STAT (&= Interrupt confirmation: Confirms that Confirmation 22'h002000) ! the following bit turns to “1”...
Page 823
CXD5602 User Manual [1]: ENABLE_READY (Read Only) Setting for whole SCU.SCU 0x00195 ENABLE_ 1'b1 Permission/prohibition setting for whole Sequencers _REG ALL_SEQ sequencers operations, which can be operation control collectively controlled by this bit LPADC Data SCU.ADC 0x0018d [3:0] FIFO_EN arbitrary...
Page 824
CXD5602 User Manual HPADC1 Operation SCU.ADCIF 0x0018dec4 LV_ADC1_EN 1'b0 Same as above Suspend LV_ADC1_REF_EN 1'b0 Same as above LV_LPF1_EN 1'b0 Same as above 0x0018dec8 LV_CLKOUT1_EN 1'b0 Same as above For clock control during Power OFF or Power OFF control, refer to the PMU Chapter (3.4).
Page 831
CXD5602 User Manual Table SCU (Sensor Control Unit)-707 SPI Direct Control from CPU during Sequencer Operation Event Control Address Name Setting Descriptions Register Values Location Inhibit Request SCU.SCU 0x00195024 SPI_ACCESS_INHIBIT_REQ 1'b1 Request Acceptance SCU.SCU 0x00195024 SPI_ACCESS_INHIBIT_ACK 1'b1 Confirms that it is...
Page 833
CXD5602 User Manual 3.9.13.6.4 SPI Operation Initial Settings Refer to the SPI Chapter (3.10). 3.9.13.6.5 I2C Operation Initial Settings For the I2C0 and I2C1 settings, refer to the I2C Chapter (3.7). 3.9.13.6.6 LPADC Settings For the control register specifications, also refer to the ADC Chapter (3.21).
Page 834
CXD5602 User Manual 0x0018d [9:8] LV_CH_SEL_INV --> ADCH selector for GNSS (set for only the following operating channels) 2'b00: CH0 2'b01: CH1 2'b10: CH2 2'b11: CH3 [2:0] LV_CH_SEL_MODE --> LPADC channel switching mode 3'b000: CH0 3'b001: CH1 3'b010: CH2 3'b011: CH3 3'b100: CH0 ==>CH1...
Page 835
CXD5602 User Manual enable/disable -835/1010-...
Page 836
CXD5602 User Manual 3.9.13.6.9 FIFO Settings For details on the control registers, refer to Section 3.9.12.10. Table SCU (Sensor Control Unit)-713 FIFO Writing Side Initial Settings FIFO Address Name Setting Descriptions Partitio Values D0_W0 0x0018 [31:16] FIFO_START_OFST Selects the partition start address...
Page 837
CXD5602 User Manual [16] FIFO_RESET Resets the FIFO writing side D1_W2 0x0018 [31:16] FIFO_START_OFST Selects the partition start address 00c0 [15:0] FIFO_PARTITION_SIZE Selects the partition size 0x0018 [3:0] FIFO_SAMPLE_SIZE Selects the number of Bytes per sample 00c4 OVERWRITE_IF_FULL Selects the operation mode during FIFO full...
Page 838
CXD5602 User Manual 0x0018 [3:0] FIFO_SAMPLE_SIZE Selects the number of Bytes per sample 01a4 OVERWRITE_IF_FULL Selects the operation mode during FIFO full [16] FIFO_RESET Resets the FIFO writing side N6_W_ 0x0018 [31:16] FIFO_START_OFST Selects the partition start address 01c0 [15:0]...
Page 839
CXD5602 User Manual 0260 [15:0] FIFO_PARTITION_SIZE Selects the partition size 0x0018 [3:0] FIFO_SAMPLE_SIZE Selects the number of Bytes per sample 0264 OVERWRITE_IF_FULL Selects the operation mode during FIGI full [16] FIFO_RESET Resets the FIFO writing side 0x0018 [30:16] TIME_STAMP_INTERV Sets the intervals of FIFO writing (only for...
Page 840
CXD5602 User Manual [16] FIFO_RESET Resets the FIFO writing side 0x0018 [30:16] TIME_STAMP_INTERV Sets the intervals of FIFO writing (only for 0318 virtual sensor partition) V9_W_ 0x0018 [31:16] FIFO_START_OFST Selects the partition start address 0320 [15:0] FIFO_PARTITION_SIZE Selects the partition size...
Page 841
CXD5602 User Manual D1_R1_ 0x00181040 [15:0] WATER_MARK Sets Watermark 0x00181044 [25] FIFO_DMA_ENAB Sets output permission of DMA handshake signal [24] FIFO_ENABLE Readout side FIFO operation permission [16] FIFO_RESET Resets the readout side FIFO D1_R2_ 0x00181060 [15:0] WATER_MARK Sets Watermark 0x00181064...
Page 842
CXD5602 User Manual [24] FIFO_ENABLE Readout side FIFO operation permission [16] FIFO_RESET Resets the readout side FIFO N6_R1_ 0x00181140 [15:0] WATER_MARK Sets Watermark 0x00181144 [25] FIFO_DMA_ENAB Sets output permission of DMA handshake signal [24] FIFO_ENABLE Readout side FIFO operation permission...
Page 843
CXD5602 User Manual 0x00181224 [25] FIFO_DMA_ENAB Sets output permission of DMA handshake signal [24] FIFO_ENABLE Readout side FIFO operation permission [16] FIFO_RESET Resets the readout side FIFO N2_R0_ 0x00181240 [15:0] WATER_MARK Sets Watermark 0x00181244 [25] FIFO_DMA_ENAB Sets output permission of DMA handshake...
Page 844
CXD5602 User Manual 0x00181324 [24] FIFO_ENABLE Readout side FIFO operation permission [16] FIFO_RESET Resets the readout side FIFO V2_R_H 0x00181340 [15:0] WATER_MARK Sets Watermark 0x00181344 [24] FIFO_ENABLE Readout side FIFO operation permission [16] FIFO_RESET Resets the readout side FIFO V3_R_H...
Page 845
CXD5602 User Manual V1_W_C 0x00180234 [31:0] LATEST_BASE_TIME Writes the reference time stamp STAMP_MSB (1st time is mandatory, 2nd time on is 0x00180238 [14:0] LATEST_BASE_TIME optional) STAMP_LSB 0x00180228 [3:0] FIFO_WRITE_PHASE Confirmation (optional) and readout of the writing phase FIFO data write...
Page 846
CXD5602 User Manual 0x001802d8 [14:0] LATEST_BASE_TIME optional) STAMP_LSB 0x001802c8 [3:0] FIFO_WRITE_PHASE Confirmation (optional) and readout of the writing phase FIFO data write V7_W_C 0x001802f4 [31:0] LATEST_BASE_TIME Writes the reference time stamp STAMP_MSB (1st time is mandatory, 2nd time on is...
Page 855
CXD5602 User Manual TOPREG 0x0018 [1:0] SCU_FIFO0 Table SCU (Sensor Control Unit)-718 Transition Process to FIFO (8 KByte) All ON Control Address Name Setting Descriptions Register Values Location TOPREG 0x0018 [1:0] SCU_FIFO0 0x0214 [1:0] SCU_FIFO0 Status confirmation 11: Normal 10: Prohibited Setting 01: SRAM off 00:...
Page 856
CXD5602 User Manual 3.9.14 Error Handling The following table shows the SCU errors and the way they should be handled Table SCU (Sensor Control Unit)-723 Errors and their Handling Resource Cause Notification Method How to handle on CPU SPI transfer timeout (650240 SCU...
Page 857
CXD5602 User Manual ADCIF The FIFO partition Nn_R1 was Nn_R1_C_UNDER_RUN None empty but read out (n = 0, ..., 7) ADCIF The FIFO partition Dn_R3 was Dn_R3_CH_UNDER_RUN None empty but read out (n = 0, 1) 3.9.15 Restrictions 3.9.15.1 Parameter Initialization and Change Timing ...
Page 858
CXD5602 User Manual Table SCU (Sensor Control Unit)-724 Conversion to 2’s Complement Format (e.g. four bit width) Decimal Offset Binary 2's complement Decimal (Binary) (Binary) -> -> -> -> -> -> -> -> 3.9.15.4 MATH_PROC Parameter Dynamic Change Some of the MATH_PROC parameters cannot be dynamically changed (when the data is being input/output to/from the MATH_PROC corresponding to the parameter change).
Page 859
CXD5602 User Manual FORCE_THR When set to “1”, regardless of the N1 value, OUGH2 bypass is enforced with no sample delay Decimation ratio Same as above FORCE_THR When set to “1”, regardless of the N1 value, OUGH3 bypass is enforced with no sample delay...
Page 860
CXD5602 User Manual such as using the MATHFUNC_SEL register (Section 3.9.12.3.27) to perform normalization processing as a preprocess. 3.9.15.7 Caution upon Directly Controlling the I2C Block from the CPU The I2C block equipped on the SCU requires an idle time from when Enable is set to the time when the internal state becomes Active.
Page 861
CXD5602 User Manual ICOUNT2 & (2^ (START_INTEVALn + 1) - 1)==START_PHASEn & (2 ^(START_INTERVALn + 1) - 1) (n is the sequencer number, n = 0, …, 9) The ICOUNT2 is a nine bit internal counter that counts up by a clock obtained by frequency dividing (2^PRE_DIVIDER) of 32 kHz clock.
Page 862
CXD5602 User Manual 3.9.15.9 OLDEST Time Stamp Restriction The OLDEST time stamp calculated by the hardware has the following restrictions. These restrictions can be avoided by using the LATEST time stamp. ・When FORCE_THROUGH within the SCU_REG is set to “1” at the Decimation partition, the decimation ratio must be calculated using “1”...
Page 863
CXD5602 User Manual /* get oldest timestamp from latest timestamp */ void GetOldestFromLatest (UH interval, UH uhAvail, UW *uwMsb, UH *uhLsb) { UW tmpDiff; UW tmpLsb; if (uhAvail == 0) return; tmpDiff = interval * uhAvail; tmpLsb = (UW)(*uhLsb); if (tmpLsb < tmpDiff) { tmpLsb += 0x80000000;...
Page 864
CXD5602 User Manual Calculation Equation Sampling frequency FREQ_LPADC = 32768/(2^SCU_U32KL)/(2^SAMP_RATIO)/(2^SEL_DIV)/(2^(one of N1 to N6)) INTERVAL = 32768/FREQ_LPADC Calculation Equation Sampling frequency: FREQ_LPADC = 32768/(2^SCU_U32KL)/(2^SAMP_RATIO)/(2^SEL_DIV)/(2^(one of N1 to N6)) INTERVAL = 32768/FREQ_LPADC HPADC Obtains the values from the following related registers.
Page 865
CXD5602 User Manual When LV_CLK_OSC_SEL0 == 1 (RCOSC is selected) Sampling frequency: FREQ_HPADC = RCOSC frequency/(2^DECI_RATIO)/4/(2^(one of N1 to N6)) INTERVAL = 32768/FREQ_LPADC Sequencer Obtains the values from the following related registers. Frequency division of 32768 Hz that is common to all sequencers ...
Page 866
CXD5602 User Manual The following table shows the estimated values of time stamp fluctuation (maximum) when a task’s execution start time is affected by the presence of a different task. (in this table, the SCU clock is RCOSC 8.192 MHz)
Page 867
CXD5602 User Manual readOldestTimeStamp(){ PreLsb = readLsb(); PreMsb = readMsb(); PostLsb = readLsb(); PostMsb = readMsb(); if(PreMsb == PostMsb){ msb = PostMsb; lsb = PostLsb; }else{ msb = PreMsb; lsb = PreLsb; Also, the following is an example pseudo code of reading out the LATEST_TIMESTAMP. Using the remaining number of FIFOs (PreAvail/PostAvail), the carry of the MSB during the two readouts is detected.
Page 868
CXD5602 User Manual The maximum value of cnt_out is 32767(2^15-1). Since the SAMP_RATIO is directly connected from the register to the comparator for comparing the counter value, when the software is changed, it is immediately reflected. Counter reset is common to all four channels (reset cannot be done on a counter basis).
Page 869
CXD5602 User Manual Also, the possibility of a large delay longer than the sampling period is: Condition: Sampling frequency change (Low => High) (SAMP_RATIO High => Low) The current count value Count value at register change > (2^RPOST-1) Possibility of occurrence: 1-1/(RPRE/RPOST) 3.9.15.15...
Page 870
CXD5602 User Manual 3.9.15.17 One-shot Sequencer Parameter Restrictions When using the One-shot Sequencer, 0xA must be set in the corresponding START_INTERVALn (n is the sequencer number) fields of the START_INTERVAL3_0, START_INTERVAL7_4, and START_INTERVAL9_8 registers within the SCU_REG. When this setting has been made, the OLDEST_TIMESTAMP cannot be used because its value cannot be correctly calculated by the sequencer using the same Write FIFO number as the ADC.
Page 871
CXD5602 User Manual (Simultaneously) DMA handshake signal output permission *_R*_*_CTRL1.FIFO_DMA_ENABLE setting Readout side FIFO operation permission *_R*_*_CTRL1.FIFO_ENABLE For FIFO restrictions, also refer to Section 3.9.8.10. -871/1010-...
Page 872
CXD5602 User Manual 3.9.15.19 Register and SCU_RAM Reading and Writing When the internal sequencer is in SLEEP, you cannot read or write from/to the control registers or SCU_RAM. Recover the internal sequencer from SLEEP before reading or writing from/to the control registers or SCU_RAM.
Page 873
CXD5602 User Manual 3.10 SPI 3.10.1 Features and Overview ® The SPI of this LSI equips the PrimeCell Synchronous Serial Port (PL022) from ARM Limited. ® The SPI0 and SPI3 offer additional functions to the Chip Select control. For details, refer to the...
Page 874
CXD5602 User Manual Switching between the function for fixed-value output and function for control of the PL022 A function has been added to set the Chip Select signal (High/Low) by register control. You can switch between Chip Select control by the register and Chip Select control by the PL022.
Page 875
CXD5602 User Manual Address Register Name Type Description Initial Value ® 0x041AB000 PrimeCell Synchronous Serial Port (PL022) register 0x041AB024 0x041AB028 Reserved Reserved 0x041AB08C 0x041AB090 CS_MODE Chip Select 0x041AB094 SSP_CS Chip Select setting 0x041AB098 Reserved Reserved 0x041AB09C Reserved Reserved 0x041ABFDC ®...
Page 876
CXD5602 User Manual 3.10.2.2 Register Descriptions Table SPI-749 shows descriptions of the registers added for control of Chip Select. Table SPI-733 SPI0 register Descriptions Register Bit Field Initial Address Type Description Name Name Value 0x041AB090 CS_MODE Reserved [15:1] Reserved cs_mode...
Page 877
CXD5602 User Manual 3.10.2.4 Clock Supply Start and Stop 3.10.2.4.1 Clock Supply Start Perform the following control to start supplying the SSPCLK clock and PCLK clock to the SPI0. 1. Clock supply start to the AHB/APB Bus Bridge SYSIOP_SUB_CKEN.COM_BRG = 1'b1 SYSIOP_SUB_CKEN.AHB_BRG_COMIF = 1'b1...
Page 878
CXD5602 User Manual 3.10.3 SPI3 3.10.3.1 Register List Table SPI-750 shows a register list of the SPI3. Table SPI-734 SPI3 Register List Address Register Name Type Description Initial Value ® 0x0418D000 PrimeCell Synchronous Serial Port (PL022) register 0x0418D024 0x0418D028 Reserved...
Page 879
CXD5602 User Manual slave_type [1:0] 2'b00 SPI communication slave selection function 0,3: SPI3_CS0_X 1: SPI3_CS1_X 2: SPI3_CS2_X 3.10.3.3 Clock and Reset Figure SPI-97 shows the clock and reset system diagram of the SPI3. When accessing the SPI3 register, set SCU_CKEN.SCU=1'b1 beforehand.
Page 880
CXD5602 User Manual 3.10.4 SPI4 3.10.4.1 Register List Table SPI-752 shows a register list of the SPI4. ® In the case of SPI4, the ID code of the PrimeCell Synchronous Serial Port (PL022) cannot be read out. Table SPI-736 SPI4 Register List...
Page 881
CXD5602 User Manual 3.10.4.3 Clock Supply Start and Stop 3.10.4.3.1 Clock Supply Start Perform the following control to start supplying the SSPCLK clock and PCLK clock to the SPI4. 1. Reset release PWD_RESET0.PWD_APP=1'b1 RESET.xrs_img=1'b1 2. Supply the CK_APP (For details, refer to the APP Section (3.13)) 3.
Page 882
CXD5602 User Manual 3.10.5 SPI5 3.10.5.1 Register List Table SPI-753 shows a register list of the SPI5. Table SPI-737 SPI5 Register List Address Register Name Type Description Initial Value ® 0x0E103C00 PrimeCell Synchronous Serial Port (PL022) register 0x0E103C24 0x0E103C28 Reserved...
Page 883
CXD5602 User Manual 3.10.5.3 Clock Supply Start and Stop 3.10.5.3.1 Clock Supply Start Perform the following control to start supplying the SSPCLK clock and PCLK clock to the SPI5. 1. Reset release PWD_RESET0.PWD_APP=1'b1 RESET.xrs_img=1'b1 2. Supply the CK_APP (For details, refer to the APP Section (3.13)) 3.
Page 884
CXD5602 User Manual 3.11 UART 3.11.1 Overview and Features ® The UART of this LSI equips the PrimeCell UART (PL011) from ARM Limited. It has an independent transmitter and independent receiver built in and allows full-duplex transmission. There is also a dedicated baud rate generator built in, which enables transmissions of a wide range of baud rates. For...
Page 885
CXD5602 User Manual 3.11.2 UART1 3.11.2.1 Register List Table UART-764 shows a register list of the UART1. Table UART-740 UART1 Register List Address Register Name Type Description Initial Value ® 0x041AC000 PrimeCell UART (PL011) register 0x041AC048 0x041AC04C Reserved Reserved 0x041ACFFC 3.11.2.2...
Page 886
CXD5602 User Manual 3.11.2.3 Clock supply Start and Stop 3.11.2.3.1 Clock Supply Start Perform the following control to start supplying the UARTCLK clock and PCLK clock to the UART1. Clock supply start to the AHB/APB Bus Bridge SYSIOP_SUB_CKEN.COM_BRG=1'b1 SYSIOP_SUB_CKEN.AHB_BRG_COMIF=1'b1 2. Reset release SWRESET_BUS.XRST_UART1=1'b1...
Page 887
CXD5602 User Manual 3.11.3.2 Clock and Reset Figure UART-101 shows the clock and reset system diagram of the UART2. RCOSC CK_APP XOSC RTC_CLK_IN(32.768kHz) GATE GATE GEAR_AHB.gear_m_ahb SYSPLL GEAR_AHB.gear_n_ahb CK_GATE_AHB.ck_gate_img SPI4 SSPCLK GATE PCLK GEAR_IMG_SPI.gear_m_spi nSSPRST GEAR_IMG_SPI.gear_n_spi PRESETn APP_CKSEL.APP_PLL_DIV5 APP_CKSEL.STAT_SP_CLK_SEL4 SPI5 APP_CKSEL.STAT_APP_CLK_SEL4...
Page 888
CXD5602 User Manual 3.11.3.3.2 Clock Supply Stop Perform the following control to stop supplying the UARTCLK clock and PCLK clock to the UART2. 1. UART2 control clock stop GEAR_IMG_UART.gear_n_uart=1'b0 2. UART2 register’s clock stop CK_GATE_AHB.ck_gate_img=1'b0 -888/1010-...
Page 889
CXD5602 User Manual 3.12 GNSS Multi-GNSS receiver The features are: Multiple Constellation compatibility GPS (L1 C/A) GLONASS (L1OF) Position Accuracy GPS & Remark Item Unit GLONASS Signal strength is -130 dBm 2DRMS Test circuit as shown in the figure...
Page 890
CXD5602 User Manual Noise Filter An embedded noise filter for GNSS signals. It is automatically enabled at the optimum settings for the input noise. RF Performance Item Min. Typ. Max. Unit Total NF -890/1010-...
Page 891
CXD5602 User Manual 3.13 APP 3.13.1 Function Overview The Application Domain is responsible for a variety of application software of the CXD5602. Centered around the ® ® multi core CPU system of the Arm Cortex -M4 processor with FPU, it equips high speed interface processing block such as USB and eMMC, Audio, and Imaging multimedia processing.
Page 892
CXD5602 User Manual AES Encryption/Decryption ECB, CBC, CTR, OFB, and CFB and CMAC chaining algorithms, 128, 192 or 256 bit key Key generation Up to 128 bit Embedded Application Memory The key features include: 1.5 MByte SRAM ...
Page 893
CXD5602 User Manual ® PrimeCell Synchronous Serial Port (PL022) Communication at speeds High Performance mode: up to 13.00 Mbit/s Low Power mode: up to 6.5 Mbit/s 2D Graphics Accelerator Bit Block Transfer Rotator ...
Page 894
CXD5602 User Manual ® PrimeCell UART (PL011) Communication speeds High Performance mode: up to 3 Mbit/s Low Power mode: up to 2 Mbit/s DMAC ADMAC (PL081) supports for memory to memory IDMAC (like PL080) supports for SPI for display and UART for BT, BLE, Wi-Fi...
Page 895
CXD5602 User Manual and PWD_APP_AUD. The following describes each functional block of the Application Domain and the corresponding power domains. PWD_APP All components of Application Domain Including 1.5 MByte SRAM in Application memory and Application Multi-layer Bus ...
Page 896
CXD5602 User Manual 3.13.3.2 Clock Reset Generator The following shows the clock system diagram. RCOSC XOSC SYSPLL RTC_CLK_IN (32.768kHz) CK_APP GATE APP_CKSEL.APP_PLL_DIV5 APP_CKSEL.STAT_SP_CLK_SEL4 GEAR_AHB APP_CKSEL.STAT_APP_CLK_SEL4 APP_CKEN.APP ADSP CK_GATE_AHB.ck_gate_dsp0-5 GATE GATE GATE ck_cpu_bus ck_ahb_gear GATE GATE GATE CK_APP_AHB GATE AUDIO CK_GATE_AHB.ck_gate_aud...
Page 897
CXD5602 User Manual The following shows the reset system diagram. RESET.xrs_dsp0-5 ADSP RESET.xrs_aud AUDIO XRST RESET.xrs_dsp_gen ADMAC HRESETn Crypto XRSTS XRSTK RESET.xrs_img CIS I/F XRST 2D Graphics IMG_RST_X UART PRESETn nUARTRST SPI4 PRESETn nSSPRST SPI5 PRESETn nSSPRST IDMAC HRESETn RESET.xrs_mmc...
Page 898
CXD5602 User Manual 3.13.3.3 Register Descriptions The following describes setting registers for clock and reset. Clock division ratio setting and clock switching registers are controlled by the API. The clock setting can be confirmed with the registers described in Table APP-776 and Table APP-777. Make sure to use them as RO registers.
Page 899
CXD5602 User Manual STAT_SP_C [11:10] 2'b00 Frequency division setting status for LK_SEL4 CK_APP SYSPLL 2'b00: clock not divided 2'b01: divided by 2 2'b10: divided by 3 2'b11: divided by 4 or 5 (depending on APP_CKSEL.APP_PLL_DIV5) STAT_APP_ [9:8] 2'b00 Clock source switching status for...
Page 900
CXD5602 User Manual Table APP-747 Clock Reset Generator Registers Address Register Name Bit Field Type Initial Description Name Value 0x0E011000 GEAR_AHB Reserved [31:23] Reserved gear_n_ahb [22:16] 7'h1 Division ratio setting of AHB bus clock (numerator) “0” must not be written (because “0”...
Page 901
CXD5602 User Manual gear_n_sdio [16] SDIO Clock Enable 0: Clock stopped 1: Clock supplied Reserved [15:2] Reserved gear_m_sdio [1:0] 2'h2 Division ratio setting of SDIO Clock (denominator) “0” must not be written. 0x0E011010 GEAR_PER_USB Reserved [31:17] Reserved gear_n_usb [16] Division ratio setting of USB Clock...
Page 902
CXD5602 User Manual gear_n_img_ [16] Division ratio setting of SPI5 clock wspi (numerator) 0: Clock stopped 1: Clock supplied Reserved [15:4] Reserved gear_m_img_ [3:0] 4'h4 Division ratio setting of SPI5 clock wspi (denominator) “0” must not be written. 0x0E011020 CKEN_EMMC...
Page 906
CXD5602 User Manual Table APP-749 Reset Control Registers Address Register Name Bit Field Type Initial Description Name Value 0x04103408 SWRESET_APP Reserved [31:1] Reserved APP_DBG Debug Reset of ADSP 3.13.4 Description of APP_DSP Function 3.13.4.1 Overview and Features The APP_DSP is a sub block in the Application Domain. It consists of the following: ®...
Page 907
CXD5602 User Manual Debug APP_DSP Application Processor ADSP0 ADSP1-5 PID2 async PID3-7 bridge ITM DAP CTI Cortex-M4 Core Interrupt NVIC Input SysTick Controller Watch Dog Timer Timer Clock General General Crypto ADMAC Reset Purpose Purpose (AES) Generator Registers Registers Bus Exclusive LD/ST...
Page 908
CXD5602 User Manual 3.13.4.2 Function List Table APP-782 shows the functions of the APP_DSP. Table APP-750 APP_DSP Function List Function Name Description ADSP ® ® Cortex -M4 processor with FPU The APP_DSP equips six Cortex -M4 processors with FPU in total.
Page 909
CXD5602 User Manual Memory SRAM with protection feature The SRAM module consists of 128 KByte Logic Tile units, holding access control function for each tile, and AHB slave interface. Clock Reset Clock Reset Generator The Clock Reset Generator generates clocks and resets required for the sub block in the Application Domain.
Page 910
CXD5602 User Manual 0x0E013000 BUS_SNOOP_DISABLE Exclusive Access Control 0xE0043000 Timer Refer to Section 3.13.4.7 0xE0044000 Watchdog Timer Refer to Section 3.13.4.8 0xE0045000 Interrupt controller Refer to Section 3.13.4.6 For details, refer to Section of the Interrupt (3.3). -910/1010-...
Page 911
CXD5602 User Manual ® 3.13.4.4 Cortex -M4 processor with FPU ® The APP_DSP equips six Cortex -M4 processors with FPU. On the APP_DSP Bus Matrix, regardless of the endianness of the processor, byte lanes in the little endian are used.
Page 912
CXD5602 User Manual 3.13.4.5 Processor ID Processor ID register is used for each processor to recognize its own ID. Each processor can obtain its own ID by accessing the address, which can be seen the same from each processor, to read the register. (Each processor cannot access the ID of other processors.)
Page 913
CXD5602 User Manual 3.13.4.7 Timer ® As general-purpose timers, Dual input Timers of AMBA Design Kit Technical Reference Manual are equipped. One timer for every processor, six timers in total are equipped. Since the control registers of the timer for each processor are in the Private Peripheral Bus area, they can be accessed in Privileged Mode only.
Page 915
CXD5602 User Manual Table APP-755 WDTRES Register List Address Register Name Bit Field Type Initial Description Name Value 0x0E002048 WD_TIM_RES Reserved [31:6] Reserved wd_tim_res_5 Reset status of Watchdog Timer of ADSP5 wd_tim_res_4 Reset status of Watchdog Timer of ADSP4 wd_tim_res_3...
Page 916
System debug function is supported. Without halting the ADSP, debug access to the memories is possible. Debugger AS Integrated Development Environment of Embedded multi-core, YDC advice LUNA II (customized for CXD5602) environment can be used. ® DS-5 environment and DSTREAM as debug adaptor are supported. (The number of processors which can be debugged simultaneously is limited.)
Page 917
CXD5602 User Manual 3.13.4.11 I/D Multiplexor Master ports of the ICode and DCode of each ADSP are connected to a master port. When the ICode and the DCode access the master port simultaneously, DCode has a higher priority than ICode.
Page 919
CXD5602 User Manual 3.13.4.13 Address Converter Address converter offers the function that converts address signals from each ADSP into 96 MByte of region in total, when the address signals are within 1 MByte of region from 0x00000000 to 0x000FFFFF. The remapped regions are from 0x04000000 to 0x05FFFFFF, from 0x08000000 to 0x09FFFFFF, and from 0x0C000000 to 0x0DFFFFFF, which are 32 MByte individually.
Page 920
CXD5602 User Manual 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 Input Address Area Select Conversion enabled when the address is 1MB from the beginning.
Page 921
CXD5602 User Manual Table APP-758 Address Conversion Registers Address Register Name Bit Field Type Initial Description Name Value 0x0E012004 ACNV_P<N>_DST_0 AREA_1 [26:16] 0x001 Destination address after conversion of +<N>*0x020 ADSP<N> area 1 (64 – 128 KByte address area) AREA_0 [10:0]...
Page 922
CXD5602 User Manual AREA_A [10:0] 0x00A Destination address after conversion of ADSP<N> area A (640 - 704 KByte address area) 0x0E01201C ACNV_P<N>_DST_6 AREA_D [26:16] 0x00D Destination address after conversion of +<N>*0x020 ADSP<N> area D (832 - 896 KByte address area)
Page 924
CXD5602 User Manual 3.13.4.14 Bus Matrix APP_DSP has two multi-layer AHB matrixes. APP MAIN Bus matrix uses a processor as a master, and has SRAM with protection features as a slave. APP SUB Bus matrix has a connection interface for three sub blocks: PWD_APP_AUD, APP_IMG, and APP_PER mainly used for PWD_APP, and has data of each functional block inside APP_DSP and control interface.
Page 925
CXD5602 User Manual In the case that “failure” has been retuned as a result of exclusive access, write to the slave has not been performed. Success case of exclusive access The snooping is released after an exclusive write (ExW) is issued from the master obtaining exclusive access right to the target address to snoop.
Page 926
CXD5602 User Manual a target address, “failure” will be returned. (refer to Figure APP-114) In the case that an exclusive write access (ExW) occurs to an address that is not a target to snoop, “failure” will be returned at the timing of an exclusive write access from the master with the exclusive access right.
Page 927
CXD5602 User Manual 3.13.4.15.2 Monitoring Exclusive Accesses to APP SUB Bus The following shows the features of monitoring of exclusive accesses to APP SUB Bus. “Failure” will returned exclusive write (ExW). However, case that BUS_SNOOP_DISABLE.bus_snoop_disable=1'b1, “success” will be returned. Even if for failure cases, write to the slave is performed.
Page 928
CXD5602 User Manual 3.13.4.16 Start and Stop Sequence of ADSP This section explains power supply, clock, and ADSP’s recommended start and stop sequence including reset control. Precaution: ® Cortex -M4 processor with FPU has multiple clocks and resets. In this section, when without specific description ®...
Page 929
CXD5602 User Manual 3.13.4.16.2 Power Supply ON for PWD_APP_DSP For power supply control, refer to the PMU chapter 3.4. 3.13.4.16.3 ADSP Startup Control the ADSP startup using System and I/O Processor or ADSP other than the target ADSP. Note: about <N>...
Page 930
CXD5602 User Manual 3.13.4.16.5 Reset Assert and Release Control Reset Enable and Release using System and I/O Processor or ADSP other than the target ADSP processor. Note: about <N> E.g., ADSP0 means that N = 0, ADSP1 means that N = 1, in the same way, ADSP5 means that N = 5.
Page 931
CXD5602 User Manual 3.14 SYSIOP Clock and Reset Control 3.14.1 Function Overiew The System and IOP Domain (referred to as “SYSIOP” hereinafter) is responsible for overall system control. ® ® Centered around the Arm Cortex -M0+, it equips IO Configuration, DMAC, RTC, a common communication I/F that supports I2C/SPI/UART, and the HOSTIFC, etc.
Page 932
CXD5602 User Manual Equips an HW protection function that uses a master ID, and an access detection (error response) function to the power supply OFF area. I/O Configuration An I/O terminal control function. For details, refer to Section 3.1. GPIO Performs GPIO control of pins and selection/detection control of pins used for interrupts.
Page 933
The main memory interface that supports the Quad SPI FLASH. For details, refer to Section 3.10. HOSTIFC The I/F block for communication with the CXD5602’s external host. In addition to supporting the I2C/UART/SPI communication I/F, sequential control is also possible for reduced power consumption. For details, refer to Section 0.
Page 934
CXD5602 User Manual 3.14.2 Power Supply Control The SYSIOP block is divided into the three power domains of PWD_CORE, PWD_SYSIOP, and PWD_SYSIOP_SUB. The power supply domains that correspond to each function block of the SYSIOP are as follows: PWD_CORE ...
Page 935
CXD5602 User Manual 3.14.3 Clock and Reset Control Using clock control, clock switching, frequency control by frequency division switching, and clock supply/stop can be performed. Using reset control, reset assert/release of each block can be performed. The API is used for the control.
Page 936
CXD5602 User Manual RCOSC XOSC SYSPLL ck_rf_pll_1 CKSEL_ROOT.CPU_PLL_DIV5 System and I/O Processor CKSEL_ROOT.RFPLL1_STAT_CLK_SEL4 ck_cpu_bus ck_cpu_bus_gear_1 DCLK RTC_CLK_IN (32.768kHz) HCLK DIV(0) SCLK CKSEL_ROOT.STAT_CLK_SEL4L FCLK RF_CLK_IN (Refer to GNSS) SYSTEM Bus CKSEL_ROOT.SEL_RF_PLL_0 ck_ahb_gear HCLK DIV(1) SPI0 ck_co m_gear SSPCLK CG(SUB04) GATE PCLK...
Page 937
CXD5602 User Manual Table SYSIOP Clock and Reset Control-761 XOSC (26 MHz), Low Power Mode Clock source SYSPLL XOSC RCOSC frequency M Hz 195.000 156.000 26.000 8.192 0.032768 System and I/O Processor M Hz 32.500 31.200 26.000 8.192 0.032768 System Bus M Hz 32.500...
Page 938
CXD5602 User Manual 3.14.3.3.2 Register Descriptions Table SYSIOP Clock and Reset Control-802 shows the clock switching status registers. Make sure to use RW registers as RO registers. Table SYSIOP Clock and Reset Control-762 Clock Switching Status Registers Address Register Bit Field...
Page 939
CXD5602 User Manual Figure SYSIOP Clock and SEL_UART0 Indicated as SEL(2) in Reset Control-116 UART0 clock source switching 0: The clock selected by CKSEL_SYSIOP.SEL_HOST2 1: Reserved Reserved [7:3] Reserved Figure SYSIOP Clock and SEL_HOST2 Indicated as SEL(1) in Reset Control-116...
Page 940
CXD5602 User Manual Frequency division of ck_cpu_bus ck_cpu_bus_gear_1= frequency division (A) ck_ahb_gear = frequency division (A) x frequency division (B) ck_apb_gear = frequency division (A) x frequency division (B) x frequency division Note: Refer to Table SYSIOP Clock and Reset Control-803 for frequency division (A), Table SYSIOP Clock and Reset Control-804 for frequency division (B), and Table SYSIOP Clock and Reset Control-805 for frequency division (C).
Page 941
CXD5602 User Manual Clock Frequency Division for SPI Flash Controller The frequency of the clock for the SPI Flash Controller is determined by the ck_cpu_bus frequency and the register setting value. The following equations show the frequency division of the clock for the SPI Flash Controller.
Page 942
CXD5602 User Manual 3.14.3.4.2 Register Descriptions Table SYSIOP Clock and Reset Control-807 shows the frequency division setting status registers of each clock. Make sure to use the RW registers as RO registers. Table SYSIOP Clock and Reset Control-767 Frequency Division Setting Status Registers...
Page 943
CXD5602 User Manual Figure SYSIOP Clock and CK_APB [25:24] 2'b00 Indicated as DIV(2) in Reset Control-116 Frequency division setting (ratio against AHB clock) of APB clock 0: divided by 1 1: divided by 2 2: divided by 4 4: divided by 8...
Page 944
CXD5602 User Manual Figure SYSIOP Clock and CK_COM [4:0] Indicated as DIV(4) in Reset Control-116 Frequency division setting (ratio against ck_cpu_bus) of SYSIOP_SUB communication system 0: divided by 1 1: divided by 2 2: divided by 3 … 29: divided by 30...
Page 945
CXD5602 User Manual Figure SYSIOP Clock and CPU_ST Indicated as DIV(0) in Reset Control-116 Update status of CKDIV_CPU_DSP_BUS.CK_M0 setting value 0: Update completed 1: Update in progress 3.14.3.5 Clock Enable Confirmation 3.14.3.5.1 Function Details Using the API, supply/stop control of the clocks supplied to each block can be performed.
Page 946
CXD5602 User Manual 3.14.3.5.2 Register Descriptions Table SYSIOP Clock and Reset Control-808 shows the clock enable status registers. Make sure to use the RW registers as RO registers. Table SYSIOP Clock and Reset Control-768 Clock Enable Status Registers Address Register Name...
Page 947
CXD5602 User Manual Figure AP_CLK [11] Indicated as CG(SYS11) in SYSIOP Clock Reset Control-116 Clock enable reference clock (AP_CLK) of FREQDISC Figure RTC_ORG [10] Indicated as CG(SYS10) in SYSIOP Clock Reset Control-116 Clock enable for reference clock (RTC Clock) of FREQDISC...
Page 948
CXD5602 User Manual Figure I2CS Indicated as CG(SYS03) in SYSIOP Clock Reset Control-116 Clock enable HOSTIFC I2C3 communication Figure PCLK_HOSTIFC Indicated as CG(SYS02) in SYSIOP Clock Reset Control-116 Clock enable for the APB of SPI2 and I2C3 Figure PCLK_UART0 Indicated as CG(SYS01) in...
Page 949
CXD5602 User Manual Figure SFC_HCLK Indicated as CG(SUB07) in SYSIOP Clock Reset Control-116 Clock enable for AHB synchronous bridge between SYSTEM Bus and SPI Flash Controller Reserved Reserved Figure I2CM_SUB Indicated as CG(SUB05) in SYSIOP Clock Reset Control-116 Clock enable for I2C2...
Page 950
CXD5602 User Manual System and I/O Processor Auto(PWD_SYSIOP Power Domain ON) RST_CPU_P0_X RST_CPU_SYS_X SYSIOP_MAIN_BUS HRESTn SPI0 Auto(PWD_SYSIOP_SUB Power Domain ON) PWD_RESET0.PWD_SYSIOP_SUB NSSPRST RST(0) PRESTn UART1 nUARTRST RST(3) PRESETn I2C2 PRESETn RST(8) AHB/APB BusBridge PWD_RESET0.PWD_SYSIOP_SUB SDMAC HRESETn HDMAC HRESETn SYDMAC HRESETn...
Page 951
CXD5602 User Manual 3.14.3.6.2 Register Descriptions The reset of each block can be controlled using the registers. Since the control flow varies according to the function block, refer to each block’s Section. Table SYSIOP Clock and Reset Control-809 shows the reset control registers.
Page 952
CXD5602 User Manual Figure SYSIOP XRST_SFC Indicated as RST(1) in Clock and Reset Control-117 Reset for SPI Flash Controller Figure SYSIOP XRST_SPIM Indicated as RST(0) in Clock and Reset Control-117 Reset for SPI0 -952/1010-...
Page 953
CXD5602 User Manual 3.15 Audio Codec The Audio Codec, when combined with the CXD5247, realizes Audio Codec functions. The following is an overview of its functions. I2S Bus Interface supports: − Two I2S-bus for audio-codec interface with DMA-based operation −...
Page 954
CXD5602 User Manual 3.16 SDIO SD Host Controller Interface SD Memory Card Protocol version 3.0 compatible 8K-Byte(32bit x 512word) x2 FIFOs for Tx/Rx Communication speeds High Performance mode: up to 39.000MHz Low Power mode: up to 24.552MHz 3.17 eMMC...
Page 955
CXD5602 User Manual 3.19 CIS I/F 8-bit parallel Camera Interface input 8-bit ITU-R BT 601 / 656 Mode Compressed data like JPEG support Supports Y/C, JPEG and JPEG+Y/C Interleave formats Programmable polarity of video sync signal ...
Page 956
CXD5602 User Manual 3.21 ADC 3.21.1 ADC Overview Analog input function comprises the SCU_ADCIF module including a logic to control LPADC (4ch) and HPADC (2ch), and the SCU_ANALOG module including the ADC analog circuits and the peripheral circuits. The ADCIF module distributes 10 bit A/D conversion data from the LPADC to four time-sharing lines and stores them in the FIFO.
Page 957
CXD5602 User Manual Table ADC-771 Sampling Rate Range Supported by the HPADC Clock Source Clock Frequency (Input to Supported Sampling Rate Range Over Sampling Frequency SCU) RCOSC 8.192 MHz 16 kHz to 32 kHz 2.048 MHz 1 Hz to 32.768 kHz 1 Hz to 32.768 kHz...
Page 959
CXD5602 User Manual 3.21.5 Clock Control 3.21.5.1 Clock Summary Table ADC-773 Clock Summary Clock Name Maximum Maximum Usage Frequency (HV) Frequency (LV) ( ) CK_SCU_SCU 13 MHz 13 MHz SCU Main ( ) CK_SCU_SCU_SC 13 MHz 13 MHz Controls SCU Main CPU only...
Page 960
CXD5602 User Manual RCRTC CKDIV_SCU.SCU_32KH RCOSC HPADC 1/250 CK_SCU_U32KH 8.192MHz HPAD_LV_CLK_U32 SCU_CKEN[7] CKSEL_SCU.SEL_SCU_32K CK_SCU_RC8M HPAD_LV_CLK_RC8M HPAD_LV_CLK_XOSC CK_SCU_XOSC XOSC CKDIV_SCU.SCU_32KL LPADC CK_SCU_U32KL LPAD_LV_CLK SCU_CKEN[6] ADCIF EN(1) CK_SCU_SCU CK_SCU_SCU_SC CKSEL_SCU.SCU_XTAL "configure unavailable" EN(2) CKSEL_SCU.SEL_SCU for GNSS TADC for CK_SCU_SPI CK_SCU_I2C0 etc.. Figure ADC-120 Schematic Diagram of the Clock Control Clocks supplied to the HPADC and the LPADC are controlled by the following register.
Page 961
CXD5602 User Manual 3.21.5.3 Clock for the HPADC CK_SCU_XOSC CK_SCU_RC8M CK_SCU_U32KH One of the above three clocks is used for the sampling frequency of the HPADC. CK_U32KH is made, in the CRG outside the SCU, by dividing CK_SCU_32K (low speed logic system clock) by 2^n (n = 0 to 15).
Page 962
CXD5602 User Manual For details, refer to Section3.9.4.6 , Clock Control from Internal Sequencers described in Chapter of the CPU. 3.21.6 Reset Control The following describes main reset control of the LPADC and the HPADC. For Peripheral Name information, refer to Table Memory Mapping-2 of the section 2.6.2, Memory Map of each block.
Page 963
CXD5602 User Manual When the end of operation is notified (when a parameter ADC_PROPERTY.*_ENABLE in the SCU_RAM is changed from “1” to “0”), the ADC reads out the corresponding data of SCU_ADCIF_FIFO until the FIFO becomes EMPTY, then discards them. The function is prepared so that unnecessary data cannot be read out even if the ADC is rebooted without resetting the SCU_ADCIF_FIFO.
Page 964
CXD5602 User Manual Gain1st Gain2nd HPADC HPAD_LV_LPFx_ HPAD_LV_LPFx_ HPAD_LV_LPFx_ ATT_SEL[1:0] GAIN1ST[3:0] GAIN2ND[3:0] LPF and LPF and 10bit Attenuator differential Amplifier Amplifier differential input signal Attenuator 1st Amplifier ADC output Amplifier with full scale Output Data Output Output -6dB Dout 1023 gain -6dB ...
Page 965
CXD5602 User Manual 3.21.10 Performance Estimation The following describes the performance estimation of the maximum sampling frequency. Table ADC-778 ADC Sampling Frequency Estimation Main Resource/Mode With Sensor Operation Without Sensor Remarks Clock(Hz) (Hz) Operation (Hz) 32,768 LPADC/1CH LPADC/2CH LPADC/4CH HPADC...
Page 966
CXD5602 User Manual Table ADC-779 ADC Sensor Sampling Frequency Estimation SCU Clock(Hz) HPADC(Hz) LPADC(Hz) SPI Sensor (Hz) I2C Sensor (Hz) 32,768 8,192,000 16,384 1,500 13,000,000 16,384 3,500 1,000 The following describes the sensor conditions with sensor operation. Six byte read transfer per event for each sensor (three axes are assumed) The SPI’s transfer rate is about 4 Mbps, the I2C’s transfer rate is about 400 Kbps (The SPI’s is about 16...
Page 967
CXD5602 User Manual Table ADC-780 SCU_ADCIF_REG Register List Offset Address Name Type Size Description Reset Value (Transaction Port) (bits) 0x200 LPADC_A0 LPADC enable control 0x00000000 0x204 LPADC_A1 LPADC channel switching control 0x00000000 0x210 LPADC_D0 LPADC software reset 0x00000000 0x214 LPADC_D1...
Page 996
CXD5602 User Manual REF voltage regulator port <3> reference destination switching 1’b0: internal 0.7 V system power supply (default) 1'b1: external enable power supply via the <2:0> BGR output voltage switching 7..4 LV_ADC1_REFCTRL 3’b000: 700mV (default) 3'b001: 750mV 3’b010: 800mV...