CV1800B CV1801B Preliminary Datasheet Full en
CV1800B CV1801B Preliminary Datasheet Full en
CV1800B CV1801B Preliminary Datasheet Full en
w
lo
al
t
no
e
ar
n
u tio
ib
CV180ZB/CV1800B/CV1801B
r
di V
st
re k-
d il
Preliminary Datasheet
an M
n by
tio lic
Version: 0.3.0.0
ca ub
Revision History
ed
Part number update
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
2
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The document and all information contained herein remain the CVITEK Co., Ltd’s
(“CVITEK”)confidential information, and should not disclose to any third party or
ed
use it in any way without CVITEK’s prior written consent. User shall be liable for any
w
damage and loss caused by unauthority use and disclosure.
lo
al
CVITEK reserves the right to make changes to information contained in this document
t
at any time and without notice.
no
e
All information contained herein is provided in “AS IS” basis, without warranties of
ar
any kind, expressed or implied, including without limitation mercantability, non-
n
infringement and fitness for a particular purpose. In no event shall CVITEK be liable for
tio
any third party’s software provided herein, User shall only seek remedy against such
u
ib
third party. CVITEK especially claims that CVITEK shall have no liable for CVITEK’s work
r
di V
3
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Table of contents
ed
Table of contents ................................................................................................................................ 4
w
Table of contens for figures .......................................................................................................... 16
lo
al
Table of contens for tables ............................................................................................................ 19
t
Product Overview ..................................................................................................................... 21
no
1.1 Overview (CV180ZB/CV1800B/CV1801B) ...................................................................... 21
e
1.2 Application Scenarios ............................................................................................................. 21
1.2.1 CV180ZB/CV1800B/CV1801B Intelligent IP Camera Solutions........... 21
ar
n
1.3 Architecture................................................................................................................................ 22
tio
4
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
2.2 Pin information Description ................................................................................................. 36
w
2.3 Welding Process Suggestions.............................................................................................38
lo
al
2.4 Moisture Sensitivity Parameters .........................................................................................39
2.4.1 Moisture Barrier Packaging for CVITEK Products ......................................39
t
no
2.5 Electrical Performance Parameters ................................................................................... 42
2.5.1 Power Consumption Parameters ..................................................................... 42
e
ar
2.5.2 Temperature and Thermal Resistance Parameters n
(CV180ZB/CV1800B/CV1801B) .........................................................................42
tio
5
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
2.6.10 SDIO/MMC Timing ................................................................................................ 67
w
System ......................................................................................................................................... 72
lo
al
3.1 Reset .............................................................................................................................................. 72
3.1.1 Overview .....................................................................................................................72
t
no
3.1.2 Reset Control ............................................................................................................72
3.1.3 Reset Configuration Register .............................................................................74
e
ar
3.2 Clock.............................................................................................................................................. 78
n
3.2.1 Overview .....................................................................................................................78
tio
6
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
3.7.5 Timer register overview ..................................................................................... 184
w
3.7.6 Timer register description ................................................................................ 185
lo
3.8 Watchdog ..................................................................................................................................187
al
3.8.1 Overview ..................................................................................................................187
t
no
3.8.2 Charateristics ......................................................................................................... 187
3.8.3 Function description...........................................................................................187
e
ar
3.8.4 Working mode ...................................................................................................... 189
3.8.5 WDT register overview .......................................................................................189
n
tio
3.10 Power management and low power consumption mode .................................... 228
ca ub
7
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
4.1.4 Working Method ..................................................................................................255
w
4.1.5 AXI Register ............................................................................................................ 256
lo
al
4.1.6 DDRC Register .......................................................................................................292
4.2 SPI NOR Flash Controller .................................................................................................... 294
t
no
4.2.1 Overview ..................................................................................................................294
4.2.2 Characteristic ......................................................................................................... 294
e
ar
4.2.3 Function Description .......................................................................................... 294
n
4.2.4 Workflow ................................................................................................................. 299
tio
8
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
5.2.1 Overview ..................................................................................................................323
w
5.2.2 Function description .......................................................................................... 323
lo
5.2.3 Functional block diagram ................................................................................323
al
Video and image codec ........................................................................................................324
t
no
6.1 Overalll overview ....................................................................................................................324
6.2 VCU (Video Codec Unit) ...................................................................................................... 324
e
ar
6.2.1 Overview ..................................................................................................................324
n
6.2.2 Features ....................................................................................................................324
tio
AI engine ...................................................................................................................................335
8.1 TPU (Tensor Processing Unit) ............................................................................................335
8.1.1 Overview ..................................................................................................................335
8.1.2 Characteristics....................................................................................................... 336
Video interface ........................................................................................................................338
9.1 VI ................................................................................................................................................... 338
9
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
9.2 MIPI Rx ........................................................................................................................................359
w
9.2.1 Overview ..................................................................................................................359
lo
9.2.2 Charateristics ......................................................................................................... 360
al
9.2.3 Function Description .......................................................................................... 360
t
no
9.2.4 MIPI Rx Register Overview ............................................................................... 375
9.2.5 MIPI RxRegister Overview ................................................................................ 378
e
ar
ISP ............................................................................................................................................... 399
n
10.1 Function Overview .................................................................................................................399
tio
10
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
10.4.19 3DNR (3-Dimensional Noise Reduction) ................................................... 411
w
10.4.20 YNR............................................................................................................................ 411
lo
10.4.21 LDCI (DCI) ................................................................................................................ 411
al
10.4.22 Sharpen.................................................................................................................... 411
t
no
10.4.23 CNR ............................................................................................................................412
10.4.24 CAC (PFC inside CNR) .........................................................................................412
e
ar
10.4.25 CLUT (HSV_3D_LUT) ............................................................................................412
10.4.26 RGBCAC ....................................................................................................................412
n
tio
11
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
12.1.6 I2C register overview .......................................................................................... 447
w
12.1.7 I2C register description..................................................................................... 449
lo
12.2 UART ............................................................................................................................................457
al
12.2.1 Overview ..................................................................................................................457
t
no
12.2.2 Characteristics....................................................................................................... 457
12.2.3 Function description...........................................................................................458
e
ar
12.2.4 Working mode ...................................................................................................... 460
12.2.5 UART register overview ..................................................................................... 465
n
tio
12.3.5 Three kinds of serial peripheral bus sequence diagram ................... 478
12.3.6 Register Overview ................................................................................................482
tio lic
12
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
12.6.6 Device Initialization Program ..................................................................... 592
w
12.6.7 Device Register Description ..........................................................................593
lo
12.7 SARADC ......................................................................................................................................603
al
12.7.1 Overview ..................................................................................................................603
t
no
12.7.2 Features ....................................................................................................................603
12.7.3 Working method ..................................................................................................604
e
ar
12.7.4 SARADC register overview ............................................................................... 604
12.7.5 SARADC register description .......................................................................... 604
n
tio
13
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
12.12.2 Characteristics....................................................................................................... 638
w
12.12.3 Working Mode ...................................................................................................... 638
lo
12.12.4 IRRX Register Overview ..................................................................................... 638
al
12.12.5 IRRX Register Description ................................................................................640
t
no
Security Subsystem Module ................................................................................................649
13.1 CryptoDMA ...............................................................................................................................649
e
ar
13.1.1 Overview ..................................................................................................................649
n
13.1.2 Function Characteristics.................................................................................... 650
tio
mode......................................................................................................................... 651
r
di V
st
re k-
13.3.2 Efuse entity address translation and virtual register address .........671
M a
M
14
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
15
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Figure 2‑1 CV180ZB/CV1800B/CV1801B package dimensions, top view.............................35
w
Figure 2‑2. CV180ZB/CV1800B/CV1801B package dimensions, bottom view.................. 35
lo
Table 2‑3 CV180ZB/CV1800B/CV1801B pin distribution............................................................36
al
Figure 2‑4 Lead-free Reflow Soldering process curve .................................................................. 38
t
Figure 2‑5 Vacuum drying packaging information .........................................................................39
no
Figure 2‑6 Desiccant packs, humidity card, chip, and tray ...........................................................40
e
Figure 2- 7 I2C Timing Diagram .............................................................................................................60
ar
Figure 2- 8 SPI Timing Diagram .............................................................................................................62
n
Figure 3- 1 Reset Management Module Block Diagram ............................................................. 72
tio
Figure 4- 2 Standard SPI Interface Mode Write Operation Sequence ................................ 295
od de
Figure 4- 3 Standard SPI Interface Mode Read Operation Sequence ................................. 295
M a
16
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Figure 9- 3 VI register overview .......................................................................................................... 344
w
Figure 9- 4 MIPI Rx Functional Block Diagrams and Position ................................................. 360
lo
Figure 9- 5 Interface Types Supported by MIPI Rx ......................................................................361
al
Figure 9- 6 Transmission Mechanism of Data Packet .................................................................362
t
no
Figure 9- 7 CSI-2 Long Packet Format ..............................................................................................363
Figure 9- 8 CSI-2 Short Packet Format ............................................................................................. 364
e
ar
Figure 9- 9 YUV422 8-bit Frame Format ..........................................................................................366
Figure 9- 10 YUV422-10bit Data Transmission Sequence ........................................................366
n
tio
Figure 9- 21 MIPI Interface Wide Dynamic Data Transfer (using DT) .................................. 373
od de
Figure 9- 22 MIPI Interface Wide Dynamic Data Transfer (using ID) ................................... 374
M a
Figure 9- 23 MIPI Interface Wide Dynamic Data Transfer (register setting) ..................... 375
M
17
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Figure 12- 4 NS Microwire Continuous Frame Transmission Format .................................. 482
w
Figure 12- 5 Single Block and Multi Block Read Operation .....................................................501
lo
Figure 12- 6 Clock Configuration Flow Chart ................................................................................ 505
al
Figure 12- 347 Abort Command Sequence ................................................................................... 511
t
no
Figure 12- 358 Asynchronous Abort Command Procedure ....................................................512
Figure 12- 9 Wiegand 26 Format ........................................................................................................629
e
ar
Figure 13- 1 Security Subsystem Module ....................................................................................... 649
Figure 13- 2 ECB Mode ........................................................................................................................... 651
n
tio
18
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Table 2‑3 Baking temperature and time table .................................................................................. 41
w
Table 2‑4 Thermal resistance parameters for CV180ZB/CV1800B/CV1801B .......................42
lo
Table 2‑5 Temperature-related parameters .......................................................................................42
al
Table 2‑6 Destructive voltage parameters (CV180ZB/CV1800B/CV1801B) ......................... 43
t
Table 2- 7 The power supply electrical parameters of CV180ZB/CV1800B/CV1801B
no
(Recommended Operating Conditions) .............................................................................................. 46
e
Table 2- 8 1.8V I/O Electrical Parameters ........................................................................................... 47
ar
Table 2- 9 18OD33 IO (VDDIO=1.8V) Electrical Parameters ...................................................... 48
n
Table 2- 10 18OD33 IO (VDDIO=3.0V) Electrical Parameters ....................................................49
tio
Table 2- 12. MIPI D-PHY High Speed(MISH) DifferentialDC Electrical Parameters .......... 51
r
di V
Table 2- 13. MIPI D-PHY High Speed(MIHS) Differential AC Electrical Parameters .........51
st
re k-
19
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Table 5- 1 GMAC register overview ........................................................................................................318
w
Table 10- 1 Interrupt Indication Register ........................................................................................403
lo
Table 11- 1 AIAO subsystem register overview (base address: 0x0410_8000) ................ 420
al
Table 11- 2 I2S_TDM_0/1/2/3 register overview (address 0x0410_0000 + n*0x10000)
t
no
............................................................................................................................................................................421
Table 12- 1 SD3.0 Supported Speed and Voltage ....................................................................... 502
e
ar
Table 12- 2 SD Register Overview ...................................................................................................... 521
Table 12- 3 Four GPIO Module Base Addresses of the Chip ................................................... 537
n
tio
Table 13- 1 Status Query I2C Interface Register Address ......................................................... 668
Figure 13- 2 eFuse entity (row) address and logical (row) address corresponding value
u
ib
............................................................................................................................................................................672
r
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
20
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Product Overview
ed
CV180ZB/CV1800B/CV1801B is a high-performance, low-power consumption chip designed
for various consumer monitoring IP cameras, home intelligence, and other products. It
w
integrates an H.264/H.265 video compression encoder and ISP and supports various image
lo
enhancement and correction algorithms such as digital wide dynamic range, 3D noise
al
reduction, defogging, and lens distortion correction to provide professional-grade video
t
image quality to customers.
no
The chip also integrates a self-developed intelligent reference design (human form detection,
e
area detection, motion detection), built-in DDR, and complete peripherals and external
ar
devices, providing a high-integration and concise solution to facilitate customer product
n
development and mass production.
tio
In addition, it also provides secure boot, secure update, and secure encryption and so on to
u
ib
provide a series of security solutions for users from development, mass production to
r
product application.
di V
st
re k-
The chip integrates an 8-bit MCU subsystem, which can replace general external MCUs to
d il
an M
The typical application scenarios for intelligent IP camera solutions are shown in Figure 1-1.
21
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 1‑1 intelligent IP camera solutions.
e
1.3 Architecture ar
n
u tio
1.3.1 Overview
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
22
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
1.3.3 TPU
Built-in CVITEK TPU, integrated intelligent reference design (human form detection,
area detection, motion detection)
23
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
H.264/H.265 has maximum encoding resolution : 2880x1620 (5M) (CV1801B)
w
H.264/H.265 has maximum encoding resolution : 2688x1520 (4M) (CV1800B)
lo
H.264/H.265 has maximum encoding resolution : 2304x1296 (3M) (CV180ZB)
al
H.264/H.265 ’s encoding performance:
t
2880x1620@20fps+720x576@20fps (CV1801B)
no
2688x1520@25fps+720x576@25fps (CV1800B)
e
2304x1296@25fps+720x576@30fps (CV180ZB)
ar
JPEG ’s maximum encoding and decoding performance:
n
2880x1620@20fps (CV1801B)
tio
2688x1520@25fps (CV1800B)
u
2304x1296@30fps (CV180ZB)
ib
The Input
ca ub
Support BT.656,BT.601
Support high-definition CMOS sensors such as SONY, OnSemi, OmniVision.
Provide programmable frequency output for the sensor to use as a reference
clock.
Support maximum width: 2304 , maximum resolution: 2304x1296 (CV180ZB)
Support maximum width: 2688 , maximum resolution: 2688x1520 (CV1800B)
Support maximum width: 2880 , maximum resolution: 2880x1620 (CV1801B)
24
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Support 3A algorithm: automatic exposure(AE), automatic white balance(AWB),
and automatic autofocus(AF) ;
w
Support fixed-mode noise reduction and bad pixel correction;
lo
al
Support correction of lens shading, distortion, and purple fringing;
Support direction-adaptive demosaic algorithm that selects the best demosaic
t
no
algorithm based on the image orientation;
Support Gamma correction, dynamic contrast enhancement, and color
e
ar
management algorithms;
Support regional adaptive defogging;
n
tio
Support sensor with wide dynamic range and 2-frame wide dynamic range ;
di V
st
re k-
.
tio lic
ca ub
25
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The Ethernet module provides one Ethernet MAC for receiving and transmitting network
ed
data. The Ethernet MAC, combined with the built-in 10/100Mbps Fast Ethernet Transceiver,
w
can operate in 10/100Mbps full-duplex or half-duplex mode.
lo
al
1.3.10 Security System Module
t
no
Hardware implementation of multiple encryption and decryption algorithms such as
AES/DES/SM4;
e
ar
Hardware implementation of hashing algorithms such as HASH (SHA1/SHA256);
Internal integration of 2Kbit eFuse logical space.
n
u tio
r ib
di V
st
re k-
protection functions;
Supports data encryption security: data encryption program,
tio lic
26
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
One supports 3V connection for SD 3.0 Card (supporting a maximum capacity of
SDXC 2TB and speed up to UHS-I);
w
One supports 3.0V connection for other SDIO 3.0 devices (supporting speed up to
lo
UHS-I).
al
51 GPIO interfaces (9 in MCU domain);
t
Integrated keyscan and Wiegand;
no
Integrated MAC PHY supporting 10/100Mbps full-duplex or half-duplex mode;
e
One USB Host/device interface.
ar
n
u tio
ib
Built-in DRAM
d il
16GB/32GB/64GB)
Uses the built-in ECC module of the device.
1.3.14 SDK
Linux-5.10-based SDK
27
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Power Consumption
1080P + Video encode + AI : ~ 500mW
Other scenarios : TBD
Operating Voltage
ed
Core voltage: 0.9V
w
IO voltage: 1.8V and 3.0V
lo
DDR voltage as shown in the table below:
al
CV180ZB/CV1800B = 1.8V
t
CV1801B = 1.35V
no
Package
e
QFN package is used, with a package size of 7mmx7mmx0.9mm. The pin
ar
pitch is 0.35mm, and the total number of pins is 68.
n
tio
1.4.1 Overview
an M
The chip is booted by the built-in ROM (BOOTROM). When the chip is reset, it detects
n by
For chips with secure boot, software execution or upgrades will be verified during startup
ifi p
and chip upgrades to ensure that the software being executed or upgraded is secure.
od de
Relationship
Supports booting from SPI Nor Flash (SPINOR_WP_X pull down, SPINOR_MOSI pull
up)
Supports booting from SPI Nand Flash (SPINOR_WP_X pull down, SPINOR_MOSI pull
down)
28
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
1.4.4 Secure Boot
w
lo
Supports secure boot and upgrade;
al
AES hardware encryption and decryption ;
t
no
SHA/Secure Efuse security hardware.
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
29
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0x01902000 0x019EFFFF reserve
w
0x01A00000 0x01FFFFFF reserve
lo
0x02000000 0x02FFFFFF reserve 64K
al
0x03000000 0x03000FFF TOP_MISC control register 4K
t
0x03001000 0x03001FFF PINMUX control register 4K
no
0x03002000 0x03002FFF CLKGEN/PLL control register 4K
e
0x03003000 0x03003FFF RSTGEN control register 4K
ar
0x03004000 0x03005FFF reserve
0x03006000 0x03006FFF reserve 4K
n
tio
0x03007000 0x03008FFF reserve
0x03009000 0x03009FFF reserve 4K
u
0x0300A000 0x0300AFFF 4K
ib
reserve
r
30
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0x04000000 0x0400FFFF I2C0 control register 64K
w
0x04010000 0x0401FFFF I2C1 control register 64K
lo
0x04020000 0x0402FFFF I2C2 control register 64K
al
0x04030000 0x0403FFFF I2C3 control register 64K
0x04040000 0x0404FFFF I2C4 control register 64K
t
no
0x04050000 0x0405FFFF reserve
0x04060000 0x0406FFFF SPI_NAND control register 64K
e
0x04070000 0x0407FFFF ETH0 control register
ar
0x04080000 0x040FFFFF reserve n
0x04100000 0x04107FFF I2S0 control register 64K
tio
31
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0x05026000 0x05026FFF RTCSYS_CORE 4KB
w
0x05027000 0x05027FFF RTCSYS_IO control register 4KB
lo
0x05028000 0x05028FFF RTCSYS_OSC control register 4KB
al
0x05029000 0x05029FFF reserve 4KB
0x0502A000 0x0502AFFF RTCSYS_32kless control register 4KB
t
no
0x0502B000 0x0502BFFF RTCSYS_I2C control register 4KB
0x0502C000 0x0502CFFF RTCSYS_SAR control register 4KB
e
0x0502D000 0x0502DFFF RTCSYS_WDT control register 4KB
ar
0x0502E000 0x0502EFFF RTCSYS_IRRXcontrol register
n 4KB
0x05200000 0x053FFFFF RTCSYS_SRAM 8KB
tio
32
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0x0A0C0000 0x0A0C1FFF ldc control register 8K
w
0x0A0C2000 0x0A0C3FFF VI0/MIPI_RX0 control register 8K
lo
0x0A0C4000 0x0A0C5FFF reserve 8K
al
0x0A0C6000 0x0A0C7FFF reserve 8K
0x0A0C8000 0x0A0C9FFF VIPSYS control register 8K
t
no
0x0A0CA000 0x0A0CFFFF reserve 24K
0x0A0D0000 0x0A0D0FFF CSI_PHY control register 4K
e
0x0A0D1000 0x0A0D1FFF reserve 4K
ar
0x0A0D2000 0x0AFFFFFF reserve n
0x0B000000 0x0B00FFFF JPEG codec control register 64K
tio
unpredictable results.
ca ub
ifi p
od de
M a
M
33
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
34
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Hardware Characteristics
ed
2.1.1 Package CV180ZB/CV1800B/CV1801B
w
lo
CV180ZB/CV1800B/CV1801B uses QFN package with a package size of
al
7mmx7mmx0.9mm. The pin pitch is 0.35mm and there are a total of 68 pins. For detailed
t
package dimensions, please refer to the figure below.
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
36
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
37
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
utio
r ib
di V
st
re k-
d il
an M
Please refer to Table 2-1 for the parameters of lead-free reflow soldering process.
ca ub
The following parameters are only recommended values for reference. Clients need to
ifi p
38
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Due to environmental protection factors, the parameters for leaded reflow soldering are not
currently provided.
ed
w
lo
2.4 Moisture Sensitivity Parameters
al
t
no
2.4.1 Moisture Barrier Packaging for CVITEK Products
e
ar
This section establishes the principles for the storage and use of chips (moisture sensitive
products) during welding. The relevant terms are as follows:
n
Floor life: refers to the maximum allowable time between opening the moisture barrier
tio
been sealed.
r
di V
st
re k-
The moisture-proof vacuum package includes (1) chips and tray, (2) desiccant packs, and (3)
n by
39
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 2‑6 Desiccant packs, humidity card, chip, and tray
e
ar
n
tio
After opening the vacuum moisture-proof bag before SMT, inspect the humidity card.
r
di V
There are many different styles of humidity cards, but if it shows that it has been exposed to
st
re k-
moisture, it must be baked before SMT use. The relevant time and temperature parameters
d il
If re-packaging after opening, and it has not been exposed for more than 2 hours in
an environment of <30°C/60% RH, it can be vacuum dried and packaged by only replacing
n by
the drying bag. If it exceeds 2 hours, it is recommended to re-bake, replace the drying bag,
tio lic
Shelf life:
The sealed vacuum moisture-proof bag can be stored for at least 12 months in an
M a
Floor life:
Before SMT, if the humidity card indicates that the components have not been
exposed to moisture after opening in an environment of 30°C/60% RH, it can be
used directly without baking. The time for Level 3 (the floor life classification of
this chip is Level 3) is shown in Table 2-2.
40
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
2.4.1.4 Rebaking
t
no
If found to have been exposed to moisture after opening, before SMT or before being
resealed in vacuum packaging, they should be baked first. Baking temperature and time can
e
ar
be referred to in Table 2-3.
After baking, shelf life can be recalculated after being sealed in moisture-proof
n
packaging.
tio
If not sealed in moisture-proof packaging after baking, the storage time should refer
u
41
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Typical scenario: 1080P + Video Encode + AI ~500mW
w
Other scenarios: TBD
lo
al
2.5.2 Temperature and Thermal Resistance Parameters
t
no
(CV180ZB/CV1800B/CV1801B)
e
ar
Thermal resistance values ThetaJA, JB, JC of the chip. The results of the actual test
n
conducted on the JEDEC 2s2p PCB are shown in Table 2 and 4.
u tio
power consumption and heat dissipation conditions of the scenario, without violating
the premise of junction temperature.
2. The recommended range of junction temperature is mainly considered to avoid thermal
runaway caused by poor heat dissipation conditions at high temperatures, which may
lead to uncontrolled temperature entering the destructive junction temperature range
and damaging the chip. In addition, long-term operation at high temperatures may
slightly accelerate chip aging and reduce its service life.
3. The DRAM used guarantees a junction temperature of only -40°C to 115°C. Content
ed
inside the DRAM cannot be guaranteed to remain intact beyond this range.
w
4. When the chip operates at the destructive junction temperature, it may cause
lo
irreversible physical damage to the chip.
al
2.5.3 Destructive Voltage
t
no
Destructive voltage parameters are shown in Table 2-6. Working above the destructive
e
voltage may cause irreversible physical damage.
ar
n
Table 2‑6 Destructive voltage parameters (CV180ZB/CV1800B/CV1801B)
tio
VDD18A_USB_PLL_ETH_CSI Analog power for USB, PLL, ETH, efuse , MIPI 1.98 V
st
re k-
In principle, the chip can be divided into the following groups. The power domains
od de
within the same group are powered on/off simultaneously. For different groups, the
M a
M
43
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
In principle, 0.9V power domain and 1.8V power domain can be powered on at the
lo
same time, or power-on the 0.9V power domain prior to 1.8V power domain. However,
al
the 3V power domain must be powered on after the establishment of 1.8V power
t
no
domain. Violations may cause irreversible damage to the chip. The power-off sequence
is reverse of the power-on sequence.
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
1. During power-up, if VDD3 > 2V while VDD18 has not reached 1.8V-10%, it may
ifi p
2. During power-down, if VDD3 is lower than 2V while VDD18 has already dropped
M a
below 1.8V-10%.
M
3. During power-up, if VDD18 > 0.7V while VDD09 is still below 0.5V, it may cause
efuse misoperation.
4. During power-down, if VDD09 is below 0.5V while VDD18 is still higher than 0.7V, it
may also cause efuse misoperation.
The chip provides two pins, PWR_SEQ1 and PWR_SEQ2, to co-control the power supply
(VDDIO_RTC domain) switch. SEQ1 is preset to 0.9V and 1.8V, while SEQ2 controls 3V.
44
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Some plug-in systems may use RC to determine the switch for both 0.9V and 1.8V, but it
is important that the chip's 3V still needs to be controlled by SEQ2 to prevent damage.
ed
PWR_VBAT_DET is used to detect the status of the main power supply. If the voltage is
w
low, the software will receive an interrupt first (such as stopping writing flash to prevent
lo
damage to the file system). If the voltage continues to drop, the RTC module will
al
actively start the power-down program. PWR_VBAT_DET also needs to be logic high to
t
no
start up.
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
45
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
VDD18A_AUD Analog power for Audio ADC/DAC 1.62 1.8 1.98 V
w
VDD18A_USB_PLL_ETH_CSI Analog power for Ethernet PHY, USB PHY, PLL, 1.62 1.8 1.98 V
lo
Efuse, MIPI
al
VDD33A_ETH_USB_SD1 Analog power for Ethernet PHY, USB PHY, IO 2.97 3.3 3.465 V
t
power for SD1 domain
no
V
VDDIO_SD0_SPI IO power for SD0 & SPI domain 1.71 1.8 1.89 V
e
2.85 3.0/3.3 3.15/3.465
ar
VDDIO_RTC IO power for RTC domain IO & LDO n 1.3V 1.8 +10% V
tio
VDDQ IO & DRAM Power for DDR3L 1.283 1.35 1.417 V
IO & DRAM Power for DDR3 1.425 1.50 1.575
u
o
Tjunc Junction Temperature (Max reduce from 125C -40 25 115 C
di V
st
Note: The operating junction temperature of the DRAM used is guaranteed to be only between -
an M
40°C to 115°C. Contents inside the DRAM cannot be guaranteed to be intact beyond this
n by
temperature range.
tio lic
ca ub
ifi p
od de
M a
M
46
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
VIH Input High voltage 0.65*VDDIO 1.98 V
VT (no Threshold voltage when ST[1:0] = 00 0.75 0.91 1.09 V
w
pull) (no schmit trigger) 0.74 0.90 1.08
lo
VT_PU 0.76 0.92 1.10
al
VT_PD
VT+ Threshold voltage when ST[1:0] = 01 0.82 0.97 1.13 V
t
VT- 0.72 0.85 1.02
no
VT+_PU 0.81 0.96 1.12
VT-_PU 0.71 0.84 1.01
e
VT+_PD 0.82 0.98 1.14
ar
VT-_PD 0.73 0.86 1.03
VT+ Threshold voltage when ST[1:0] = 1X 0.87 1.04 1.19 V
n
VT- 0.69 0.80 0.95
tio
47
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
VT+_PU 1.02 1.06 1.11
w
VT-_PU 0.74 0.82 0.90
VT+_PD 1.03 1.08 1.13
lo
VT-_PD 0.75 0.83 0.92
al
Il Input leakage (VI = 1.8V or 0V) +/-10u A
IOZ Tri-state output leakage current (VO=1.8V or 0V) +/-10u A
t
RPU Pull up resistor 33k 60k 92k Ω
no
RPD Pull down resistor 34k 61k 158k Ω
VOL Output low voltage 0.45 V
e
VOH Output high voltage 1.40 V
ar
IOL Low level output current @ VOL (max)
DS[2:0] = 000 4.9 7.8 11.1 mA
n
DS[2:0] = 001 7.4 11.7 16.4 mA
tio
DS[2:0] = 010 9.8 15.5 21.7 mA
DS[2:0] = 011 12.2 19.2 26.7 mA
u
48
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
VIL Input Low voltage -0.3 0.25*VDDIO V
w
VIH Input High voltage 0.625*VDDIO 3.3 V
VT (no pull) Threshold voltage when ST = 0 0.82 0.95 1.11 V
lo
VT_PU (no schmit trigger) 0.81 0.93 1.09
al
VT_PD 0.83 0.96 1.13
VT+ (no pull) Threshold voltage when ST = 1 1.00 1.10 1.23 V
t
VT- (no pull) 0.75 0.90 1.08
no
VT+_PU 1.00 1.09 1.21
VT-_PU 0.73 0.88 1.05
e
VT+_PD 1.01 1.11 1.25
ar
VT-_PD 0.75 0.91 1.09
Il Input leakage (VI = 3.0V or 0V) n +/-10u A
IOZ Tri-state output leakage current (VO=3.0V or 0V) +/-10u A
tio
RPU Pull up resistor 33k 60k 93k Ω
RPD Pull down resistor 34k 62k 285k Ω
u
49
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
VT- 0.65 0.82 0.99
Il Input leakage (VI = 1.8V or 0V) +/-4u A
w
IOZ Tri-state output leakage current (VO=1.8V or 0V) +/-4u A
VOL Output low voltage 0.4 V
lo
VOH Output high voltage 1.4 V
al
IOL Low level output current @ VOL (max) 4.9 9.9 18.4 mA
IOH High level output current @ VOH (max) 11.3 17.1 26.1 mA
t
no
e
2.5.10 ETH GPIO Electrical Parameters ar
n
tio
IOL Low level output current @ VOL (max) DS=0 8.8 15.7 27.3 mA
Low level output current @ VOL (max) DS=1 10.2 17.8 30.5
ca ub
IOH High level output current @ VOH (max) DS=0 4.0 5.3 7.4 mA
High level output current @ VOH (max) DS=1 4.7 6.2 8.5
ifi p
od de
M a
The MIPI D-PHY High Speed(MIHS) Electrical Parameters are listed in Table 2- 12 and
Table 2- 13.
The MIPI D-PHY Low Power(MILP) Electrical Parameters are listed in Table 2- 14 and
Table 2- 15.
50
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Table 2- 13. MIPI D-PHY High Speed(MIHS) Differential AC Electrical Parameters
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
51
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
2.5.12 Sub-LVDS Electrical Parameters
lo
al
The electrical parameters are listed Table 2- 16 and Table 2- 17.
t
no
Table 2- 16 Sub-LVDS(SL) Differential DC Electrical Parameters
e
ar
n
u tio
ib
HiSPi is divided into SLVS (HSSL) and HiVCM(HSHI).The electrical parameters are listed
in Table 2- 18 and Table 2- .
52
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Table 2- 20 HiSPi Differential AC Electrical Parameters
w
lo
al
t
no
e
2.5.14 SDIO Electrical Parameters ar
n
tio
Parameters(CV180ZB/CV1800B/CV1801B)
n by
53
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Maximum Input 1.75 Vpp Maximum output
Amplitude signal swing
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
54
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
2.6 Timing
ed
w
lo
al
t
no
e
ar
n
u tio
55
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
Figure 2- 8 SPI NAND Input Timing Diagram
ar
n
utio
56
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Clock LOW to Output Valid Tq_vld -1.00 2.00 ns
w
lo
al
t
no
e
ar
n
utio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
57
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
2.6.3 VI Timing
ed
w
lo
al
Figure 2-10 VI Timing Diagram
t
no
Wherein, the VI timing parameters are listed in the table below.
e
ar
Table 2-27 VI Timing Requirements
Symbol Min Typ Max Unit
n
tio
The RX timing diagram of I2S and PCM modes for connecting with external Audio
ca ub
58
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
tio
The TX timing diagram of I2S and PCM modes is shown as below figure.
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
59
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
TBH BCLK high pulse width (master and slave modes) 40 - - ns
TLS LRCK setup time to BCLK rising (slave mode) 10 - - ns
w
TLH LRCK hold time from BCLK rising (slave mode) 10 - - ns
TSS SDI setup time to BCLK rising (master and slave modes) 10 - - ns
lo
TSH SDI hold time from BCLK rising (master and slave modes) 10 - - ns
al
TTS BCLK falling to LRCK timing skew (master mode) 0 - 10 ns
TSOD SDO delay time from BCLK falling (master and slave modes) 0 - 10 ns
t
no
e
ar
2.6.5 I2C Timing n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
60
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
61
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
62
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
A. 0.08Gbps≤Data Rate≤1.5Gbps
The timing is shown as Figure 2-15, and the timing requirements are listed in Table 2-
ed
31.
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
63
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
64
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The Sub-LVDS clock data timing diagram is shown in the figure below, and the timing
requirements are listed in Table 2-32.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
65
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The HiSPi clock data timing diagram is shown in the figure below, and the timing
requirements are listed in Table 2-33.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
66
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The data input and output timing of single edge is shown in Figure 2-18.
ed
w
lo
al
t
no
e
ar
n
u tio
ib
Figure 2- 18 SDIO / MMC Single Edge (SDR) Data Input/ Output Timing Diagram
r
di V
st
re k-
d il
an M
n by
Table 2- 34 SDIO / MMC Single Edge Defalut Speed (DS) Mode Timing Requirements
tio lic
Table 2- 35 SDIO/MMC Single Edge High speed (HS) Mode Timing Requirements
ed
Parameter Symbol Min Typ Max Unit Note
w
Clock CLK
lo
Clock frequency Data fpp 0 - 52 MHz fpp=1/tpp
al
transfer Mode CL≤30pF
t
Clock high time tWH 6.5 - - ns CL≤30pF
no
Clock low time tWL 6.5 - - ns CL≤30pF
e
Clock rise time tTLH - - 3 ns CL≤30pF
Clock fall time tTHL - - 3
ar ns CL≤30pF
n
Inputs CMD, DAT ( referenced to CLK)
tio
CL≤30pF
r
CL≤30pF
d il
The timing of double edge data input/output is shown as the figure below.
tio lic
ca ub
ifi p
od de
M a
M
68
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
tio
Figure 2- 19 SDIO / MMC Double Edge DDR50 Mode Data Input/ Output Timing
Diagram
u
ib
Clock CLK
an M
CL≤30pF
Inputs DAT ( referenced to CLK)
tio lic
The timing diagram of HS200 and SDR104 data input/output is shown as the figure
below.
69
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
Timing Diagram
r
di V
st
re k-
Phase difference between device TX tPH 0 - 2 UI Unit Interval (UI) is one bit
M a
70
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
71
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
System
3.1 Reset
ed
3.1.1 Overview
w
lo
The reset management module manages the reset sequence of the whole chip、
al
subsystem and functional modules.
t
no
3.1.2 Reset Control
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
Power on reset (POR) is generated by the real-time clock(RTC) module. Refer to section
M
The system hard reset is generated by Reset Ctrl Level 2, which is used to reset all
subsystems and functional modules of the chip. The reset sources are from:
Power on reset
Watchdog reset
72
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Soft reset control is triggered by configuring the corresponding reset configuration
w
register (Reset CRG). It is realized in Reset Ctrl Level 3. It includes -
lo
al
System soft reset: reset the whole chip, except for a few circuits and
RTC internal circuits
t
no
Reset of processor subsystem: reset the processor and processor subsystem
Function subsystem reset: reset each function subsystem and function module
e
ar
Function module reset: reset each function module
n
tio
SOFT_AC_RSTN_0 is used to generate reset to the processor and subsystem. After the
r
configuration register is written to 0, the reset controller will wait for 24us delay before
di V
st
re k-
triggering the corresponding processor reset. During this period, the processor should
d il
an M
stop accessing the bus to avoid the bus hanging after reset. After triggering reset, the
corresponding reset signal will be automatically released after 8us, and the processor
n by
and processor subsystem will complete the reset and start up.
tio lic
SOFT_RSTN_0~3 are used to generate reset to each function module. The reset signal
od de
will not be cleared automatically. Therefore, after the software configures the
M a
release the reset. Before reset, make sure that the built-in DMA access to the bus and
processor access to the module are idle. Otherwise, the reset will fail and cause system
hang up.
73
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
SOFT_RSTN_0 0x000 soft-reset ctrl register 0
SOFT_RSTN_1 0x004 soft-reset ctrl register 1
w
SOFT_RSTN_2 0x008 soft-reset ctrl register 2
lo
SOFT_RSTN_3 0x00c soft-reset ctrl register 3
al
SOFT_CPUAC_RSTN 0x020 CPU auto clear soft-reset ctrl register
SOFT_CPU_RSTN 0x024 CPU soft-reset ctrl register
t
no
e
3.1.3.2 Description of Reset Configuration Register
ar
n
tio
SOFT_RSTN_0
u
1:0 Reserved
st
re k-
low)
ca ub
low)
M
74
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
low)
21 reg_soft_reset_x_i2s2 R/W I2S2 IP software reset (active 0x1
w
low)
lo
22 reg_soft_reset_x_i2s3 R/W I2S3 IP software reset (active 0x1
al
low)
23 reg_soft_reset_x_uart0 R/W UART0 IP software reset (active 0x1
t
low)
no
24 reg_soft_reset_x_uart1 R/W UART1 IP software reset (active 0x1
low)
e
25 reg_soft_reset_x_uart2 R/W UART2 IP software reset (active 0x1
ar
low)
26 reg_soft_reset_x_uart3 R/W UART3 IP software reset (active
n 0x1
low)
tio
27 reg_soft_reset_x_i2c0 R/W I2C0 IP software reset (active 0x1
low)
u
low)
r
low)
re k-
low)
an M
SOFT_RSTN_1
tio lic
low)
1 reg_soft_reset_x_pwm1 R/W PWM1 IP software reset (active 0x1
od de
low)
2 reg_soft_reset_x_pwm2 R/W PWM2 IP software reset (active 0x1
M a
M
low)
3 reg_soft_reset_x_pwm3 R/W PWM3 IP software reset (active 0x1
low)
7:4 Reserved
8 reg_soft_reset_x_spi0 R/W SPI0 IP software reset (active 0x1
low)
9 reg_soft_reset_x_spi1 R/W SPI1 IP software reset (active 0x1
low)
10 reg_soft_reset_x_spi2 R/W SPI2 IP software reset (active 0x1
low)
11 reg_soft_reset_x_spi3 R/W SPI3 IP software reset (active 0x1
low)
75
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
16 reg_soft_reset_x_wdt R/W WDT0 IP software reset (active 0x1
low)
w
17 reg_soft_reset_x_ahb_rom R/W ROM IP software reset (active 0x1
lo
low)
18 reg_soft_reset_x_spic R/W SPIC IP software reset (active 0x1
al
low)
t
19 reg_soft_reset_x_tempsen R/W TEMPSEN IP software reset 0x1
no
(active low)
20 reg_soft_reset_x_saradc R/W SARADC IP software reset (active 0x1
low)
e
ar
25:21 Reserved
26 reg_soft_reset_x_combo_phy0 R/W USB_PHY IP software reset
n 0x1
(active low)
tio
28:27 Reserved
29 reg_soft_reset_x_spi_nand R/W NAND IP software reset (active 0x1
u
low)
ib
low)
di V
st
re k-
31 Reserved
d il
SOFT_RSTN_2
an M
low)
13 reg_soft_reset_x_timer R/W TIMER IP software reset (active 0x1
M a
low)
M
76
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
24 reg_soft_reset_x_wgn2 R/W WGN2 IP software reset (active 0x1
low)
w
25 reg_soft_reset_x_keyscan R/W KEYSCAN IP software reset 0x1
lo
(active low)
26 Reserved
al
27 reg_soft_reset_x_auddac R/W AUDDAC IP software reset (active 0x1
t
low)
no
28 reg_soft_reset_x_auddac_apb R/W AUDDAC APB software reset 0x1
(active low)
e
29 reg_soft_reset_x_audadc R/W AUDADC IP software reset (active 0x1
ar
low)
30 Reserved n
31 reg_soft_reset_x_vcsys R/W VCSYS SYS software reset (active 0x1
tio
low)
u
SOFT_RSTN_3
ib
(active low)
ca ub
31:6 Reserved
M a
M
SOFT_CPUAC_RSTN
Offset Address: 0x020
Write Lock: SOFT_CPUAC_RSTN_wr_lock
Bits Name Access Description Reset
0 reg_auto_clear_reset_x_cpucor R/W CPUCORE0 auto_clear_reset 0x1
e0 (active low)
1 reg_auto_clear_reset_x_cpucor R/W CPUCORE1 auto_clear_reset 0x1
e1 (active low)
2 reg_auto_clear_reset_x_cpucor R/W CPUCORE2 auto_clear_reset 0x1
e2 (active low)
3 reg_auto_clear_reset_x_cpucor R/W CPUCORE3 auto_clear_reset 0x1
e3 (active low)
77
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
SOFT_CPU_RSTN
Offset Address: 0x024
w
Bits Name Access Description Reset
lo
0 reg_soft_reset_x_cpucore0 R/W CPUCORE0 soft reset (active low) 0x0
al
1 reg_soft_reset_x_cpucore1 R/W CPUCORE1 soft reset (active low) 0x0
2 reg_soft_reset_x_cpucore2 R/W CPUCORE2 soft reset (active low) 0x0
t
3 reg_soft_reset_x_cpucore3 R/W CPUCORE3 soft reset (active low) 0x0
no
4 reg_soft_reset_x_cpusys0 R/W CPUSYS0 soft reset (active low) 0x0
5 reg_soft_reset_x_cpusys1 R/W CPUSYS1 soft reset (active low) 0x0
e
6 reg_soft_reset_x_cpusys2 R/W CPUSYS2 soft reset (active low) 0x0
ar
31:7 Reserved n
tio
3.2 Clock
u
r ib
di V
st
re k-
3.2.1 Overview
d il
an M
78
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
XTAL_ XIN is reference clock of PLL and should be connected with 25MHz crystal. RTC_
d il
XIN is the reference clock of RTC and should be connected with 32.768KHz crystal.
an M
n by
The system clock mainly comes from external XTAL、PLLs and external input clocks. As
ca ub
shown in Figure 3-3, each IP generally has clock source from XTAL or PLLs. After passing
ifi p
through the frequency division circuit, clocks are generated and selected to be the clock
od de
of IPs or subsystems.
M a
M
79
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
As shown in Table 3-1, the chip has built-in 9 PLLs (excluding Analog IP built-in PLL),
ca ub
which are categorized into integer frequency multiplication and fractional frequency
ifi p
multiplication.
od de
80
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
apll_ssc_syn_set
w
apll_ssc_syn_span
apll_ssc_syn_setp
lo
al
CAM0PLL cam0pll_csr cam0pll_pwd(default On) 1050MHz 整/分数倍频
cam0pll_ssc_syn_ctrl
t
no
cam0pll_ssc_syn_set
cam0pll_ssc_syn_span
e
cam0pll_ssc_syn_setp
ar
CAM1PLL cam1pll_csr cam1pll_pwd(default On)n 1025MHz 整/分数倍频
cam1pll_ssc_syn_ctrl
tio
cam1pll_ssc_syn_set
cam1pll_ssc_syn_span
u
ib
cam1pll_ssc_syn_setp
r
disppll_ssc_syn_ctrl
d il
disppll_ssc_syn_set
an M
disppll_ssc_syn_span
disppll_ssc_syn_setp
n by
tio lic
1. Turn off clocks generated from this PLL or select others stable clock to be the
od de
clocks’ source.
M a
3. Clear *_pll_pwd
PLL 参数 范围 注意事项
PLL_REF 25MHz~2500MHz
PLL_VCO 800MHz~2500MHz
Pre_div_sel 1~127 PLL_VCO = PLL_REF*Div_sel/Pre_div_sel
81
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
PLL 参数 范围 注意事项
ed
3.2.4.2 Fractional Frequency Multiplication PLL
w
lo
The process of fractional PLL adjustment is as follows.
al
1. Turn off clocks generated from this PLL or select others stable clock to be the
t
clocks’ source.
no
2. Configure *_ssc_syn_src_en to enable the synthesizer clock
e
3. Configure *_ssc_syn_set according to PLL frequency requirement
ar
4. Toggle *_ssc_syn_up to make the configuration take effect
n
5. Configure *_ pll_csr register, configured according to integer PLL parameter table
tio
6. Clear *_pll_pwd
u
r ib
di V
st
PLL 参数 范围 注意事项
an M
DDRPLL: 1.5GHz
Others 600MHz
tio lic
PLL_REF 100M~2500MHz
ifi p
PLL_VCO 800MHz~2500MHz
od de
Below is the clock resource table. This table indicates the configurable clock source,
preset clock frequency and frequency division of each clock. The software can switch
82
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
the clock source from XTAL to PLL after boot, and adjust the clock frequency division
configuration.
ed
clk_cpu_axi0 Y Y fpll/(3)/500M fpll disppll
w
lo
clk_tpu Y Y fpll/(3)/500M tpll a0pll mipimpll fpll
al
clk_sd0 Y Y fpll/(15)/100M fpll disppll
t
no
clk_spi_nand Y Y fpll/(8)/187.5M fpll disppll
e
ar
clk_sdma_aud1 Y Y a0pll/(18)/58.3M a0pll a24m
83
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
1. Turn off the IP clock. If the clock cannot be turned off, it should be configured to the
stable clock first.
A、CPU frequency scaling: Configure clk_sel_0 to switch to SRC1 to avoid too low
frequency.
ed
B、IP frequency scaling: configure clk_byp_0/1 to switch the clock to XTAL.
w
2. Configure the clock source and frequency divider to be adjusted.
lo
3. Configure bit[2] of frequency divider register, and then the clock divider
al
configuration can take effect.
t
4. Select the clock source to the configured clock divider.
no
3.2.5.2 MCLK0/MCLK1
e
1. MCLK0/MCLK1 provide external sensor reference clock.
ar
n
2. Configure CAM0PLL, clk_cam0_src_div, and clk_cam0_src_div to provide the appropriate
tio
3.2.5.3 Clk_A24M
r
di V
st
re k-
Offset
pll_g2_ctrl 0x000 Group2 PLL Ctrl register
pll_g2_status 0x004 Group2 PLL Status register
mipimpll_csr 0x008 MIPIMPLL Ctrl register
apll0_csr 0x00c APLL0 Ctrl register
disppll_csr 0x010 DISPPLL Ctrl register
cam0pll_csr 0x014 CAM0PLL Ctrl register
cam1pll_csr 0x018 CAM1PLL Ctrl register
pll_g2_ssc_syn_ctrl 0x040 Group2 PLL Synthesizer ctrl register
apll_ssc_syn_ctrl 0x050 APLL synthesizer ctrl register
apll_ssc_syn_set 0x054 APLL synthesizer set register
84
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
apll_frac_div_m 0x094 APLL frac divider M parameter
apll_frac_div_n 0x098 APLL frac divider N parameter
w
mipimpll_clk_csr 0x0a0 MIPIMPLL clock Ctrl register
lo
a0pll_clk_csr 0x0a4 a0pll clock Ctrl register
al
disppll_clk_csr 0x0a8 disppll clock Ctrl register
cam0pll_clk_csr 0x0ac cam0pll clock Ctrl register
t
cam1pll_clk_csr 0x0b0 cam1pll clock Ctrl register
no
clk_cam0_src_div 0x0c0 clk_cam0_src_div
clk_cam1_src_div 0x0c4 clk_cam1_src_div
e
ar
PLL_G6 base address : 0x03002900 n
tio
Name Address Description
Offset
u
85
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
pll_g2_ctrl
ed
Offset Address: 0x000
w
Bits Name Access Description Reset
lo
0 mipimpll_pwd R/W pll power down 0x0
3:1 Reserved
al
4 apll0_pwd R/W pll power down 0x0
t
7:5 Reserved
no
8 disppll_pwd R/W pll power down 0x0
11:9 Reserved
e
12 cam0pll_pwd R/W pll power down 0x0
ar
15:13 Reserved
16 cam1pll_pwd R/W pll power down 0x0
n
tio
31:17 Reserved
u
pll_g2_status
ib
31:21 Reserved
M
mipimpll_csr
Offset Address: 0x008
Bits Name Access Description Reset
6:0 mipimpll_pre_div_sel R/W pll pre_div_sel setting 0x0
7 Reserved
14:8 mipimpll_post_div_sel R/W pll post_div_sel setting 0x0
16:15 mipimpll_sel_mode R/W pll mode setting 0x0
23:17 mipimpll_div_sel R/W pll div_sel setting 0x0
26:24 mipimpll_ictrl R/W pll ictrl setting 0x0
31:27 Reserved
86
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
apll0_csr
Offset Address: 0x00c
Bits Name Access Description Reset
6:0 apll0_pre_div_sel R/W pll pre_div_sel setting 0x0
7 Reserved
14:8 apll0_post_div_sel R/W pll post_div_sel setting 0x0
16:15 apll0_sel_mode R/W pll mode setting 0x0
23:17 apll0_div_sel R/W pll div_sel setting 0x0
26:24 apll0_ictrl R/W pll ictrl setting 0x0
ed
31:27 Reserved
w
disppll_csr
lo
Offset Address: 0x010
al
Bits Name Access Description Reset
t
6:0 disppll_pre_div_sel R/W pll pre_div_sel setting 0x0
no
7 Reserved
14:8 disppll_post_div_sel R/W pll post_div_sel setting 0x0
e
16:15 disppll_sel_mode R/W pll mode setting 0x0
ar
23:17 disppll_div_sel R/W pll div_sel setting 0x0
26:24 disppll_ictrl R/W pll ictrl setting 0x0
n
31:27 Reserved
tio
cam0pll_csr
u
7 Reserved
d il
cam1pll_csr
ca ub
7 Reserved
M a
pll_g2_ssc_syn_ctrl
Offset Address: 0x040
Bits Name Access Description Reset
0 reg_mipimpll_sel_syn_clk R/W mipimpll gen synthesizer clock 0x1
source
0:450M
87
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
apll_ssc_syn_ctrl
Offset Address: 0x050
w
Bits Name Access Description Reset
lo
0 reg_apll_ssc_syn_sw_up W1T pll synthesizer software update
al
5:1 Reserved
t
6 reg_apll_ssc_syn_fix_div R/W 0x0
no
31:7 Reserved
e
apll_ssc_syn_set
ar
Offset Address: 0x054
Bits Name Access Description Reset
n
31:0 reg_apll_ssc_syn_set R/W pll synthesizer fraction 0x0
tio
setting:
[31:26] integer 6 bits
u
disppll_ssc_syn_ctrl
st
re k-
disppll_ssc_syn_set
Offset Address: 0x064
ifi p
cam0pll_ssc_syn_ctrl
Offset Address: 0x070
Bits Name Access Description Reset
0 reg_cam0pll_ssc_syn_sw_up W1T pll synthesizer software update
5:1 Reserved
6 reg_cam0pll_ssc_syn_fix_div R/W 0x0
31:7 Reserved
88
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
cam0pll_ssc_syn_set
Offset Address: 0x074
Bits Name Access Description Reset
31:0 reg_cam0pll_ssc_syn_set R/W pll synthesizer fraction 0x0
setting:
[31:26] integer 6 bits
[26:0] decimal 26 bits
cam1pll_ssc_syn_ctrl
ed
Offset Address: 0x080
Bits Name Access Description Reset
w
0 reg_cam1pll_ssc_syn_sw_up W1T pll synthesizer software update
lo
5:1 Reserved
al
6 reg_cam1pll_ssc_syn_fix_div R/W 0x0
t
31:7 Reserved
no
cam1pll_ssc_syn_set
e
Offset Address: 0x084
ar
Bits Name Access Description Reset
31:0 reg_cam1pll_ssc_syn_set R/W pll synthesizer fraction 0x0
n
setting:
tio
apll_frac_div_ctrl
r
di V
apll_frac_div_m
ca ub
(MHz)
31:22 Reserved
M a
M
apll_frac_div_n
Offset Address: 0x098
Bits Name Access Description Reset
21:0 reg_apll_frac_div_n R/W a24m clock freq is 900*N/M/2 0x0
(MHz)
31:22 Reserved
mipimpll_clk_csr
Offset Address: 0x0a0
Bits Name Access Description Reset
89
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
10 reg_mipimpll_d3_auto_pd R/W auto pd div3 clk 0x1
11 reg_mipimpll_d5_auto_pd R/W auto pd div5 clk 0x1
w
12 reg_mipimpll_d7_auto_pd R/W auto pd div7 clk 0x1
lo
31:13 Reserved
al
a0pll_clk_csr
t
no
Offset Address: 0x0a4
Bits Name Access Description Reset
0 reg_a0pll_pdiv_pd R/W pd post div 0x0
e
ar
1 reg_a0pll_d2_pd R/W pd div2 div 0x1
2 reg_a0pll_d3_pd R/W pd div3 div n 0x1
3 reg_a0pll_d5_pd R/W pd div5 div 0x1
tio
4 reg_a0pll_d7_pd R/W pd div7 div 0x1
7:5 Reserved
u
31:13 Reserved
an M
disppll_clk_csr
n by
cam0pll_clk_csr
Offset Address: 0x0ac
Bits Name Access Description Reset
0 reg_cam0pll_pdiv_pd R/W pd post div 0x0
1 reg_cam0pll_d2_pd R/W pd div2 div 0x1
90
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
12 reg_cam0pll_d7_auto_pd R/W auto pd div7 clk 0x1
31:13 Reserved
w
lo
cam1pll_clk_csr
al
Offset Address: 0x0b0
Bits Name Access Description Reset
t
no
0 reg_cam1pll_pdiv_pd R/W pd post div 0x0
1 reg_cam1pll_d2_pd R/W pd div2 div 0x1
2 reg_cam1pll_d3_pd R/W pd div3 div 0x1
e
ar
3 reg_cam1pll_d5_pd R/W pd div5 div 0x1
4 reg_cam1pll_d7_pd R/W pd div7 div n 0x1
7:5 Reserved
tio
8 reg_cam1pll_pdiv_auto_pd R/W auto pd pdiv clk 0x0
9 reg_cam1pll_d2_auto_pd R/W auto pd div2 clk 0x1
u
31:13 Reserved
re k-
d il
clk_cam0_src_div
an M
3:1 Reserved
ca ub
7:5 Reserved
od de
1: cam0pll_d2
M
2: cam0pll_d3
3: mipimpll_d3
15:10 Reserved
21:16 reg_cam0_div R/W [21:16] Clock Divider Factor 0x20
31:22 Reserved
clk_cam1_src_div
Offset Address: 0x0c4
Bits Name Access Description Reset
0 reg_cam1_div_rstn R/W [0] Divider Reset Control 0: 0x1
Assert Reset
91
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
15:10 Reserved
w
21:16 reg_cam1_div R/W [21:16] Clock Divider Factor 0x20
31:22 Reserved
lo
al
t
no
3.2.7.2 PLL_G6 Register Overview
e
ar
n
tio
pll_g6_ctrl
Offset Address: 0x000
u
3:1 Reserved
di V
st
re k-
pll_g6_status
tio lic
15:3 Reserved
M a
mpll_csr
Offset Address: 0x008
Bits Name Access Description Reset
6:0 mpll_pre_div_sel R/W pll pre_div_sel setting 0x0
7 Reserved
14:8 mpll_post_div_sel R/W pll post_div_sel setting 0x0
92
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
tpll_csr
Offset Address: 0x00c
Bits Name Access Description Reset
ed
6:0 tpll_pre_div_sel R/W pll pre_div_sel setting 0x0
w
7 Reserved
14:8 tpll_post_div_sel R/W pll post_div_sel setting 0x0
lo
16:15 tpll_sel_mode R/W pll mode setting 0x0
al
23:17 tpll_div_sel R/W pll div_sel setting 0x0
26:24 tpll_ictrl R/W pll ictrl setting 0x0
t
no
31:27 Reserved
fpll_csr
e
ar
Offset Address: 0x010
Bits Name Access Description
n Reset
6:0 fpll_pre_div_sel R/W pll pre_div_sel setting 0x0
tio
7 Reserved
14:8 fpll_post_div_sel R/W pll post_div_sel setting 0x0
u
31:27 Reserved
d il
an M
pll_g6_ssc_syn_ctrl
Offset Address: 0x040
n by
source
0:750M
ca ub
1:1.5G
1 reg_ddr_ssc_syn_src_en R/W ddr pll synthesizer clock enable 0x1
ifi p
dpll_ssc_syn_ctrl
Offset Address: 0x050
Bits Name Access Description Reset
0 reg_dpll_ssc_syn_sw_up W1T pll synthesizer software update
1 reg_dpll_ssc_syn_en_ssc R/W pll synthesizer ssc enable 0x0
3:2 reg_dpll_ssc_syn_ssc_mode R/W 0x0
4 reg_dpll_ssc_syn_bypass R/W 0x0
5 reg_dpll_ssc_syn_extpulse R/W 0x0
6 reg_dpll_ssc_syn_fix_div R/W 0x0
31:7 Reserved
93
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
dpll_ssc_syn_set
Offset Address: 0x054
Bits Name Access Description Reset
31:0 reg_dpll_ssc_syn_set R/W pll synthesizer fraction 0x0
setting:
[31:26] integer 6 bits
[26:0] decimal 26 bits
dpll_ssc_syn_span
ed
Offset Address: 0x058
Bits Name Access Description Reset
w
15:0 reg_dpll_ssc_syn_span R/W 0x0
lo
31:16 Reserved
al
dpll_ssc_syn_step
t
no
Offset Address: 0x05c
Bits Name Access Description Reset
e
23:0 reg_dpll_ssc_syn_step R/W 0x0
ar
31:24 Reserved
n
mpll_ssc_syn_ctrl
tio
31:7 Reserved
tio lic
mpll_ssc_syn_set
Offset Address: 0x064
ca ub
mpll_ssc_syn_span
Offset Address: 0x068
Bits Name Access Description Reset
15:0 reg_mpll_ssc_syn_span R/W 0x0
31:16 Reserved
mpll_ssc_syn_step
Offset Address: 0x06c
Bits Name Access Description Reset
23:0 reg_mpll_ssc_syn_step R/W 0x0
94
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
tpll_ssc_syn_ctrl
Offset Address: 0x070
Bits Name Access Description Reset
0 reg_tpll_ssc_syn_sw_up W1T pll synthesizer software update
1 reg_tpll_ssc_syn_en_ssc R/W pll synthesizer ssc enable 0x0
ed
3:2 reg_tpll_ssc_syn_ssc_mode R/W 0x0
4 reg_tpll_ssc_syn_bypass R/W 0x1
w
5 reg_tpll_ssc_syn_extpulse R/W 0x0
lo
6 reg_tpll_ssc_syn_fix_div R/W 0x0
al
31:7 Reserved
t
no
tpll_ssc_syn_set
Offset Address: 0x074
e
Bits Name Access Description Reset
ar
31:0 reg_tpll_ssc_syn_set R/W pll synthesizer fraction 0x0
setting: n
[31:26] integer 6 bits
tio
[26:0] decimal 26 bits
u
tpll_ssc_syn_span
ib
31:16 Reserved
d il
an M
tpll_ssc_syn_step
n by
95
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
div_clk_sd1 0x07c divider register of clk_sd1
div_clk_100k_sd1 0x084 divider register of clk_100k_sd1
w
div_clk_spi_nand 0x088 divider register of clk_spi_nand
lo
div_clk_500m_eth0 0x08c divider register of clk_500m_eth0
al
div_clk_gpio_db 0x094 divider register of clk_gpio_db
div_clk_sdma_aud0 0x098 divider register of clk_sdma_aud0
t
div_clk_sdma_aud1 0x09c divider register of clk_sdma_aud1
no
div_clk_sdma_aud2 0x0a0 divider register of clk_sdma_aud2
div_clk_sdma_aud3 0x0a4 divider register of clk_sdma_aud3
e
div_clk_cam0_200 0x0a8 divider register of clk_cam0_200
ar
div_clk_axi4 0x0b8 divider register of clk_axi4
div_clk_axi6 0x0bc divider register of clk_axi6
n
div_clk_dsi_esc 0x0c4 divider register of clk_dsi_esc
tio
clk_en_0
Offset Address: 0x000
Bits Name Access Description Reset
96
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
5 Reserved 0x1
w
6 clk_en_0_6 R/W Clock Enable for clk_ahb_rom (1: 0x1
Enable; 0: Gate)
lo
7 clk_en_0_7 R/W Clock Enable for clk_ddr_axi_reg 0x1
al
(1: Enable; 0: Gate)
8 clk_en_0_8 R/W Clock Enable for clk_rtc_25m (1: 0x1
t
no
Enable; 0: Gate)
9 clk_en_0_9 R/W Clock Enable for clk_tempsen (1: 0x1
Enable; 0: Gate)
e
10 clk_en_0_10 R/W Clock Enable for clk_saradc (1: 0x1
ar
Enable; 0: Gate)
11 clk_en_0_11 R/W Clock Enable for clk_efuse (1: 0x1
n
Enable; 0: Gate)
tio
13 Reserved
ib
Enable; 0: Gate)
ca ub
Enable; 0: Gate)
M
97
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
clk_en_1
Offset Address: 0x004
Bits Name Access Description Reset
ed
0 clk_en_1_0 R/W Clock Enable for clk_ahb_sf (1: 0x1
Enable; 0: Gate)
w
1 clk_en_1_1 R/W Clock Enable for clk_sdma_axi 0x1
lo
(1: Enable; 0: Gate)
al
2 clk_en_1_2 R/W Clock Enable for clk_sdma_aud0 0x1
(1: Enable; 0: Gate)
t
3 clk_en_1_3 R/W Clock Enable for clk_sdma_aud1 0x1
no
(1: Enable; 0: Gate)
4 clk_en_1_4 R/W Clock Enable for clk_sdma_aud2 0x1
e
(1: Enable; 0: Gate)
ar
5 clk_en_1_5 R/W Clock Enable for clk_sdma_aud3 0x1
(1: Enable; 0: Gate)
n
6 clk_en_1_6 R/W Clock Enable for clk_apb_i2c (1: 0x1
tio
Enable; 0: Gate)
7 clk_en_1_7 R/W Clock Enable for clk_apb_wdt (1: 0x1
u
Enable; 0: Gate)
ib
Enable; 0: Gate)
di V
st
Enable; 0: Gate)
14 clk_en_1_14 R/W Clock Enable for clk_uart0 (1: 0x1
ifi p
Enable; 0: Gate)
od de
Enable; 0: Gate)
17 clk_en_1_17 R/W Clock Enable for clk_apb_uart1 0x1
(1: Enable; 0: Gate)
18 clk_en_1_18 R/W Clock Enable for clk_uart2 (1: 0x1
Enable; 0: Gate)
19 clk_en_1_19 R/W Clock Enable for clk_apb_uart2 0x1
(1: Enable; 0: Gate)
20 clk_en_1_20 R/W Clock Enable for clk_uart3 (1: 0x1
Enable; 0: Gate)
21 clk_en_1_21 R/W Clock Enable for clk_apb_uart3 0x1
(1: Enable; 0: Gate)
22 clk_en_1_22 R/W Clock Enable for clk_uart4 (1: 0x1
98
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
(1: Enable; 0: Gate)
27 clk_en_1_27 R/W Clock Enable for clk_apb_i2s3 0x1
w
(1: Enable; 0: Gate)
lo
28 clk_en_1_28 R/W Clock Enable for clk_axi4_usb 0x1
(1: Enable; 0: Gate)
al
29 clk_en_1_29 R/W Clock Enable for clk_apb_usb (1: 0x1
t
Enable; 0: Gate)
no
31:30 Reserved
e
clk_en_2
ar
Offset Address: 0x008
Bits Name Access Description Reset
n
0 Reserved
tio
Enable; 0: Gate)
r
di V
Enable; 0: Gate)
4 clk_en_2_4 R/W Clock Enable for clk_axi_vip (1: 0x1
d il
an M
Enable; 0: Gate)
5 clk_en_2_5 R/W Clock Enable for 0x1
clk_src_vip_sys_0 (1: Enable; 0:
n by
Gate)
6 clk_en_2_6 R/W Clock Enable for 0x1
tio lic
Gate)
7 clk_en_2_7 R/W Clock Enable for 0x1
ifi p
0: Gate)
9 clk_en_2_9 R/W Clock Enable for clk_vc_src0 (1: 0x1
Enable; 0: Gate)
10 clk_en_2_10 R/W Clock Enable for clk_h264c (1: 0x1
Enable; 0: Gate)
11 clk_en_2_11 R/W Clock Enable for clk_h265c (1: 0x1
Enable; 0: Gate)
12 clk_en_2_12 R/W Clock Enable for clk_jpeg (1: 0x1
Enable; 0: Gate)
13 clk_en_2_13 R/W Clock Enable for clk_apb_jpeg 0x1
(1: Enable; 0: Gate)
14 clk_en_2_14 R/W Clock Enable for clk_apb_h264c 0x1
99
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
clk_csi_mac0_vip (1: Enable; 0:
Gate)
w
19 clk_en_2_19 R/W Clock Enable for 0x1
lo
clk_csi_mac1_vip (1: Enable; 0:
Gate)
al
20 clk_en_2_20 R/W Clock Enable for clk_isp_top_vip 0x1
(1: Enable; 0: Gate)
t
no
21 clk_en_2_21 R/W Clock Enable for clk_img_d_vip 0x1
(1: Enable; 0: Gate)
22 clk_en_2_22 R/W Clock Enable for clk_img_v_vip 0x1
e
(1: Enable; 0: Gate)
ar
23 clk_en_2_23 R/W Clock Enable for clk_sc_top_vip 0x1
(1: Enable; 0: Gate)
n
tio
24 clk_en_2_24 R/W Clock Enable for clk_sc_d_vip 0x1
(1: Enable; 0: Gate)
u
clk_en_3
od de
100
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
10 clk_en_3_10 R/W Clock Enable for clk_timer1 (1: 0x1
Enable; 0: Gate)
w
11 clk_en_3_11 R/W Clock Enable for clk_timer2 (1: 0x1
lo
Enable; 0: Gate)
12 clk_en_3_12 R/W Clock Enable for clk_timer3 (1: 0x1
al
Enable; 0: Gate)
t
13 clk_en_3_13 R/W Clock Enable for clk_timer4 (1: 0x1
no
Enable; 0: Gate)
14 clk_en_3_14 R/W Clock Enable for clk_timer5 (1: 0x1
Enable; 0: Gate)
e
ar
15 clk_en_3_15 R/W Clock Enable for clk_timer6 (1: 0x1
Enable; 0: Gate)
n
16 clk_en_3_16 R/W Clock Enable for clk_timer7 (1: 0x1
tio
Enable; 0: Gate)
17 clk_en_3_17 R/W Clock Enable for clk_apb_i2c0 0x1
u
Enable; 0: Gate)
23 clk_en_3_23 R/W Clock Enable for clk_wgn0 (1: 0x1
ca ub
Enable; 0: Gate)
24 clk_en_3_24 R/W Clock Enable for clk_wgn1 (1: 0x1
ifi p
Enable; 0: Gate)
od de
Enable; 0: Gate)
27 clk_en_3_27 R/W Clock Enable for clk_ahb_sf1 (1: 0x1
Enable; 0: Gate)
28 Reserved
29 clk_en_3_29 R/W Clock Enable for 0x1
clk_src_vip_sys_2 (1: Enable; 0:
Gate
30 clk_en_3_30 R/W Clock Enable for clk_pad_vi1_vip 0x1
(1: Enable; 0: Gate)
31 clk_en_3_31 R/W Clock Enable for clk_cfg_reg_vip 0x1
(1: Enable; 0: Gate)
101
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
clk_en_4
Offset Address: 0x010
Bits Name Access Description Reset
0 clk_en_4_0 R/W Clock Enable for clk_cfg_reg_vc 0x1
(1: Enable; 0: Gate)
1 clk_en_4_1 R/W Clock Enable for clk_audsrc (1: 0x1
Enable; 0: Gate)
2 clk_en_4_2 R/W Clock Enable for clk_apb_audsrc 0x1
(1: Enable; 0: Gate)
ed
3 Reserved
4 clk_en_4_4 R/W Clock Enable for clk_pwm_src (1: 0x1
w
Enable; 0: Gate)
lo
5 clk_en_4_5 R/W Clock Enable for clk_ap_debug(1: 0x1
al
Enable; 0: Gate)
6 clk_en_4_6 R/W Clock Enable for 0x1
t
clk_rtcsys_src_0 (1: Enable; 0:
no
Gate)
7 clk_en_4_7 R/W Clock Enable for clk_pad_vi2_vip 0x1
e
(1: Enable; 0: Gate)
ar
8 clk_en_4_8 R/W Clock Enable for clk_csi_be_vip 0x1
(1: Enable; 0: Gate)
n
9 clk_en_4_9 R/W Clock Enable for clk_vip_ip0_en 0x1
tio
clk_src_vip_sys_4_en
17 clk_en_4_17 R/W Clock Enable for clk_ive_vip_en 0x1
n by
clk_sel_0
od de
22:0 Reserved
23 clk_sel_0_23 R/W Clock Select for C906's clock 0x0
clk_c906_0
1: Select div_clk_c906_0_0 as
clock source
0: Select div_clk_c906_0_1 as
clock source
24 clk_sel_0_24 R/W Clock Select for C906's clock 0x0
clk_c906_1
1: Select div_clk_c906_1_0 as
clock source
0: Select div_clk_c906_1_1 as
102
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
clk_byp_0
Offset Address: 0x030
Bits Name Access Description Reset
0 Reserved 0x1
1 clk_byp_0_1 R/W Clock Bypass to xtal for clock 0x1
ed
clk_cpu_axi0
w
2 Reserved R/W 0x1
lo
3 clk_byp_0_3 R/W Clock Bypass to xtal for TPU's 0x1
clock clk_tpu
al
4 Reserved 0x1
t
5 Reserved 0x1
no
6 clk_byp_0_6 R/W Clock Bypass to xtal for SD's 0x1
clock clk_sd0
e
7 clk_byp_0_7 R/W Clock Bypass to xtal for SD's 0x1
ar
clock clk_sd1
8 clk_byp_0_8 R/W Clock Bypass to xtal for 0x1
n
SPI_NAND's clock clk_spi_nand
tio
10 Reserved
ib
clock clk_aud0
st
re k-
clock clk_aud3
15 clk_byp_0_15 R/W Clock Bypass to xtal for PWM's 0x1
tio lic
clock clk_pwm_src
ca ub
18:17 Reserved
od de
103
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
30 clk_byp_0_30 R/W Clock Bypass to xtal for SPI's 0x1
clock clk_spi
w
31 clk_byp_0_31 R/W Clock Bypass to xtal for IIC's 0x1
lo
clock clk_i2c
al
clk_byp_1
t
Offset Address: 0x034
no
Bits Name Access Description Reset
0 Reserved
e
1 clk_byp_1_1 R/W Clock Bypass to xtal for 0x1
ar
VIP_SYS's clock
clk_src_vip_sys_2
n
2 clk_byp_1_2 R/W Clock Bypass to xtal for 0x1
tio
clk_ap_debug
st
re k-
VIP_SYS's clock
clk_src_vip_sys_3
tio lic
VIP_SYS's clock
clk_src_vip_sys_4
ifi p
31:10 Reserved
od de
div_clk_cpu_axi0
M a
104
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
div_clk_tpu
Offset Address: 0x054
Bits Name Access Description Reset
31:0 div_clk_tpu R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 301
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
this register
ed
[20:16] Clock Divider Factor
[9:8] clk_src
w
0 : tpll
lo
1 : apll
2 : mipimpll
al
3 : fpll
t
no
div_clk_sd0
Offset Address: 0x070
e
Bits Name Access Description Reset
ar
31:0 div_clk_sd0 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset
n 001
[3] Select Divide Factor from
tio
Register 0: Select initial value
1: Select Divide Factor from
u
this register
ib
[9:8] clk_src
di V
st
0 : fpll
re k-
1 : disppll
d il
an M
div_clk_100k_sd0
Offset Address: 0x078
n by
this register
od de
div_clk_sd1
M
105
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
div_clk_100k_sd1
Offset Address: 0x084
Bits Name Access Description Reset
31:0 div_clk_100k_sd1 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
this register
ed
[20:16] Clock Divider Factor
w
div_clk_spi_nand
lo
Offset Address: 0x088
al
Bits Name Access Description Reset
31:0 div_clk_spi_nand R/W [0] Divider Reset Control 0: 0x00000
t
Assert Reset 1: De-assert Reset 001
no
[3] Select Divide Factor from
Register 0: Select initial value
e
1: Select Divide Factor from
ar
this register
[20:16] Clock Divider Factor
n
[9:8] clk_src
tio
0 : fpll
1 : disppll
u
ib
div_clk_500m_eth0
r
div_clk_gpio_db
Offset Address: 0x094
ifi p
div_clk_sdma_aud0
Offset Address: 0x098
Bits Name Access Description Reset
31:0 div_clk_sdma_aud0 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
106
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
div_clk_sdma_aud1
Offset Address: 0x09c
w
Bits Name Access Description Reset
lo
31:0 div_clk_sdma_aud1 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
al
[3] Select Divide Factor from
t
Register 0: Select initial value
no
1: Select Divide Factor from
this register
[20:16] Clock Divider Factor
e
ar
[9:8] clk_src
0 : apll
1 : a24k
n
tio
div_clk_sdma_aud2
u
0 : apll
1 : a24k
ca ub
div_clk_sdma_aud3
ifi p
div_clk_cam0_200
Offset Address: 0x0a8
107
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0 : xtal
1 : disppll
w
div_clk_axi4
lo
Offset Address: 0x0b8
al
Bits Name Access Description Reset
t
31:0 div_clk_axi4 R/W [0] Divider Reset Control 0: 0x00000
no
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
Register 0: Select initial value
e
ar
1: Select Divide Factor from
this register
[20:16] Clock Divider Factor
n
tio
[9:8] clk_src
0 : fpll
u
1 : disppll
ib
div_clk_axi6
r
di V
st
this register
[20:16] Clock Divider Factor
ca ub
div_clk_dsi_esc
ifi p
div_clk_axi_vip
Offset Address: 0x0c8
Bits Name Access Description Reset
31:0 div_clk_axi_vip R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
108
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
2 : disppll
3 : fpll
w
div_clk_src_vip_sys_0
lo
Offset Address: 0x0d0
al
Bits Name Access Description Reset
t
31:0 div_clk_src_vip_sys_0 R/W [0] Divider Reset Control 0: 0x00000
no
Assert Reset 1: De-assert Reset 301
[3] Select Divide Factor from
Register 0: Select initial value
e
ar
1: Select Divide Factor from
this register
[20:16] Clock Divider Factor
n
tio
[9:8] clk_src
0 : mipimpll
u
1 : cam0pll
ib
2 : disppll
3 : fpll
r
di V
st
re k-
div_clk_src_vip_sys_1
d il
this register
[20:16] Clock Divider Factor
ifi p
[9:8] clk_src
od de
0 : mipimpll
1 : cam0pll
M a
2 : disppll
M
3 : fpll
div_clk_disp_src_vip
Offset Address: 0x0e0
Bits Name Access Description Reset
31:0 div_clk_disp_src_vip R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
this register
[20:16] Clock Divider Factor
109
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
div_clk_axi_video_codec
Offset Address: 0x0e4
Bits Name Access Description Reset
31:0 div_clk_axi_video_codec R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 101
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
this register
ed
[20:16] Clock Divider Factor
[9:8] clk_src
w
0 : apll
lo
1 : mipimpll
2 : cam1pll
al
3 : fpll
t
no
div_clk_vc_src0
Offset Address: 0x0ec
e
Bits Name Access Description Reset
ar
31:0 div_clk_vc_src0 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset
n 101
[3] Select Divide Factor from
tio
Register 0: Select initial value
1: Select Divide Factor from
u
this register
ib
[9:8] clk_src
di V
st
0 : apll
re k-
1 : mipimpll
d il
2 : cam1pll
an M
3 : fpll
n by
div_clk_1m
Offset Address: 0x0fc
tio lic
div_clk_spi
Offset Address: 0x100
Bits Name Access Description Reset
31:0 div_clk_spi R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
this register
[20:16] Clock Divider Factor
110
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
div_clk_i2c
Offset Address: 0x104
Bits Name Access Description Reset
31:0 div_clk_i2c R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
this register
ed
[20:16] Clock Divider Factor
w
div_clk_src_vip_sys_2
lo
Offset Address: 0x110
al
Bits Name Access Description Reset
31:0 div_clk_src_vip_sys_2 R/W [0] Divider Reset Control 0: 0x00000
t
Assert Reset 1: De-assert Reset 201
no
[3] Select Divide Factor from
Register 0: Select initial value
e
1: Select Divide Factor from
ar
this register
[20:16] Clock Divider Factor
n
[9:8] clk_src
tio
0 : mipimpll
1 : cam0pll
u
2 : disppll
ib
3 : fpll
r
di V
st
div_clk_audsrc
re k-
0 : apll
od de
1 : a24k
M a
div_clk_pwm_src_0
M
111
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
div_clk_ap_debug
Offset Address: 0x128
Bits Name Access Description Reset
31:0 div_clk_ap_debug R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
this register
ed
[20:16] Clock Divider Factor
w
div_clk_rtcsys_src_0
lo
Offset Address: 0x12c
al
Bits Name Access Description Reset
31:0 div_clk_src_rtc_sys_0 R/W [0] Divider Reset Control 0: 0x00000
t
Assert Reset 1: De-assert Reset 001
no
[3] Select Divide Factor from
Register 0: Select initial value
e
1: Select Divide Factor from
ar
this register
[20:16] Clock Divider Factor
n
tio
div_clk_c906_0_0
Offset Address: 0x130
u
this register
[3] Select High Wide Control
ca ub
this register
od de
0 : tpll
M
1 : apll
2 : mipimpll
3 : mpll
div_clk_c906_0_1
Offset Address: 0x134
Bits Name Access Description Reset
31:0 div_clk_c906_0_1 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
112
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
div_clk_c906_1_0
Offset Address: 0x138
Bits Name Access Description Reset
ed
31:0 div_clk_c906_1_0 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
w
[1] High Wide Control (when
lo
Divider Factor is odd) 0: Low
level of the clock is wider 1:
al
High level of the clock is wider
t
[2] Select Divide Factor from
no
Register 0: Select initial value
1: Select Divide Factor from
this register
e
ar
[3] Select High Wide Control
from Register 0: Select initial
value 1: Select High Wide from
n
tio
this register
[20:16] Clock Divider Factor
u
[9:8] clk_src
ib
0 : tpll
1 : apll
r
di V
st
2 : mipimpll
re k-
3 : mpll
d il
an M
div_clk_c906_1_1
Offset Address: 0x13c
n by
this register
od de
0 : fpll
M
div_clk_src_vip_sys_3
Offset Address: 0x140
Bits Name Access Description Reset
31:0 div_clk_src_vip_sys_3 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 001
[3] Select Divide Factor from
Register 0: Select initial value
1: Select Divide Factor from
this register
[20:16] Clock Divider Factor
[9:8] clk_src
113
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
div_clk_src_vip_sys_4
Offset Address: 0x144
Bits Name Access Description Reset
ed
31:0 div_clk_src_vip_sys_4 R/W [0] Divider Reset Control 0: 0x00000
Assert Reset 1: De-assert Reset 201
w
[3] Select Divide Factor from
lo
Register 0: Select initial value
1: Select Divide Factor from
al
this register
t
[20:16] Clock Divider Factor
no
[9:8] clk_src
0 : mipimpll
1 : cam0pll
e
ar
2 : disppll
3 : fpll
n
u tio
r ib
di V
The chip adopts RISCV C906 processor, which has the following characteristics.
The maximum operating frequency of the processor can reach 1.0 GHz
n by
Integrate L1 Cache which includes 32KB Instruction Cache and 64KB Data Cache
ca ub
114
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
16 TEMPSENS 中断 48 UART4 中断 80 Timer1 中断
w
17 RTC Alarm 中断 49 I2C0 中断 81 Timer2 中断
lo
18 RTC Longpress 中断 50 I2C1 中断 82 Timer3 中断
al
19 VBAT DET 中断 51 I2C2 中断 83 Timer4 中断
t
20 52 84
no
JPEG 中断 I2C3 中断 Timer5 中断
21 H264 中断 53 I2C4 中断 85 Timer6 中断
e
22 H265 中断 54 SPI1 中断 86 Timer7 中断
ar
23 VC SBM 中断 55 SPI2 中断
n 87 peri_firewall 中断
24 56 88
tio
ISP 中断 SPI3 中断 hsperi_firewall 中断
25 SC_TOP 中断 57 SPI4 中断 89 ddr_fw 中断
u
26 58 90
ib
27 59 91
di V
29 61 93
an M
33 保留 65 Wiegand1 中断 97 IVE 中断
34 66 98
ifi p
保留 Wiegand2 中断 保留
35 67 99
od de
SD0 中断 SARADC 中断
M
44 UART0 中断 76 TDMA 中断
115
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
45 UART1 中断 77 保留
46 UART2 中断 78 保留
47 UART3 中断 79 Timer0 中断
ed
3.5 System Controller
w
lo
al
3.5.1 Overview
t
no
The system controller controls the chip through registers, including system soft reset,
e
clock control and so on. Reset and clock have been described in other chapters. This
ar
chapter describes the configuration and status registers of some other system function
n
modules.
u tio
ib
System global soft reset, debug reset and watch dog reset could be issued by
configuring reg_sw_root_reset_en register. Details are explained in
tio lic
reg_sw_root_reset_en.
ca ub
ifi p
There are 8 channels in this DMA, and 0 ~7 dma request interfaces are configured
M a
M
respectively. The dma requests interfaces from 0 to 7 could be mapped to one of the
peripheral interfaces in the following table by the system control registers
sdma_dma_ch_remap0 and sdma_dma_ch_remap1. A peripheral interface should not
be assigned to multiple channels.
Configuration steps:
116
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
3 dma_tx_req_i2s1 27 dma_tx_req_i2c1
w
4 dma_rx_req_i2s2 28 dma_rx_req_i2c2
lo
5 dma_tx_req_i2s2 29 dma_tx_req_i2c2
al
6 dma_rx_req_i2s3 30 dma_rx_req_i2c3
7 dma_tx_req_i2s3 31 dma_tx_req_i2c3
t
no
8 dma_rx_req_n_uart0 32 dma_rx_req_i2c4
9 dma_tx_req_n_uart0 33 dma_tx_req_i2c4
e
10 dma_rx_req_n_uart1 34 dma_rx_req_tdm0
ar
11 dma_tx_req_n_uart1 35 dma_tx_req_tdm0
12
n
dma_rx_req_n_uart2 36 dma_rx_req_tdm1
tio
13 dma_tx_req_n_uart2 37 dma_req_audsrc
14 dma_rx_req_n_uart3 38 dma_req_spi_nand
u
15 dma_tx_req_n_uart3 39 dma_req_spi_nor
ib
16 dma_rx_req_spi0 40 dma_rx_req_n_uart4
r
di V
st
17 dma_tx_req_spi0 41 dma_tx_req_n_uart4
re k-
18 dma_rx_req_spi1 42 dma_req_spi_nor1
d il
an M
19 dma_tx_req_spi1
20 dma_rx_req_spi2
n by
21 dma_tx_req_spi2
22 dma_rx_req_spi3
tio lic
23 dma_tx_req_spi3
ca ub
ifi p
od de
117
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
ddr_axi_urgent 0x1bc ddr_axi_urgent
ddr_axi_qos_0 0x1d8 ddr_axi_qos_0
w
ddr_axi_qos_1 0x1dc ddr_axi_qos_1
lo
sd_pwrsw_ctrl 0x1f4 sd_pwrsw_ctrl
al
sd_pwrsw_time 0x1f8 sd_pwrsw_time
ddr_axi_qos_ow 0x23c ddr_axi_qos_ow
t
sd_ctrl_opt 0x294 additional control register for sd
no
sdma_dma_int_mux 0x298 Mux sdma channel interrupt to different processors
e
3.5.3.2 System Control Register Overview
ar
n
u tio
r ib
conf_info
di V
st
0: SPI_NAND
1: reserved
n by
2: SPI_NOR
3: reserved
[7:3] : resreved
tio lic
23:10 Reserved
31:24 io_sta_trap RO io_sta_trap[0] : io_boot_rom_din
od de
io_sta_trap[1] : io_boot_dev0_din
io_sta_trap[2] : io_boot_dev1_din
M a
M
io_sta_trap[3] : io_trap_sd0_pwr_din
io_sta_trap[4] : io_pkg_type0_din
io_sta_trap[5] : io_pkg_type1_din
io_sta_trap[6] : io_pkg_type2_din
io_sta_trap[7] : io_trap_zq_din
sys_ctrl_reg
Offset Address: 0x008
Bits Name Access Description Reset
1:0 Reserved
5:2 reg_sw_root_reset_en R/W bit0 : wdt reset enable 0x0
bit1 : cdbgrstreq enable
118
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
usb_phy_ctrl_reg
Offset Address: 0x048
Bits Name Access Description Reset
0 reg_usb_phy_external_vbusvalid R/W external vbus status 0x0
ed
1 reg_usb_drive_vbus R/W drive vbus power 0x0
4:2 Reserved
w
5 toreg_usb_id_en RO usb id pullup status
lo
6 reg_usb_phy_idpad_c_ow R/W usb id overwrite enable 0x0
al
7 reg_usb_phy_idpad_c_sw R/W usb id overwrite value 0x0
8 io_usb_phy_idpad_c RO usb id external IO pin status
t
no
9 toreg_usb_phy_idpad_c RO usb id pin status
31:10 Reserved
e
ar
sdma_dma_ch_remap0
Offset Address: 0x154
n
Bits Name Access Description Reset
tio
15:14 Reserved
r
di V
st
23:22 Reserved
d il
30 Reserved
31 update_dma_remp_0_3 W1T write 1 to update dma channel0~3
n by
mapping
tio lic
sdma_dma_ch_remap1
Offset Address: 0x158
ca ub
top_timer_clk_sel
Offset Address: 0x1a0
Bits Name Access Description Reset
7:0 reg_timer_clk_sel R/W timer0~7 clock selection. 0: xtal 0x0
119
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
top_wdt_ctrl
Offset Address: 0x1a8
Bits Name Access Description Reset
2:0 reg_wdt_rst_sys_en R/W enable wdt0~wdt2 to reset system 0x7
3 Reserved
ed
6:4 reg_wdt_rst_cpu_en R/W enable wdt0~wdt2 to reset cpu 0x0
7 Reserved
w
10:8 reg_wdt_clk_sel R/W top_wdt clock selection. 0: xtal 0x0
lo
clock,1:32k clock
al
31:11 Reserved
t
ddr_axi_urgent_ow
no
Offset Address: 0x1b8
Bits Name Access Description Reset
e
0 reg_awurgent_m1_ow R/W ddr axi port1 awurgent overwrite 0x1
ar
enable
1 reg_arurgent_m1_ow R/W ddr axi port1 arurgent overwrite enable 0x1
n
2 reg_awurgent_m2_ow R/W ddr axi port2 awurgent overwrite 0x1
tio
enable
3 reg_arurgent_m2_ow R/W ddr axi port2 arurgent overwrite enable 0x1
u
enable
r
enable
d il
enable
11 reg_arurgent_m6_ow R/W ddr axi port6 arurgent overwrite enable 0x1
ca ub
31:12 Reserved
ifi p
ddr_axi_urgent
od de
120
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ddr_axi_qos_0
Offset Address: 0x1d8
Bits Name Access Description Reset
3:0 reg_awqos_m1 R/W ddr axi port1 awqos setting 0x0
7:4 reg_arqos_m1 R/W ddr axi port1 arqos setting 0x0
11:8 reg_awqos_m2 R/W ddr axi port2 awqos setting 0x0
ed
15:12 reg_arqos_m2 R/W ddr axi port2 arqos setting 0x0
19:16 reg_awqos_m3 R/W ddr axi port3 awqos setting 0x0
w
23:20 reg_arqos_m3 R/W ddr axi port3 arqos setting 0x0
lo
27:24 reg_awqos_m4 R/W ddr axi port4 awqos setting 0x0
31:28 reg_arqos_m4 R/W ddr axi port4 arqos setting 0x0
al
ddr_axi_qos_1
t
no
Offset Address: 0x1dc
Bits Name Access Description Reset
e
3:0 reg_awqos_m5 R/W ddr axi port5 awqos setting 0x0
ar
7:4 reg_arqos_m5 R/W ddr axi port5 arqos setting 0x0
11:8 reg_awqos_m6 R/W ddr axi port6 awqos setting
n 0x0
15:12 reg_arqos_m6 R/W ddr axi port6 arqos setting 0x0
tio
31:16 Reserved
u
sd_pwrsw_ctrl
ib
0: 3.3v
an M
1: 1.8v
2 reg_pwrsw_disc R/W 18/33 IO power switch discharge enable 0x0
n by
31:4 Reserved
ca ub
sd_pwrsw_time
Offset Address: 0x1f8
ifi p
ddr_axi_qos_ow
Offset Address: 0x23c
Bits Name Access Description Reset
0 reg_awqos_m1_ow R/W ddr axi port1 awqos overwrite enable 0x1
1 reg_arqos_m1_ow R/W ddr axi port1 arqos overwrite enable 0x1
2 reg_awqos_m2_ow R/W ddr axi port2 awqos overwrite enable 0x1
3 reg_arqos_m2_ow R/W ddr axi port2 arqos overwrite enable 0x1
4 reg_awqos_m3_ow R/W ddr axi port3 awqos overwrite enable 0x1
5 reg_arqos_m3_ow R/W ddr axi port3 arqos overwrite enable 0x1
6 reg_awqos_m4_ow R/W ddr axi port4 awqos overwrite enable 0x1
121
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
sd_ctrl_opt
ed
Offset Address: 0x294
Bits Name Access Description Reset
w
0 reg_sd0_carddet_ow R/W sd0 card detect over write enable 0x0
lo
1 reg_sd0_carddet_sw R/W sd0 card detect over write value 0x0
7:2 Reserved
al
8 reg_sd1_carddet_ow R/W sd1 card detect over write enable 0x0
t
9 reg_sd1_carddet_sw R/W sd1 card detect over write value 0x0
no
15:10 Reserved
16 reg_sd0_pwr_en_polarity R/W off chip sd0 pwr en polarity 0x0
e
0: SD_LDO power ctrl high is power
ar
on , low is power off
1: SD_LDO power ctrl high is power
n
off , low is power on
tio
31:17 Reserved
u
sdma_dma_int_mux
ib
{intr_cmnreg,intr_ch[7:0]}
9 Reserved
n by
19 Reserved
28:20 reg_dma_int_mux_cpu2 R/W This register is used to mux separate 0x0
ifi p
31:29 Reserved
M
122
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
3.6.1 Overview
DMA (Direct Memory Access) can transfer data directly between the memory and the
device. This mechanism can greatly reduce CPU access time and improve data
ed
transmission rate. It is very suitable for big data transmission. When the chip works, it
w
often needs multi-channel data transmission. Each channel needs a DMA hardware to
lo
al
support, and the DMAC (DMA controller) is responsible for the control of multi-channel.
The following figure shows the DMAC hardware control flow. The source and
t
no
destination could be from different AXI Buses.
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
123
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
3.6.2 Characteristics
ed
d. Provide DMA transmission pause, resume, and cancellation.。
w
e. Support DMA Burst length configuration.
lo
f. Provide DMA channel priority configuration.
al
g. When channel data is transmitted between devices, flow control can be controlled
t
no
by devices.
e
ar
h. Support hardware linked list function.
i. Channel locking is supported. Other channel requests will be ignored before
n
tio
8 groups of DMA channels are built in DMA. Peripheral requests of each channel need
tio lic
124
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
set burst transmission length. In this case, it will need to use a single transmission
w
request to complete.
lo
al
The source and destination of the maximum 8 DMA channels can be in the following
t
four combinations.:
no
a. memory to memory
e
b. memory to device
c. Device to memory
ar
n
d. Device to device
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
The individual data transmission amount can be calculated from the values written by
the following registers.
Transmission data amount from the source (bytes):
125
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
src_single_size_bytes = CHx_CTL.SRC_TR_WIDTH/8
Burst transmission data amount from the source(bytes):
src_burst_size_bytes = CHx_CTL.SRC_MSIZE * src_single_size_bytes
Target transmission data amount(bytes):
dst_single_size_bytes = CHx_CTL.DST_TR_WIDTH/8
Target burst transmission data amount(bytes):
ed
dst_burst_size_bytes = CHx_CTL.DST_MSIZE * dst_single_size_bytes
w
lo
The control right of transmission process can be controlled by DMA controller or
al
source device or destination device. When block of data is transmitted, the amount
t
no
of data transmitted is calculated as follows.
e
ar
The DMA controller controls the transmission process:
blk_size_bytes_dma = CHx_BLOCK_TS.BLOCK_TS * src_single_size_bytes
n
tio
Linked list transmission is used in block transmission which needs to carry out multiple
od de
discontinuous addresses. After each block data, there will be a linked list information to
M a
M
store the information of the next node, so that the data transmission can directly carry
out the block transmission of the next discontinuous space without the intervention of
CPU. Figure 3-6 shows the configuration format of linked list information, which must
conform to the information format to enter the linked list transmission work.
126
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
127
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
Channel security can be realized by awprot value and arprot value of each channel.
According to AXI protocol, when the channel is a secure channel, arprot or awprot value
should be 0x0, otherwise it is a non secure channel.
128
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The clock of DMAC passes through CLK_EN_1[1] after writing 0x1; the clock can work
normally. Writing 0x0 in REG_SOFT_RESET_X_SDMA_INIT can reset DMAC and writing
ed
0x1 to release reset.
w
lo
3.6.4.2 Initialization
al
After reset, it can be initialized following the steps below.
t
no
1. Peripheral Configuration: in the chapter of System DMA Channel Mapping,
the configuration method of DMA peripheral request line is described, and
e
ar
the mapping should be configurated according to the scenario.
n
2. Confirm that the channel is closed: write 0x0 to DMA_ChEnReg and confirm
tio
DMAC_COMMONREG_INTSIGNAL_ENABLEREG and
r
di V
st
4. Configure the channel priority: when multiple channels transmit data at the
n by
same time, it will determine the passing order based on the priority level.
The higher value configed in register CH_PRIOR , the higher priority the
tio lic
transmission is.
ca ub
ifi p
od de
129
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Write 0x0 to the register TT_FC to configure the channel for memory to
memory data transmission.
Write the transmitted information to the register CHx_SAR, CHx_ADR and
CHx_BLOCK_TS, CHx_CTL.
Write 0x1 to the register DMAC_ChEnReg to enable the selected DMA channel.
The software can obtain the status of BLOCK_TFR_DONE by interrupting or
ed
polling. When its value rises to 1, it means that the data transmission has been
w
completed. Afterwards, write 0x0 to DMAC_ChEnReg to close the channel and
lo
restore it to an idle channel.
al
t
3.6.4.4 Linked List Transmission
no
Linked list transmission does not limit the number of nodes. Except for the ending node,
e
ar
each node must have information pointing to the next node. The linked list
n
transmission can be completed by referring to the following steps.
tio
channel.
5. The software can obtain the status of BLOCK_TFR_DONE by interrupting or
tio lic
polling. When its value rises to 1, it means that the data transmission of the
ca ub
130
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
bit. If multiple interrupts occur at the same time, the software will serve
based on its priority.
ed
next interrupt condition.
w
lo
al
3.6.5 DMAC Register
t
no
e
ar
DMAC_IDREG
Offset Address: 0x000
n
tio
Bits Name Access Description Reset
63:0 DMAC_IDREG RO DMAC ID Number
u
ib
DMAC_COMPVERREG
r
di V
st
DMAC_CFGREG
n by
DW_axi_dmac.
■ 0: DW_axi_dmac disabled
ifi p
■ 1: DW_axi_dmac enabled
od de
131
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
DMAC_CHENREG
Offset Address: 0x018
Bits Name Access Description Reset
0 CH1_EN R/W This bit is used to enable the 0x0
DW_axi_dmac Channel-1.
■ 0: DW_axi_dmac Channel-1 is
disabled
■ 1: DW_axi_dmac Channel-1 is
enabled
ed
The bit 'DMAC_ChEnReg.CH1_EN' is
automatically cleared
w
by hardware to disable the channel
lo
after the last AMBA
transfer of the DMA transfer to the
al
destination has
completed. Software can therefore poll
t
no
this bit to determine
when this channel is free for a new
DMA transfer.
e
1 CH2_EN R/W This bit is used to enable the 0x0
ar
DW_axi_dmac Channel-2.
■ 0: DW_axi_dmac Channel-2 is
n
disabled
tio
■ 1: DW_axi_dmac Channel-2 is
enabled
u
automatically cleared
r
DMA transfer.
2 CH3_EN R/W This bit is used to enable the 0x0
tio lic
DW_axi_dmac Channel-3.
■ 0: DW_axi_dmac Channel-3 is
ca ub
disabled
■ 1: DW_axi_dmac Channel-3 is
ifi p
enabled
od de
132
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
DMA transfer.
4 CH5_EN R/W This bit is used to enable the 0x0
w
DW_axi_dmac Channel-5.
■ 0: DW_axi_dmac Channel-5 is
lo
disabled
al
■ 1: DW_axi_dmac Channel-5 is
enabled
t
The bit 'DMAC_ChEnReg.CH5_EN' is
no
automatically cleared
by hardware to disable the channel
e
after the last AMBA
ar
transfer of the DMA transfer to the
destination has
n
completed. Software can therefore poll
tio
this bit to determine
when this channel is free for a new
u
DMA transfer.
ib
■ 0: DW_axi_dmac Channel-6 is
re k-
disabled
■ 1: DW_axi_dmac Channel-6 is
d il
enabled
an M
DW_axi_dmac Channel-7.
M
■ 0: DW_axi_dmac Channel-7 is
disabled
■ 1: DW_axi_dmac Channel-7 is
enabled
The bit 'DMAC_ChEnReg.CH7_EN' is
automatically cleared
by hardware to disable the channel
after the last AMBA
transfer of the DMA transfer to the
destination has
completed. Software can therefore poll
this bit to determine
when this channel is free for a new
133
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
by hardware to disable the channel
after the last AMBA
w
transfer of the DMA transfer to the
lo
destination has
completed. Software can therefore poll
al
this bit to determine
when this channel is free for a new
t
DMA transfer.
no
8 CH1_EN_WE WO DW_axi_dmac Channel-1 Enable Write 0x0
Enable bit.
e
Read back value of this register bit is
ar
always '0'.
n
9 CH2_EN_WE WO DW_axi_dmac Channel-2 Enable Write 0x0
tio
Enable bit.
Read back value of this register bit is
u
always '0'.
r ib
Enable bit.
re k-
always '0'.
an M
Enable bit.
Read back value of this register bit is
always '0'.
tio lic
ca ub
Enable bit.
Read back value of this register bit is
always '0'.
134
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
There is no guarantee that the current
dma transaction will
w
complete. This bit can also be used in
lo
conjunction with
CH1_Status.CH_SUSPENDED to cleanly
al
disable the
channel without losing any data. In this
t
no
case, software first
sets CH1_SUSP bit to 1 and polls
CH1_Status.CH_SUSPENDED till it is set
e
to 1. Software can
ar
then clear CH1_EN bit to 0 to disable
the channel.
n
■ 0: No Channel Suspend Request.
tio
after DW_axi_dmac
ib
conjunction with
CH2_Status.CH_SUSPENDED to cleanly
M a
disable the
M
135
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
until this bit is cleared.
There is no guarantee that the current
w
dma transaction will
complete. This bit can also be used in
lo
conjunction with
al
CH3_Status.CH_SUSPENDED to cleanly
disable the
t
channel without losing any data. In this
no
case, software first
sets CH3_SUSP bit to 1 and polls
e
CH3_Status.CH_SUSPENDED till it is set
ar
to 1. Software can
then clear CH3_EN bit to 0 to disable
n
the channel.
tio
■ 0: No Channel Suspend Request.
■ 1: Request for Channel Suspend.
u
after DW_axi_dmac
sets CH3_Status.CH_SUSPENDED bit to
r
di V
1, to exit the
st
re k-
is disabled.
an M
conjunction with
CH4_Status.CH_SUSPENDED to cleanly
M a
M
disable the
channel without losing any data. In this
case, software first
sets CH4_SUSP bit to 1 and polls
CH4_Status.CH_SUSPENDED till it is set
to 1. Software can
then clear CH4_EN bit to 0 to disable
the channel.
■ 0: No Channel Suspend Request.
■ 1: Request for Channel Suspend.
Software can clear CH4_SUSP bit to 0,
after DW_axi_dmac
sets CH4_Status.CH_SUSPENDED bit to
136
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
transfers from the source gracefully
until this bit is cleared.
w
There is no guarantee that the current
dma transaction will
lo
complete. This bit can also be used in
al
conjunction with
CH5_Status.CH_SUSPENDED to cleanly
t
disable the
no
channel without losing any data. In this
case, software first
e
sets CH5_SUSP bit to 1 and polls
ar
CH5_Status.CH_SUSPENDED till it is set
to 1. Software can
n
then clear CH5_EN bit to 0 to disable
tio
the channel.
■ 0: No Channel Suspend Request.
u
1, to exit the
channel suspend mode.
d il
is disabled.
21 CH6_SUSP R/W Channel-6 Suspend Request. 0x0
n by
CH6_Status.CH_SUSPENDED to cleanly
disable the
channel without losing any data. In this
case, software first
sets CH6_SUSP bit to 1 and polls
CH6_Status.CH_SUSPENDED till it is set
to 1. Software can
then clear CH6_EN bit to 0 to disable
the channel.
■ 0: No Channel Suspend Request.
■ 1: Request for Channel Suspend.
Software can clear CH6_SUSP bit to 0,
after DW_axi_dmac
137
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
all DMA data
transfers from the source gracefully
w
until this bit is cleared.
There is no guarantee that the current
lo
dma transaction will
al
complete. This bit can also be used in
conjunction with
t
CH7_Status.CH_SUSPENDED to cleanly
no
disable the
channel without losing any data. In this
e
case, software first
ar
sets CH7_SUSP bit to 1 and polls
CH7_Status.CH_SUSPENDED till it is set
n
to 1. Software can
tio
then clear CH7_EN bit to 0 to disable
the channel.
■ 0: No Channel Suspend Request.
u
ib
after DW_axi_dmac
st
re k-
conjunction with
CH8_Status.CH_SUSPENDED to cleanly
disable the
channel without losing any data. In this
case, software first
sets CH8_SUSP bit to 1 and polls
CH8_Status.CH_SUSPENDED till it is set
to 1. Software can
then clear CH8_EN bit to 0 to disable
the channel.
■ 0: No Channel Suspend Request.
■ 1: Request for Channel Suspend.
Software can clear CH8_SUSP bit to 0,
138
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
bit is always 0.
25 CH2_SUSP_WE WO This bit is used as a write enable to the 0x0
w
Channel-2 Suspend
bit. The read back value of this register
lo
bit is always 0.
al
26 CH3_SUSP_WE WO This bit is used as a write enable to the 0x0
Channel-3 Suspend
t
bit. The read back value of this register
no
bit is always 0.
27 CH4_SUSP_WE WO This bit is used as a write enable to the 0x0
e
Channel-4 Suspend
ar
bit. The read back value of this register
bit is always 0.
n
28 CH5_SUSP_WE WO This bit is used as a write enable to the 0x0
tio
Channel-5 Suspend
bit. The read back value of this register
u
bit is always 0.
ib
bit is always 0.
30 CH7_SUSP_WE WO This bit is used as a write enable to the 0x0
d il
Channel-7 Suspend
an M
Protocol violation as
DW_axi_dmac does not make sure that
all AXI transfers
initiated on the master interface are
completed.Aborting the
channel is not recommended and
should be used only in
situations where a particular channel
hangs due to no
response from the corresponding AXI
slave interface and
software wants to disable the channel
without resetting the
139
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
CH1_Status.CH_ABORTED bit to 1).
33 CH2_ABORT R/W Channel-2 Abort Request. 0x0
w
Software sets this bit to 1 to request
lo
channel abort. If this bit
is set to 1, DW_axi_dmac disables the
al
channel immediately.
Aborting the channel might result in AXI
t
Protocol violation as
no
DW_axi_dmac does not make sure that
all AXI transfers
e
initiated on the master interface are
ar
completed.Aborting the
channel is not recommended and
n
should be used only in
tio
situations where a particular channel
hangs due to no
u
entire DW_axi_dmac. It is
recommended to try channel
d il
channel aborting.
■ 0: No Channel Abort Request.
n by
the channel is
aborted (when it sets
ca ub
channel immediately.
M
140
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
aborted (when it sets
CH3_Status.CH_ABORTED bit to 1).
w
35 CH4_ABORT R/W Channel-4 Abort Request. 0x0
lo
Software sets this bit to 1 to request
channel abort. If this bit
al
is set to 1, DW_axi_dmac disables the
channel immediately.
t
Aborting the channel might result in AXI
no
Protocol violation as
DW_axi_dmac does not make sure that
e
all AXI transfers
ar
initiated on the master interface are
completed.Aborting the
n
channel is not recommended and
tio
should be used only in
situations where a particular channel
u
hangs due to no
ib
channel immediately.
Aborting the channel might result in AXI
Protocol violation as
DW_axi_dmac does not make sure that
all AXI transfers
initiated on the master interface are
completed.Aborting the
channel is not recommended and
should be used only in
situations where a particular channel
hangs due to no
response from the corresponding AXI
slave interface and
141
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
the channel is
aborted (when it sets
w
CH5_Status.CH_ABORTED bit to 1).
lo
37 CH6_ABORT R/W Channel-6 Abort Request. 0x0
Software sets this bit to 1 to request
al
channel abort. If this bit
is set to 1, DW_axi_dmac disables the
t
channel immediately.
no
Aborting the channel might result in AXI
Protocol violation as
e
DW_axi_dmac does not make sure that
ar
all AXI transfers
initiated on the master interface are
n
completed.Aborting the
tio
channel is not recommended and
should be used only in
u
hangs due to no
response from the corresponding AXI
r
di V
entire DW_axi_dmac. It is
an M
channel aborting.
■ 0: No Channel Abort Request.
tio lic
the channel is
aborted (when it sets
ifi p
142
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
DW_axi_dmac clears this bit to 0 once
the channel is
w
aborted (when it sets
lo
CH7_Status.CH_ABORTED bit to 1).
39 CH8_ABORT R/W Channel-8 Abort Request. 0x0
al
Software sets this bit to 1 to request
channel abort. If this bit
t
is set to 1, DW_axi_dmac disables the
no
channel immediately.
Aborting the channel might result in AXI
e
Protocol violation as
ar
DW_axi_dmac does not make sure that
all AXI transfers
n
initiated on the master interface are
tio
completed.Aborting the
channel is not recommended and
u
entire DW_axi_dmac. It is
recommended to try channel
n by
143
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
46 CH7_ABORT_WE R/W This bit is used to write enable the 0x0
Channel-7 Abort bit.
w
The read back value of this register bit is
lo
always 0.
47 CH8_ABORT_WE R/W This bit is used to write enable the 0x0
al
Channel-8 Abort bit.
The read back value of this register bit is
t
always 0.
no
63:48 RSVD_DMAC_CHENREG RO DMAC_CHENREG Reserved bits
e
ar
DMAC_INTSTATUSREG
Offset Address: 0x030
n
Bits Name Access Description Reset
tio
15:8 Reserved
16 CommonReg_IntStat RO Common Register Interrupt Status Bit.
tio lic
31:17 Reserved
ca ub
DMAC_COMMONREG_INTCLEARREG
ifi p
clear Bit.
This bit is used to clear the
corresponding channel interrupt
status bit
(SLVIF_CommonReg_DEC_ERR_IntStat
in
DMAC_CommonReg_IntStatusReg.
1 Clear_SLVIF_CommonReg_WR2RO_ WO Slave Interface Common Register Write 0x0
ERR_IntStat to Read only Error
Interrupt clear Bit.
This bit is used to clear the
corresponding channel interrupt
144
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
status
bit(SLVIF_CommonReg_RD2WO_ERR_In
w
tStat in
DMAC_CommonReg_IntStatusReg.
lo
3 Clear_SLVIF_CommonReg_WrOnHol WO Slave Interface Common Register Write 0x0
al
d_ERR_IntStat On Hold Error
Interrupt clear Bit.
t
This bit is used to clear the
no
corresponding channel interrupt
status
e
bit(SLVIF_CommonReg_WrOnHold_ERR
ar
_IntStat in
DMAC_CommonReg_IntStatusReg.
n
7:4 Reserved
tio
clear Bit.
ib
status
re k-
bit(SLVIF_UndefinedReg_DEC_ERR_IntSt
at in
d il
an M
DMAC_CommonReg_IntStatusReg.
31:9 Reserved
n by
DMAC_COMMONREG_INTSTATUS_ENA
tio lic
BLEREG
ca ub
corresponding channel
interrupt status bit
(SLVIF_CommonReg_DEC_ERR_IntStat
in DMAC_CommonReg_IntStatusReg.
1 Enable_SLVIF_CommonReg_WR2RO R/W Slave Interface Common Register Write 0x0
_ERR_IntStat to Read only Error
Interrupt Status Enable Bit.
This bit is used to enable the
corresponding channel
interrupt status bit
(SLVIF_CommonReg_WR2RO_ERR_IntSt
at in
DMAC_CommonReg_IntStatusReg.
145
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
3 Enable_SLVIF_CommonReg_WrOnH R/W Slave Interface Common Register Write 0x0
old_ERR_IntStat On Hold Error
w
Interrupt Status Enable Bit.
lo
This bit is used to enable the
corresponding channel
al
interrupt status bit
(SLVIF_CommonReg_WrOnHold_ERR_In
t
tStat in
no
DMAC_CommonReg_IntStatusReg.
7:4 Reserved
e
8 Enable_SLVIF_UndefinedReg_DEC_E R/W Slave Interface Undefined register 0x0
ar
RR_IntStat Decode Error Interrupt
Status enable Bit.
n
This bit is used to enable the
tio
corresponding channel
interrupt status bit
u
(SLVIF_UndefinedReg_DEC_ERR_IntStat
ib
in
DMAC_CommonReg_IntStatusReg.
r
di V
st
31:9 Reserved
re k-
d il
DMAC_COMMONREG_INTSIGNAL_ENA
an M
BLEREG
n by
in
M
DMAC_CommonReg_IntStatusReg) to
generate a port level
interrupt.
1 Enable_SLVIF_CommonReg_WR2RO R/W Slave Interface Common Register Write 0x0
_ERR_IntSignal to Read only Error
Interrupt Signal Enable Bit.
This bit is used to enable the
propagation of corresponding
channel interrupt status bit
(SLVIF_CommonReg_WR2RO_ERR_IntSt
at in
DMAC_CommonReg_IntStatusReg) to
generate a port level
146
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
DMAC_CommonReg_IntStatusReg) to
generate a port level
w
interrupt.
3 Enable_SLVIF_CommonReg_WrOnH R/W Slave Interface Common Register Write 0x0
lo
old_ERR_IntSignal On Hold Error
al
Interrupt Signal Enable Bit.
This bit is used to enable the
t
propagation of corresponding
no
channel interrupt status
bit(SLVIF_CommonReg_WrOnHold_ERR
e
_IntStat in
ar
DMAC_CommonReg_IntStatusReg) to
generate a port level
n
interrupt.
tio
7:4 Reserved
8 Enable_SLVIF_UndefinedReg_DEC_E R/W Slave Interface Undefined register 0x0
u
propagation of corresponding
re k-
at in
DMAC_CommonReg_IntStatusReg) to
generate a port level
n by
interrupt.
31:9 Reserved
tio lic
ca ub
DMAC_COMMONREG_INTSTATUSREG
Offset Address: 0x050
ifi p
Status Bit.
M
147
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
enabling the
channel (required when the interrupt is
w
not enabled).
lo
1 SLVIF_CommonReg_WR2RO_ERR_In RO Slave Interface Common Register Write
tStat to Read Only Error
al
Interrupt Status bit.
This error occurs if write operation is
t
performed to a Read
no
Only register in the common register
space (0x000 to
e
0x0FF).
ar
■ 0: No Slave Interface Write to Read
Only Errors.
n
■ 1: Slave Interface Write to Read Only
tio
Error detected.
Error Interrupt status is generated if the
u
corresponding
ib
to 0 on writing 1 to
the corresponding channel interrupt
d il
clear bit in
an M
DMAC_COMMONREG_INTCLEARREG on
enabling the
n by
performed to a Write
Only register in the common register
od de
space (0x000 to
M a
0x0FF).
M
148
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ 0x0
(Inactive_CommonReg_RD2WO_ERR):
w
No Slave
lo
Interface Read to Write Only Errors
3 SLVIF_CommonReg_WrOnHold_ERR RO Slave Interface Common Register Write
al
_IntStat On Hold Error
Interrupt Status Bit.
t
This error occurs if an illegal write
no
operation is performed on
a common register; this happens if a
e
write operation is
ar
performed on a common register except
DMAC_RESETREG with DMAC_RST field
n
set to 1 when
tio
DW_axi_dmac is in Hold mode.
■ 0: No Slave Interface Common
u
Errors.
■ 1: Slave Interface Common Register
r
di V
st
detected.
Error Interrupt Status is generated if the
d il
corresponding
an M
DMAC_COMMONREG_INTCLEARREG on
enabling the
ifi p
7:4 Reserved
M a
149
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
clear bit in
DMAC_COMMONREG_INTCLEARREG on
w
enabling the
channel (required when the interrupt is
lo
not enabled).
al
31:9 Reserved
t
no
DMAC_RESETREG
Offset Address: 0x058
e
Bits Name Access Description Reset
ar
0 DMAC_RST R/W DMAC Reset Request bit 0x0
Software writes 1 to this bit to reset the
n
DW_axi_dmac and
tio
this bit to 0.
di V
st
0 to this bit.
d il
31:1 Reserved
an M
CHx_SAR
n by
transfer.
Updated after each source transfer. The
ifi p
the address
M a
CHx_DAR
Offset Address: 0x108
Bits Name Access Description Reset
63:0 DAR R/W Current Destination Address of DMA 0x0
transfer.
Updated after each destination transfer.
The DINC fields in
the CHx_CTL register determines
whether the address
150
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
CHx_BLOCK_TS
Offset Address: 0x110
Bits Name Access Description Reset
21:0 BLOCK_TS R/W Block Transfer Size. 0x0
ed
The number programmed into
BLOCK_TS field indicates the
w
total number of data of width
lo
CHx_CTL.SRC_TR_WIDTH to
be transferred in a DMA block transfer.
al
Block Transfer Size = BLOCK_TS+1
t
When the transfer starts, the read-back
no
value is the total
number of data items already read from
the source
e
peripheral, regardless of who is the flow
ar
controller. When the
source or destination peripheral is
n
assigned as the flow
tio
31:22 Reserved
re k-
d il
CHx_CTL
an M
■ 0: AXI master 1
■ 1: AXI Master 2
od de
1 Reserved
M a
ed
is writing data from a
source peripheral FIFO with a fixed
w
address, then set this
lo
field to 'No change'.
■ 0: Increment
al
■ 1: No Change
t
7 Reserved
no
10:8 SRC_TR_WIDTH R/W Source Transfer Width. 0x0
Mapped to AXI bus arsize, this value
e
must be less than or
ar
equal to DMAX_M_DATA_WIDTH.
13:11 DST_TR_WIDTH R/W Destination Transfer Width. 0x0
Mapped to AXI bus awsize, this value
n
must be less than or
tio
equal to DMAX_M_DATA_WIDTH.
17:14 SRC_MSIZE R/W Source Burst Transaction Length. 0x0
u
CHx_CTL.SRC_TR_WIDTH, to be read
r
software handshaking
interface. The maximum value of
n by
DST_MSIZE is limited by
DMAX_CHx_MAX_MULT_SIZE.
21:18 DST_MSIZE R/W Destination Burst Transaction Length. 0x0
tio lic
CHx_CTL.DST_TR_WIDTH, to be written
to the destination
ifi p
152
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
34:32 AR_PROT R/W AXI 'ar_prot' signal 0x0
37:35 AW_PROT R/W AXI 'aw_prot' signal 0x0
w
38 ARLEN_EN R/W Source Burst Length Enable 0x0
lo
If this bit is set to 1, DW_axi_dmac uses
the value of
al
CHx_CTL.ARLEN as AXI Burst length for
source data
t
no
transfer till the extent possible;
remaining transfers use
maximum possible burst length.
e
If this bit is set to 0, DW_axi_dmac uses
ar
any possible value
that is less than or equal to
n
DMAX_CHx_MAX_AMBA_BURST_LENG
tio
TH as AXI Burst
length for source data transfer.
u
TH.
The maximum value of ARLEN is limited
tio lic
by
DMAX_CHx_MAX_AMBA_BURST_LENG
ca ub
TH
47 AWLEN_EN R/W Destination Burst Length Enable 0x0
ifi p
the value of
CHx_CTL.AWLEN as AXI Burst length for
M a
destination data
M
153
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
DMAX_CHx_MAX_AMBA_BURST_LENG
TH.
w
56 SRC_STAT_EN R/W Source Status Enable 0x0
Enable the logic to fetch status from
lo
source peripheral of
al
channel x pointed to by the content of
CHx_SSTATAR
t
register and stores it in CHx_SSTAT
no
register. This value is
written back to the CHx_SSTAT location
e
of linked list at end
ar
of each block transfer if
DMAX_CHx_LLI_WB_EN is set to 1
n
and if linked list based multi-block
tio
transfer is used by either
source or destination peripheral.
57 DST_STAT_EN R/W Destination Status Enable 0x0
u
destination peripheral of
r
di V
CHx_DSTATAR
register and stores it in CHx_DSTAT
d il
Transfer
This bit is used to control the block
od de
transfer completion
interrupt generation on a block by block
M a
154
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Item valid.
Indicates whether the content of
w
shadow register or the
lo
linked list item fetched from the
al
memory is valid.
■ 0: Shadow Register content/LLI is
t
invalid.
no
■ 1: Last Shadow Register/LLI is valid.
e
ar
CHx_CFG
Offset Address: 0x120
n
tio
Bits Name Access Description Reset
1:0 SRC_MULTBLK_TYPE RO Source Multi Block Transfer Type.
u
■ 00: Contiguous
re k-
■ 01: Reload
■ 10: Shadow Register
d il
an M
CHx_SAR register is
od de
155
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
of their shadow
registers (if
w
CHx_CTL.ShadowReg_Or_LLI_Valid bit is
set to
lo
1) or from the linked list (if
al
CTL.ShadowReg_Or_LLI_Valid
bit is set to 1) at the end of every block
t
for multi-block
no
transfers based on the multi-block
transfer type programmed
e
for source and destination peripherals.
ar
Contiguous transfer on both source and
destination
n
peripheral is not a valid multi-block
tio
transfer configuration.
This field does not exist if the
configuration parameter
u
DMAX_CHx_MULTI_BLK_EN is not
ib
Values:
■ 0x0 (CONTINGUOUS): Contiguous
d il
156
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
the CHx_DAR
register is loaded from the content of its
w
shadow register if
CHx_CTL.ShadowReg_Or_LLI_Valid bit is
lo
set to 1 at the
al
end of every block for multi-block
transfers. A new block
t
transfer is then initiated.
no
If the type selected is Linked List, the
CHx_DAR register is
e
loaded from the Linked List if
ar
CTL.ShadowReg_Or_LLI_Valid bit is set
to 1 at the end of
n
every block for multi-block transfers. A
tio
new block transfer is
then initiated.
CHx_CTL and CHx_BLOCK_TS registers
u
of their shadow
st
re k-
registers (if
CHx_CTL.ShadowReg_Or_LLI_Valid bit is
d il
set to
an M
destination
peripheral is not a valid multi-block
od de
transfer configuration.
This field does not exist if the
M a
configuration parameter
M
DMAX_CHx_MULTI_BLK_EN is not
selected; in that case,
the read-back value is always 0.
Values:
■ 0x0 (CONTINGUOUS): Contiguous
Multiblock Type used
for Destination Transfer
■ 0x1 (RELOAD): Reload Multiblock
Type used for
Destination Transfer
■ 0x2 (SHADOW_REGISTER): Shadow
Register based
157
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ Memory to Memory
■ Memory to Peripheral
w
■ Peripheral to Memory
lo
■ Peripheral to Peripheral
al
Flow Control can be assigned to the
DW_axi_dmac, the
t
source peripheral, or hte destination
no
peripheral.
Values:
■ 0x0 (MEM_TO_MEM_DMAC):
e
Transfer Type is memory
ar
to memory and Flow Controller is
DW_axi_dmac
n
■ 0x1 (MEM_TO_PER_DMAC): Transfer
tio
Type is memory to
peripheral and Flow Controller is
u
DW_axi_dmac
ib
Type is peripheral
di V
st
DW_axi_dmac
d il
Type is peripheral
to peripheral and Flow Controller is
n by
DW_axi_dmac
■ 0x4 (PER_TO_MEM_SRC): Transfer
Type is peripheral to
tio lic
peripheral
■ 0x5 (PER_TO_PER_SRC): Transfer
ifi p
Type is peripheral to
peripheral and Flow Controller is Source
od de
peripheral
■ 0x6 (MEM_TO_PER_DST): Transfer
M a
Type is memory to
M
158
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
36 HS_SEL_DST R/W Destination Software or Hardware 0x0
Handshaking Select.
w
This register selects which of the
lo
handshaking interfaces
(hardware or software) is active for
al
destination requests on
this channel.
t
no
■ 0: Hardware handshaking interface.
Software-initiated
transaction requests are ignored.
e
■ 1: Software handshaking interface.
ar
Hardware-initiated
transaction requests are ignored.
n
If the destination peripheral is memory,
tio
Polarity.
■ 0: ACTIVE HIGH
r
di V
st
■ 1: ACTIVE LOW
re k-
■ 0: ACTIVE HIGH
■ 1: ACTIVE LOW
n by
Channelx if the
CHx_CFG.HS_SEL_SRC field is 0;
ca ub
Reset Value = 1
Note: For correct DW_axi_dmac
operation, only one
peripheral (source or destination)
should be assigned to the
same handshaking interface.
43:40 Reserved
44 DST_PER R/W Assigns a hardware handshaking 0x0
interface (0 -
DMAX_NUM_HS_IF-1) to the
destination of Channelx if the
CHx_CFG.HS_SEL_DST field is 0;
otherwise, this field is
159
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
peripheral (source or destination)
should be assigned to the
w
same handshaking interface.
48:45 Reserved
lo
51:49 CH_PRIOR R/W Channel Priority 0x0
al
A priority of 7 is the highest priority, and
0 is the lowest. This
t
no
field must be programmed within the
following range:
0: DMAX_NUM_CHANNELS-1
e
A programmed value outside this range
ar
will cause erroneous
behavior.
n
52 LOCK_CH R/W Channel Lock bit 0x0
tio
bit is asserted,
then no other channels are granted
r
di V
st
master bus
an M
CHx_CFG.LOCK_CH_L.
This field does not exist if the
ca ub
configuration parameter
DMAX_CHx_LOCK_EN is set to False; in
ifi p
160
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ 00: Over complete DMA transfer
■ 01: Over DMA block transfer
w
■ 1x: Reserved
lo
This field does not exist if the
configuration parameter
al
DMAX_CHx_LOCK_EN is set to False; in
that case, the
t
no
read-back value is always 0.
58:55 SRC_OSR_LMT R/W Source Outstanding Request Limit 0x0
■ Maximum outstanding request
e
supported is 16.
ar
■ Source Outstanding Request Limit =
SRC_OSR_LMT + 1
n
62:59 DST_OSR_LMT R/W Destination Outstanding Request Limit 0x0
tio
DST_OSR_LMT + 1
r
63 Reserved
di V
st
re k-
CHx_LLP
d il
an M
■ 1: AXI Master 2
This field does not exist if the
od de
configuration parameter
DMAX_CHx_LMS is not set to
M a
M
NO_HARDCODE.
5:1 Reserved
63:6 LOC R/W Starting Address Memory of LLI block 0x0
Starting Address In Memory of next LLI
if block chaining is
enabled. The six LSBs of the starting
address are not stored
because the address is assumed to be
aligned to a 64-byte
boundary.
LLI access always uses the burst size
(arsize/awsize) that is
same as the data bus width and cannot
161
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
one AXI burst if the burst length is not
limited by other
w
settings.
lo
CHx_STATUSREG
al
Offset Address: 0x130
t
no
Bits Name Access Description Reset
21:0 CMPLTD_BLK_TFR_SIZE RO Completed Block Transfer Size.
This bit indicates the total number of
e
data of width
ar
CHx_CTL.SRC_TR_WIDTH transferred for
the previous
n
block transfer.
tio
31:22 Reserved
46:32 DATA_LEFT_IN_FIFO RO Data Left in FIFO.
u
data left in
r
block transfer.
d il
63:47 Reserved
an M
CHx_SWHSSRCREG
n by
Channel Source.
This bit is used to request dma source
ifi p
data transfer if
software handshaking method is
od de
162
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
depends on whether the peripheral is
the flow controller.
w
3 SWHS_SGLREQ_SRC_WE WO Write Enable bit for Software 0x0
Handshake Single Request for
lo
Channel Source.
al
4 SWHS_LST_SRC R/W Software Handshake Last Request for 0x0
Channel Source.
t
This bit is used to request LAST dma
no
source data transfer if
software handshaking method is
e
selected for the source of
ar
the corresponding channel.
This bit is ignored if software
n
handshaking is not enabled for
tio
the source of the Channelx or if the
source of Channelx is
not the flow controller.
u
ib
Channel Source.
st
re k-
31:6 Reserved
d il
an M
CHx_SWHSDSTREG
Offset Address: 0x140
n by
Channel Destination.
This bit is used to request dma
ca ub
Channel Destination.
2 SWHS_SGLREQ_DST R/W Software Handshake Single Request for 0x0
Channel
Destination.
This bit is used to request SINGLE (AXI
burst length = 1)
dma destination data transfer if
software handshaking
method is selected for the destination
of the corresponding
channel.
3 SWHS_SGLREQ_DST_WE WO Write Enable bit for Software 0x0
Handshake Single Request for
163
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
5 SWHS_LST_DST_WE WO Write Enable bit for Software 0x0
Handshake Last Request for
w
Channel Destination.
lo
31:6 Reserved
al
CHx_BLK_TFR_RESUMEREQREG
t
no
Offset Address: 0x148
Bits Name Access Description Reset
0 BLK_TFR_RESUMEREQ WO Block Transfer Resume Request during 0x0
e
ar
Linked-List or
Shadow-Register-based multi-block
transfer.
n
31:1 Reserved
u tio
CHx_AXI_IDREG
ib
of AXI3/AXI4 master
interface.
15 Reserved
n by
of AXI3/AXI4 master
interface.
ca ub
31 Reserved
ifi p
CHx_AXI_QOSREG
od de
CHx_SSTAT
Offset Address: 0x160
Bits Name Access Description Reset
164
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
CHx_DSTAT
ed
Offset Address: 0x168
Bits Name Access Description Reset
w
31:0 DSTAT RO Destination Status
lo
Destination status information retrieved
by hardware from
al
the address pointed to by the contents
t
of the CHx_DSTATAR
no
register.
CHx_SSTATAR
e
ar
Offset Address: 0x170
Bits Name Access Description Reset
n
63:0 SSTATAR R/W Source Status Fetch Address 0x0
tio
CHx_SSTAT register
r
DMAX_CHx_LLI_WB_EN
an M
source status
ca ub
CHx_DSTATAR
M a
165
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
CHx_INTSTATUS_ENABLEREG
w
Offset Address: 0x180
lo
Bits Name Access Description Reset
0 Enable_BLOCK_TFR_DONE_IntStat R/W Block Transfer Done Interrupt Status 0x0
al
Enable.
t
0: Disable the generation of Block
no
Transfer Done Interrupt
in CHx_INTSTATUSREG
1: Enable the generation of Block
e
Transfer Done Interrupt
ar
in CHx_INTSTATUSREG
1 Enable_DMA_TFR_DONE_IntStat R/W DMA Transfer Done Interrupt Status 0x0
n
Enable.
tio
in CHx_INTSTATUSREG
ib
in CHx_INTSTATUSREG
re k-
2 Reserved
d il
Enable.
0: Disable the generation of Source
n by
Transaction
Complete Interrupt in
CHx_INTSTATUSREG
tio lic
Transaction Complete
Interrupt in CHx_INTSTATUSREG
ifi p
complete Interrupt in
M
CHx_INTSTATUSREG
1: Enable the generation of Destination
Transaction
complete Interrupt in
CHx_INTSTATUSREG
5 Enable_SRC_DEC_ERR_IntStat R/W Source Decode Error Status Enable. 0x0
0: Disable the generation of Source
Decode Error
Interrupt in CHx_INTSTATUSREG
1: Enable the generation of Source
Decode Error
Interrupt in CHx_INTSTATUSREG
6 Enable_DST_DEC_ERR_IntStat R/W Destination Decode Error Status Enable. 0x0
166
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
in CHx_INTSTATUSREG
1: Enable the generation of Source Slave
w
Error Interrupt
in CHx_INTSTATUSREG
lo
8 Enable_DST_SLV_ERR_IntStat R/W Destination Slave Error Status Enable. 0x0
al
0: Disable the generation of Destination
Slave Error
t
Interrupt in CHx_INTSTATUSREG
no
1: Enable the generation of Destination
Slave Error
e
Interrupt in CHx_INTSTATUSREG
ar
9 Enable_LLI_RD_DEC_ERR_IntStat R/W LLI Read Decode Error Status Enable. 0x0
0: Disable the generation of LLI Read
n
Decode Error
tio
Interrupt in CHx_INTSTATUSREG
1: Enable the generation of LLI Read
u
Decode Error
ib
Interrupt in CHx_INTSTATUSREG
10 Enable_LLI_WR_DEC_ERR_IntStat R/W LLI WRITE Decode Error Status Enable. 0x0
r
di V
Decode Error
Interrupt in CHx_INTSTATUSREG
d il
Decode Error
Interrupt in CHx_INTSTATUSREG
n by
Slave Error
Interrupt in CHx_INTSTATUSREG
ca ub
in CHx_INTSTATUSREG
12 Enable_LLI_WR_SLV_ERR_IntStat R/W LLI WRITE Slave Error Status Enable. 0x0
od de
Interrupt in CHx_INTSTATUSREG
1: Enable the generation of LLI WRITE
Slave Error
Interrupt in CHx_INTSTATUSREG
13 Enable_SHADOWREG_OR_LLI_INVA R/W Shadow register or LLI Invalid Error 0x0
LID_ERR_IntStat Status Enable.
0: Disable the generation of Shadow
Register or LLI
Invalid Error Interrupt in
CHx_INTSTATUSREG
1: Enable the generation of Shadow
Register or LLI
Invalid Error Interrupt in
167
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
type Error Interrupt in
CHx_INTSTATUSREG
w
15 Reserved
lo
16 Enable_SLVIF_DEC_ERR_IntStat R/W Slave Interface Decode Error Status 0x0
Enable.
al
0: Disable the generation of Slave
Interface Decode Error
t
no
Interrupt in CHx_INTSTATUSREG
1: Enable the generation of Slave
Interface Decode Error
e
Interrupt in CHx_INTSTATUSREG
ar
17 Enable_SLVIF_WR2RO_ERR_IntStat R/W Slave Interface Write to Read Only Error 0x0
Status Enable.
n
0: Disable the generation of Slave
tio
CHx_INTSTATUSREG
ib
CHx_INTSTATUSREG
18 Enable_SLVIF_RD2RWO_ERR_IntSta R/W Slave Interface Read to write Only Error 0x0
d il
an M
t Status Enable.
0: Disable the generation of Slave
Interface Read to Write
n by
Interface Write On
Channel enabled Error Interrupt in
CHx_INTSTATUSREG
1: Enable the generation of Slave
Interface Write On
Channel enabled Error Interrupt in
CHx_INTSTATUSREG
20 Enable_SLVIF_SHADOWREG_WRON R/W Shadow Register Write On Valid Error 0x0
_VALID_ERR_IntStat Status Enable.
0: Disable the generation of Shadow
Register Write On
Valid Error Interrupt in
CHx_INTSTATUSREG
168
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
CHx_INTSTATUSREG
1: Enable the generation of Slave
w
Interface Write On Hold
Error Interrupt in CHx_INTSTATUSREG
lo
26:22 Reserved
al
27 Enable_CH_LOCK_CLEARED_IntStat R/W Channel Lock Cleared Status Enable. 0x0
0: Disable the generation of Channel
t
no
LOCK CLEARED
Interrupt in CHx_INTSTATUSREG
1: Enable the generation of Channel
e
LOCK CLEARED
ar
Interrupt in CHx_INTSTATUSREG
28 Enable_CH_SRC_SUSPENDED_IntSta R/W Channel Source Suspended Status 0x0
n
t Enable.
tio
Interrupt in CHx_INTSTATUSREG
ib
Interrupt in CHx_INTSTATUSREG
re k-
Suspended
Interrupt in CHx_INTSTATUSREG
1: Enable the generation of Channel
n by
Suspended Interrupt
in CHx_INTSTATUSREG
tio lic
Disabled Interrupt in
CHx_INTSTATUSREG
ifi p
Disabled Interrupt in
CHx_INTSTATUSREG
M a
CHx_INTSTATUS
Offset Address: 0x188
Bits Name Access Description Reset
0 BLOCK_TFR_DONE_IntStat RO Block Transfer Done.
This indicates to the software that the
169
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
channel interrupt clear bit in
CHx_IntClearReg register.
w
1 DMA_TFR_DONE_IntStat RO DMA Transfer Done.
lo
This indicates to the software that the
DW_axi_dmac has
al
completed the requested DMA transfer.
The DW_axi_dmac sets this bit to 1
t
along with setting
no
CHx_INTSTATUS.BLOCK_TFR_DONE bit
to 1 when the last
e
block transfer is completed.
ar
0: DMA Transfer not completed.
1: DMA Transfer Completed
n
This bit is cleared to 0 on writing 1
tio
2 Reserved
3 SRC_TRANSCOMP_IntStat RO Source Transaction Completed.
u
the corresponding
channel interrupt clear bit in
r
di V
st
CHx_IntClearReg register or on
re k-
from
interconnect/slave. This error condition
causes the
DW_axi_dmac to disable the
corresponding channel
gracefully; the DMAC_ChEnReg.CH_EN
bit corresponding
to the channel which received the error
is set to 0.
0: No Source Decode Errors.
1: Source Decode Error detected.
6 DST_DEC_ERR_IntStat RO Destination Decode Error.
Decode Error detected by Master
170
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
gracefully; the DMAC_ChEnReg.CH_EN
bit corresponding
w
to the channel which received the error
is set to 0.
lo
0: No destination Decode Errors.
al
1: Destination Decode Error Detected
7 SRC_SLV_ERR_IntStat RO Source Slave Error.
t
Slave Error detected by Master Interface
no
during source data
transfer. This error occurs if the slave
e
interface from which
ar
the data is read issues a Slave Error. This
error condition
n
causes the DW_axi_dmac to disable the
tio
corresponding
channel gracefully; the
DMAC_ChEnReg.CH_EN bit
u
to 0.
st
re k-
to 0.
M
171
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
operation. This error occurs if the access
is to invalid
w
address and a Decode Error is returned
from
lo
interconnect/slave. This error condition
al
causes the
DW_axi_dmac to disable the
t
corresponding channel
no
gracefully; the DMAC_ChEnReg.CH_EN1
bit which received
e
the error is set to 0.
ar
0: NO LLI Write Decode Errors.
1: LLI write Decode Error detected.
n
11 LLI_RD_SLV_ERR_IntStat RO LLI Read Slave Error.
tio
Slave Error detected by Master Interface
during LLI read
operation. This error occurs if the slave
u
interface on which
ib
interface on
which LLI resides issues a Slave Error.
od de
corresponding
M
172
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
valid Shadow Register availability.
In the case of LLI pre-fetching,
w
ShadowReg_Or_LLI_Invalid_ERR
Interrupt is not generated
lo
even if ShadowReg_Or_LLI_Valid bit is
al
seen to be 0 for the
pre-fetched LLI. In this case,
t
DW_axi_dmac re-attempts the
no
LLI fetch operation after completing the
current block transfer
e
and generates
ar
ShadowReg_Or_LLI_Invalid_ERR
Interrupt n
only if ShadowReg_Or_LLI_Valid bit is
tio
still seen to be 0.
0: No Shadow Register / LLI Invalid
errors.
u
detected.
r
di V
and
DST_MLTBLK_TYPE) is invalid. This error
n by
condition causes
the DW_axi_dmac to halt the
corresponding channel
tio lic
the corresponding
channel error interrupt mask bit is set to
ifi p
CHx_BLK_TFR_ResumeReqReg to
indicate valid multiblock
M a
173
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Errors.
1: Slave Interface Write to Read Only
w
Error detected.
18 SLVIF_RD2RWO_ERR_IntStat RO Slave Interface Read to write Only Error.
lo
This error occurs if read operation is
al
performed to a Write
Only register.
t
0: No Slave Interface Read to Write Only
no
Errors.
1: Slave Interface Read to Write Only
e
Error detected.
ar
19 SLVIF_WRONCHEN_ERR_IntStat RO Slave Interface Write On Channel
Enabled Error.
n
This error occurs if an illegal write
tio
operation is performed on
a register; this happens if a write
u
operation is performed on a
ib
the DW_axi_dmac
specification.
d il
Enabled Errors.
1: Slave Interface Write On Channel
n by
Enabled Error
detected.
tio lic
based multi-block
transfer is enabled and software tries to
ifi p
CHx_CTL.ShadowReg_Or_LLI_Valid bit is
1.
M a
Write On Valid
Errors.
1: Slave Interface Shadow Register Write
On Valid Error
detected.
21 SLVIF_WRONHOLD_ERR_IntStat RO Slave Interface Write On Hold Error.
This error occurs if an illegal write
operation is performed on
a register; this happens if a write
operation is performed on a
channel register when DW_axi_dmac is
in Hold mode.
174
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
is cleared.
0: Channel locking is not cleared.
w
1: Channel locking is cleared.
lo
28 CH_SRC_SUSPENDED_IntStat RO Channel Source Suspended.
This indicates to the software that the
al
corresponding channel
source data transfer in DW_axi_dmac is
t
no
suspended.
0: Channel source is not suspended
1: Channel Source is suspended.
e
29 CH_SUSPENDED_IntStat RO Channel Suspended.
ar
This indicates to the software that the
corresponding channel
n
in DW_axi_dmac is suspended.
tio
in DW_axi_dmac is disabled.
re k-
generated if
the corresponding bit in
CHx_INTSTATUS_ENABLEReg
n by
is enabled.
31 CH_ABORTED_IntStat RO Channel Aborted.
tio lic
in DW_axi_dmac is aborted.
0: Channel is not aborted
ifi p
1: Channel is aborted
od de
CHx_INTSIGNAL_ENABLEREG
M a
M
ed
2 Reserved
3 Enable_SRC_TRANSCOMP_IntSignal R/W Source Transaction Completed Signal 0x0
w
Enable.
lo
0: Disable the propagation of Source
Transaction
al
Complete Interrupt to generate a port
level interrupt
t
no
1: Enable the propagation of Source
Transaction
Complete Interrupt to generate a port
e
level interrupt
ar
4 Enable_DST_TRANSCOMP_IntSignal R/W Destination Transaction Completed 0x0
Signal Enable.
n
0: Disable the propagation of
tio
Destination Transaction
complete Interrupt to generate a port
u
level interrupt
ib
level interrupt
5 Enable_SRC_DEC_ERR_IntSignal R/W Source Decode Error Signal Enable. 0x0
d il
an M
interrupt
1: Enable the propagation of Source
tio lic
Decode Error
Interrupt to generate a port level
ca ub
interrupt
6 Enable_DST_DEC_ERR_IntSignal R/W Destination Decode Error Signal Enable. 0x0
ifi p
interrupt
M
176
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Decode Error
Interrupt to generate a port level
w
interrupt
1: Enable the propagation of LLI Read
lo
Decode Error
al
Interrupt to generate a port level
interrupt
t
10 Enable_LLI_WR_DEC_ERR_IntSignal R/W LLI WRITE Decode Error Signal Enable. 0x0
no
0: Disable the propagation of LLI WRITE
Decode Error
e
Interrupt to generate a port level
ar
interrupt
1: Enable the propagation of LLI WRITE
n
Decode Error
tio
Interrupt to generate a port level
interrupt
11
u
interrupt
1: Enable the propagation of LLI Read
d il
Slave Error
an M
Slave Error
Interrupt to generate a port level
ca ub
interrupt
1: Enable the propagation of LLI WRITE
ifi p
Slave Error
Interrupt to generate a port level
od de
interrupt
13 Enable_SHADOWREG_OR_LLI_INVA R/W Shadow register or LLI Invalid Error 0x0
M a
M
177
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0: Disable the propagation of Slave
Interface Decode
w
Error Interrupt to generate a port level
lo
interrupt
1: Enable the propagation of Slave
al
Interface Decode
Error Interrupt to generate a port level
t
no
interrupt
17 Enable_SLVIF_WR2RO_ERR_IntSign R/W Slave Interface Write to Read Only Error 0x0
al Signal Enable.
e
0: Disable the propagation of Slave
ar
Interface Write to
Read only Error Interrupt to generate a
n
port level interrupt
tio
port level
interrupt
r
di V
st
Interface Read to
Write only Error Interrupt to generate a
port level interrupt
n by
interrupt
19 Enable_SLVIF_WRONCHEN_ERR_Int R/W Slave Interface Write On Channel 0x0
ifi p
Enable.
0: Disable the propagation of Slave
M a
Interface Write On
M
178
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Hold Error Interrupt to generate a port
level interrupt
w
1: Enable the propagation of Slave
Interface Write On
lo
Hold Error Interrupt to generate a port
al
level interrupt
26:22 Reserved
t
no
27 Enable_CH_LOCK_CLEARED_IntSign R/W Channel Lock Cleared Signal Enable. 0x0
al 0: Disable the propagation of Channel
Lock Cleared
e
Interrupt to generate a port level
ar
interrupt
1: Enable the propagation of Channel
n
Lock Cleared
tio
nal Enable.
0: Disable the propagation of Channel
r
di V
st
Source
re k-
interrupt
29 Enable_CH_SUSPENDED_IntSignal R/W Channel Suspended Signal Enable. 0x0
tio lic
Suspended
Interrupt to generate a port level
M a
interrupt
M
179
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
CHx_INTCLEARREG
Offset Address: 0x198
Bits Name Access Description Reset
0 Clear_BLOCK_TFR_DONE_IntStat WO Block Transfer Done Interrupt Clear Bit. 0x0
This bit is used to clear the
corresponding channel interrupt
ed
status bit in CH1_INTSTATUSREG
1 Clear_DMA_TFR_DONE_IntStat WO DMA Transfer Done Interrupt Clear Bit. 0x0
w
This bit is used to clear the
lo
corresponding channel interrupt
status bit in CHx_INTSTATUSREG.
al
2 Reserved
t
3 Clear_SRC_TRANSCOMP_IntStat WO Source Transaction Completed Interrupt 0x0
no
Clear Bit.
This bit is used to clear the
corresponding channel interrupt
e
ar
status bit in CHx_INTSTATUSREG.
4 Clear_DST_TRANSCOMP_IntStat WO Destination Transaction Completed 0x0
Interrupt Clear Bit.
n
This bit is used to clear the
tio
Clear Bit.
an M
Bit.
This bit is used to clear the
od de
Bit.
This bit is used to clear the
corresponding channel interrupt
status bit in CHx_INTSTATUSREG.
10 Clear_LLI_WR_DEC_ERR_IntStat WO LLI WRITE Decode Error Interrupt Clear 0x0
Bit.
This bit is used to clear the
corresponding channel interrupt
status bit in CHx_INTSTATUSREG.
11 Clear_LLI_RD_SLV_ERR_IntStat WO LLI Read Slave Error Interrupt Clear Bit. 0x0
This bit is used to clear the
corresponding channel interrupt
180
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
status bit in CHx_INTSTATUSREG.
14 Clear_SLVIF_MULTIBLKTYPE_ERR_In WO Slave Interface Multi Block type Error 0x0
w
tStat Interrupt Clear Bit.
lo
This bit is used to clear the
corresponding channel interrupt
al
status bit in CHx_INTSTATUSREG.
15 Reserved
t
no
16 Clear_SLVIF_DEC_ERR_IntStat WO Slave Interface Decode Error Interrupt 0x0
Clear Bit.
This bit is used to clear the
e
corresponding channel interrupt
ar
status bit in CHx_INTSTATUSREG.
17 Clear_SLVIF_WR2RO_ERR_IntStat WO Slave Interface Write to Read Only Error 0x0
n
Interrupt Clear Bit.
tio
181
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
status bit in CHx_INTSTATUSREG.
31 Reserved
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
182
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
3.7 Timer
3.7.1 Overview
ed
The system is equipped with 8 timer modules. It can be used as a timing or counting
w
function, which can provide application program for timing and counting, and can also
lo
provide operating system for implementing system clock.
al
3.7.2 Characteristics
t
no
The timer has the following characteristics:
e
ar
32bit count down timer / counter. n
Support two counting modes: free running mode and user-defined
tio
counting mode
u
Timer is based on a 32 bit count down counter. The value of the counter is subtracted
n by
by 1 on each rising edge of the counting clock. When the counter is counting down to
tio lic
183
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
be loaded.
3.7.4.1 Initialization
ed
Step 1 Write TimerNLoadCount (N = 1 ~ 8) register to load the initial counter value for
timer.
w
lo
Step 2 Set TimerNControlReg [2:0] (N = 1 ~ 8) register, select timer counting mode,
al
mask timer interrupt and enable timer to start counting down.
t
no
3.7.4.2 Interupt processing
e
When the timer generates an interrupt, the operation steps are as follows:
ar
Step 1 read TimerNEOI (N = 1 ~ 8) register and clear timerN interrupt.
n
tio
The system timer can use either a 25MHz or 32KHz clock for counting, which can be
an M
184
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
the component.
w
lo
al
t
3.7.6 Timer register description
no
e
Timer1LoadCount
ar
n
tio
Offset Address: 0x000
Bits Name Access Description Reset
u
timer.
an M
Timer1CurrentValue
n by
Timer1ControlReg
Offset Address: 0x008
Bits Name Access Description Reset
2:0 Timer1ControlReg R/W [2] Timer interrupt mask for Timer1 0x0
0 – not masked
1 – masked
185
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Timer1EOI
Offset Address: 0x00c
Bits Name Access Description Reset
ed
0 Timer1EOI RO Reading from this register returns all
zeroes (0) and clears the interrupt from
w
Timer1.
31:1 Reserved
lo
al
Timer1IntStatus
t
Offset Address: 0x010
no
Bits Name Access Description Reset
0 Timer1IntStatus RO Contains the interrupt status for Timer1.
e
31:1 Reserved
ar
n
TimersIntStatus
tio
31:8 Reserved
tio lic
TimersEOI
ca ub
TimersRawIntStatus
Offset Address: 0x0a8
Bits Name Access Description Reset
7:0 TimersRawIntStatus RO The register contains the unmasked
interrupt status of all timers.
0 – either timer_intr or timer_intr_n is
not active prior to masking
1 – either timer_intr or timer_intr_n is
active prior to masking
31:8 Reserved
186
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
3.8 Watchdog
3.8.1 Overview
ed
The system is equipped with a watchdog module. It is used to send interrupt or reset
w
signal to interrupt or reset the whole system after a certain time when the system is
lo
abnormal.
al
t
3.8.2 Charateristics
no
e
WatchDog has the following characteristics:
ar
a 32bit configurable decrement counter. n
The initial counter value (i.e. timeout period) can be configured.
tio
The system configures watchdog registers through system bus. In order to monitor
tio lic
system operation, watchdog regularly sends WDT_INTR interrupt request to the system,
ca ub
and WDT_SYS_RST signal is sent out to reset the system when the system does not
ifi p
187
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
The initial counter value of watchdog is loaded by register WDT_TORR and working
based on a 32bit decrement counter. When the watchdog clock is enabled, the counter
tio lic
value is subtracted by 1 on each rising edge of the counting clock. When the counter is
ca ub
decremented to 0, watchdog will generate an interrupt. Then, at the next rising edge of
ifi p
the counting clock, the counter starts to reload the initial counter value from the
od de
If the CPU has not cleared the watchdog interrupt when the counter value is
decremented to 0 for the second time, the Watchdog will send a reset signal
WDT_SYS_RST, the counter stops counting. The user can set the register WDT_CR[1] to
decides whether to send the reset signal WDT_SYS_RST immediately when the counter
value is decremented to 0 for the first time.
188
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The Watchdog counting clock can be either 25MHz or 32KHz. Use the "reg_wdt_clk_sel"
to select.
ed
3.8.4.2 System initialization configuration
w
lo
After the system is powered on and reset, the watchdog counter is in the stop counting
al
state, and it needs to be initialized and enabled during the system initialization. The
t
no
initialization process of watchdog is as follows:
Step 1 write register WDT_TORR, set the initial value of watchdog counter.
e
ar
Step 2 write register WDT_CR[1], set the watchdog counter timeout response mode.
n
Step 3 write register WDT_CR[0], start watchdog counting.。
tio
After receiving the interrupt from watchdog, the system should clear its interrupt status
di V
st
re k-
in time.
d il
0 : WDT close。
M a
1 : WDT startup. Only system reset can shut down WDT after startup.
M
The WDT registers are accessed through the bus. The four base addresses for the WDT
are:
WDT0 : 0x03010000
WDT1 : 0x03011000
189
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
WDT2 : 0x03012000
RTCSYS_WDT : 0x0502D000
ed
Table 3- 8 WDT register overview (address 0x03010000)
w
Name Address Description
lo
Offset
al
WDT_CR 0x000 Control register
WDT_TORR 0x004 Timeout range register
t
WDT_CCVR 0x008 Current counter value register
no
WDT_CRR 0x00c Counter restart register
WDT_STAT 0x010 Interrupt status register
WDT_EOI 0x014 Interrupt clear register
e
ar
WDT_TOC 0x01C Time Out Count
n
tio
WDT_CR
an M
190
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0 = WDT disabled.
1 = WDT enabled.
w
6 TOR_MODE R/W The Mode of Timeout Period 0x0
lo
7 ITOR_MODE R/W The Mode of Timeout Period for 0x0
al
initialization
31:5 Reserved
t
no
WDT_TORR
Offset Address: 0x004
e
Bits Name Access Description Reset
ar
3:0 WDT_TORR R/W [3:0] TOP(TimeOut Period). 0x0
This field is used to select the timeout
n
period from which the watchdog
tio
TOR_MODE = 0
T = 2^(16 + WDT_TORR)
ca ub
TOR_MODE = 1
T = WDT_TOC <<( WDT_TORR +1)
ifi p
od de
T = 2^(16 + WDT_ITORR)
M
ITOR_MODE = 1
T = WDT_TOC <<( WDT_ITORR +1)
31:4 Reserved
WDT_CCVR
Offset Address: 0x008
Bits Name Access Description Reset
31:0 WDT_CCVR RO This register, when read, is the current
value of the internal counter.
191
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
WDT_CRR
Offset Address: 0x00c
Bits Name Access Description Reset
7:0 WDT_CRR R/W [7:0] Counter Restart Register 0x0
This register is used to restart the WDT
counter. As a safety feature to prevent
accidental restarts, the value 0x76 must
be written. A restart also clears the
WDT interrupt. Reading this register
returns zero.
ed
31:8 Reserved
w
WDT_STAT
lo
Offset Address: 0x010
al
Bits Name Access Description Reset
0 WDT_STAT RO [0] Interrupt Status Register
t
no
This register shows the interrupt status
of the WDT.
1 = Interrupt is active regardless of
e
polarity.
ar
0 = Interrupt is inactive.
31:1 Reserved
n
tio
WDT_EOI
Offset Address: 0x014
u
ib
31:1 Reserved
an M
n by
WDT_TOC
Offset Address: 0x01C
tio lic
3.9.1 Overview
Real time clock (RTC) is an independent power domain block in the chip. It contains a
32KHz oscillator and a Power-on-reset (POR) module and can be used for date clock
display and alarm clock generation. In addition, the internal hardware finite state
192
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
machine provides the timing sequence control for triggering chip Power-on, Power-off
and system reset.
3.9.2 Features
ed
Provide system reset source
w
lo
Provide 32768 Hz clock source (mismatch < ± 1%)
al
Provide a 32-bit second counter and hardware calibration circuit, which can
t
achieve a second accuracy level of 5ppm.
no
Supports alarm clock configuration and generates alarm interrupt.
e
Provides 2KB SRAM space for storing software code or temporary data
ar
Supports battery low voltage detection and generates interrupt.
n
Supports waking up the chip from sleep by pressing a button.
tio
1970~2106 year).
n by
tio lic
RTC is an always-on power domain module. When RTC is powered-on at the first time,
od de
its POR circuit will generate a low-level pulse, and then the 32KHz oscillator starts to
M a
M
vibrate. After POR turns to high level, RTC enters the initial state and waits for event
trigger.
When the state machine detects that the battery voltage is in a normal state, it starts to
complete the chip power-on process according to the default timing and release the
system reset signal. The software needs to initialize the RTC and configure the initial
count value after the first boot. When the system needs to shut down or enter sleep
mode, the RTC state machine can be triggered to complete the chip power-off process
193
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
When chip is at power-off or sleep-mode state, RTC will still keep operating and the
necessary software code or user data can be stored in RTC SRAM and also information
register (RTC_INFO0~3, RTC_NOPOR_INFO0~3); The second counter will keep counting,
ed
and at the same time the state machine keep detecting any key event trigger chip
w
power-on or wake-up from sleep. After system resumes or reboots, software can judge
lo
the chip status by reading back RTC status registers or the contents written into
al
information registers previously. Two status registers (RTC_ST_ON_REASON,
t
no
RTC_ST_OFF_REASON) are provided to record the triggering condition of last time chip
happens power-down, power-up, or reset respectively. It can provide more detail
e
ar
information, such as whether unexpected events have occurred like force reset, chip
overheat (thermal shutdown), or battery low, power supply drop, etc. In addition, RTC
n
tio
The RTC second counter is counting by 32KHz clock and is based on a 32-bit adder. The
r
di V
st
value can be converted into specific year, month, day, hour and minutes.
d il
an M
n by
The 32KHz clock and the second pulse period can be calibrated through a software
process or by enabling a hardware module to perform automatic calibration
tio lic
periodically.
ca ub
ifi p
Software can specify the alarm time by configuring the 32-bit register
od de
In addition, RTC provides battery low-voltage detection function. When the battery
voltage is lower than a certain level, an interrupt will be generated. Software can
immediately execute the shutdown procedure and trigger RTC to complete the power-
down process after receiving the interrupt in order to prevent abnormal errors happen.
194
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
3.9.4 Operation
ed
The maximum counting time of RTC second counter is:
2^32 = 49710 days = 136 years
w
lo
al
3.9.4.2 Reset RTC
t
no
RTC serves as the power-on and power-off control unit of the chip, and it cannot be
e
reset separately by software. Except for the POR at the first power-on, it supports
ar
forcing a full chip reset (including RTC) via the RSTN button in case of an exception.
n
tio
After the RSTN button is released, all RTC registers will return to their default values, and
the state machine will return to the initial state. If the state machine detects that the
u
ib
battery voltage is in a normal state, it will begin to complete the chip power-on process
r
di V
st
and release the system reset signal according to the default timing.
re k-
d il
System needs to initialize RTC after chip is powered-on first time. The 32KHz clock and
second time period need to be calibrated flirtly. The calibration circuit uses 25MHz
tio lic
crystal clock to sample 32KHz clock. In coarse tune mode, the 25MHz crystal clock
ca ub
samples one 32KHz clock cycle period and report the counting results. Then software
ifi p
32KHz clock rate depending on the counting results to improve the accuracy of 32KHz
M a
M
clock. The fine tune procedure can be further proceed after coarse tune complete. Uses
25MHz crystal clock to sample 256 32KHz clock cycles by default. Then software
calculates the average value according to the counting result to obtain the number of
pulses required for counting one second by 32KHz clock. The average value needs to be
write to the register RTC_SEC_PULSE_GEN_INT and RTC_SEC_PULSE_GEN_FRAC to
complete the second calibration process.
ed
RTC_FC_COARSE_EN to 0.
w
4. Read RTC_FC_COARSE_VALUE to obtain the count of one 32KHz clock cycle sampled
lo
by the 25MHz clock.
al
if (RTC_FC_COARSE_VALUE > 770) FTUNE = FTUNE + offset;
t
no
if (RTC_FC_COARSE_VALUE < 755) FTUNE = FTUNE - offset;
Write the FTUNE value back to the RTC_ANA_CALIB register.
e
ar
offset = offset >> 1;
5. When the value of RTC_FC_COARSE_VALUE is between 755 and 770, the accuracy of
n
tio
the 32KHz clock has reached within ±1% of 32,768Hz, and coarse tuning is completed.
Otherwise, wait for 0.5ms and repeat steps 3-5, up to a maximum of 8 times.
u
r ib
di V
st
re k-
2. Poll the value of RTC_FC_FINE_TIME until it is greater than the previous read value.
ca ub
3. Read RTC_FC_FINE_VALUE to obtain the count of 256 32KHz clock cycles sampled by
ifi p
4. The frequency of the 32KHz clock can be obtained from the following equation:
M a
196
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC needs to be further initialized after clock calibration. Only the necessary
initialization are listed below. Most of the other parameter registers need to be
ed
configured only when the timing intervals of power sequence needs to be optimized.
w
Otherwise, they are generally recommended to use the default value.
lo
al
1. Configure the RTC_POR_DB_MAGIC_KEY register with the value 0x5AF0 to enable
t
no
power-on reset (POR) debounce and prevent false triggering of POR caused by brief
voltage drops in the RTC module power supply. The debounce time is about 1ms.
e
ar
2. Set the RTC_SET_SEC_CNTR_VALUE register to initialize the RTC time counter.
n
tio
3. Write 1 to RTC_SET_SEC_CNTR_TRIG to load the initial counter value into the RTC
u
ib
second counter.
r
di V
st
re k-
4. Poll the RTC_SEC_CNTR_VALUE register until the read value equals the value in
d il
an M
RTC_SET_SEC_CNTR_VALUE.
n by
the battery voltage drops below the threshold value. The threshold value can be
ifi p
6. After the first power-on, the RTC subsystem must be configured by setting the
M
197
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
automatically power up when the chip enters the power-down state (powerdown) and
PWR_VBAT_DET is detected as high.
ed
2. Configure RTC_MACRO_DA_SOC_READY to 1
w
3. Configure RTC_MACRO_DA_CLEAR_ALL to 1
lo
al
4. Configure RTC_MACRO_DA_CLEAR_ALL to 0
5. Configure RTC_MACRO_RG_SET_T to the desired Counter value
t
no
6. Configure RTC_MACRO_DA_LATCH_PASS to 1
7. Configure RTC_MACRO_DA_LATCH_PASS to 0
e
ar
8. Configure RTC_MACRO_DA_SOC_READY to 0 n
9. Read RTC_MACRO_RO_T to obtain the counter value.
u tio
ib
RTC can issue alarm interrupt and low voltage interrupt. While receives the alarm
d il
an M
interrupt, set register bit RTC_ALARM_ENABLE to 0 to disable alarm and clear interrupt
state. Specify the new value to register RTC_ALARM_TIME and set RTC_ALARM_ENABLE
n by
Set register bit req_suspend to 1 can trigger chip enter suspend/sleep mode. Specify
od de
register RTC_EN_PWR_WAKEUP can select the source that can trigger chip wake-up.
M a
Note that the register RTC_PG_REG must be written to 0 before setting req_suspend to
M
retent DDR IO state in order to prevent the mis-operation of DDR interface and protect
DDR contents during chip power-down or power-up period. After chip resumes, write
the register RTC_PG_REG to 1 to release DDR IO retention before accessing DDR.
198
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
By configuring the req_shdn register to 1, the system software can put the chip into a
power-off state (poweroff) including DDR. The RTC_EN_PWR_UP register can be
configured to select the source that triggers the chip to power up and boot (powerup).
ed
3.9.5 RTC register overview
w
lo
The RTC registers consist of multiple parts: RTC_CORE_REG, RTC_MACRO_REG, and
al
RTC_CTRL_REG, with different base addresses, and are all accessed through the bus.
t
no
An overview of RTC_CORE_REG registers is listed in table 3-9.
e
ar
n
Table 3- 9 RTC_REG register overview (base address: 0x05026000)
tio
Offset
ib
RTC_SEC_PULSE_GEN 0x004
di V
秒脉冲产生器整数位与小数位
st
re k-
RTC_SET_SEC_CNTR_VALUE 0x010
an M
设定秒计数器值
RTC_SET_SEC_CNTR_TRIG 0x014 加载秒计数器值
RTC_SEC_CNTR_VALUE 0x018
n by
读取目前秒计数器值
RTC_INFO0 0x01c 信息寄存器 0
RTC_INFO1 0x020 信息寄存器 1
tio lic
199
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
RTC_DN_MAX 0x0a8 下电流程完成时序
RTC_PWR_CYC_MAX 0x0b0 Power-cycle 完成时序
w
RTC_WARM_RST_MAX 0x0b4 Warm-reset 完成时序
lo
RTC_EN_7SEC_RST 0x0b8 设定 PWR_BUTTON1 7SEC reset 模式
RTC_EN_PWR_WAKEUP 0x0bc 设定休眠唤醒来源
al
RTC_EN_SHDN_REQ 0x0c0 使能 REQ_SHDN
t
RTC_EN_THM_SHDN 0x0c4 使能 REQ_THM_SHDN
no
RTC_EN_PWR_CYC_REQ 0x0c8 使能 REQ_PWR_CYC
RTC_EN_WARM_RST_REQ 0x0cc 使能 REQ_WARM_RST
e
RTC_EN_PWR_VBAT_DET 0x0d0 使能状态机参考 PWR_VBAT_DET
ar
FSM_STATE 0x0d4 RTC 状态机值
RTC_EN_WDG_RST_REQ 0x0e0 使能 REQ_WDG_RST n
RTC_EN_SUSPEND_REQ 0x0e4 使能 REQ_SUSPEND
tio
RTC_DB_REQ_WDG_RST 0x0e8 REQ_WDG_RST 去抖动时间
RTC_DB_REQ_SUSPEND 0x0ec REQ_SUSPEND 去抖动时间
u
200
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
rtc_ctrl_unlockkey 0x004 rtc_ctrl_unlockkey
rtc_ctrl0 0x008 rtc_ctrl0
w
rtc_ctrl_status0 0x00c rtc_ctrl_status0
lo
rtc_ctrl_status1 0x010 rtc_ctrl_status1
rtc_ctrl_status2gpio 0x014 rtc_ctrl_status2gpio
al
rtcsys_rst_ctrl 0x018 rtcsys_rst_ctrl
rtcsys_clkmux 0x01c rtcsys_clkmux
t
no
rtcsys_mcu51_ctrl0 0x020 rtcsys_mcu51_ctrl0
rtcsys_mcu51_ctrl1 0x024 rtcsys_mcu51_ctrl1
rtcsys_pmu 0x028 rtcsys_pmu
e
rtcsys_status 0x02c rtcsys_status
ar
rtcsys_clkbyp 0x030 rtcsys_clkbyp
rtcsys_clk_en 0x034 rtcsys_clk_en
n
rtcsys_wkup_ctrl 0x038 rtcsys_wkup_ctrl
tio
201
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
3.9.6.1 RTC_CORE_REG
RTC_ANA_CALIB
ed
Offset Address: 0x000
Bits Name Access Description Reset
w
15:0 RTC_ANA_CALIB R/W Adjusting the frequency of the analog 0x100
lo
module's 32K oscillator.
al
17:16 RTC_ANA_ISEL R/W Adjusting the current of the analog 0x3
module's 32K XTAL oscillator.
t
00 = 2uA, 01 = 1.5uA, 11 = 0.5uA
no
30:18 Reserved
31 RTC_ANA_SEL_FTUNE R/W Select 32K OSC calibration value source: 0x1
e
0 = controlled by RTC_ANA_CALIB
ar
register
1 = controlled by hardware circuitry
n
RTC_SEC_PULSE_GEN
tio
7:0 RTC_SEC_PULSE_GEN_FRAC R/W the fractional part of the second pulse 0x0
r
generator
di V
st
23:8 RTC_SEC_PULSE_GEN_INT R/W the integer part of the second pulse 0x8000
re k-
generator
d il
30:24 Reserved
31 RTC_SEL_SEC_PULSE R/W Select the source of second pulse signal: 0x1
tio lic
internally.
1 = Second pulse signal is generated by
ifi p
RTC_SEL_PULSE_GEN_FRAC and
RTC_SEL_PULSE_GEN_INT have no
M a
effect.
M
RTC_ALARM_TIME
Offset Address: 0x008
Bits Name Access Description Reset
31:0 RTC_ALARM_TIME R/W Set the time for timed alarm. 0xffffffff
RTC_ALARM_ENABLE
Offset Address: 0x00c
Bits Name Access Description Reset
0 RTC_ALARM_ENABLE R/W Alarm Enable 0x0
Set to 1 to enable the alarm, set to 0 to
202
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC_SET_SEC_CNTR_VALUE
Offset Address: 0x010
Bits Name Access Description Reset
31:0 RTC_SET_SEC_CNTR_VALUE R/W Set the value of the second counter. 0x0
ed
RTC_SET_SEC_CNTR_TRIG
w
Offset Address: 0x014
lo
Bits Name Access Description Reset
al
0 RTC_SET_SEC_CNTR_TRIG W1C Load seconds counter value.
Set to 1 to enable
t
RTC_SET_SEC_CNTR_VALUE to take
no
effect. The register will automatically
clear to 0 after being written to 1.
31:1 Reserved
e
RTC_SEC_CNTR_VALUE
ar
n
Offset Address: 0x018
tio
counter.
ib
RTC_INFO0
r
di V
st
1234
n by
RTC_INFO1
Offset Address: 0x020
tio lic
BEEF
ifi p
RTC_INFO2
od de
RTC_INFO3
Offset Address: 0x028
Bits Name Access Description Reset
31:0 RTC_INFO3 R/W Information register 3 0xDEAD
BEEF
RTC_NOPOR_INFO0
Offset Address: 0x02c
Bits Name Access Description Reset
203
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC_NOPOR_INFO1
Offset Address: 0x030
Bits Name Access Description Reset
31:0 RTC_NOPOR_INFO1 R/W No reset information register 1 Random
RTC_NOPOR_INFO2
ed
Offset Address: 0x034
Bits Name Access Description Reset
w
31:0 RTC_NOPOR_INFO2 R/W No reset information register 2 Random
lo
RTC_NOPOR_INFO3
al
Offset Address: 0x038
t
Bits Name Access Description Reset
no
31:0 RTC_NOPOR_INFO3 R/W No reset information register 3 Random
RTC_APB_BUSY_SEL
e
ar
Offset Address: 0x03c
Bits Name Access Description Reset
n
3:0 Reserved R/W
tio
4 rtc_apb_32k_busy_sel R/W Select the source of the RTC PCLK busy 0x0
signal (keep PCLK at full speed when
u
busy):
ib
7:5 Reserved
an M
PSel is asserted.
31:9 Reserved
tio lic
RTC_DB_PWR_VBAT_DET
ca ub
32K clocks)
31:16 Reserved
M a
M
RTC_DB_BUTTON1
Offset Address: 0x048
Bits Name Access Description Reset
15:0 RTC_DB_BUTTON1 R/W PWR_BUTTON1 debounce time (unit: 0x100
32K clocks)
The default value 0x100 is about 8ms.
31:16 Reserved
RTC_DB_PWR_ON
Offset Address: 0x04c
Bits Name Access Description Reset
204
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC_7SEC_RESET
Offset Address: 0x050
Bits Name Access Description Reset
7:0 RTC_7SEC_RESET R/W Long press PWR_BUTTON1 reset 0x7
ed
debounce time (unit: seconds).
This register will only be cleared by POR.
w
15:8 Reserved
lo
31:16 RTC_7SEC_UNLOCK_KEY WO Writing 0xDC78 at the same time can 0x0
remove the write protection of
al
RTC_7SEC_RESET.
t
no
RTC_THM_SHDN_AUTO_REBOOT
Offset Address: 0x064
e
Bits Name Access Description Reset
ar
0 RTC_THM_SHDN_AUTO_REBOOT R/W Select the behavior when receiving 0x0
REQ_THM_SHDN:
n
0 = start power-off process
tio
1 = start power-cycle process (power off
and then power on again)
31:1 Reserved
u
ib
RTC_POR_DB_MAGIC_KEY
r
di V
st
RTC_DB_SEL_PWR
tio lic
0 Reserved
ifi p
signal as trigger.
1 = The state machine uses the low level
of the PWR_BUTTON1 debounce signal
as trigger.
2 DB_SEL_PWR_ON R/W Select PWR_ON debounce mode: 0x1
0 = The state machine is triggered by
the rising edge of the PWR_ON
debounce signal.
1 = The state machine is triggered by
the high level of the PWR_ON debounce
signal.
3 DB_SEL_PWR_WAKEUP0 R/W Select PWR_WAKEUP0 debounce mode 0x1
0 = The state machine triggers on the
205
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:5 Reserved
w
RTC_UP_SEQ0
lo
Offset Address: 0x070
al
Bits Name Access Description Reset
15:0 RTC_UP_SEQ0 R/W Power-on sequence PWR_SEQ0 rising 0x0
t
time from 0 to 1 (unit: 32K clocks)
no
31:16 Reserved
e
RTC_UP_SEQ1
ar
Offset Address: 0x074
Bits Name Access Description Reset
n
15:0 RTC_UP_SEQ1 R/W Power-on sequence PWR_SEQ1 rising 0x40
tio
RTC_UP_SEQ2
r
di V
st
RTC_UP_SEQ3
tio lic
RTC_UP_IF_EN
M a
M
RTC_UP_RSTN
Offset Address: 0x084
Bits Name Access Description Reset
15:0 RTC_UP_RSTN R/W Power-up process system reset release 0x140
time (unit: 32K clock)
206
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC_UP_MAX
Offset Address: 0x088
Bits Name Access Description Reset
15:0 RTC_UP_MAX R/W Complete power-up sequence 0x180
completion time (unit: 32K clocks).
RTC_UP_SEQ0~RTC_UP_MAX are the
ed
absolute timing of each stage of the
power-up sequence. It is recommended
w
to use the default values.
31:16 Reserved
lo
al
RTC_DN_SEQ0
t
Offset Address: 0x090
no
Bits Name Access Description Reset
15:0 RTC_DN_SEQ0 R/W The time for PWR_SEQ0 output to 0x140
e
transition from 1 to 0 during the power-
ar
down process (in units of 32K clock).
31:16 Reserved n
tio
RTC_DN_SEQ1
Offset Address: 0x094
u
31:16 Reserved
d il
an M
RTC_DN_SEQ2
Offset Address: 0x098
n by
31:16 Reserved
ifi p
RTC_DN_SEQ3
od de
RTC_DN_IF_EN
Offset Address: 0x0a0
Bits Name Access Description Reset
15:0 RTC_DN_IF_EN R/W The duration for opening the isolation 0x40
signal of the power-down area during
the power-down process (unit: 32K
clock).
207
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC_DN_RSTN
Offset Address: 0x0a4
Bits Name Access Description Reset
15:0 RTC_DN_RSTN R/W Time for the power-down process to 0x0
issue a system reset (unit: 32K clock).
31:16 Reserved
ed
RTC_DN_MAX
w
Offset Address: 0x0a8
lo
Bits Name Access Description Reset
al
15:0 RTC_DN_MAX R/W Complete shutdown or sleep process 0x180
completion time (unit: 32K clock cycles).
t
RTC_DN_SEQ0~RTC_DN_MAX are the
no
absolute timing of each stage of the
shutdown process, and it is
e
recommended to use the default values.
ar
31:16 Reserved
n
RTC_PWR_CYC_MAX
tio
up sequence process.
d il
31:16 Reserved
an M
RTC_WARM_RST_MAX
n by
system reset.
31:16 Reserved
od de
RTC_EN_7SEC_RST
M a
M
208
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
remove the write protection for [3:0].
w
RTC_EN_PWR_WAKEUP
lo
Offset Address: 0x0bc
al
Bits Name Access Description Reset
6:0 RTC_EN_PWR_WAKEUP R/W Set the source that can trigger wake-up 0x0
t
from self-sleep mode:
no
0 = Cannot trigger wake-up
1 = Can trigger wake-up.
e
[0] = PWR_WAKEUP0
ar
[1] = PWR_WAKEUP1
[2] = PWR_ON
n
[3] = REQ_POWERUP
tio
[4] = PWR_BUTTON1
[5] = Alarm
[6] = REQ_WAKEUP
u
ib
7 Reserved
14:8 RTC_EN_PWR_UP R/W Set the sources that can trigger power- 0x14
r
di V
on.
st
re k-
[8] = PWR_WAKEUP0
an M
[9] = PWR_WAKEUP1
[10] = PWR_ON
n by
[11] = REQ_POWERUP
[12] = PWR_BUTTON1
tio lic
[13] = Alarm
[14] = REQ_WAKEUP
ca ub
31:15 Reserved
ifi p
RTC_EN_SHDN_REQ
od de
RTC_EN_THM_SHDN
Offset Address: 0x0c4
Bits Name Access Description Reset
0 RTC_EN_THM_SHDN R/W Enable request for thermal shutdown or 0x0
reboot.(REQ_THM_SHDN)
0 = disable, 1 = enable
31:1 Reserved
209
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC_EN_PWR_CYC_REQ
Offset Address: 0x0c8
Bits Name Access Description Reset
0 RTC_EN_PWR_CYC_REQ R/W Enable request for Power-cycle 0x0
(REQ_PWR_CYC)
0 = disable, 1 = enable
31:1 Reserved
RTC_EN_WARM_RST_REQ
ed
Offset Address: 0x0cc
Bits Name Access Description Reset
w
0 RTC_EN_WARM_RST_REQ R/W Enable request for a system soft restart. 0x0
lo
(REQ_WARM_RST)
0 = disable, 1 = enable
al
31:1 Reserved
t
no
RTC_EN_PWR_VBAT_DET
Offset Address: 0x0d0
e
Bits Name Access Description Reset
ar
0 RTC_EN_PWR_VBAT_DET_UP R/W Enable State Machine to Reference 0x1
Battery Low Voltage Detection State
n
(PWR_VBAT_DET)
tio
0 = disable, 1 = enable
If this value is set to 1, when any button
u
changing.
1 RTC_EN_PWR_VBAT_DET_DN R/W Enable power off on battery low voltage 0x1
n by
status:
0 = disable, 1 = enable
tio lic
FSM_STATE
Offset Address: 0x0d4
210
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
4’h6 = ST_PWR_CYC (Power-cycle
power-down in progress)
w
4’h7 = ST_WARM_RESET (System reset
in progress)
lo
4’h9 = ST_SUSP (System suspended)
al
4’hB = ST_PRE_SUSP (Suspend power-
down process in progress)
t
31:4 Reserved
no
RTC_EN_WDG_RST_REQ
e
ar
Offset Address: 0x0e0
Bits Name Access Description
n Reset
0 RTC_EN_WDG_RST_REQ R/W Enable Watchdog to request reset of 0x0
tio
system(REQ_WDG_RST)
0 = disable, 1 = enable
1 RTC_EN_SUS_WDG_RST_REQ R/W Enable Watchdog to request system 0x1
u
0 = disable, 1 = enable
r
di V
31:2 Reserved
st
re k-
RTC_EN_SUSPEND_REQ
d il
an M
31:1 Reserved
ca ub
RTC_PG_REG
ifi p
RTC_ST_ON_REASON
ed
Offset Address: 0x0f8
Bits Name Access Description Reset
w
3:0 ST_ON_REASON_LAST_STATE RO RTC state machine returns to power-on
completion (ST_ON) state from the
lo
following states:
al
4'h0 = Return from power-off (ST_OFF)
to power-on state
t
4'h3 = Return from Power-cycle or
no
Warm-reset to power-on state
4'h9 = Return from sleep to power-on
e
state
ar
After system reboot, software can read
this register to determine the cause of
n
the chip's power-on.
tio
15:4 Reserved
31:16 ST_ON_REASON_LAST_INPUT RO Trigger reasons for the state machine to
u
triggered)
re k-
[2] = RTC_EN_AUTO_POWER_UP
[3] = PWR_BUTTON1 (0: power-on
triggered by button)
n by
[4] = PWR_BUTTON1_7SEC
[5] = PWR_WAKEUP0 (1: wakeup
tio lic
triggered by button)
[6] = PWR_WAKEUP1 (1: wakeup
ca ub
triggered by button)
[7] = Alarm (1: timed alarm occurred)
ifi p
triggered Power-cycle)
[9] = REQ_THM_SHDN (1: software-
M a
triggered power-off/power-cycle)
M
RTC_ST_OFF_REASON
212
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
After system restart, software can
determine the reason for the previous
w
power-down by reading this register.
lo
15:4 Reserved
al
31:16 ST_OFF_REASON_LAST_INPUT RO Reasons for the state machine entering
power-down (record signal state value):
t
[14:0] same as
no
ST_ON_REASON_LAST_INPUT
[15] = 0: Forced reset occurred in 7
seconds.
e
ar
RTC_EN_WAKEUP_REQ
Offset Address: 0x120
n
Bits Name Access Description Reset
tio
0 = disable, 1 = enable
ib
0 = disable, 1 = enable
st
re k-
31:2 Reserved
d il
an M
RTC_PWR_WAKEUP_POLARITY
Offset Address: 0x128
n by
RTC_DB_SEL_REQ
M
213
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
4 DB_SEL_REQ_WDG_RST R/W Select debounce mode for signal 0x1
REQ_WDG_RST:
w
0 = Triggered by signal high level
1 = Triggered by rising edge of signal.
lo
5 DB_SEL_REQ_SUSPEND R/W Select debounce mode for software 0x1
al
signal REQ_SUSPEND:
0 = Triggered by rising edge of register
t
value
no
1 = Triggered by pulse signal of register
6 DB_SEL_REQ_WAKEUP R/W Select debounce mode for signal 0x1
e
REQ_WAKEUP:
ar
0 = Triggered by signal high level
1 = Triggered by rising edge of signal.
n
7 DB_SEL_REQ_POWERUP R/W Select debounce mode for signal 0x1
tio
REQ_POWERUP:
0 = Triggered by signal high level
u
31:8 Reserved
r
di V
st
RTC_PWR_DET_SEL
re k-
machine:
0 = Directly from IO PWR_VBAT_DET
M a
circuit output
31:2 Reserved
214
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
3.9.6.2 RTC_MACRO_CTRL
RTC_PWR_DET_COMP
Offset Address: 0x44
Bits Name Access Description Reset
ed
0 pwr_det_comp_enable R/W Enable analog module low voltage 0x0
detection:
w
1 = enable
lo
0 = disable
7:1 Reserved
al
12:8 pwr_det_comp_sel R/W Setting low voltage detection voltage 0xf
t
comparison threshold.
no
Threshold = 1.20V +
(pwr_det_comp_sel * 12.5mV)
31:13 Reserved
e
RTC_MACRO_DA_CLEAR_ALL
ar
n
Offset Address: 0x080
tio
31:1 Reserved
r
di V
st
RTC_MACRO_DA_SET_ALL
re k-
d il
31:1 Reserved
tio lic
RTC_MACRO_DA_LATCH_PASS
ca ub
31:1 Reserved
M a
M
RTC_MACRO_DA_SOC_READY
Offset Address: 0x08c
Bits Name Access Description Reset
0 DA_SOC_READY R/W 0x0
31:1 Reserved
RTC_MACRO_PD_SLDO
Offset Address: 0x090
Bits Name Access Description Reset
0 PD_SLDO R/W 0x0
215
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC_MACRO_RG_DEFD
Offset Address: 0x094
Bits Name Access Description Reset
15:0 RG_DEFD R/W 0x7fff
31:16 Reserved
ed
RTC_MACRO_RG_SET_T
w
lo
Offset Address: 0x098
Bits Name Access Description Reset
al
31:0 RG_SET_T R/W 0x0
t
no
RTC_MACRO_RO_CLK_STOP
Offset Address: 0x0a0
e
ar
Bits Name Access Description Reset
0 RO_CLK_STOP RO
n
31:1 Reserved
tio
RTC_MACRO_RO_DEFQ
u
ib
15:0 RO_DEFQ RO
31:16 Reserved
d il
an M
RTC_MACRO_RO_T
n by
31:0 RO_T RO
ca ub
ifi p
od de
3.9.6.3 RTC_CTRL
M a
M
RTC_CTRL0_UNLOCKKEY
Offset Address: 0x004
Bits Name Access Description Reset
15:0 rtc_ctrl0_unlockkey R/W The value 0xab18 must be written to 0x0000
this register to unlock the write
permission of register RTC_CTRL0.
If unlockkey_clear is set to 1, the
register value will be automatically
cleared to 0 after a write operation to
RTC_CTRL0, and RTC_CTRL0 will return
216
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RTC_CTRL0
Offset Address: 0x008
Bits Name Access Description Reset
0 req_shdn R/W request power down 0x0
ed
0 = no action, 1 = request to RTC
Register RTC_ EN_ SHDN_ REQ must be
w
set to 1.
1 req_sw_thm_shdn R/W Software mode request thermal 0x0
lo
shutdown
al
0 = no action, 1 = request to RTC
Register RTC_ EN_ THM_ SHDN must be
t
set to 1.
no
2 hw_thm_shdn_en R/W Enable hardware thermal shutdown 0x0
0 = diable, 1 = enable
e
Register RTC_ EN_ THM_ SHDN must be
ar
set to 1.
3 req_pwr_cyc R/W Request power cycle 0x0
0 = no action, 1 = request to RTC
n
Register RTC_ EN_ PWR_ CYC_ REQ
tio
must be set to 1.
4 req_warm_rst R/W Request Warm-reset 0x0
u
Register RTC_EN_WARM_RST_REQ
r
must be set to 1.
di V
st
Register RTC_EN_WDG_RST_REQmust
an M
be set to 1 to be valid.
6 hw_wdg_rst_en R/W Enable hardware mode Watchdog reset 0x0
n by
0 = diable, 1 = enable
7 req_suspend R/W Request suspend 0x0
0 = no action, 1 = request to RTC
tio lic
be set to 1.
8 unlockkey_clear R/W Enable auto clear register unlock 0x0
ifi p
9 Reserved
10 reg_rtc_mode R/W The source of 32K clock 0x0
od de
0 = OSC32K, 1 = XTAL32K
11 reg_clk32k_cg_en R/W The switch of 32K clock 0x1
M a
M
0 = close, 1 = open
31:12 Reserved
RTC_CTRL_STATUS0
Offset Address: 0x00c
Bits Name Access Description Reset
0 rtc_pwr_vbat_det_o RO Low voltage detection status signal
output
1 rtc_pwr_button0_o RO PWR_BUTTON0 IO signal output
2 rtc_pwr_button1_o RO PWR_BUTTON1 IO signal output
3 Reserved
217
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
23 hw_wdg_rst_sta_i RO Watchdog reset status signal
24 sys_reset_x_i RO
w
25 cg_en_out_clk_32k RO
lo
29:26 rtc_fsm_st RO Value of the RTC state machine.
31:30 Reserved
al
t
RTC_CTRL_STATUS1
no
Offset Address: 0x010
Bits Name Access Description Reset
e
31:0 rtc_sec_value_o RO RTC second counter value
ar
n
tio
rtc_ctrl_status2gpio
Offset Address: 0x014
u
31:8 Reserved
st
re k-
rtcsys_rst_ctrl
d il
an M
0 Reserved
1 reg_soft_rstn_mcu R/W 0 : reest MCU 0x0
tio lic
218
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rtcsys_clkmux
Offset Address: 0x01c
Bits Name Access Description Reset
3:0 reg_sdio_clk_mux R/W clk_sd1_pre 0x0
0 : fpll/4 1: osc_div
7:4 reg_fab_clk_mux R/W clk_fab_pre 0x0
0 : 32K, 1: fpll/5, 2: osc_div
9:8 reg_timer0_clk_mux R/W 0: xtal 0x0
1: 32K
11:10 reg_timer1_clk_mux R/W 0: xtal 0x0
ed
1: 32K
13:12 reg_apb_clk_mux R/W 00 : cgdiv and refer to apbactive 0x1
w
01 : force clk_apb, clk_fab 1:1 (default)
lo
10 : force clk_apb, clk_fab 1:2
al
11 : force clk_apb, clk_fab 1:4
15:14 Reserved
t
17:16 reg_i2c_clk_mux R/W 0: xtal 0x0
no
1: osc div
19:18 reg_sd_mclk_clk_mux R/W 0: 100Khz from OSC, 1: 32K 0x0
e
20 reg_saradc_clk_mux R/W 0 : XTAL, 1: OSC DIV 0x0
ar
21 reg_irrx_clk_mux R/W 0 : XTAL, 1: OSC DIV 0x0
31:22 Reserved
n
tio
rtcsys_mcu51_ctrl0
Offset Address: 0x020
u
not exist
an M
2^reg_51_rom_addr_size -1
internal rom offset =
ca ub
4K*reg_51irom_ioffset
1: mars define , max internal rom =
ifi p
2K*reg_51_rom_addr_size -1
internal rom offset =
od de
2K*reg_51irom_ioffset
10:8 Reserved
M a
M
rtcsys_mcu51_ctrl1
Offset Address: 0x024
Bits Name Access Description Reset
4:0 reg_51irom_ioffset R/W boot rom offset to rtcsys_sram 0x0
5 Reserved
9:6 reg_51_pf_mode R/W reg_51_pf_mode 0x0
10 Reserved
31:11 reg_51xdata_doffset0 R/W Set offset address[31:12] to select 0x05200
mcu8051 xdata
219
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rtcsys_pmu
Offset Address: 0x028
Bits Name Access Description Reset
3:0 Reserved
4 reg_dis_pmu_ldo_ctrl R/W disable pmu ldo ctrl 0x0
0: enable pmu to ctrl RTC_LDO sleep
mode
1: disable pmu to ctrl RTC_LDO sleep
mode
ed
5 reg_wdt_clkoff_by_pmu R/W wdt_clk gate by pmu when mcu into 0x0
idle mode
w
1. wdt clock gate by pmu
6 reg_force_osc_off R/W 1 : force osc off 0x0
lo
7 reg_force_osc_on R/W 1 : force osc on 0x0
al
8 reg_pmu_sleep_mode R/W pmu enter light sleep mode when mcu 0x0
idle
t
1 : enable pmu light sleep mode when
no
mcu idle
(pmu control osc_req/ sram slp)
e
0 disable pmu light sleep mode
ar
9 reg_pmu_lowpwr_mode R/W mcu_pmu into sleep state when rtc at 0x0
suspend state & mcu idle &
n
reg_pmu_sleep_mode enable
tio
1 : enable mcu_pmu into sleep mode
(trigger rtc ldo step down power)
0 disable mcu_pmu sleep mode
u
sleep state,
r
di V
mode
15 reg_rtcsys_clk25m_req R/W xtal request1 for rtcsys 0x1
n by
19:16 reg_rtc_vbat_det_db_cnt R/W vbat det int debounce time (cycle unit : 0x2
32K)
ca ub
220
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rtcsys_status
ed
Offset Address: 0x02c
Bits Name Access Description Reset
w
31:0 reg_rtcsys_status RO [0] enable rtc2apb ahb path
lo
0: rtcsys ip can only access
al
0x05000000+16MB
1: rtcsys ip can access full range
t
address
no
[1] flag of vbat_det_force_clk
rtcsys_clkbyp
e
ar
Offset Address: 0x030
Bits Name Access Description Reset
n
31:0 reg_clk_byp R/W [0] : clk_fab , 0: clk_fab_pre, 1: xtal 0xffffffff
tio
(default)
[1] : clk_sdio, 1: clk_sd1_pre, 1: xtal
u
(default)
ib
[31:2]: NA
r
di V
st
rtcsys_clk_en
re k-
[5]: clk_rtc2ap_slv
ca ub
[6]: clk_spinor1
[7]: clk_fab_sram (AHB sram)
ifi p
[8]: NA
[9]: clk_apb_timer
od de
[10]: clk_timer0
[11]: clk_timer1
M a
[12]: clk_apb_uart
M
[13]: clk_uart
[14]: clk_apb_ictrl
[15]: clk_apb_mbox
[16]: clk_apb_gpio
[17]: clk_apb_osc
[18]: clk_gpio_db
[19]: clk_apb_i2c
[20]: clk_i2c
[21]: NA
[22]: clk_sd1_tmclk
[23]: clk_apb_saradc
[24]: clk_saradc
[25]: clk_apb_wdt
221
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rtcsys_wkup_ctrl
ed
Offset Address: 0x038
w
Bits Name Access Description Reset
lo
14:0 reg_rtcsys_wkint_mask R/W mask int to RTC_CORE.REQ_WAKEUP/ 0xff
MCU_PMU
al
[0]: irrrx_intr
[1]: gpio_int
t
[2]: timer0_int
no
[3]: timer1_int
[4]: saradc_int
e
[5]: rtcsys_ictrl_int
ar
[6]: wdt_int
[7]: irrx_wakeup
n
15 reg_vbat_det_wkup_mask R/W 1: mask vbat det int 0x1
tio
16 reg_sw_wkint_req R/W mcu sw wakeup interrupt to RTC_CORE 0x0
1: interrupt active
u
23:17 Reserved
ib
core
di V
st
31:25 Reserved
re k-
d il
rtcsys_clkdiv
an M
fc_coarse_en
Offset Address: 0x040
Bits Name Access Description Reset
222
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
fc_coarse_cal
Offset Address: 0x044
Bits Name Access Description Reset
ed
15:0 fc_coarse_value RO 32K coarse tuning counter value (unit:
25MHz clock). One 32K clock period
w
counts as one unit in a 25MHz clock.
31:16 fc_coarse_time RO 32K coarse adjustment completion
lo
count.
al
fc_fine_en
t
no
Offset Address: 0x048
Bits Name Access Description Reset
0 fc_fine_en R/W Enable 32K fine tuning. 0x0
e
0 = disable,
ar
1 = enable
31:1 Reserved
n
tio
fc_fine_period
u
15:0 fc_fine_period R/W 32K fine tuning counting period (unit: 0x0100
di V
st
25MHz clock.
an M
31:16 Reserved
n by
fc_fine_cal
Offset Address: 0x050
tio lic
rtcsys_pmu2
M a
rtcsys_clkdiv1
Offset Address: 0x058
Bits Name Access Description Reset
15:0 Reserved
21:16 reg_div_clk_osc_irrx_div_val R/W Clock Divider Factor 0x0
223
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rtcsys_mcu51_dbg
Offset Address: 0x05c
Bits Name Access Description Reset
3:0 reg_51_dbg_sel R/W select mcu51 debug bus (check mcu 0x0
ed
design review ppt)
4 reg_51_dbg_snap_shot W1P snap shot mcu51 internal register to
w
dbg register (reg_rtcsys_dbg)
lo
5 reg_51_dbg_step_en R/W 0: disable mcu debug function 0x0
al
1: enable mcu debug function, and mcu
stop at current PC
t
6 reg_51_dbg_step W1P 1: mcu jump to next PC
no
7 reg_51_dbg_jump W1P 1: mcu jump to target pc value
(reg_51_dbg_jump2pc)
e
15:8 Reserved
ar
31:16 reg_51_dbg_jump2pc R/W 16 bit mcu target pc value
n 0x0
sw_reg0
tio
31:8 Reserved
r
di V
st
re k-
sw_reg1_por
d il
reset
31:8 Reserved
tio lic
fab_lp_ctrl
ca ub
up fab clock
9:8 rtcsys_fab_busy_ctrl R/W rtcsys_fab_busy signal is combi or 0x0
M a
register out
M
rtcsys_mcu51_ictrl1
Offset Address: 0x07c
224
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
[7]: timer0_int
[8]: timer1_int
w
[9]: irq_ap2rtc[0]
[10]: irq_ap2rtc[1]
lo
[11]: i2c_int
al
[12]: rtc_state_change_int
[13]: hw_thm_shdn
t
[14]: saradc
no
[15]: wdt_int
31:16 reg_51_int1_final_status R0 mcu int1_n status
e
[0]: vbat_det
ar
[1]: mbox0_int
[2]: NA
n
[3]: irrx_int
tio
[4]: gpio_int
[5]: uart_int
u
[6]: spinor1_int
ib
[7]: timer0_int
[8]: timer1_int
r
di V
[9]: irq_ap2rtc[0]
st
re k-
[10]: irq_ap2rtc[1]
[11]: i2c_int
d il
[12]: rtc_state_change_int
an M
[13]: hw_thm_shdn
[14]: saradc
n by
[15]: wdt_int
rtc_ip_pwr_req
tio lic
[0]: sd1
1 reg_sd1_pwr_req_2nd R/W power fence control 0x1
M a
[0]: sd1
2 reg_mcu_pwr_req R/W power fence control 0x1
1: power on, 0: power off
[1]: mcu subsys
3 reg_mcu_pwr_req_2nd R/W power fence control 0x1
1: power on, 0: power off
[1]: mcu subsys
15:4 Reserved
16 reg_sd1_pwr_ack R0 power fence power status
1: power on, 0: power off
[0]: sd1
17 reg_sd1_pwr_ack_2nd R0 power fence power status
225
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
rtc_ip_iso_ctrl
w
Offset Address: 0x084
lo
Bits Name Access Description Reset
al
0 reg_sd1_iso_en R/W sd1 iso enablel 0x0
1: iso enable, 0: iso disable
t
1 reg_mcu_iso_en R/W mcu iso enablel 0x0
no
1: iso enable, 0: iso disable
15:2 Reserved
e
17:16 reg_ip_por_en R/W 1: pwr_island reset assert when power 0x3
ar
ack is 0
31:18 Reserved
n
tio
rtcsys_wkup_ctrl1
u
[0]: sd1_wakeup_intr
re k-
[1]: gpio_int
[2]: timer0_int
d il
an M
[3]: timer1_int
[4]: saradc_int
[5]: rtcsys_ictrl_int
n by
[6]: NA
[7]: NA
tio lic
31:8 Reserved
ca ub
rtcsys_sram_ctrl
ifi p
2 reg_ahb_sram_ctrl_ov R/W 0 : ahb sram ctrl by PMU FSM and ahb 0x1
sram busy
1: sram ctrol by register
reg_ahb_sram_slp/reg_ahb_sram_sd
3 reg_sdio_sram_slp R/W 1 : sdio sram into sleep mode 0x0
4 reg_sdio_sram_sd R/W 1 : sdio sram into shut down mode 0x0
5 reg_sdio_sram_ctrl_ov R/W 0 : sram's sd pin = 1'b0 0x1
1: sram ctrol by register
reg_sdio_sram_sd
6 reg_mcu_sram_slp R/W 1 : mcu iram sram into sleep mode 0x0
7 reg_mcu_sram_sd R/W 1 : mcu iram sram into shut down mode 0x0
8 reg_mcu_sram_ctrl_ov R/W 0 : mcu iram sram ctrl by PMU FSM 0x1
1: sram ctrol by register
226
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
rtcsys_io_ctrl
lo
Offset Address: 0x09c
Bits Name Access Description Reset
al
0 reg_i2c_mux_opt0 R/W 0: pwr_gpio6/8 control by dw_gpio 0x0
t
1: pwr_gpio6 is PWR_IIC_SDA
no
pwr_gpio8 is PWR_IIC_SCL
31:1 Reserved
e
ar
rtcsys_wdt_ctrl
Offset Address: 0x0a0
n
Bits Name Access Description Reset
tio
pwrcyc reset
1 reg_rtc_wdt_ctrl_mask_en R/W
r
no load 0x1
di V
st
31:2 Reserved
re k-
d il
rtcsys_irrx_clk_ctrl
an M
7:4 Reserved
ifi p
15:8 reg_irrx_xtal_filter_cyc R/W irrx xtal filter cycle (default 2ms) 0x40
19:16 reg_irrx_clk_ctrl_st RO irrx clock ctrol state
od de
31:20 Reserved
M a
M
rtcsys_rtc_wkup_ctrl
Offset Address: 0x0a8
Bits Name Access Description Reset
7:0 reg_rtc_wkint_mask R/W wakeup source mask int to RTC_CORE 0xff
[0]: irrrx_intr
[1]: gpio_int
[2]: timer0_int
[3]: timer1_int
[4]: saradc_int
[5]: rtcsys_ictrl_int
[6]: wdt_int
[7]: irrx_wakeup
227
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
[7]: irrx_wakeup
31:24 Reserved
w
lo
rtcsys_por_rst_ctrl
al
Offset Address: 0x0ac
Bits Name Access Description Reset
t
no
0 reg_rtcsys_reset_en R/W 0: not allow rtcsys reset by pwr cyc/ wdt 0x0
warm reset
1 : allow rtcsys reset by pwr cyc/ wdt
e
warm reset
ar
1 reg_rtcsys_rstn_src_sel R/W select rtcsys rstn src 0x0
0: rtc_core fsm (reset with die
n
domain)
tio
1: por_pwr_rstn
31:2 Reserved
u
r ib
di V
st
re k-
mode
n by
tio lic
3.10.1 Overview
ca ub
ifi p
a. Active
M a
M
Active mode is the state where the chip is fully awake and operational. However, there
are still power-saving techniques such as dynamic frequency scaling or dynamic clock
gating.
228
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Refer to the clock configuration section, turn off the unused clock divider according to
the clock source required by each module. To achieve the purpose of saving power
ed
consumption.
w
lo
3.10.2.2 Adjust the working frequency of the module
al
According to the required clock specifications of each module, choose a lower clock
t
no
source. The frequency division configuration is more to reduce the working frequency
of the module. It is the first mock exam that the frequency of a single module is not
e
ar
necessarily reduced. n
tio
Analog module: Mipi / USB / eth / aud related register settings, will not use the
r ib
Digital module: according to the hardware and specifications, turn off the clock of
d il
Referring to PLL configuration, you can powerdown the PLL you don't need to use to
ca ub
save power.
ifi p
od de
After the bus has not been accessed for a period of time, the DDR controller will
automatically enter the state of self refresh and power down to reduce the system
power consumption.
In some scenarios, due to intermittent access, it is impossible to find enough space to
enter self refresh. In this case, we can also consider building a statistics register of the
amount of data accessed to confirm whether the band is excessive. We can consider
direct frequency reduction.
229
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
DDR controller supports dynamic frequency adjustment. However, since adjusting the
frequency will temporarily stop DDR access for a period of time, in order to reduce the
interruption time, it may cause real-time application buffer underflow / overflow. It is
limited to 50% and 100%.
ed
w
lo
3.10.4 Voltage regulation
al
t
CV180ZB/CV1800B/CV1801B uses PWM0 to control VDDC voltage regulation by
no
default.
e
ar
The following is an example of using PWM to control the output voltage of DCDC
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
230
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
231
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Temperature sensor is built in the chip. Please refer to 12.8 for details
High junction temperature may cause thermal run away and cause permanent damage.
So the chip needs to control the temperature
ed
The first stage is software behavior
w
The temperature sensor can automatically detect whether the temperature exceeds a
lo
specific temperature and send out an overheat interrupt. After receiving the overheat
al
interrupt, the software can reduce the power consumption and temperature by limiting
t
no
the frequency or voltage of the high-power module and starting the fan. If the
temperature returns to the safe range, the limit is removed
e
The second stage is hardware behavior ar
n
tio
If the temperature continues to rise after the software is started, the hardware will
u
intervene in the emergency of thermal shut-down. However, this function is turned off
ib
by default. After the software is started, it needs to set the relevant settings and then
r
di V
st
enable
re k-
d il
an M
3.128051 subsystem
n by
tio lic
3.12.1 Overview
ca ub
ifi p
The 8051 subsystem is located in a module that is independently powered by the RTC.
od de
Timer/WDT, interrupt management, and a Mailbox IP. The system software can use the
8051 to manage wake-up conditions and wake up the system while it is in sleep mode,
and communicate with external devices through peripheral controllers.
3.12.2 Characteristics
232
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Reset vector can be configured to system AHB SRAM / DRAM / SPINOR
w
Supports WFI (Clock gating)
lo
Supports code banking (maximum 64x64 KB)
al
Provides 8KB of AHB SRAM space, which can be used by 8051 as instruction
t
no
TCM or temporary storage for data
Provides 2 sets of 32-bit counters for timing and counting functions, which
e
ar
can be used by applications to implement timing and counting, or by the
operating system to implement system clocks.
n
tio
Provides 1 set of WDT for system interrupt or reset signal after a certain
period of time in case of system exception.
u
ib
233
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
Figure 3-10 the architecture of 8051 subsystem
n
The subsystem is divided into two power domains: the AO domain and the MCU
tio
domain (green area). The system can use registers to select the power domain of the
u
In sleep mode, the system can handle interrupts through the MCU and wake up the
di V
st
re k-
system by configuring registers. It can also communicate with external devices through
d il
I2C/UART.
an M
n by
The subsystem is divided into three power domains: RTC domain (Always on), MCU
od de
domain. The power on/off process of the MCU domain can be controlled by configuring
M a
MCU power_off>
1. Set the software reset register to 0.
2. Set the isolation enable register reg_mcu_iso_en to 1.
3. Set the power request register reg_mcu_pwr_req to 0.
MCU power_on=>
1. Set the power request register reg_mcu_pwr_req to 1.
2. Poll the power acknowledge register reg_mcu_pwr_ack until it is 1.
234
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The 8051 is in a reset state at the system initialization, and it can complete the following
ed
software flow through the ACPU using the 8051:
w
lo
al
1. The 8051 is in the reset state (register reg_soft_rstn_mcu = 0).
2. Configure the register reg_mcu_rom_addr_size to determine the instruction TCM
t
no
size.
3. Configure the register reg_51irom_ioffset to determine the location of TCM
e
ar
execution on AHB SRAM. n
4. Release the 8051 reset state by setting the register reg_soft_rstn_mcu = 1.
u tio
ib
The 8051 can receive external level-triggered interrupts through the int0_n and int1_n
d il
an M
interfaces. int0_n/int1_n can be selected to output interrupt signals to the 8051 from ictl
(interrupt controller) and configuration register reg_51_int1_src_mask, respectively.
n by
Interrupt Interrupt
tio lic
0 Vbat_det interrupt
ifi p
2 NA Reserved
M a
3 irrx interrupt
4 gpio_int PWR GPIO interrupt
5 uart_int PWR UART interrupt
6 spinor1_int SPINOR1 interrupt
7 timer_int0 TIMER0 interrupt
8 timer_int1 TIMER1 interrupt
9 Irq_ap2rtc[0] System interrupt
10 Irq_ap2rtc[1] System interrupt
235
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Table 3-12 the interrupt list of 8051 subsystem
w
lo
al
3.12.4.4 MAILBOX
t
no
Mailbox provides 2 sets of spinlock fields and 4 sets of 32-bit message fields, which
e
allow ACPU/8051 to transfer information between each other.
ar
n
tio
Offset
rtc_ctrl_version 0x000 rtc_ctrl_version
d il
an M
0x00c rtc_ctrl_status0
rtc_ctrl_status1 0x010 rtc_ctrl_status1
rtc_ctrl_status2gpio 0x014 rtc_ctrl_status2gpio
tio lic
236
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
rtcsys_wdt_ctrl 0x0a0 rtcsys_wdt_ctrl
rtcsys_irrx_clk_ctrl 0x0a4 rtcsys_irrx_clk_ctrl
w
rtcsys_rtc_wkup_ctrl 0x0a8 rtcsys_rtc_wkup_ctrl
lo
rtcsys_por_rst_ctrl 0x0ac rtcsys_por_rst_ctrl
al
t
no
3.12.6 8051 Subsystem Registers
e
ar
n
rtc_ctrl_unlockkey
tio
ptest_adc2ram_ctrl
31:16 Reserved
tio lic
rtc_ctrl0
ca ub
Mask: Enabled
M
237
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:12 Reserved
w
rtc_ctrl_status0
lo
al
Offset Address: 0x00c
Bits Name Access Description Reset
t
0 rtc_pwr_vbat_det_o RO
no
1 rtc_pwr_button0_o RO
2 rtc_pwr_button1_o RO
e
ar
3 rtc_pwr_button1_7sec_o RO
4 rtc_pwr_on_o RO
n
5 rtc_pwr_wakeup0_o RO
tio
6 rtc_pwr_wakeup1_o RO
7 rtc_mode_o RO
u
ib
19:8 Reserved
r
20 rtc_rstn_o RO
di V
st
21 rtc_alarm_o RO
re k-
22 hw_thm_shdn_sta_i RO
d il
23 hw_wdg_rst_sta_i RO
an M
24 sys_reset_x_i RO
n by
25 cg_en_out_clk_32k RO
29:26 rtc_fsm_st RO
tio lic
31:30 Reserved
ca ub
rtc_ctrl_status1
ifi p
rtc_ctrl_status2gpio
Offset Address: 0x014
Bits Name Access Description Reset
7:0 status2gpio_en R/W 0x0
31:8 Reserved
rtcsys_rst_ctrl
Offset Address: 0x018
Bits Name Access Description Reset
238
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
9 reg_soft_rstn_fab_sram R/W 0 : reset ahb sram logic 0x1
w
10 reg_soft_rstn_apb R/W no load 0x1
11 reg_soft_rstn_apb_timer R/W 0 : reset dw timer apb logic 0x1
lo
12 reg_soft_rstn_timer0 R/W 0 : reset dw timer0 0x1
al
13 reg_soft_rstn_timer1 R/W 0 : reset dw timer1 0x1
14 reg_soft_rstn_osc R/W 0 : reset osc 0x1
t
15 reg_soft_rstn_gpio R/W 0 : reset gpio 0x1
no
16 reg_soft_rstn_i2c R/W 0 : reset i2c 0x1
17 reg_soft_rstn_saradc R/W 0 : reset saradc 0x1
e
18 reg_soft_rstn_wdt R/W 0 : reset wdt 0x1
ar
19 reg_soft_rstn_irrx R/W 0 : reset irrx 0x1
20 reg_soft_rstn_f32kless R/W 0 : reset f32kless 0x1
n
31:21 Reserved
tio
rtcsys_clkmux
u
ib
0 : fpll/4 1: osc_div
d il
1: 32K
11:10 reg_timer1_clk_mux R/W 0: xtal 0x0
1: 32K
tio lic
1: osc div
M
rtcsys_mcu51_ctrl0
Offset Address: 0x020
Bits Name Access Description Reset
4:0 reg_51_rom_addr_size R/W Determines how many of the sixteen 0xc
internal ROM address bits (irom_addr)
are used (0 = no internal ROM present);
239
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
1: mars define , max internal rom =
2K*reg_51_rom_addr_size -1
w
internal rom offset =
lo
2K*reg_51irom_ioffset
10:8 Reserved
al
31:11 reg_51xdata_ioffset0 R/W Set offset address[31:11] to select 0x0A400
t
mcu8051 boot device
no
rtcsys_mcu51_ctrl1
e
Offset Address: 0x024
ar
Bits Name Access Description Reset
4:0 reg_51irom_ioffset R/W boot rom offset to rtcsys_sram 0x0
n
5 Reserved
tio
10 Reserved
ib
mcu8051 xdata
di V
st
re k-
rtcsys_pmu
d il
an M
3:0 Reserved
4 reg_dis_pmu_ldo_ctrl R/W disable pmu ldo ctrl 0x0
tio lic
240
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
1: enable 25m xtal request1 (rtcsys)
19:16 reg_rtc_vbat_det_db_cnt R/W vbat det int debounce time (cycle unit : 0x2
w
32K)
lo
20 reg_rtc_vbat_det_db_en R/W 0: disable vbat det int debounce 0x1
1: enable vbat det int debounce
al
21 reg_ahb_sram_auto_slp_en R/W 1: enable ahb sram into slp md when 0x0
bus idle
t
no
23:22 reg_ahb_sram_busy_sel R/W 2'd0: cs | cs_d1 0x0
2'd1: cs | cs_d1 | cs_d2
2'd2: cs | cs_d1 | cs_d2 | cs_d3
e
3'd3: cs | cs_d1 | cs_d2 | cs_d3 | cs_d4
ar
24 reg_rtc_stint_clr W1P clear rtc state change interrupt
25 reg_vbat_det_int_clr W1P clear vbet det interrupt
n
26 reg_rtcsys_clk25m_hw_req R/W xtal request1 for rtcsys from hw ip 0x0
tio
ip(rtcsys)
r
di V
27 Reserved
st
re k-
mode
1. mcu clock gate by pmu
n by
rtcsys_status
ifi p
rtcsys_clkbyp
Offset Address: 0x030
Bits Name Access Description Reset
31:0 reg_clk_byp R/W [0] : clk_fab , 0: clk_fab_pre, 1: xtal 0xffffffff
(default)
241
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rtcsys_clk_en
Offset Address: 0x034
Bits Name Access Description Reset
31:0 reg_clk_en R/W [0]: NA 0xffffffff
ed
[1]: clk_sd1 (sd1 card clock)
[2]: clk_fab_sd1 (sd1 core clock)
w
[3]: clk_mcu
lo
[4]: clk_hs2rtc_mst
[5]: clk_rtc2ap_slv
al
[6]: clk_spinor1
t
[7]: clk_fab_sram (AHB sram)
no
[8]: NA
[9]: clk_apb_timer
[10]: clk_timer0
e
[11]: clk_timer1
ar
[12]: clk_apb_uart
[13]: clk_uart
n
[14]: clk_apb_ictrl
tio
[15]: clk_apb_mbox
[16]: clk_apb_gpio
u
[17]: clk_apb_osc
ib
[18]: clk_gpio_db
[19]: clk_apb_i2c
r
di V
st
[20]: clk_i2c
re k-
[21]: NA
[22]: clk_sd1_tmclk
d il
an M
[23]: clk_apb_saradc
[24]: clk_saradc
[25]: clk_apb_wdt
n by
[26]: clk_wdt
[27]: clk_irrx
tio lic
[31:28]: NA
ca ub
rtcsys_wkup_ctrl
ifi p
MCU_PMU
M
[0]: irrrx_intr
[1]: gpio_int
[2]: timer0_int
[3]: timer1_int
[4]: saradc_int
[5]: rtcsys_ictrl_int
[6]: wdt_int
[7]: irrx_wakeup
15 reg_vbat_det_wkup_mask R/W 1: mask vbat det int 0x1
16 reg_sw_wkint_req R/W mcu sw wakeup interrupt to RTC_CORE 0x0
1: interrupt active
23:17 Reserved
242
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rtcsys_clkdiv
Offset Address: 0x03c
Bits Name Access Description Reset
ed
3:0 reg_div_clk_osc_fab_div_val R/W Clock Divider Factor 0x1
4 reg_div_clk_osc_fab_dis R/W Clock gate 0x0
w
5 reg_div_clk_osc_fab_hwide R/W Select High Wide Control (when Divider 0x0
Factor is odd) 0: Low level of the clock is
lo
wider 1: High level of the clock is wider
al
15:6 Reserved
19:16 reg_div_clk_osc_i2c_div_val R/W Clock Divider Factor 0x1
t
20 reg_div_clk_osc_i2c_dis R/W Clock gate 0x0
no
21 reg_div_clk_osc_i2c_hwide R/W Select High Wide Control (when Divider 0x0
Factor is odd) 0: Low level of the clock is
e
wider 1: High level of the clock is wider
ar
23:22 Reserved
29:24 reg_div_clk_osc_saradc_div_val R/W Clock Divider Factor 0x1
n
30 reg_div_clk_osc_saradc_dis R/W Clock gate 0x0
tio
fc_coarse_en
di V
st
re k-
1 = enable
31:1 Reserved
tio lic
fc_coarse_cal
ca ub
clock cycle.
M
fc_fine_en
Offset Address: 0x048
Bits Name Access Description Reset
0 fc_fine_en R/W Enable 32K fine tuning: 0x0
0 = disable,
1 = enable
31:1 Reserved
243
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
fc_fine_period
Offset Address: 0x04c
Bits Name Access Description Reset
15:0 fc_fine_period R/W 32K fine adjustment counting period 0x0100
(unit: 32K clock) Set how many 32K
clock periods are counted each time
using the 25MHz clock.
31:16 Reserved
ed
fc_fine_cal
w
Offset Address: 0x050
lo
Bits Name Access Description Reset
al
23:0 fc_fine_value RO 32K fine adjustment counter value (unit:
25MHz clock) One 25MHz clock counts
t
one fc_fine_period cycle.
no
31:24 fc_fine_time RO 32K fine tune completion count.
e
rtcsys_pmu2
ar
Offset Address: 0x054 n
Bits Name Access Description Reset
tio
31:5 Reserved
r ib
di V
rtcsys_clkdiv1
st
re k-
15:0 Reserved
21:16 reg_div_clk_osc_irrx_div_val R/W Clock Divider Factor 0x0
n by
22 Reserved
23 reg_div_clk_osc_irrx_dis R/W Clock gate 0x1
tio lic
31:24 Reserved
ca ub
rtcsys_mcu51_dbg
ifi p
3:0 reg_51_dbg_sel R/W select mcu51 debug bus (check mcu 0x0
M
244
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
sw_reg0
Offset Address: 0x060
Bits Name Access Description Reset
7:0 sw_reg0 R/W reg for SW 0x0
31:8 Reserved
sw_reg1_por
G
ed
Offset Address: 0x064
w
Bits Name Access Description Reset
lo
7:0 sw_reg1_por R/W reg for SW could only be reset by power 0x0
reset
al
31:8 Reserved
t
no
fab_lp_ctrl
Offset Address: 0x068
e
ar
Bits Name Access Description Reset
7:0 rtcsys_fab_busy_sel R/W select signal to request sys_ctrl to speed 0xDF
up fab clock
n
tio
9:8 rtcsys_fab_busy_ctrl R/W rtcsys_fab_busy signal is combi or 0x0
register out
11:10 apdbg_busy_ctrl R/W apdbg_busy signal is combi or register 0x0
u
out
ib
register out
st
re k-
fab_option
n by
rtcsys_mcu51_ictrl1
od de
245
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
[3]: irrx_int
[4]: gpio_int
w
[5]: uart_int
lo
[6]: spinor1_int
[7]: timer0_int
al
[8]: timer1_int
[9]: irq_ap2rtc[0]
t
[10]: irq_ap2rtc[1]
no
[11]: i2c_int
[12]: rtc_state_change_int
e
[13]: hw_thm_shdn
ar
[14]: saradc
[15]: wdt_int
n
tio
rtc_ip_pwr_req
Offset Address: 0x080
u
ib
[0]: sd1
1
d il
rtc_ip_iso_ctrl
246
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:18 Reserved
w
rtcsys_wkup_ctrl1
lo
Offset Address: 0x094
al
Bits Name Access Description Reset
t
7:0 reg_rtcsys_wkint_final_status RO wkint final status
no
[0]: sd1_wakeup_intr
[1]: gpio_int
[2]: timer0_int
e
[3]: timer1_int
ar
[4]: saradc_int
[5]: rtcsys_ictrl_int
n
[6]: NA
tio
[7]: NA
31:8 Reserved
u
ib
rtcsys_sram_ctrl
r
di V
st
sram busy
1: sram ctrol by register
tio lic
reg_ahb_sram_slp/reg_ahb_sram_sd
3 reg_sdio_sram_slp R/W 1 : sdio sram into sleep mode 0x0
ca ub
reg_sdio_sram_sd
6 reg_mcu_sram_slp R/W 1 : mcu iram sram into sleep mode 0x0
M a
7 reg_mcu_sram_sd R/W 1 : mcu iram sram into shut down mode 0x0
M
247
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:29 Reserved
w
rtcsys_io_ctrl
lo
al
Offset Address: 0x09c
Bits Name Access Description Reset
t
0 reg_i2c_mux_opt0 R/W 0: pwr_gpio6/8 control by dw_gpio 0x0
no
1: pwr_gpio6 is PWR_IIC_SDA
pwr_gpio8 is PWR_IIC_SCL
e
31:1 Reserved
rtcsys_wdt_ctrl
ar
n
tio
pwrcyc reset
r
pwrcyc reset
re k-
31:2 Reserved
an M
rtcsys_irrx_clk_ctrl
n by
7:4 Reserved
15:8 reg_irrx_xtal_filter_cyc R/W irrx xtal filter cycle (default 2ms) 0x40
M a
31:20 Reserved
rtcsys_rtc_wkup_ctrl
Offset Address: 0x0a8
Bits Name Access Description Reset
7:0 reg_rtc_wkint_mask R/W wakeup source mask int to RTC_CORE 0xff
[0]: irrrx_intr
[1]: gpio_int
[2]: timer0_int
[3]: timer1_int
[4]: saradc_int
248
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
[4]: saradc_int
[5]: rtcsys_ictrl_int
w
[6]: wdt_int
lo
[7]: irrx_wakeup
31:24 Reserved
al
t
rtcsys_por_rst_ctrl
no
Offset Address: 0x0ac
e
Bits Name Access Description Reset
ar
0 reg_rtcsys_reset_en R/W 0: not allow rtcsys reset by pwr cyc/ wdt 0x0
warm resetn
1 : allow rtcsys reset by pwr cyc/ wdt
tio
warm reset
1 reg_rtcsys_rstn_src_sel R/W select rtcsys rstn src 0x0
0: rtc_core fsm (reset with die
u
domain)
ib
1: por_pwr_rstn
r
di V
31:2 Reserved
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
249
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Memory Interface
ed
4.1.1 Overview
w
lo
DDR controller realizes the data access of dynamic random access memory (DRAM). It
al
converts the data access command of each main device in SoC into the DRAM
t
no
command conforming to JEDEC standard and schedules it properly, so as to improve
the efficiency of dynamic memory.
e
4.1.2 Characteristics ar
n
tio
• Features:
u
ib
• Supports:
r
250
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The DRAM interface supports a 16-bit data width. Figure 4-1 shows a schematic
diagram of the interconnection between the main chip and a single DRAM device.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
Command consists of several signals, which vary according to DRAM type. Table 4‑1
compares the DDR2 / DDR3 command signals.
tio lic
251
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
the commands that meets JEDEC standard and complete the actions of reading, writing
w
and power consumption control.
lo
al
4.1.3.2.1 Command Truth Table
t
no
DDR interface meets JDEDC standard, which is shown in Table 4-1 and Table 4-2. They
e
are the support commands truth tables of DDR2, DDR3 respectively for users' reference.
ar
Other information can refer to JEDEC standard. n
tio
Table 4- 1 DDR2 Command Truth Table
u
Pre Cur # S# S# E# - - 0 -
BA2 A15 / A9
r
di V
st
re k-
AP
d il
an M
L H H H V V V V
Single Bank Precharge H H L L H L BA V L V
ca ub
Write H H L H L L BA RFU L CA
Write with Auto Precharge H H L H L L BA RFU H CA
od de
Read H H L H L H BA RFU L CA
M a
252
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Mode Register Set H H L L L L BA OP
w
Refresh H H L L L H V V V V V
lo
Self Refresh Entry H L L L L H V V V V V
Self Refresh Exit L H H X X X X X X X X
al
L H H H V V V V V
t
Single Bank Precharge H H L L H L BA V V L V
no
Precharge all Banks H H L L H L V V V H V
Bank Activate H H L L H H BA RA
Write H H L H L L BA RFU V L CA
e
(Fixed BL8 or BC4)
ar
Write H H L H L L BA RFU L L CA
(BC4, on the Fly)
n
Write H H L H L L BA RFU H L CA
tio
Read H H L H L H BA RFU V L CA
an M
Device Deselected H H H X X X X X X X X
Power Down Entry H L L H H H V V V V V
H X X X X X X X X
Power Down Exit L H L H H H V V V V V
H X X X X X X X X
ZQ Calibration Long H H L H H L X X X H X
ZQ Calibration Short H H L H H L X X X L X
H:High level;L:Low level;V:Effective;X:Does not matter
RFU:reserve for future using.
253
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The DDR controller has the ability to refresh the DRAM content automatically. The
purpose of controlling the automatic refresh is to reduce the delay of accessing data or
the impact of refresh command on the DRAM bandwidth by trying to send refresh
command when the DRAM is idle. The specific available means are as follows:
ed
Equal Interval Refresh: issue refresh command ever tREFI time.
Smart Refresh: The internal DDR controller will count the number of expired tREFI,
w
lo
and then use the idle time to send data continuously.
al
4.1.3.2.3 Low Power Consumption Management
t
no
DDR controller supports low power consumption mode:
e
Normal Low Power Consumption Mode: Set an idle timer through register. When
ar
the normal low power consumption mode is enabled and the DDR controller was
n
tio
idle for a shorter period, the DRAM will be automatically put to the normal low
power consumption mode until there is any access.
u
ib
Self Refresh Mode: It is a mode that consumes much lower power. When the self
r
di V
refresh mode is enabled and the DDR controller was idle for a longer period, the
st
re k-
DRAM will be automatically put to the self refresh mode until there is any access.
d il
an M
DDR controller optimizes the bandwidth utilization of the system based on the control
tio lic
timing of DRAM, and schedules the commands through priority scheduling algorithm.
ca ub
In addition, DDRC also implements two scheduling auxiliary means and real-time
ifi p
control (enabling these two control means according to business needs, which can be
od de
The limitation is 0 ~ 15 DRAM read / write instructions, and the configuration of each
AXI port is independent. DDR controller has high priority for continuous address by
default to optimize DRAM utilization. This mechanism limits the maximum length of
continuous access DRAM for each AXI port.
Timeout Control
For each read/write transfer on the AXI port, a timeout register can be configured to
avoid waiting for an excessively long time. Once the waiting time is reached, the AXI
254
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
port that has not yet reached the waiting time or has not been configured with timeout
properties will be forcibly masked.
Priority Scheduling:
The priority level is 0-15. The higher the value is, the higher the priority is. The read /
write priority configuration of each AXI port is independent.
Real-time Control:
ed
For real-time function, the hardware buffer threshold can be configured. If the buffer is
w
insufficient, the priority will be raised to the highest automatically, and other AXI ports
lo
can be restricted to generate new transmissions
al
t
4.1.3.2.5 Flow Statistics and Command Latency Statistics Function
no
DDR controller supports traffic statistics function: it can count the read and write traffic
e
ar
of each AXI port to collect the current traffic information and decide whether to control
n
the traffic. It can be used to count the total read / write traffic of DRAM.
tio
DDR controller supports AXI latency statistics function, which supports cumulative
u
DDR controller converts the access address of system to that of DRAM. It realizes RBC
an M
The initialization process of the controller is provided in the form of software package.
255
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Name Address Description
Offset
w
AXI_CTRL0_1 0x4b4 AXI1 read timeout control
lo
AXI_CTRL1_1 0x4b8 AXI1 write timeout control
AXI_CTRL0_2 0x564 AXI2 read timeout control
al
AXI_CTRL1_2 0x568 AXI2 write timeout control
t
AXI_CTRL0_3 0x614 AXI3 read timeout control
no
AXI_CTRL1_3 0x618 AXI3 write timeout control
e
Base Address: 0x0800_8000
Name Address Description
ar
n
Offset
tio
256
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
AXI_MON2_RPT0 0x140 AXI monitor 2 cycle count
AXI_MON2_RPT1 0x144 AXI monitor 2 hit count
w
AXI_MON2_RPT2 0x148 AXI monitor 2 byte count
lo
AXI_MON2_RPT3 0x14c AXI monitor 2 latency count
al
AXI_MON3_CTRL 0x180 AXI monitor 3 control
AXI_MON3_INPUT 0x184 AXI monitor 3 input selection
t
AXI_MON3_FILTER0 0x190 AXI monitor 3 filter settings
no
AXI_MON3_FILTER1 0x194 AXI monitor 3 filter settings
AXI_MON3_FILTER2 0x198 AXI monitor 3 filter settings
e
AXI_MON3_FILTER3 0x19c AXI monitor 3 filter settings
ar
AXI_MON3_FILTER4 0x1a0 AXI monitor 3 filter settings
AXI_MON3_FILTER5 0x1a4 AXI monitor 3 filter settings
n
AXI_MON3_FILTER6 0x1a8 AXI monitor 3 filter settings
tio
AXI_MON3_FILTER7 0x1ac AXI monitor 3 filter settings
AXI_MON3_FILTER8 0x1b0 AXI monitor 3 filter settings
u
257
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
AXI_MON6_FILTER3 0x31c AXI monitor 6 filter settings
AXI_MON6_FILTER4 0x320 AXI monitor 6 filter settings
w
AXI_MON6_FILTER5 0x324 AXI monitor 6 filter settings
lo
AXI_MON6_FILTER6 0x328 AXI monitor 6 filter settings
al
AXI_MON6_FILTER7 0x32c AXI monitor 6 filter settings
AXI_MON6_FILTER8 0x330 AXI monitor 6 filter settings
t
AXI_MON6_RPT0 0x340 AXI monitor 6 cycle count
no
AXI_MON6_RPT1 0x344 AXI monitor 6 hit count
AXI_MON6_RPT2 0x348 AXI monitor 6 byte count
e
AXI_MON6_RPT3 0x34c AXI monitor 6 latency count
ar
AXI_MON7_CTRL 0x380 AXI monitor 7 control
AXI_MON7_INPUT 0x384 AXI monitor 7 input selection
n
AXI_MON7_FILTER0 0x390 AXI monitor 7 filter settings
tio
AXI_MON7_FILTER1 0x394 AXI monitor 7 filter settings
AXI_MON7_FILTER2 0x398 AXI monitor 7 filter settings
u
258
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
AXI_MON9_RPT3 0x4cc AXI monitor 9 latency count
AXI_MON10_CTRL 0x500 AXI monitor 10 control
w
AXI_MON10_INPUT 0x504 AXI monitor 10 input selection
lo
AXI_MON10_FILTER0 0x510 AXI monitor 10 filter settings
al
AXI_MON10_FILTER1 0x514 AXI monitor 10 filter settings
AXI_MON10_FILTER2 0x518 AXI monitor 10 filter settings
t
AXI_MON10_FILTER3 0x51c AXI monitor 10 filter settings
no
AXI_MON10_FILTER4 0x520 AXI monitor 10 filter settings
AXI_MON10_FILTER5 0x524 AXI monitor 10 filter settings
e
AXI_MON10_FILTER6 0x528 AXI monitor 10 filter settings
ar
AXI_MON10_FILTER7 0x52c AXI monitor 10 filter settings
AXI_MON10_FILTER8 0x530 AXI monitor 10 filter settings
n
AXI_MON10_RPT0 0x540 AXI monitor 10 cycle count
tio
AXI_MON10_RPT1 0x544 AXI monitor 10 hit count
AXI_MON10_RPT2 0x548 AXI monitor 10 byte count
u
AXI_CTRL0_1
Offset Address: 0x4b4
259
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
AXI_CTRL1_1
lo
Offset Address: 0x4b8
al
Bits Name Access Description Reset
9:0 axi1_wr_timeout_val R/W After an AXI write transaction is 0x0
t
granted, a timeout counter starts to
no
count. When it counts to
axi<n>_wr_timeout_val, the
e
corresponding channel has the highest
ar
priority.
11:10 Reserved n
12 axi1_wr_timeout_en R/W If set to 1, enables the timeout function 0x0
tio
AXI_CTRL0_2
r
di V
st
AXI_CTRL1_2
M a
260
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_CTRL0_3
Offset Address: 0x614
Bits Name Access Description Reset
9:0 axi3_rd_timeout_val R/W After an AXI read transaction is granted, 0x0
a timeout counter starts to count. When
it counts to axi<n>_rd_timeout_val, the
corresponding channel has the highest
priority.
11:10 Reserved
ed
12 axi3_rd_timeout_en R/W If set to 1, enables the timeout function 0x0
for the read channel of port n.
w
31:13 Reserved
lo
al
AXI_CTRL1_3
t
Offset Address: 0x618
no
Bits Name Access Description Reset
9:0 axi3_wr_timeout_val R/W After an AXI write transaction is 0x0
e
granted, a timeout counter starts to
ar
count. When it counts to
axi<n>_wr_timeout_val, the
n
corresponding channel has the highest
tio
priority.
11:10 Reserved
u
31:13 Reserved
di V
st
re k-
d il
基址 0x0800_8000
an M
AXI_MON0_CTRL
n by
function.
1 axi_mon0_clear R/W Clear all the counter. 0x0
ifi p
interrupt.
5 axi_mon0_irq_clear R/W If set to 1, clears the axi_mon_irq. 0x0
6 Reserved
7 axi_mon0_irq RO Assert when all axi_mon<n>_hit_sel
suscces.
31:8 Reserved
AXI_MON0_INPUT
Offset Address: 0x004
Bits Name Access Description Reset
5:0 axi_mon0_input_sel R/W Input/clk selection, 0 = No selection. 0x0
261
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON0_FILTER0
Offset Address: 0x010
Bits Name Access Description Reset
9:0 axi_mon0_hit_sel R/W Select which conditions are used to 0x0
judege hit
bit [0]: addr_st/addr_sp
ed
bit [1]: id/id_mask
w
bit [2]: len
bit [3]: size
lo
bit [4]: burst
al
bit [5]: lock
bit [6]: cache
t
bit [7]: prot
no
bit [8]: qos
bit [9]: AXI transaction cross 4KB
boundary
e
31:10
ar
Reserved
n
AXI_MON0_FILTER1
tio
AXI_MON0_FILTER2
an M
AXI_MON0_FILTER3
od de
AXI_MON0_FILTER4
Offset Address: 0x020
Bits Name Access Description Reset
7:0 axi_mon0_hit_addr_sp_hi R/W Hit end address[39:32] 0x0
31:8 Reserved
AXI_MON0_FILTER5
Offset Address: 0x024
262
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON0_FILTER6
Offset Address: 0x028
Bits Name Access Description Reset
ed
23:0 axi_mon0_hit_id R/W hit = Ax_id == hit_id 0x0
31:24 Reserved
w
lo
AXI_MON0_FILTER7
al
Offset Address: 0x02c
Bits Name Access Description Reset
t
no
7:0 axi_mon0_hit_len R/W hit = Ax_len == hit_len 0x0
10:8 axi_mon0_hit_size R/W hit = Ax_size == hit_size 0x0
11 Reserved
e
13:12
ar
axi_mon0_hit_burst R/W hit = Ax_burst == hit_burst 0x0
31:14 Reserved n
tio
AXI_MON0_FILTER8
Offset Address: 0x030
u
ib
3:1 Reserved
re k-
11 Reserved
15:12 axi_mon0_hit_qos R/W hit = Ax_qos == hit_qos 0x0
n by
31:16 Reserved
tio lic
AXI_MON0_RPT0
ca ub
AXI_MON0_RPT1
M
AXI_MON0_RPT2
Offset Address: 0x048
Bits Name Access Description Reset
31:0 axi_mon0_byte_count RO AXI monitor 0 byte count, counting after
func_en assert, (Ax_len + 1) << Ax_size
263
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON0_RPT3
Offset Address: 0x04c
Bits Name Access Description Reset
31:0 axi_mon0_latency_count RO AXI monitor 0 latency count, counting
after func_en assert, += oustanding
AXI_MON1_CTRL
Offset Address: 0x080
ed
Bits Name Access Description Reset
0 axi_mon1_en R/W If set to 1, enables the AXI monitor 0x0
w
function.
lo
1 axi_mon1_clear R/W Clear all the counter. 0x0
al
2 axi_mon1_snapshot R/W Snapshot all the counter. 0x0
3 axi_mon0_snapshot_all R/W Snapshot all the counter of all AXI 0x0
t
monitors
no
4 axi_mon1_irq_en R/W If set to 1, enables the AXI monitor 0x0
interrupt.
e
5 axi_mon1_irq_clear R/W If set to 1, clears the axi_mon_irq. 0x0
ar
6 Reserved
7 axi_mon1_irq RO Assert when all axi_mon<n>_hit_sel
n
suscces.
tio
31:8 Reserved
u
AXI_MON1_INPUT
ib
31:6 Reserved
an M
AXI_MON1_FILTER0
n by
judege hit
bit [0]: addr_st/addr_sp
ifi p
AXI_MON1_FILTER1
Offset Address: 0x094
Bits Name Access Description Reset
264
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON1_FILTER2
Offset Address: 0x098
Bits Name Access Description Reset
7:0 axi_mon1_hit_addr_st_hi R/W Hit start address[39:32] 0x0
ed
hit = (Ax_addr >= hit_addr_st) &&
(Ax_addr < hit_addr_sp)
w
31:8 Reserved
lo
al
AXI_MON1_FILTER3
t
Offset Address: 0x09c
no
Bits Name Access Description Reset
31:0 axi_mon1_hit_addr_sp_lo R/W Hit end address[31:0] 0x0
e
ar
AXI_MON1_FILTER4 n
Offset Address: 0x0a0
tio
31:8 Reserved
r ib
di V
AXI_MON1_FILTER5
st
re k-
23:0 axi_mon1_hit_id_mask R/W hit = (hit_id & hit_id_mask) == (Ax_id & 0x0
hit_id_mask)
n by
31:24 Reserved
tio lic
AXI_MON1_FILTER6
ca ub
31:24 Reserved
M a
M
AXI_MON1_FILTER7
Offset Address: 0x0ac
Bits Name Access Description Reset
7:0 axi_mon1_hit_len R/W hit = Ax_len == hit_len 0x0
10:8 axi_mon1_hit_size R/W hit = Ax_size == hit_size 0x0
11 Reserved
13:12 axi_mon1_hit_burst R/W hit = Ax_burst == hit_burst 0x0
31:14 Reserved
AXI_MON1_FILTER8
265
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
AXI_MON1_RPT0
lo
Offset Address: 0x0c0
al
Bits Name Access Description Reset
31:0 axi_mon1_cycle_count RO AXI monitor 1 cycle count, counting
t
after func_en assert
no
AXI_MON1_RPT1
e
ar
Offset Address: 0x0c4
Bits Name Access Description
n Reset
31:0 axi_mon1_hit_count RO AXI monitor 1 hit count, counting after
tio
func_en assert
u
AXI_MON1_RPT2
ib
AXI_MON1_RPT3
n by
AXI_MON2_CTRL
od de
266
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON2_INPUT
Offset Address: 0x104
Bits Name Access Description Reset
5:0 axi_mon2_input_sel R/W Input/clk selection, 0 = No selection. 0x0
31:6 Reserved
ed
AXI_MON2_FILTER0
w
Offset Address: 0x110
lo
Bits Name Access Description Reset
al
9:0 axi_mon2_hit_sel R/W Select which conditions are used to 0x0
judege hit
t
no
bit [0]: addr_st/addr_sp
bit [1]: id/id_mask
bit [2]: len
e
bit [3]: size
ar
bit [4]: burst
bit [5]: lock
n
bit [6]: cache
tio
boundary
31:10 Reserved
r
di V
st
re k-
AXI_MON2_FILTER1
d il
an M
AXI_MON2_FILTER2
ifi p
AXI_MON2_FILTER3
Offset Address: 0x11c
Bits Name Access Description Reset
31:0 axi_mon2_hit_addr_sp_lo R/W Hit end address[31:0] 0x0
AXI_MON2_FILTER4
Offset Address: 0x120
267
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON2_FILTER5
Offset Address: 0x124
Bits Name Access Description Reset
23:0 axi_mon2_hit_id_mask R/W hit = (hit_id & hit_id_mask) == (Ax_id & 0x0
ed
hit_id_mask)
31:24 Reserved
w
lo
AXI_MON2_FILTER6
al
Offset Address: 0x128
Bits Name Access Description Reset
t
no
23:0 axi_mon2_hit_id R/W hit = Ax_id == hit_id 0x0
31:24 Reserved
e
ar
AXI_MON2_FILTER7
Offset Address: 0x12c
n
Bits Name Access Description Reset
tio
11 Reserved
ib
31:14 Reserved
re k-
d il
AXI_MON2_FILTER8
an M
31:16 Reserved
M a
M
AXI_MON2_RPT0
Offset Address: 0x140
Bits Name Access Description Reset
31:0 axi_mon2_cycle_count RO AXI monitor 2 cycle count, counting
after func_en assert
AXI_MON2_RPT1
Offset Address: 0x144
Bits Name Access Description Reset
31:0 axi_mon2_hit_count RO AXI monitor 2 hit count, counting after
func_en assert
268
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON2_RPT2
Offset Address: 0x148
Bits Name Access Description Reset
31:0 axi_mon2_byte_count RO AXI monitor 2 byte count, counting after
func_en assert, (Ax_len + 1) << Ax_size
AXI_MON2_RPT3
Offset Address: 0x14c
ed
Bits Name Access Description Reset
31:0 axi_mon2_latency_count RO AXI monitor 2 latency count, counting
w
after func_en assert, += oustanding
lo
al
AXI_MON3_CTRL
t
Offset Address: 0x180
no
Bits Name Access Description Reset
0 axi_mon3_en R/W If set to 1, enables the AXI monitor 0x0
e
function.
ar
1 axi_mon3_clear R/W Clear all the counter. 0x0
2 axi_mon3_snapshot R/W Snapshot all the counter.
n 0x0
3 axi_mon0_snapshot_all R/W Snapshot all the counter of all AXI 0x0
tio
monitors
4 axi_mon3_irq_en R/W If set to 1, enables the AXI monitor 0x0
u
interrupt.
ib
suscces.
d il
31:8 Reserved
an M
AXI_MON3_INPUT
n by
31:6 Reserved
ifi p
AXI_MON3_FILTER0
od de
269
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON3_FILTER1
Offset Address: 0x194
Bits Name Access Description Reset
31:0 axi_mon3_hit_addr_st_lo R/W Hit start address[31:0] 0x0
hit = (Ax_addr >= hit_addr_st) &&
(Ax_addr < hit_addr_sp)
ed
w
AXI_MON3_FILTER2
lo
Offset Address: 0x198
al
Bits Name Access Description Reset
7:0 axi_mon3_hit_addr_st_hi R/W Hit start address[39:32] 0x0
t
hit = (Ax_addr >= hit_addr_st) &&
no
(Ax_addr < hit_addr_sp)
31:8 Reserved
e
ar
AXI_MON3_FILTER3 n
Offset Address: 0x19c
tio
AXI_MON3_FILTER4
r
di V
st
31:8 Reserved
n by
AXI_MON3_FILTER5
tio lic
23:0 axi_mon3_hit_id_mask R/W hit = (hit_id & hit_id_mask) == (Ax_id & 0x0
hit_id_mask)
ifi p
31:24 Reserved
od de
M a
AXI_MON3_FILTER6
M
AXI_MON3_FILTER7
Offset Address: 0x1ac
Bits Name Access Description Reset
7:0 axi_mon3_hit_len R/W hit = Ax_len == hit_len 0x0
10:8 axi_mon3_hit_size R/W hit = Ax_size == hit_size 0x0
270
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON3_FILTER8
Offset Address: 0x1b0
Bits Name Access Description Reset
ed
0 axi_mon3_hit_lock R/W hit = Ax_lock == hit_lock 0x0
3:1 Reserved
w
7:4 axi_mon3_hit_cache R/W hit = Ax_cache == hit_cache 0x0
lo
10:8 axi_mon3_hit_prot R/W hit = Ax_prot == hit_prot 0x0
11 Reserved
al
15:12 axi_mon3_hit_qos R/W hit = Ax_qos == hit_qos 0x0
t
31:16 Reserved
no
AXI_MON3_RPT0
e
ar
Offset Address: 0x1c0
Bits Name Access Description Reset
n
31:0 axi_mon3_cycle_count RO AXI monitor 3 cycle count, counting
tio
AXI_MON3_RPT1
ib
func_en assert
an M
AXI_MON3_RPT2
n by
AXI_MON3_RPT3
od de
AXI_MON4_CTRL
Offset Address: 0x200
Bits Name Access Description Reset
0 axi_mon4_en R/W If set to 1, enables the AXI monitor 0x0
function.
1 axi_mon4_clear R/W Clear all the counter. 0x0
2 axi_mon4_snapshot R/W Snapshot all the counter. 0x0
3 axi_mon0_snapshot_all R/W Snapshot all the counter of all AXI 0x0
monitors
271
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
AXI_MON4_INPUT
w
Offset Address: 0x204
Bits Name Access Description Reset
lo
5:0 axi_mon4_input_sel R/W Input/clk selection, 0 = No selection. 0x0
al
31:6 Reserved
t
no
AXI_MON4_FILTER0
Offset Address: 0x210
e
Bits Name Access Description Reset
ar
9:0 axi_mon4_hit_sel R/W Select which conditions are used to 0x0
judege hit
n
bit [0]: addr_st/addr_sp
tio
31:10 Reserved
tio lic
AXI_MON4_FILTER1
ca ub
AXI_MON4_FILTER2
Offset Address: 0x218
Bits Name Access Description Reset
7:0 axi_mon4_hit_addr_st_hi R/W Hit start address[39:32] 0x0
hit = (Ax_addr >= hit_addr_st) &&
(Ax_addr < hit_addr_sp)
31:8 Reserved
AXI_MON4_FILTER3
Offset Address: 0x21c
272
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON4_FILTER4
Offset Address: 0x220
Bits Name Access Description Reset
7:0 axi_mon4_hit_addr_sp_hi R/W Hit end address[39:32] 0x0
31:8 Reserved
ed
AXI_MON4_FILTER5
w
Offset Address: 0x224
lo
Bits Name Access Description Reset
al
23:0 axi_mon4_hit_id_mask R/W hit = (hit_id & hit_id_mask) == (Ax_id & 0x0
hit_id_mask)
t
31:24 Reserved
no
AXI_MON4_FILTER6
e
ar
Offset Address: 0x228
Bits Name Access Description Reset
n
23:0 axi_mon4_hit_id R/W hit = Ax_id == hit_id 0x0
tio
31:24 Reserved
u
ib
AXI_MON4_FILTER7
r
di V
AXI_MON4_FILTER8
ca ub
AXI_MON4_RPT0
Offset Address: 0x240
Bits Name Access Description Reset
31:0 axi_mon4_cycle_count RO AXI monitor 4 cycle count, counting
after func_en assert
273
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON4_RPT1
Offset Address: 0x244
Bits Name Access Description Reset
31:0 axi_mon4_hit_count RO AXI monitor 4 hit count, counting after
func_en assert
AXI_MON4_RPT2
Offset Address: 0x248
ed
Bits Name Access Description Reset
31:0 axi_mon4_byte_count RO AXI monitor 4 byte count, counting after
w
func_en assert, (Ax_len + 1) << Ax_size
lo
al
AXI_MON4_RPT3
t
Offset Address: 0x24c
no
Bits Name Access Description Reset
31:0 axi_mon4_latency_count RO AXI monitor 4 latency count, counting
e
after func_en assert, += oustanding
AXI_MON5_CTRL
ar
n
Offset Address: 0x280
tio
function.
1 axi_mon5_clear R/W Clear all the counter. 0x0
r
di V
st
suscces.
ca ub
31:8 Reserved
ifi p
AXI_MON5_INPUT
od de
AXI_MON5_FILTER0
Offset Address: 0x290
Bits Name Access Description Reset
9:0 axi_mon5_hit_sel R/W Select which conditions are used to 0x0
judege hit
bit [0]: addr_st/addr_sp
bit [1]: id/id_mask
bit [2]: len
274
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
AXI_MON5_FILTER1
lo
Offset Address: 0x294
al
Bits Name Access Description Reset
31:0 axi_mon5_hit_addr_st_lo R/W Hit start address[31:0] 0x0
t
hit = (Ax_addr >= hit_addr_st) &&
no
(Ax_addr < hit_addr_sp)
e
AXI_MON5_FILTER2
ar
Offset Address: 0x298
Bits Name Access Description Reset
n
tio
7:0 axi_mon5_hit_addr_st_hi R/W Hit start address[39:32] 0x0
hit = (Ax_addr >= hit_addr_st) &&
(Ax_addr < hit_addr_sp)
u
ib
31:8 Reserved
r
di V
st
AXI_MON5_FILTER3
re k-
AXI_MON5_FILTER4
tio lic
31:8 Reserved
od de
AXI_MON5_FILTER5
M a
M
AXI_MON5_FILTER6
Offset Address: 0x2a8
Bits Name Access Description Reset
23:0 axi_mon5_hit_id R/W hit = Ax_id == hit_id 0x0
31:24 Reserved
275
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON5_FILTER7
Offset Address: 0x2ac
Bits Name Access Description Reset
7:0 axi_mon5_hit_len R/W hit = Ax_len == hit_len 0x0
10:8 axi_mon5_hit_size R/W hit = Ax_size == hit_size 0x0
11 Reserved
13:12 axi_mon5_hit_burst R/W hit = Ax_burst == hit_burst 0x0
31:14 Reserved
ed
AXI_MON5_FILTER8
w
Offset Address: 0x2b0
lo
Bits Name Access Description Reset
al
0 axi_mon5_hit_lock R/W hit = Ax_lock == hit_lock 0x0
3:1 Reserved
t
no
7:4 axi_mon5_hit_cache R/W hit = Ax_cache == hit_cache 0x0
10:8 axi_mon5_hit_prot R/W hit = Ax_prot == hit_prot 0x0
11 Reserved
e
ar
15:12 axi_mon5_hit_qos R/W hit = Ax_qos == hit_qos 0x0
31:16 Reserved n
tio
AXI_MON5_RPT0
u
AXI_MON5_RPT1
an M
AXI_MON5_RPT2
ifi p
AXI_MON5_RPT3
Offset Address: 0x2cc
Bits Name Access Description Reset
31:0 axi_mon5_latency_count RO AXI monitor 5 latency count, counting
after func_en assert, += oustanding
AXI_MON6_CTRL
Offset Address: 0x300
Bits Name Access Description Reset
276
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
6 Reserved
7
w
axi_mon6_irq RO Assert when all axi_mon<n>_hit_sel
suscces.
lo
31:8 Reserved
al
AXI_MON6_INPUT
t
no
Offset Address: 0x304
Bits Name Access Description Reset
e
5:0 axi_mon6_input_sel R/W Input/clk selection, 0 = No selection. 0x0
ar
31:6 Reserved n
AXI_MON6_FILTER0
tio
judege hit
di V
st
31:10 Reserved
od de
AXI_MON6_FILTER1
M a
AXI_MON6_FILTER2
Offset Address: 0x318
Bits Name Access Description Reset
7:0 axi_mon6_hit_addr_st_hi R/W Hit start address[39:32] 0x0
hit = (Ax_addr >= hit_addr_st) &&
(Ax_addr < hit_addr_sp)
277
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON6_FILTER3
Offset Address: 0x31c
Bits Name Access Description Reset
31:0 axi_mon6_hit_addr_sp_lo R/W Hit end address[31:0] 0x0
ed
AXI_MON6_FILTER4
w
Offset Address: 0x320
Bits Name Access Description Reset
lo
7:0 axi_mon6_hit_addr_sp_hi R/W Hit end address[39:32] 0x0
al
31:8 Reserved
t
no
AXI_MON6_FILTER5
Offset Address: 0x324
e
Bits Name Access Description Reset
ar
23:0 axi_mon6_hit_id_mask R/W hit = (hit_id & hit_id_mask) == (Ax_id & 0x0
hit_id_mask)
n
31:24 Reserved
u tio
AXI_MON6_FILTER6
ib
AXI_MON6_FILTER7
n by
31:14 Reserved
M a
AXI_MON6_FILTER8
M
278
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON6_RPT0
Offset Address: 0x340
Bits Name Access Description Reset
31:0 axi_mon6_cycle_count RO AXI monitor 6 cycle count, counting
after func_en assert
AXI_MON6_RPT1
Offset Address: 0x344
ed
Bits Name Access Description Reset
31:0 axi_mon6_hit_count RO AXI monitor 6 hit count, counting after
w
func_en assert
lo
al
AXI_MON6_RPT2
t
Offset Address: 0x348
no
Bits Name Access Description Reset
31:0 axi_mon6_byte_count RO AXI monitor 6 byte count, counting after
e
func_en assert, (Ax_len + 1) << Ax_size
AXI_MON6_RPT3
ar
n
Offset Address: 0x34c
tio
AXI_MON7_CTRL
re k-
function.
1 axi_mon7_clear R/W Clear all the counter. 0x0
2 axi_mon7_snapshot R/W Snapshot all the counter. 0x0
tio lic
monitors
4 axi_mon7_irq_en R/W If set to 1, enables the AXI monitor 0x0
ifi p
interrupt.
5 axi_mon7_irq_clear R/W If set to 1, clears the axi_mon_irq. 0x0
od de
6 Reserved
7 axi_mon7_irq RO Assert when all axi_mon<n>_hit_sel
M a
M
suscces.
31:8 Reserved
AXI_MON7_INPUT
Offset Address: 0x384
Bits Name Access Description Reset
5:0 axi_mon7_input_sel R/W Input/clk selection, 0 = No selection. 0x0
31:6 Reserved
AXI_MON7_FILTER0
279
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
bit [6]: cache
bit [7]: prot
w
bit [8]: qos
lo
bit [9]: AXI transaction cross 4KB
al
boundary
31:10 Reserved
t
no
AXI_MON7_FILTER1
Offset Address: 0x394
e
ar
Bits Name Access Description Reset
31:0 axi_mon7_hit_addr_st_lo R/W Hit start address[31:0] 0x0
n
hit = (Ax_addr >= hit_addr_st) &&
tio
(Ax_addr < hit_addr_sp)
u
AXI_MON7_FILTER2
ib
AXI_MON7_FILTER3
tio lic
AXI_MON7_FILTER4
Offset Address: 0x3a0
M a
M
AXI_MON7_FILTER5
Offset Address: 0x3a4
Bits Name Access Description Reset
23:0 axi_mon7_hit_id_mask R/W hit = (hit_id & hit_id_mask) == (Ax_id & 0x0
hit_id_mask)
31:24 Reserved
280
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON7_FILTER6
Offset Address: 0x3a8
Bits Name Access Description Reset
23:0 axi_mon7_hit_id R/W hit = Ax_id == hit_id 0x0
31:24 Reserved
AXI_MON7_FILTER7
Offset Address: 0x3ac
ed
Bits Name Access Description Reset
w
7:0 axi_mon7_hit_len R/W hit = Ax_len == hit_len 0x0
10:8 axi_mon7_hit_size R/W hit = Ax_size == hit_size 0x0
lo
11 Reserved
al
13:12 axi_mon7_hit_burst R/W hit = Ax_burst == hit_burst 0x0
31:14 Reserved
t
no
AXI_MON7_FILTER8
e
Offset Address: 0x3b0
ar
Bits Name Access Description Reset
0 axi_mon7_hit_lock R/W hit = Ax_lock == hit_lock 0x0
n
3:1 Reserved
tio
11 Reserved
r
31:16 Reserved
re k-
d il
AXI_MON7_RPT0
an M
AXI_MON7_RPT1
ifi p
func_en assert
M
AXI_MON7_RPT2
Offset Address: 0x3c8
Bits Name Access Description Reset
31:0 axi_mon7_byte_count RO AXI monitor 7 byte count, counting after
func_en assert, (Ax_len + 1) << Ax_size
AXI_MON7_RPT3
Offset Address: 0x3cc
Bits Name Access Description Reset
281
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON8_CTRL
Offset Address: 0x400
Bits Name Access Description Reset
0 axi_mon8_en R/W If set to 1, enables the AXI monitor 0x0
function.
ed
1 axi_mon8_clear R/W Clear all the counter. 0x0
2 axi_mon8_snapshot R/W Snapshot all the counter. 0x0
w
3 axi_mon0_snapshot_all R/W Snapshot all the counter of all AXI 0x0
lo
monitors
al
4 axi_mon8_irq_en R/W If set to 1, enables the AXI monitor 0x0
interrupt.
t
5 axi_mon8_irq_clear R/W If set to 1, clears the axi_mon_irq. 0x0
no
6 Reserved
7 axi_mon8_irq RO Assert when all axi_mon<n>_hit_sel
e
suscces.
ar
31:8 Reserved
n
AXI_MON8_INPUT
tio
31:6 Reserved
di V
st
re k-
AXI_MON8_FILTER0
d il
an M
AXI_MON8_FILTER1
Offset Address: 0x414
Bits Name Access Description Reset
31:0 axi_mon8_hit_addr_st_lo R/W Hit start address[31:0] 0x0
hit = (Ax_addr >= hit_addr_st) &&
(Ax_addr < hit_addr_sp)
282
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON8_FILTER2
Offset Address: 0x418
Bits Name Access Description Reset
7:0 axi_mon8_hit_addr_st_hi R/W Hit start address[39:32] 0x0
hit = (Ax_addr >= hit_addr_st) &&
(Ax_addr < hit_addr_sp)
31:8 Reserved
ed
AXI_MON8_FILTER3
Offset Address: 0x41c
w
Bits Name Access Description Reset
lo
31:0 axi_mon8_hit_addr_sp_lo R/W Hit end address[31:0] 0x0
al
AXI_MON8_FILTER4
t
no
Offset Address: 0x420
Bits Name Access Description Reset
e
7:0 axi_mon8_hit_addr_sp_hi R/W Hit end address[39:32] 0x0
ar
31:8 Reserved
n
AXI_MON8_FILTER5
tio
23:0 axi_mon8_hit_id_mask R/W hit = (hit_id & hit_id_mask) == (Ax_id & 0x0
r
hit_id_mask)
di V
st
31:24 Reserved
re k-
d il
an M
AXI_MON8_FILTER6
Offset Address: 0x428
n by
31:24 Reserved
ca ub
AXI_MON8_FILTER7
ifi p
AXI_MON8_FILTER8
Offset Address: 0x430
Bits Name Access Description Reset
0 axi_mon8_hit_lock R/W hit = Ax_lock == hit_lock 0x0
3:1 Reserved
7:4 axi_mon8_hit_cache R/W hit = Ax_cache == hit_cache 0x0
283
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON8_RPT0
Offset Address: 0x440
ed
Bits Name Access Description Reset
31:0 axi_mon8_cycle_count RO AXI monitor 8 cycle count, counting
w
after func_en assert
lo
AXI_MON8_RPT1
al
Offset Address: 0x444
t
no
Bits Name Access Description Reset
31:0 axi_mon8_hit_count RO AXI monitor 8 hit count, counting after
func_en assert
e
ar
AXI_MON8_RPT2 n
Offset Address: 0x448
tio
AXI_MON8_RPT3
st
re k-
AXI_MON9_CTRL
tio lic
function.
od de
monitors
4 axi_mon9_irq_en R/W If set to 1, enables the AXI monitor 0x0
interrupt.
5 axi_mon9_irq_clear R/W If set to 1, clears the axi_mon_irq. 0x0
6 Reserved
7 axi_mon9_irq RO Assert when all axi_mon<n>_hit_sel
suscces.
31:8 Reserved
AXI_MON9_INPUT
Offset Address: 0x484
284
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON9_FILTER0
Offset Address: 0x490
Bits Name Access Description Reset
9:0 axi_mon9_hit_sel R/W Select which conditions are used to 0x0
ed
judege hit
bit [0]: addr_st/addr_sp
w
bit [1]: id/id_mask
bit [2]: len
lo
bit [3]: size
al
bit [4]: burst
bit [5]: lock
t
bit [6]: cache
no
bit [7]: prot
bit [8]: qos
bit [9]: AXI transaction cross 4KB
e
ar
boundary
31:10 Reserved n
tio
AXI_MON9_FILTER1
Offset Address: 0x494
u
ib
AXI_MON9_FILTER2
Offset Address: 0x498
n by
31:8 Reserved
ifi p
AXI_MON9_FILTER3
od de
AXI_MON9_FILTER4
Offset Address: 0x4a0
Bits Name Access Description Reset
7:0 axi_mon9_hit_addr_sp_hi R/W Hit end address[39:32] 0x0
31:8 Reserved
AXI_MON9_FILTER5
285
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON9_FILTER6
Offset Address: 0x4a8
ed
Bits Name Access Description Reset
23:0 axi_mon9_hit_id R/W hit = Ax_id == hit_id 0x0
w
31:24 Reserved
lo
al
AXI_MON9_FILTER7
Offset Address: 0x4ac
t
no
Bits Name Access Description Reset
7:0 axi_mon9_hit_len R/W hit = Ax_len == hit_len 0x0
e
10:8 axi_mon9_hit_size R/W hit = Ax_size == hit_size 0x0
ar
11 Reserved
13:12 axi_mon9_hit_burst R/W hit = Ax_burst == hit_burst 0x0
n
31:14 Reserved
tio
AXI_MON9_FILTER8
u
ib
3:1 Reserved
d il
AXI_MON9_RPT0
Offset Address: 0x4c0
ifi p
AXI_MON9_RPT1
Offset Address: 0x4c4
Bits Name Access Description Reset
31:0 axi_mon9_hit_count RO AXI monitor 9 hit count, counting after
func_en assert
AXI_MON9_RPT2
Offset Address: 0x4c8
Bits Name Access Description Reset
286
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON9_RPT3
Offset Address: 0x4cc
Bits Name Access Description Reset
31:0 axi_mon9_latency_count RO AXI monitor 9 latency count, counting
after func_en assert, += oustanding
ed
w
AXI_MON10_CTRL
lo
Offset Address: 0x500
al
Bits Name Access Description Reset
0 axi_mon10_en R/W If set to 1, enables the AXI monitor 0x0
t
function.
no
1 axi_mon10_clear R/W Clear all the counter. 0x0
2 axi_mon10_snapshot R/W Snapshot all the counter. 0x0
e
3 axi_mon0_snapshot_all R/W Snapshot all the counter of all AXI 0x0
ar
monitors
4 axi_mon10_irq_en R/W If set to 1, enables the AXI monitor
n 0x0
interrupt.
tio
5 axi_mon10_irq_clear R/W If set to 1, clears the axi_mon_irq. 0x0
6 Reserved
u
suscces.
31:8 Reserved
r
di V
st
re k-
AXI_MON10_INPUT
d il
an M
AXI_MON10_FILTER0
ca ub
287
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON10_FILTER1
Offset Address: 0x514
Bits Name Access Description Reset
31:0 axi_mon10_hit_addr_st_lo R/W Hit start address[31:0] 0x0
hit = (Ax_addr >= hit_addr_st) &&
(Ax_addr < hit_addr_sp)
AXI_MON10_FILTER2
ed
Offset Address: 0x518
Bits Name Access Description Reset
w
7:0 axi_mon10_hit_addr_st_hi R/W Hit start address[39:32] 0x0
lo
hit = (Ax_addr >= hit_addr_st) &&
al
(Ax_addr < hit_addr_sp)
31:8 Reserved
t
no
AXI_MON10_FILTER3
e
Offset Address: 0x51c
ar
Bits Name Access Description Reset
31:0 axi_mon10_hit_addr_sp_lo R/W Hit end address[31:0] 0x0
n
tio
AXI_MON10_FILTER4
u
31:8 Reserved
re k-
d il
AXI_MON10_FILTER5
an M
hit_id_mask)
31:24 Reserved
ca ub
ifi p
AXI_MON10_FILTER6
od de
31:24 Reserved
AXI_MON10_FILTER7
Offset Address: 0x52c
Bits Name Access Description Reset
7:0 axi_mon10_hit_len R/W hit = Ax_len == hit_len 0x0
10:8 axi_mon10_hit_size R/W hit = Ax_size == hit_size 0x0
11 Reserved
13:12 axi_mon10_hit_burst R/W hit = Ax_burst == hit_burst 0x0
31:14 Reserved
288
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON10_FILTER8
Offset Address: 0x530
Bits Name Access Description Reset
0 axi_mon10_hit_lock R/W hit = Ax_lock == hit_lock 0x0
3:1 Reserved
7:4 axi_mon10_hit_cache R/W hit = Ax_cache == hit_cache 0x0
10:8 axi_mon10_hit_prot R/W hit = Ax_prot == hit_prot 0x0
11 Reserved
ed
15:12 axi_mon10_hit_qos R/W hit = Ax_qos == hit_qos 0x0
31:16 Reserved
w
lo
AXI_MON10_RPT0
al
Offset Address: 0x540
Bits Name Access Description Reset
t
no
31:0 axi_mon10_cycle_count RO AXI monitor 10 cycle count, counting
after func_en assert
e
ar
AXI_MON10_RPT1
Offset Address: 0x544
n
Bits Name Access Description Reset
tio
AXI_MON10_RPT2
r
di V
st
AXI_MON10_RPT3
tio lic
AXI_MON11_CTRL
M a
M
289
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON11_INPUT
Offset Address: 0x584
Bits Name Access Description Reset
ed
5:0 axi_mon11_input_sel R/W Input/clk selection, 0 = No selection. 0x0
31:6 Reserved
w
lo
AXI_MON11_FILTER0
al
Offset Address: 0x590
Bits Name Access Description Reset
t
no
9:0 axi_mon11_hit_sel R/W Select which conditions are used to 0x0
judege hit
bit [0]: addr_st/addr_sp
e
bit [1]: id/id_mask
ar
bit [2]: len
bit [3]: size
n
bit [4]: burst
tio
boundary
re k-
31:10 Reserved
d il
an M
AXI_MON11_FILTER1
n by
AXI_MON11_FILTER2
od de
AXI_MON11_FILTER3
Offset Address: 0x59c
Bits Name Access Description Reset
31:0 axi_mon11_hit_addr_sp_lo R/W Hit end address[31:0] 0x0
AXI_MON11_FILTER4
290
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON11_FILTER5
Offset Address: 0x5a4
Bits Name Access Description Reset
ed
23:0 axi_mon11_hit_id_mask R/W hit = (hit_id & hit_id_mask) == (Ax_id & 0x0
hit_id_mask)
w
31:24 Reserved
lo
al
AXI_MON11_FILTER6
Offset Address: 0x5a8
t
no
Bits Name Access Description Reset
23:0 axi_mon11_hit_id R/W hit = Ax_id == hit_id 0x0
e
31:24 Reserved
AXI_MON11_FILTER7
ar
n
tio
Offset Address: 0x5ac
Bits Name Access Description Reset
u
11 Reserved
di V
st
31:14 Reserved
d il
an M
AXI_MON11_FILTER8
n by
AXI_MON11_RPT0
Offset Address: 0x5c0
Bits Name Access Description Reset
31:0 axi_mon11_cycle_count RO AXI monitor 11 cycle count, counting
after func_en assert
AXI_MON11_RPT1
Offset Address: 0x5c4
Bits Name Access Description Reset
291
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AXI_MON11_RPT2
Offset Address: 0x5c8
Bits Name Access Description Reset
31:0 axi_mon11_byte_count RO AXI monitor 11 byte count, counting
after func_en assert, (Ax_len + 1) <<
ed
Ax_size
w
AXI_MON11_RPT3
lo
Offset Address: 0x5cc
al
Bits Name Access Description Reset
t
31:0 axi_mon11_latency_count RO AXI monitor 11 latency count, counting
no
after func_en assert, += oustanding
e
4.1.6 DDRC Register
ar
n
tio
Offset
DRAM_REF_CTRL 0x064 DRAM refresh parameter
n by
DRAM_REF_CTRL
Offset Address: 0x064
Bits Name Access Description Reset
9:0 t_rfc R/W Specify tRFC 0x8c
Unit: ddr core clock cycles
15:10 Reserved
27:16 t_refi R/W Specify tREFI 0x62
Unit: 32 ddr core clocks
31:28 Reserved
292
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
DRAM_MRD0
Offset Address: 0x0dc
Bits Name Access Description Reset
15:0 ddr_mr1 R/W DDR3: Write value for MR1 register 0x510
31:16 ddr_mr0 R/W DDR3: Write value for MR0 register 0x0
DRAM_MRD1
Offset Address: 0x0e0
ed
Bits Name Access Description Reset
w
15:0 ddr_mr3 R/W DDR3: Write value for MR3 register 0x0
31:16 ddr_mr2 R/W DDR3: Write value for MR2 register 0x0
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
293
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
4.2.1 Overview
ed
4.2.2 Characteristic
w
lo
Support one SPI NOR chip select.
al
Support Dual/Qual read/write operation.
t
no
Support various specifications of devices.
Support 3 Byte address device and 4 Byte address device.
e
ar
Suppport up to 256MB capacity.
SPI NOR is one of boot devices.
n
u tio
SPI NOR Flash controller can support three SPI NOR interface types: Standard SPI, Dual
n by
figure below shows the write and write operation sequence diagrams of standard SPI
interface mode.
M a
M
294
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
Figure 4- 2 Standard SPI Interface Mode Write Operation Sequence
al
t
Sequence description:
no
command/address/dummy cycles are output on DO line in single bit serial
e
mode.
ar
Data is output on DO line in single bit serial mode.
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
Sequence description:
od de
mode.
Data is output on DI line in single bit serial mode.
295
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
Figure 4- 4 Dual-Input SPI Interface Sequence
al
Sequence description:
t
no
Command/Address/Dummy Cycles are output on DO line in single bit serial
mode.
e
ar
Data is input (read) on the DO / DI line in 2 bits mode.
n
tio
In Dual IO SPI interface mode, two bit data lines are paralleled in address output and
ib
data input stages. The figure below shows the Dual IO SPI interface mode operation
r
di V
st
sequence.
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
Sequence description:
Command is output on DO line in single bit serial mode.
Address/Dummy Cycles/Data output (write) or input (read) on DO / DI line in 2
bits mode.
Quad-Input SPI Interface Mode:
In Quad Input SPI interface mode, 4 bit data line are paralleled in data input phase. The
figure below shows the Quad Input SPI interface mode operation sequence.
296
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 4- 6 Quad-Input SPI Interface Sequence
e
ar
Sequence description: n
Command/Address/Dummy Cycles are output on DO line in single bit serial
tio
mode.
u
d il
In Quad IO SPI interface mode, two bit data lines are paralleled in address output and
an M
data input stages. The figure below shows the Quad IO SPI interface mode operation
n by
sequence.
tio lic
ca ub
ifi p
od de
M a
M
Sequence description:
297
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
mapped to SPI NOR flash continuous address space 0x0000_0000~0x0FFF_FFFF. The
w
controller can support flashs up to 256MB, 4 bytes address mode is required if you need
lo
al
to use flashs larger than 16MB. The reset state of the controller is in 3 bytes address
mode, and 4 bytes address mode could be enabled after configuration, so SPI_ NOR
t
no
flash needs to support 3bytes / 4bytes address mode.
e
ar
4.2.3.3 Register Operation
n
The user configures the controller register, such as operation command, address, etc.,
tio
and finally configures reg_go_busy register to issue spi transition . The controller issues
u
ib
When SPI_NOR controller operating in dmmr mode, the content in flash is directly
mapped to chip address space 0x1000_0000~0x1FFF_FFFF. The system DMA can use
tio lic
Instructions, addresses and data must be transmitted through FF_ PORT. Read
od de
instruction, write instruction, instruction length and data length should be configured
M a
first, and then write data to FF_PORT by CPU or DMA to issue instructions and
M
addresses.
298
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
4.2.4 Workflow
Step 1. Configure SPI clock divider according to the flash device and issued command.
Step 2. Configure the interrupt control register.
ed
w
lo
4.2.4.2 Device Status Register Operation
al
Step 1. Configure transmission data length.
t
no
Step 2. Configure transmission mode.
Step 3. Configure reg_go_busy.
e
ar
Step 4. Write the transfer content to the cache. n
Step 5. Check INT_STS and wait for the operation to be finished.
u tio
ib
For SPI_NOR flash device, it supports 3-Byte and 4-Byte Flash address modes, and the
d il
mode can be dynamically switched when system is working. Please follow these steps
an M
Step 2. According to the device requirements, configure the device's register in register
ifi p
Step 3. Configure the register [reg_byte4en] in SPI_NOR flash controller to 4-byte mode
M a
and complete the switch from 3 bytes address mode to 4 bytes address mode.
M
299
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
4.2.4.5 DMA Write Operation Flow
lo
al
Step. 1 Disable DMMR mode and DMA_EN mode.
Step.2 Write FF_PT as 1 to clear FIFO and reset read / write index
t
no
Step.3 Configure the system DMA channel mapping and map the selected DMA
channel to 39: dma_req_spi_nor.
e
ar
Step.4 Configure the system DMA as mem-to-mem transfer mode. DST_TR_WIDTH =
n
0x2 (transaction width is 32bit)、DST_MSIZE = 0x0 (burst transaction length =1)、
tio
are sent.
ca ub
Step.11 Detect SPI_NOR Register INT_STS and wait for the operation to complete. This
od de
indicates that the buffer content has been written to the device.
M a
M
Before the device operation is completed, do not change the relevant register
configuration, otherwise the operation may be abnormal.
300
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
CE_CTRL 0x004 CE operation control
w
lo
DLY_CTRL 0x008 Delay control
al
DMMR_CTRL 0x00c DMMR mode contro
t
TRAN_CSR 0x010 Transmission control
no
TRAN_NUM 0x014 Transfer frame count
e
ar
FF_PORT 0x018 FIFO write/read port
FF_PT 0x020 FIFO pointer status
n
tio
SPI_CTRL
Offset Address: 0x000
tio lic
(2(SckDiv+ 1))
11 Reserved
od de
301
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
CE_CTRL
ed
Offset Address: 0x004
w
Bits Name Access Description Reset
0 ce_manual R/W CEManual controls the level of CE pin. 0x0
lo
1 ce_manual_en R/W CE Manual Enable 0x0
al
0:The level of CE pin is controlled by
hardware state machine
t
no
1:The level of CE pin is controlled by
CEManual register.
31:2 Reserved
e
DLY_CTRL
ar
n
Offset Address: 0x008
tio
3:0 frame_interval R/W Control the frame interval between two 0x0
ib
7:4 Reserved
an M
11:8 cet R/W CET controls the time that CE is effective 0x3
n by
0: Normal sampling
1: Sampling at the negative edge of SCK
for high-speed transmission
31:16 Reserved
DMMR_CTRL
Offset Address: 0x00c
Bits Name Access Description Reset
0 dmmr_mode R/W When the bit is 1, the read address on 0x1
AHB will be directly mapped to SPI flash,
and the controller will automatically
302
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
TRAN_CSR
ed
Offset Address: 0x010
w
Bits Name Access Description Reset
lo
1:0 tran_mode R/W Transfer Mode 0x0
al
00: No Tx, No Rx
01: Rx only
t
10: Tx only
no
11: Tx and Rx
TranMode indicates the sending and
receiving mode of transmission data
e
ar
except command and address
2 Reserved n
3 fast_mode R/W FastMode: 0x0
tio
0: Normal Mode
1: Fast Mode
5:4 bus_width R/W Bus Width 0x0
u
11: Reserved
6 dma_en R/W 0: DMA Disable 0x0
d il
1: DMA Enable
an M
command
1: Current transmission with command
M a
M
ed
transmission. After the transmission,
this bit will be cleared automatically.
w
Before initiating a new transmission, the
lo
software should query the register, and
only when the register is 0 can a new
al
transmission be initiated.
19:16 dummy_cyc R/W dummy cycle count 0x0
t
no
20 byte4en R/W 4 bytes address cycle enable in 0x0
dmmr_mode
21 byte4cmd R/W 4 bytes address cmd enable in 0x0
e
dmmr_mode
ar
31:22 Reserved n
tio
TRAN_NUM
Offset Address: 0x014
u
FF_PORT
n by
FF_PT
ifi p
7:4 Reserved
9:8 wrcnt R/W Current FIFO, write byte offset indicator 0x0
status
12:10 rdpt R/W Current FIFO, read byte offset indicator 0x0
status
31:13 Reserved
INT_STS
Offset Address: 0x028
Bits Name Access Description Reset
304
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
after receiving the interrupt .
5 tx_frame_int R/W This interrupt marks the completion of a 0x0
w
transmission.
lo
31:6 Reserved
al
INT_EN
t
no
Offset Address: 0x02c
Bits Name Access Description Reset
e
0 tran_done_int_en R/W Enable interrupt tran_done_int 0x0
ar
1 Reserved
2 rdff_int_en R/W Enable interrupt rdff_int 0x0
n
3 wrff_int_en R/W Enable interrupt wrff_int 0x0
tio
31:6 Reserved
r ib
di V
st
re k-
4.3.1 Overview
tio lic
4.3.2 Characteristics
od de
M a
305
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SPI NAND flash controller supports three SPI NAND interface types, Standard SPI, X2
interface mode and X4 interface mode.
ed
w
Standard SPI Interface Mode:
lo
Standard SPI interface mode has 1 bit data input and 1 bit data output. Write operation
al
timing sequence of standard SPI interface mode is shown in Figure 4- 8 Standard SPI
t
no
Write Operation Timing
. Read operation timing sequence of standard SPI interface mode is shown in Figure
e
4- 9 Standard SPI Read Operation Timing
Sequence description:
ar
n
tio
command/address/dummy cycles are output on DO line in single bit serial
mode.
u
ib
.
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
Sequence description:
command/address/dummy cycles are output on DO in single bit serial mode.
Data is output on DO in single bit serial mode.
306
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
Figure 4- 9 Standard SPI Read Operation Timing
al
t
Sequence description:
no
command/address/dummy cycles are output on DO line in single bit serial
e
mode.
ar
Data is inptut from DI in single bit serial mode.
n
tio
X2 Interface Mode:
u
Data input and output use two common I/O pins in X2 interface mode. The operation
r ib
Sequence description:
command/address/dummy cycles are output on DO in single bit serial mode.
Data output (write) or input (read) on DO / DI line in 2 bits mode.
X4 Interface Mode:
Data input and output use four common I/O pins in X4 interface mode. The operation
timing sequence is shown in Figure 4- 11.
307
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 4- 11 SPI Nand x4 Interface Mode Operation Sequence
e
ar
Sequence description: n
command/address/dummy cycles are output on DO in single bit serial mode.
tio
When issuing the read-write operation of SPI NAND flash, the column address is issued
n by
to configure reg_ trx_ cmd_ idx according to the operation instructions, and
address configures reg_ trx_ cmd_ cnt0 and reg_ trx_ cmd_ cnt1.
Because the SPI NAND flash address space is discontinuous and there is the possibility
of bad blocks, boot data can not be directly mapped to flash.
308
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
It supports adaptive boot function, and can automatically update the adapter
information according to the data of block0. For controller boot operation requirement
that physical Block0 must be a good block, and other blocks can be automatically
skipped if they are bad blocks.
ed
The software configures the operation related register, such as operation command,
w
address, etc., and set reg_ trx_start register to issue the operation. The controller sends
lo
al
the operation to the device according to the software configuration value. If there are
data content to transfer to the device, the internal DMA will be used.
t
no
e
ar
4.3.3.5 Built-in DMA Operation Method
n
Support built-in system DMA mode to improve read/write operations speed. In this way,
tio
The maximum one second timeout could be set by software. The timout mechanism
ca ub
Step 1. (if the timing parameter needs to be adjusted) Based on device timing to
configure time sequence register reg_trx_sck_h and reg_ trx_ sck_ l.
Step 2. Configure the interrupt control register reg_ trx_ done_ int_ en.
309
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Step 1. Configure the transmission content length reg_ trx_ cmd_ cont_ size and reg_
trx_ data_ size.
Step 2. Configure the device instruction and its related contents reg_ trx_ cmd_ id, reg_
trx_ cmd_ cont0 and reg_ trx_ cmd_ cont1.
ed
Step 3. Set reg_ trx_ start register to issue operation.
w
Step 4. When reg _ trx_ done_ int is asserted, it indicates that the operation is
lo
completed.
al
t
no
4.3.4.3 Erase Operation Process
e
ar
Flash must be erased before programming, and WREN should be set before erase
operation.
n
tio
Step 1. Configure the transmission content length reg_ trx_ cmd_ cont_ size.
Step 2. Configure the device instruction and its related contents reg_ trx_ cmd_ id and
u
ib
Step 4. When reg _ trx_ done_ int is asserted , it indicates that the operation is
d il
an M
completed.
n by
Step 2. Configure the transmission content length reg_ trx_ cmd_ cont_ size and reg_
ifi p
Step 3. Configure the device instruction and its related contents reg_ trx_ cmd_ id, reg_
M a
M
310
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
trx_ cmd_ cont0 and reg_ trx_ cmd_ cont1.
w
Step 4. Set reg_ trx_ start register to issue operation.
lo
Step 5. When reg _ trx_ done_ int is asserted, the buffer content has been written to the
al
device cache.
t
no
4.3.4.6 Other Reminders
e
ar
RESET command is required before normal access or after abnormal reset in some
n
tio
SPI NAND device. Therefore, for better device compatibility, the first transmission
instruction after device power up or abnormal reset should be RESET command.
u
ib
Before the device operation is completed, do not change the relevant register
r
di V
st
For common 2KB page_size device, the available spare area for software is 64 Bytes. The
od de
actual size of the spare area is depended on the device page structure. Data structure of
M a
For common 4KB page_size device, the available spare area for software is 256 Bytes.
The actual size of the spare area is depended on the device page structure. Data
structure of buffer and flash page is shown as follow.
User Data Data(4096) OOB(256)
311
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
reg_trx_size 0x008 number of content size
reg_int_en 0x010 interrupt enable
w
reg_int_clr 0x014 interrupt clear
lo
reg_int_sts 0x01c interrupt status
reg_cont0
al
0x030 content 0
reg_cont1 0x034 content 1
t
reg_cmplt_cnt 0x058 number of transferred bytes
no
reg_tx_data 0x060 tx data
reg_rx_data 0x064 rx data
e
ar
4.3.7 Register description n
u tio
reg_ctrl
r ib
31:1 Reserved
n by
reg_timing_ctrl
Offset Address: 0x004
tio lic
1:0 reg_trx_time_start R/W time for cs assert to 1st command bit 0x0
unit: sck period
ifi p
3:2 Reserved
7:4 reg_trx_time_end R/W time for last data bit to cs de-assert 0x0
od de
15:8 Reserved
M
reg_trx_size
Offset Address: 0x008
Bits Name Access Description Reset
2:0 reg_trx_cmd_cont_size R/W numbers of command content byte 0x0
3 Reserved
312
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
reg_int_en
Offset Address: 0x010
ed
Bits Name Access Description Reset
0 reg_trx_done_int_en R/W trx_done interrupt enable 0x1
w
31:1 Reserved
lo
al
reg_int_clr
Offset Address: 0x014
t
no
Bits Name Access Description Reset
0 reg_trx_done_int_clr W1T trx_done interrupt clear
e
31:1 Reserved
reg_int_sts
ar
n
tio
Offset Address: 0x01c
Bits Name Access Description Reset
u
31:1 Reserved
r
di V
st
re k-
reg_cont0
d il
reg_cont1
ca ub
reg_cmplt_cnt
M a
M
reg_tx_data
Offset Address: 0x060
Bits Name Access Description Reset
31:0 reg_tx_data RO spi tx data
313
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
reg_rx_data
Offset Address: 0x064
Bits Name Access Description Reset
31:0 reg_rx_data RO spi rx data
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
314
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Network interface
ed
5.1.1 Overview
w
lo
The core chip supports two Ethernet Macs to receive and transmit network data.
al
An Ethernet MAC with built-in 10 / 100Mbps Fast Ethernet transmitter can work in 10 /
t
no
100Mbps full duplex or half duplex mode..
.
e
5.1.2 Function description ar
n
tio
The conceptual data stream of Ethernet switching interface is shown in Figure 51.
315
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
Chart 5- 1 GMAC conceptual data stream
lo
al
t
5.1.4 Single port function configuration description
no
e
ar
5.1.5 Ethernet transceiver frame management function n
tio
CPU first configures Ethernet MAC receive and transmit descriptor list buffer and
content composition of descriptor list, for example, setting of frame address and packet
u
ib
During receiving, Ethernet MAC receives all kinds of packets, and according to the CPU
re k-
including packet cache starting address, packet cache depth, etc., and stores the
n by
received packets in DDR. And then inform the CPU to do the follow-up processing.
During transmitting, according to the packet cache information of sending descriptor
tio lic
list configured by CPU, such as packet cache starting address, packet length and other
ca ub
packet information, Ethernet MAC carries the packets stored in DDR, assembles them
ifi p
into packets, and then sends them to the network interface. Then inform the CPU that
od de
Set the receive direction interrupt and configure Re_Int_Enable bit[6] = 1, CPU queries receive
interrupt status Reg_Int_Status bit[6].
316
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
CPU query receive interrupt status Reg_Int_Status bit[6], write 1 to clear the interrupt status.
ed
Ethernet MAC provides MDIO interface to config PHY chip. MDIO interface is divided
w
into read operation and write operation. The main register controlling MDIO interface is
lo
Reg_MdioAddr and Reg_MdioData.
al
The configuration steps of read operation are as follows:
t
no
Configure the MDIO control register with the following settings:
Reg_MdioAddr bit [15:11] config the PHY chip address. Please config based on plan
e
ar
according to PHY chip or version n
Reg_MdioAddr bit [10:6] sets the PHY internal register address to read and write.
tio
The MDIO interface will receive the read back data to Reg_MdioData bit [15:0], and
r
di V
st
change Reg_MdioData to 0.
re k-
d il
an M
The MDIO interface will Reg_Mdi0Addr bit [0] will change to 0 after writing.
M a
M
317
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Note: this configuration is not allowed when the chip is working normally. It is
recommended to configure it during initialization.
ed
5.1.9 Typical applications
w
lo
5.1.10 Register offset address description
al
t
Ethernet MAC 0/1 Register offset address space:
no
ETH0_MAC : 0x0451_000~0x0451_FFFF
e
ar
n
5.1.11 GMAC register overview
u tio
Offset
d il
an M
318
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Reg_Rx_CRC_Error_Packets 0x194 Receiver CRC error frames count register
w
Reg_Rx_Ucast_Packets_Good 0x1c4 Receiver successful good unicast frames count
lo
register
al
Reg_Int_Enable 0x101c Interrupt enable register
Reg_Int_Status 0x1014 Interrupt status register
t
no
e
5.1.12 GMAC register description
ar
n
tio
Reg_MacConfig
Offset Address: 0x000
u
1:0 Reserved
r
di V
st
6:4 Reserved
an M
9:8 Reserved
10 CHKS_EN R/W IP Checksum Offload Enable Register 0x0
tio lic
319
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Reg_MdioAddr
Offset Address: 0x010
Bits Name Access Description Reset
0 GO R/W MDIO operation completion indication 0x0
1: Start operation 0: operation
completed
1 CMD R/W MDIO operation command type 0x0
Write (1'b1), Read (1'b0)
5:2 Reserved
ed
10:6 RegAddr R/W External PHY address configuration 0x0
register
w
15:11 PhyAddr R/W PHY device internal register address 0x0
lo
register
al
31:16 Reserved
t
Reg_MdioData
no
Offset Address: 0x014
e
Bits Name Access Description Reset
ar
15:0 MdioData R/W MDIO writes or reads back the data 0x0
register from PHY
n
31:16 RegAddrC45 R/W 0x0
tio
Reg_MacAddr0_High
u
ib
30:16 Reserved
d il
Reg_MacAddr0_Low
n by
Reg_MacAddr1_High
Offset Address: 0x048
M a
M
Reg_MacAddr1_Low
Offset Address: 0x04c
Bits Name Access Description Reset
31:0 Addr1_Low R/W MAC address register #1 bit[31:0] 0x0
320
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Reg_Tx_Byte_Num_Good_Bad
Offset Address: 0x118
Bits Name Access Description Reset
31:0 TxByteNumGB RO Successfully sent good packet and bad
packet byte count register
ed
Reg_Tx_Bcast_Packets_Good
w
Offset Address: 0x11c
lo
Bits Name Access Description Reset
31:0 TxBcG RO Successfully sent broadcast frame count
al
register of good packets
t
no
Reg_Tx_Mcast_Packets_Good
Offset Address: 0x120
e
Bits Name Access Description Reset
ar
31:0 TxMcG RO Successfully sent multicast frame count
register of good packets
n
tio
Reg_Tx_Ucast_Packets_Good_Bad
u
Reg_Tx_Mcast_Packets_Good_Bad
n by
packets.
ifi p
Reg_Tx_Bcast_Packets_Good_Bad
od de
Reg_Rx_Packets_Num_Good_Bad
Offset Address: 0x180
Bits Name Access Description Reset
31:0 RxPktGB RO Successfullly received statistics register
of frame number of good packets and
wrong packets.
321
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Reg_Rx_Bcast_Packets_Good
Offset Address: 0x18c
Bits Name Access Description Reset
31:0 RxBcG RO Receive successful good packet
broadcast frame count register.
Reg_Rx_Mcast_Packets_Good
ed
Offset Address: 0x190
Bits Name Access Description Reset
w
31:0 RxMcG RO Received good packets' multicast frame
lo
count statistics register.
al
Reg_Rx_CRC_Error_Packets
t
Offset Address: 0x194
no
Bits Name Access Description Reset
31:0 RxCrcERR RO Receiver CRC error frame count register.
e
ar
Reg_Rx_Ucast_Packets_Good
Offset Address: 0x1c4
n
Bits Name Access Description Reset
tio
Reg_Int_Enable
r
5:1 Reserved
an M
31:7 Reserved
Reg_Int_Status
tio lic
5:1 Reserved
od de
31:7 Reserved
M
322
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
5.2.1 Overview
The chip provides a set of built-in Ethernet 10/100 Base-TX compliant PHY interfaces.
ed
5.2.2 Function description
w
lo
Support IEEE 802.3 10/100 Base-TX compliant.
al
Support full duplex and half duplex and auto-negotiation function.
t
no
Support Auto-MDIX function to auto detect crossover cable or straight-through
cable and flip the TX and RX accordingly.
e
ar
Support WOL (Wake on LAN) over Ethernet.
n
tio
twisted pair table. The transmission and receiving signals are connected to the RJ45
M a
M
323
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
The video and image codec hardware unit integrates video codec unit (VCU)
w
and JPEG codec unit (JCU). VCU supports H.265/HEVC, H.264/AVC
lo
international standards, while JCU supports JPEG and Motion-JPEG. VCU/JPU
al
provides real-time, high performance, low delay, low power consumption,
t
no
small bus bandwidth and CPU utilization.
e
6.2 VCU (Video Codec Unit)
ar
n
u tio
6.2.1 Overview
r ib
di V
st
VCU (Video Codec Unit) includes two functions: video encoding (VENC) and
re k-
d il
video decoding (VDEC). With software control, it can encode and decode
an M
6.2.2 Features
tio lic
ca ub
324
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Support QPMap
Support H.265 HSVC time domain layering (HSVC-T)
Support ITU-T H.264/AVC High Profile/Main Profile/Constrained
Baseline Profile@Level 4.2 coding
Support I and P frames
Support 1/2、1/4 pixel precision motion compensation
ed
Inter frame prediction supports PU types such as 16x16, 16x8, 8x16
w
and 8x8
lo
Intra prediction supports 16x16, 8x8, 4x4 and other PU types
al
Support TU types such as 8x8 and 4X4
t
no
Support CABAC、CAVLC entropy coding
Support De-blocking filter
e
ar
Support QPMap
Support H.264 SVC time domain layering (SVC-T)
n
tio
2880x1620@20ps+720x576@20ps encoding
re k-
325
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
Figure 6- 1 VENC function block diagram
u tio
ib
The functional block diagram of VENC is shown in Figure 6-1. The function of
r
di V
st
VENC module is divided into two groups: V-CPU and V-CORE. The main V-CORE
re k-
MCU (micro control unit) and its required on-chip memory, which receives
ca ub
commands from the upper ARM software and controls the generation of
ifi p
As shown in the figure, before starting VENC for video encoding, CPU software
needs to allocate the following three types of buffers in external SDRAM.
Picture Input buffer
Before encoding, the original image to be encoded is usually written into
the buffer by the video input unit or the video processing unit. During the
encoding process, VENC will read the image from this image input buffer
and start encoding.
326
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Bitstream Output buffer
w
During the encoding process, VENC will write the encoded bistream to
lo
this buffer. This buffer is usually read by the software and packaged in the
al
next stage
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
327
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
6.3.1 Overview
JCU (JPEG Codec Unit) contains JPEG image or Motion-JPEG video encoding
ed
(JPE) and decoding (JPD) two major functions. As same as VCU, through
w
lo
software control, according to the application requirements, JPU can
al
simultaneously do encoding and decoding.
t
no
6.3.2 Features
e
JPE module supports the following features: ar
n
tio
−
an M
Encoding performance
n by
328
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
The functional block diagram of JPE is shown in Figure 6-2. JPE hardware
n by
implements the processing of image input DMA, level shift, DCT (Discrete
tio lic
As shown in the figure, before starting JPE for encoding, CPU software needs
M a
M
329
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
During the encoding process, JPE will write the encoded bitstream to
this buffer. This buffer is usually read by the software and packaged in
the next stage.
。
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
330
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
tio
As shown in the figure, JPD function block diagram is shown in Figure 6-3.
d il
IDCT, post processor, level shift and image output DMA, while ARM CPU
software completes decoding control processing, such as package header
tio lic
As shown in the figure, before starting JPD for decoding, the ARM CPU
od de
software needs to allocate the following two types of buffers in the External
M a
M
SDRAM:
Bitstream input buffer
Usually, the bitstream to be decoded is written into this buffer by
software before decoding, and then read by JPD during decoding.
Picture output buffer
JPD will write the decoded image into this buffer during decoding.
331
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
7.1.1 Overview
w
lo
The Video Processing Subsystem (VPSS) implements video processing functions and
al
supports both online modes (ISP-VPSS online and ISP-VPSS-VC fully online) and offline
t
no
modes. It includes video masking, privacy masking, video cropping, scaling, mirror, flip,
180-degree rotation, LBA amplitude ratio conversion, circular masking, OSD overlay,
e
ar
and multi-area stitching. n
tio
When the output width is less than 2880, the video source with maximum input
di V
st
re k-
Support video source with maximum input width of 2880 when the output width
is above 2880
n by
RGB/NV12/NV21/422-packet/420 semi-planar
od de
NV12/NV21/422-packet/420 semi-planar/HSV/BF16
M
332
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Supports OSD and video overlay in 8 regions, and uses this feature to achieve
video masking.
Provides privacy masking function (pixel-based, grid 8x8, RGB332 format).
OSD input format: ARGB8888/ARGB4444/ARGB1555/8-bit LUT/4-bit LUT/bit-
font.
OSD font supports color inversion with background brightness.
ed
Supports OSD compression/decompression to save memory space.
w
Scaling factor supports 1/32-32 times.
lo
al
7.2 LDC (Lens Distortion Correction)
t
no
7.2.1 Overview
e
ar
Lens Distortion Correction (LDC) corrects lens distortion and rotates (90/270) a frame of
n
tio
image. It mainly consists of two functions: geometric distortion correction and affine
transformation.
u
r ib
input/output.
M
333
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Affine Transformation
• Supports video sources with a maximum input width of 4096 and a maximum
output width of 4096.
• Affine transformation only supports output to DRAM.
• Supports single Y-plane, N21/NV12, and 8-bit input/output.
• Maximum output performance of 240 megapixels per second.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
334
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AI engine
ed
w
lo
8.1.1 Overview
al
t
TPU is an AI acceleration engine for deep learning neural network, which can be used to
no
accelerate image classification, object detection, face detection and recognition,
e
segmenataion, and LSTM, etc.. Figure 8-1 shows the block diagram between TPU and
ar
CPU on the chip. The main function of TPU is to offload CPU work and to accelerate
n
Computer Vision and Speech related operations. The two blocks communicate through
tio
interruption.
u
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
335
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
8.1.2 Characteristics
ed
Support a wide range of AI models, such as Resnet、Vgg16、GoogleNet、Yolo、
w
lo
MobileNet, LSTM etc.
al
Support dynamic voltage and frequency scaling
t
Support high-performance and low-power CNN convolution
no
Support high-performance, low-power fully connected layer matrix
e
multiplication and addition
ar
Support various activation functions (such as: ReLU、tanh、Sigmoid, etc.)
n
Support Elementwise tensor operations (including AND、OR、XOR、ADD、SUB、
tio
MIN、MAX、SHIFT、MUL、MAC)
u
nonlinear operations
M a
336
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
337
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Video interface
9.1 VI
ed
9.1.1 Overview
w
lo
Video input unit VI (Video Input) is a camera video data receiving camera module,
al
which can support receiving video data through MIPI Rx interface or BT.656, BT.601,
t
no
interface and DC (Digital Camera) signal, and then send it to the next level of image
processing module (ISP). The functional block diagram of VI is shown in Figure 9.1.
e
ar
VI is divided into two physical sub modules, which are MIPI RX and VI Proc. MIPI RX
module receives and processes different video data, while VI Proc module will integrate
n
tio
different video signals into a single video signal required by ISP module.
u
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
9.1.2 Characteristics
338
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
DC interface
w
• Supports MIPI CSI-2 interface.
lo
• Supports YUV422 format input via MIPI interface.
al
t
no
9.1.3 Mode function description
e
9.1.3.1 Typical applications
ar
n
tio
VI can support a variety of timing input and different interfaces, and do video input
u
acquisition for different encoding methods. The system can use the register to
r ib
The VI module can support up to two input channels. The typical inputs are as follows:
d il
an M
SAV and EAV are also used to indicate the beginning and end of valid line data, but only
od de
8bit is used to transmit video signal, and brightness and chroma are transmitted in
M a
339
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The difference between BT.656 and BT.1120 is only 16 bit (BT.1120) and 8 bit (BT.656) for
image transmission, and other vertical timing and synchronous code formats are the
same.
ed
In addition to using synchronization codes bt.1120 and BT.656, VI supports BT.601
w
interface timing using a variety of different synchronization signals. The actual video
lo
al
data can be set to 16bit mode of Y / C separate input or 8bit mode of Y / C combined
time-sharing input by register, while the synchronization mode can be set to vhs, vde or
t
no
vsde mode by register. The detailed sequence is shown in the figure below.
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
The input synchronization signal of VHS mode is frame synchronization signal (VS) and
od de
line synchronization signal (HS). The system must set the number of hidden lines after
M a
M
frame (vs_back_porch), image height (img_ht), pixel number after line (hs_back_porch)
and image width (img_wd)
340
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
vde mode synchronization signals are frame valid signal (vde) and row valid signal (hde).
w
lo
In this mode, the system does not need to set the parameters related to time sequence
al
and phase sequence. VI module will receive data according to hde / vde signal to
t
update the frame according to vde signal.。
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
The synchronization signals of vsde mode are frame synchronization signal (vs) and
tio lic
effective pixel flag (de). In this mode, the system does not need to set the parameters
ca ub
related to time sequence and phase sequence. The VI module will receive data
ifi p
341
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
9.1.3.4 Digital camera (DC) interface timing
al
VI supports the transmission of RAW format analog BT digital camera (DC) interface
t
no
timing. In DC interface, it can support 8bit, 10bit, and 12bit three different modes. It can
also use register settings to receive video signals by using receive synchronization code
e
ar
or three different synchronization modes similar to BT.601
n
tio
342
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Figure9- 11 DC Synchronous signal mode -VSDE mode
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
343
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The images stored in DRAM are divided into Bayer 12bit and YCbCr 8 bit formats. Y / Cb
/ Cr is stored separately in three different DRAM positions. The arrangement of images
ed
in two formats (12bit / 8bit) in DRAM is shown in the figure below.
w
Figure 9-xx Bayer 12 bit Image storage mode
lo
al
t
no
e
ar
n
u tio
r ib
CV1835 chip has two sets of the same VI module, the internal register offset address is
the same, and the base address is 0x0A0C2000 and 0x0A0C4000。
344
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
REG_44 0x044 HDR_MODE_1
REG_48 0x048 HDR_MODE_2
w
REG_50 0x050 BLC_MODE
lo
REG_54 0x054 BLC_MODE_0
al
REG_58 0x058 BLC_MODE_1
REG_60 0x060 VI_PINMUX_0
t
REG_64 0x064 VI_PINMUX_1
no
REG_68 0x068 VI_PINMUX_2
REG_6C 0x06c VI_PINMUX_3
e
REG_70 0x070 VI_PINMUX_4
ar
REG_74 0x074 VI_PINMUX_5
REG_80 0x080 BT_PATH_0 n
REG_88 0x088 BT_PATH_2
tio
REG_8C 0x08c BT_PATH_3
REG_90 0x090 BT_PATH_4
u
345
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_00
Offset Address: 0x000
Bits Name Access Description Reset
ed
2:0 reg_sensor_mac_mode R/W Sensor mode 0x0
3'b000: Disable
w
3'b001: CSI
lo
3'b010: Sub-LVDS
al
3'b011: TTL
3 reg_bt_demux_enable R/W BT Demux enable 0x0
t
4 reg_csi_ctrl_enable R/W CSI controller enable 0x0
no
5 reg_csi_vs_inv R/W CSI VS inverse 0x1
6 reg_csi_hs_inv R/W CSI HS inverse 0x1
e
7 Reserved
ar
8 reg_sublvds_ctrl_enable R/W Sub-LVDS controller enable 0x0
9 reg_sublvds_vs_inv R/W Sub-LVDS VS inverse 0x1
n
10 reg_sublvds_hs_inv R/W Sub-LVDS HS inverse 0x1
tio
REG_10
r
2'b00: 8-bit
2'b01: 10-bit
n by
2'b10: 12-bit
2'b11: 16-bit
tio lic
3 Reserved
5:4 reg_ttl_bt_fmt_out R/W TTL BT output format 0x2
ca ub
2'b00: {Cb,Y},{Cr,Y}
2'b01: {Cr,Y},{Cb,Y}
ifi p
2'b10: {Y,Cb},{Y,Cr}
od de
2'b11: {Y,Cr},{Y,Cb}
7:6 Reserved
M a
346
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
4'b111x: sensor without sync pattern,
use vs + hde (vsde mode)
w
13:12 reg_ttl_bt_data_seq R/W TTL bt data sequence 0x0
2'b00: Cb0-Y0-Cr0-Y1
lo
2'b01: Cr0-Y0-Cb0-Y1
al
2'b10: Y0-Cb0-Y1-Cr0
2'b11: Y0-Cr0-Y1-Cb0
t
14 reg_ttl_vs_inv R/W TTL vs inverse 0x0
no
15 reg_ttl_hs_inv R/W TTL hs inverse 0x0
31:16 Reserved
e
ar
REG_14
Offset Address: 0x014
n
Bits Name Access Description Reset
tio
REG_18
d il
15:12 Reserved
27:16 reg_ttl_img_ht R/W TTL image height setting 0x0
tio lic
31:28 Reserved
ca ub
REG_1C
ifi p
REG_20
Offset Address: 0x020
Bits Name Access Description Reset
15:0 reg_ttl_sync_2 R/W TTL sync code 2 0x0
31:16 Reserved
REG_24
Offset Address: 0x024
Bits Name Access Description Reset
15:0 reg_ttl_sav_vld R/W TTL valid line SAV 0x0
31:16 reg_ttl_sav_blk R/W TTL blanking line SAV 0x0
347
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_28
Offset Address: 0x028
Bits Name Access Description Reset
15:0 reg_ttl_eav_vld R/W TTL valid line EAV 0x0
31:16 reg_ttl_eav_blk R/W TTL blanking line EAV 0x0
REG_30
Offset Address: 0x030
Bits Name Access Description Reset
ed
2:0 reg_vi_sel R/W VI input mode select 0x0
3'h1: RAW
w
3'h2: BT601
3'h3: BT656
lo
3'h4: BT1120
al
else: reserved
3 reg_vi_from R/W VI input from VI0 or VI1 0x0
t
1'b0: from VI0
no
1'b1: from VI1
4 reg_vi_clk_inv R/W VI clock inverse 0x0
e
5 reg_vi_v_sel_vs R/W 1'b1: vs_in signal as vs 0x1
ar
1'b0: vs_in signal as vde
6 reg_vi_vs_dbg R/W vsync source select
n 0x0
7 Reserved
tio
31:11 Reserved
r
di V
st
REG_40
re k-
Shadow: Yes
Shadow Ctrl: up_1t
M a
348
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Shadow Read Select: shrd_sel
31:9 Reserved
w
lo
REG_44
al
Offset Address: 0x044
Bits Name Access Description Reset
t
no
12:0 reg_sensor_mac_hdr_shift R/W Sensor mac hdr long exposure shift 0x0
(long exposure lines before 1st short
exposure line)
e
Shadow: Yes
ar
Shadow Ctrl: up_1t
Shadow Read Select: shrd_sel
n
15:13 Reserved
tio
31:29 Reserved
di V
st
re k-
REG_48
d il
Shadow: Yes
Shadow Ctrl: up_1t
tio lic
Shadow: Yes
Shadow Ctrl: up_1t
od de
REG_50
Offset Address: 0x050
Bits Name Access Description Reset
0 reg_sensor_mac_blc0_en R/W BLC0 mode enable 0x0
1 reg_sensor_mac_blc1_en R/W BLC1 mode enable 0x0
31:2 Reserved
REG_54
Offset Address: 0x054
Bits Name Access Description Reset
12:0 reg_sensor_mac_blc0_start R/W BLC0 start line number 0x0
349
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_58
Offset Address: 0x058
Bits Name Access Description Reset
12:0 reg_sensor_mac_blc1_start R/W BLC1 start line number 0x0
ed
15:13 Reserved
w
28:16 reg_sensor_mac_blc1_size R/W BLC1 line size 0x4
31:29 Reserved
lo
al
REG_60
Offset Address: 0x060
t
no
Bits Name Access Description Reset
5:0 reg_vi_vs_sel R/W vi pin select 0x0
[5]: from VI1 or VI0
e
[4:0]: from which VI pad count
ar
7:6 Reserved
13:8 reg_vi_hs_sel R/W vi pin select 0x0
n
tio
[5]: from VI1 or VI0
[4:0]: from which VI pad count
15:14 Reserved
u
ib
23:22 Reserved
d il
31:30 Reserved
tio lic
REG_64
Offset Address: 0x064
ca ub
350
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_68
Offset Address: 0x068
Bits Name Access Description Reset
5:0 reg_vi_d4_sel R/W vi pin select 0x0
[5]: from VI1 or VI0
[4:0]: from which VI pad count
7:6 Reserved
13:8 reg_vi_d5_sel R/W vi pin select 0x0
[5]: from VI1 or VI0
ed
[4:0]: from which VI pad count
15:14 Reserved
w
21:16 reg_vi_d6_sel R/W vi pin select 0x0
lo
[5]: from VI1 or VI0
[4:0]: from which VI pad count
al
23:22 Reserved
t
29:24 reg_vi_d7_sel R/W vi pin select 0x0
no
[5]: from VI1 or VI0
[4:0]: from which VI pad count
31:30 Reserved
e
ar
REG_6C n
Offset Address: 0x06c
tio
15:14 Reserved
21:16 reg_vi_d10_sel R/W vi pin select 0x0
n by
23:22 Reserved
29:24 reg_vi_d11_sel R/W vi pin select 0x0
ca ub
31:30 Reserved
od de
REG_70
M a
M
351
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_74
ed
Offset Address: 0x074
Bits Name Access Description Reset
w
2:0 reg_vi_bt_d0_sel R/W vi bt pin select from which VI2 pad 0x0
lo
count
3 Reserved
al
6:4 reg_vi_bt_d1_sel R/W vi bt pin select from which VI2 pad 0x1
t
count
no
7 Reserved
10:8 reg_vi_bt_d2_sel R/W vi bt pin select from which VI2 pad 0x2
e
count
ar
11 Reserved
14:12 reg_vi_bt_d3_sel R/W vi bt pin select from which VI2 pad 0x3
n
count
tio
15 Reserved
18:16 reg_vi_bt_d4_sel R/W vi bt pin select from which VI2 pad 0x4
u
count
ib
19 Reserved
r
di V
st
22:20 reg_vi_bt_d5_sel R/W vi bt pin select from which VI2 pad 0x5
re k-
count
23 Reserved
d il
an M
26:24 reg_vi_bt_d6_sel R/W vi bt pin select from which VI2 pad 0x6
count
n by
27 Reserved
30:28 reg_vi_bt_d7_sel R/W vi bt pin select from which VI2 pad 0x7
tio lic
count
31 Reserved
ca ub
REG_80
ifi p
352
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
22:20 reg_bt_fmt_sel R/W 3'b000 : bt_2x with sync pattern, 9-bit 0x0
w
BT656 (clock + 8-bit data )
3'b001 : bt_1x with sync pattern, 17-bit
lo
BT1120 (clock + 16-bit data )
al
3'b010 : bt_2x without sync pattern, 11-
bit BT601 (clock + 8-bit data + vs + hs)
t
(vhs_mode )
no
3'b011 : bt_1x without sync pattern, 19-
bit BT601 (clock + 16-bit data + vs + hs)
e
(vhs_mode )
ar
3'b100 : bt_2x without sync pattern, 11-
bit BT601 (clock + 8-bit data + vde +
hde) (vde_mode )
n
3'b101 : bt_1x without sync pattern, 19-
tio
(vsde_mode)
di V
st
hde) (vsde_mode)
an M
31:23 Reserved
n by
REG_88
Offset Address: 0x088
tio lic
15:12 Reserved
ifi p
REG_8C
M
REG_90
Offset Address: 0x090
Bits Name Access Description Reset
7:0 reg_bt_vs_fp_m1 R/W BT vsync front porch 0x0
353
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_94
Offset Address: 0x094
Bits Name Access Description Reset
7:0 reg_bt_sync_0 R/W BT sync code byte 0 0x0
15:8 reg_bt_sync_1 R/W BT sync code byte 1 0x0
ed
23:16 reg_bt_sync_2 R/W BT sync code byte 2 0x0
31:24 Reserved
w
lo
REG_98
al
Offset Address: 0x098
Bits Name Access Description Reset
t
7:0 reg_bt_sav_vld_0 R/W BT valid SAV sync code for demux 0 0x0
no
15:8 reg_bt_sav_blk_0 R/W BT blank SAV sync code for demux 0 0x0
23:16 reg_bt_eav_vld_0 R/W BT valid EAV sync code for demux 0 0x0
e
31:24 reg_bt_eav_blk_0 R/W BT blank EAV sync code for demux 0 0x0
ar
REG_9C n
Offset Address: 0x09c
tio
15:8 reg_bt_sav_blk_1 R/W BT blank SAV sync code for demux 1 0x0
ib
23:16 reg_bt_eav_vld_1 R/W BT valid EAV sync code for demux 1 0x0
r
31:24 reg_bt_eav_blk_1 R/W BT blank EAV sync code for demux 1 0x0
di V
st
re k-
REG_A0
d il
15:8 reg_bt_sav_blk_2 R/W BT blank SAV sync code for demux 2 0x0
23:16 reg_bt_eav_vld_2 R/W BT valid EAV sync code for demux 2 0x0
tio lic
31:24 reg_bt_eav_blk_2 R/W BT blank EAV sync code for demux 2 0x0
ca ub
REG_A4
Offset Address: 0x0a4
ifi p
7:0 reg_bt_sav_vld_3 R/W BT valid SAV sync code for demux 3 0x0
15:8 reg_bt_sav_blk_3 R/W BT blank SAV sync code for demux 3 0x0
M a
23:16 reg_bt_eav_vld_3 R/W BT valid EAV sync code for demux 3 0x0
M
31:24 reg_bt_eav_blk_3 R/W BT blank EAV sync code for demux 3 0x0
REG_B0
Offset Address: 0x0b0
Bits Name Access Description Reset
12:0 reg_sensor_mac_crop_start_x R/W Pixels before 0xFFF
reg_sensor_mac_crop_start_x will be
cropped in each line if enable
reg_sensor_mac_crop_en.
15:13 Reserved
28:16 reg_sensor_mac_crop_end_x R/W Pixels after 0xFFF
reg_sensor_mac_crop_end_x will be
354
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_B4
Offset Address: 0x0b4
Bits Name Access Description Reset
ed
12:0 reg_sensor_mac_crop_start_y R/W Lines before 0xFFF
reg_sensor_mac_crop_start_y will be
w
cropped in each frame if enable
reg_sensor_mac_crop_en.
lo
15:13 Reserved
al
28:16 reg_sensor_mac_crop_end_y R/W Lines after 0xFFF
reg_sensor_mac_crop_end_y will be
t
no
cropped in each frame if enable
reg_sensor_mac_crop_en.
31:29 Reserved
e
ar
REG_D0
Offset Address: 0x0d0
n
tio
Bits Name Access Description Reset
0 reg_ttl_as_slvds_enable R/W Sub-LVDS lane enable for each lane 0x0
u
7:1 Reserved
ib
2'b00: 8-bit
di V
st
2'b01: 10-bit
re k-
2'b10: 12-bit
d il
11 Reserved
12 reg_ttl_as_slvds_hdr_mode R/W Sub-LVDS HDR mode enable 0x0
n by
31:14 Reserved
ca ub
REG_D4
ifi p
15:12 Reserved
M
REG_D8
Offset Address: 0x0d8
Bits Name Access Description Reset
11:0 reg_ttl_as_slvds_sync_3rd R/W Sub-LVDS SYNC code 3rd word 0x000
15:12 Reserved
27:16 reg_ttl_as_slvds_norm_bk_sav R/W Normal mode blanking SAV 0xAB0
31:28 Reserved
355
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_DC
Offset Address: 0x0dc
Bits Name Access Description Reset
11:0 reg_ttl_as_slvds_norm_bk_eav R/W Normal mode blanking EAV 0xB60
15:12 Reserved
27:16 reg_ttl_as_slvds_norm_sav R/W Normal mode active SAV 0x800
31:28 Reserved
REG_E0
ed
Offset Address: 0x0e0
Bits Name Access Description Reset
w
11:0 reg_ttl_as_slvds_norm_eav R/W Normal mode active EAV 0x9D0
lo
15:12 Reserved
al
27:16 reg_ttl_as_slvds_n0_bk_sav R/W HDR mode n0 blanking SAV 0x2B0
31:28 Reserved
t
no
REG_E4
Offset Address: 0x0e4
e
Bits Name Access Description Reset
ar
11:0 reg_ttl_as_slvds_n0_bk_eav R/W HDR mode n0 blanking EAV 0x360
15:12 Reserved
n
tio
27:16 reg_ttl_as_slvds_n1_bk_sav R/W HDR mode n1 blanking SAV 0x6B0
31:28 Reserved
u
ib
REG_E8
r
15:12 Reserved
an M
31:28 Reserved
ca ub
REG_EC
ifi p
REG_F0
Offset Address: 0x0f0
Bits Name Access Description Reset
356
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:28 Reserved
w
REG_F4
lo
Offset Address: 0x0f4
al
Bits Name Access Description Reset
11:0 reg_ttl_as_slvds_n1_lef_eav R/W Sub-LVDS mode: n1 long exposure eav 0xDD1
t
no
Sub-LVDS 12-bit LEF EAV n1 (DD1)
Sub-LVDS 10-bit LEF EAV n1 (5D4)
HiSPi P-SP mode: EOF T1 (E00)
e
15:12 Reserved
ar
27:16 reg_ttl_as_slvds_n1_sef_sav R/W Sub-LVDS mode: n1 short exposure sav 0xC02
Sub-LVDS 12-bit SEF SAV n1 (C02)
n
Sub-LVDS 10-bit SEF SAV n1 (408)
tio
REG_F8
r
di V
st
REG_FC
ca ub
31:13 Reserved
REG_100
Offset Address: 0x100
Bits Name Access Description Reset
11:0 reg_ttl_as_slvds_n0_lsef_sav R/W SAV for n0 long & short exposure both 0x803
exist line
only used for pattern 2
15:12 Reserved
27:16 reg_ttl_as_slvds_n0_lsef_eav R/W EAV for n0 long & short exposure both 0x9D3
exist line
only used for pattern 2
357
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_104
Offset Address: 0x104
Bits Name Access Description Reset
11:0 reg_ttl_as_slvds_n1_lsef_sav R/W SAV for n1 long & short exposure both 0xC03
exist line
only used for pattern 2
ed
15:12 Reserved
27:16 reg_ttl_as_slvds_n1_lsef_eav R/W EAV for n1 long & short exposure both 0xDD3
w
exist line
lo
only used for pattern 2
31:28 Reserved
al
t
REG_108
no
Offset Address: 0x108
Bits Name Access Description Reset
e
13:0 reg_ttl_as_slvds_hdr_p2_hsize R/W Hsize for pattern 2 0xF0
ar
15:14 Reserved
29:16 reg_ttl_as_slvds_hdr_p2_hblank R/W Hblank size for pattern 2 0x14
n
31:30 Reserved
tio
REG_110
u
1'b0: Sub-LVDS
1'b1: HiSPi
d il
an M
REG_114
ca ub
15:12 Reserved
27:16 reg_ttl_as_hispi_norm_eof R/W HiSPi EOF sync code 0xE00
M a
31:28 Reserved
M
REG_118
Offset Address: 0x118
Bits Name Access Description Reset
11:0 reg_ttl_as_hispi_hdr_t1_sof R/W HiSPi HDR T1 SOF 0xC00
15:12 Reserved
27:16 reg_ttl_as_hispi_hdr_t1_eof R/W HiSPi HDR T1 EOF 0xE00
31:28 Reserved
REG_11C
Offset Address: 0x11c
358
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_120
Offset Address: 0x120
Bits Name Access Description Reset
ed
11:0 reg_ttl_as_hispi_hdr_t2_sof R/W HiSPi HDR T2 SOF 0xC20
15:12 Reserved
w
27:16 reg_ttl_as_hispi_hdr_t2_eof R/W HiSPi HDR T2 EOF 0xE20
lo
31:28 Reserved
al
REG_124
t
no
Offset Address: 0x124
Bits Name Access Description Reset
11:0 reg_ttl_as_hispi_hdr_t2_sol R/W HiSPi HDR T2 SOL 0x820
e
15:12 Reserved
ar
27:16 reg_ttl_as_hispi_hdr_t2_eol R/W HiSPi HDR T2 EOL
n 0xA20
31:28 Reserved
u tio
r ib
di V
9.2 MIPI Rx
st
re k-
d il
an M
9.2.1 Overview
n by
The main function of MIPI Rx (Mobile Industry Processor Interface Receiver) module is
tio lic
to receive the video data transmitted by CMOS sensor. It supports different serial video
ca ub
signal input such as MIPI D-PHY, sub LVDS (Low-Voltage Differential Signal) and HiSPi
ifi p
(High-Speed Serial Pixel Interface), and then the processing is transformed into internal
od de
video timing, which is transmitted to the next level of video processing module (ISP).
M a
M
MIPI Rx module can be divided into PHY and Controller. PHY module integrates analog
and digital parts, mainly converting serial signals into parallel signals, while Controller
module is responsible for decoding different video data formats and transmitting them
to the back-end video processing module (ISP). The functional block diagram and its
position in the system are shown in Figure 9-13.
359
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
Figure 9- 4 MIPI Rx Functional Block Diagrams and Position
t
no
e
ar
9.2.2 Charateristics n
tio
@20fps
r
di V
st
• Up to 4-Lane MIPI D-PHY interface is supported for a single input, with a maximum
re k-
of 1.5Gbps/Lane
d il
an M
In applications that use image sensors, the MIPI Rx module registers are set, and the
MIPI Rx also supports the transmission of different speeds and resolutions, and is
compatible with multiple image sensor formats.
The MIPI Rx is only responsible for interface timing conversion and decoding, and does
not handle the image processing part. Therefore, it can support any resolution and
360
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
frame rate as long as the bandwidth is satisfied. The MIPI Rx bandwidth has two
limitations: the interface data rate of the PHY and the internal processing speed. The
input interface supports a maximum of 1.5Gbps/Lane, and the maximum internal
processing speed is 600M*1pixels/s.
Common mode Differential Maximum clock Maximum data
voltage mode voltage frequency rate per lane
MIPI DPHY 200mV 200mV 750MHz 1.5Gbps
ed
w
lo
Figure 9- 5 Interface Types Supported by MIPI Rx
al
t
9.2.3.2 MIPI Interface Data Formats
no
MIPI specification is developed and maintained by different working groups,
e
ar
corresponding to different applications. MIPI Rx supports D-PHY and CSI-2 (Camera
Serial Interface). D-PHY specifies the transmission specification of physical layer, while
n
tio
• D-PHY
r
di V
st
synchronization, and the data green rate range of each Lane supports up to
2500Mbps. D-PHY can work in two modes: low power (LP) and high speed (HS).
tio lic
ca ub
• CSI-2
ifi p
CSI-2 is a data protocol for camera, which specifies the data packet format of
od de
CSI-2 can support image applications with different pixel formats, and the minimum
granularity of data transmission is byte. In order to enhance the performance of CSI-2,
the number of data lanes can be selected. CSI-2 protocol specifies the mechanism for
the sender to package pixel data into bytes, and it indicates the way to allocate and
manage multiple data lanes. Byte data is organized in the form of packets, which are
transmitted between SOT and EOT. The receiver parses the corresponding packets
according to the protocol and recovers the original pixel data.
361
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
CSI-2 data packet is divided into long packet and short packet, including check code,
which can correct and detect errors.
ed
w
Both long packets and short packets are transmitted between SOT and EOT. In the
lo
gap of data transmission, D-PHY is in LP mode. The transmission mechanism of CSI-2
al
packet is shown in the figure. PH and PF represent Packet Header and Packet Footer
t
no
respectively.
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
The long packet is used to transmit effective pixel data, which is divided into five parts:
ca ub
The Data ID contains Virtual Channel and Data Type. Virtual Channel controls the
M a
channel used for transmission, and different channels can be used to transmit different
M
Word Count represents the amount of data that the receiver needs to receive.
ECC is an error correcting code, which can correct or detect the error of Data Type and
Word Count.
362
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
CHECKSUM is the check sum generated by the linear feedback shift register, which is
used to check the PAYLOAD data.
The structure of the long package is shown in Figure 9-16.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
The short packet is used to transmit information synchronously, including Data ID, Data
od de
363
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 9- 8 CSI-2 Short Packet Format
e
ar
MIPI Rx supports six video formats, including YUV422-8bit, YUV422-10bit, RAW8,
n
tio
RAW10, RAW12, and RAW16. Different data formats are transmitted as follows.
u
ib
The transmission mode of YUV422-8bit is in the form of UYVY, as shown in Figure 9-23.
r
di V
st
re k-
d il
an M
n by
364
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
365
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 9- 9 YUV422 8-bit Frame Format
e
ar
The transmission mode of YUV422-10bit is also UYVY, and the transmission sequence is
n
tio
366
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
367
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
The transmission format of the whole frame is shown in Figure 9-25.
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
368
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
Figure 9- 16 RAW10 Frame Format
n
tio
369
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 9- 29 RAW12 Frame Format
The transmission sequence of RAW16 is shown in Figure 9-30.
e
ar
n
u tio
ib
370
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The linear mode transmission format of MIPI interface is shown in Figure 9-32. The
transmission of each graph starts with Frame Start (FS) and ends with Frame End (FE).
The video content in the middle is based on the behavior unit, and each long packet
transmits a complete video line. The long packet format is regulated by MIPI standard.
ed
Each row has 32bit Packet Header (PH), which contains the Virtual Channel and Data
w
Type information of the current row.
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
371
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
MIPI Rx supports four kinds of Wide Dynamic (WDR) modes of MIPI interface.
1. Use Data Type (DT) to distinguish long and short exposure data
2. Use the Identification Code (ID) to distinguish the long and short exposure data
372
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
3. Use the register to set the delay interval of long and short exposure data
The WDR transmission mode using DT is shown in Figure 9-33. Different exposure
lengths share a group of FS / FE short packets, and the packet header of the long packet
contains DT information. Different DT can be used to distinguish the long and short
exposure data. The real data format DT and the two groups of DT representing the long
ed
and short exposure data can be set by registers. MIPI Rx can then analyze the correct
w
wide dynamic timing and send it to the rear video processing module.
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
The WDR transmission mode using ID is shown in Figure 9-34. Different exposure
od de
lengths share a group of FS / FE short packets. The first four pixels of each long packet
M a
in the transmission data are used to transmit the Identification Code (ID) representing
M
different exposure lengths. The ID representing long and short exposures can be set by
the register. MIPI Rx will use ID to expose different video signals, remove the first four
pixels and then send them to the video processing module.
373
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
indicate the transmitted long packet is the content of long exposure or short exposure.
ifi p
Users must set their own registers to indicate the difference in the number of exposure
od de
lines between long exposure and short exposure. MIPI Rx will analyze the
M a
corresponding timing to the video processing module. The actual transmission timing is
M
374
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
tio
Up to one set of MIPI Rx modules can be used simultaneously in the chip, which is
mainly divided into three sets of registers. The first part is the register that controls the
n by
PHY module, with a base address of 0x0A0D0000. The second part is the register that
tio lic
controls the CSI module, with base addresses of 0x0A0C2400 and 0x0A0C4400. The
ca ub
third part is the register that controls the Sub-LVDS and HiSPi modules, with base
ifi p
375
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Offset = 0x0A0D0300
ed
Name Address Description
Offset
w
REG_00 0x000 SENSOR_MODE_CTRL
lo
REG_04 0x004 LANE_SWAP_0
al
REG_08 0x008 LANE_SWAP_1
REG_0C 0x00c CSI_GLB_CTL_0
t
REG_20 0x020 SLVDS_CTRL_0
no
REG_24 0x024 SLVDS_CTRL_1
REG_D0_0 0x100 D0_REG_CTRL_CALIB_0
e
REG_D0_1 0x104 D0_REG_CTRL_CALIB_1
ar
REG_D0_3 0x10c D0_CALIB_RESULT_0
REG_D0_4 0x110 D0_CALIB_RESULT_1
n
REG_D0_5 0x114 D0_CALIB_RESULT_2
tio
REG_D0_6 0x118 D0_CALIB_RESULT_3
REG_D0_7 0x11c D0_CALIB_RESULT_4
u
376
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Offset = 0x0A0D0600
Name Address Description
Offset
REG_00 0x000 SENSOR_MODE_CTRL
ed
REG_04 0x004 LANE_SWAP_0
REG_08 0x008 LANE_SWAP_1
w
REG_0C 0x00c CSI_GLB_CTL_0
lo
REG_20 0x020 SLVDS_CTRL_0
REG_D0_0 0x100 D0_REG_CTRL_CALIB_0
al
REG_D0_1 0x104 D0_REG_CTRL_CALIB_1
REG_D0_3
t
0x10c D0_CALIB_RESULT_0
no
REG_D0_4 0x110 D0_CALIB_RESULT_1
REG_D0_5 0x114 D0_CALIB_RESULT_2
REG_D0_6 0x118 D0_CALIB_RESULT_3
e
REG_D0_7 0x11c D0_CALIB_RESULT_4
ar
REG_D0_8 0x120 D0_CALIB_RESULT_5
REG_D0_9 0x124 D0_CALIB_RESULT_6
n
REG_D0_A 0x128 D0_CALIB_RESULT_7
tio
REG_D1_5
di V
0x154 D1_CALIB_RESULT_2
st
re k-
377
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
REG_18 0x018 SYNC_CODE_5
REG_1C 0x01c SYNC_CODE_6
w
REG_20 0x020 SYNC_CODE_7
lo
REG_24 0x024 SYNC_CODE_8
al
REG_28 0x028 SYNC_CODE_9
REG_2C 0x02c VS_GEN
t
REG_30 0x030 LANE_MODE
no
REG_50 0x050 SYNC_CODE_A
REG_54 0x054 SYNC_CODE_B
REG_58 0x058 HDR_PATTEN_2
e
ar
REG_60 0x060 HISPI_MODE_CTRL_0
REG_64 0x064 HISPI_MODE_CTRL_1
REG_68 0x068 HISPI_MODE_CTRL_2
n
REG_6C 0x06c HISPI_MODE_CTRL_3
tio
REG_00
ifi p
13:0 Reserved
M a
15 Reserved
21:16 reg_mipirx_pd_rxlp R/W Power down analog RXLP 0x3f
31:22 Reserved
REG_04
Offset Address: 0x004
Bits Name Access Description Reset
15:0 Reserved
21:16 reg_mipirx_sel_clk_channel R/W Analog macro clock lane select 0x0
30:22 Reserved
31 reg_mipimpll_clk_csi_en R/W Gating test clock from mipimpll 0x0
378
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_30
Offset Address: 0x030
Bits Name Access Description Reset
2:0 reg_sensor_phy_mode R/W Sensor PHY mode enable select 0x0
0: 1C4D
1: 1C2D + 1C2D
else: reserved
31:3 Reserved
ed
REG_34
Offset Address: 0x034
w
Bits Name Access Description Reset
lo
31:0 reg_mipirx_ro_cal0 RO Analog lane 0 calibration result
al
REG_38
t
Offset Address: 0x038
no
Bits Name Access Description Reset
31:0 reg_mipirx_ro_cal1 RO Analog lane 1 calibration result
e
ar
REG_3C
Offset Address: 0x03c
n
tio
Bits Name Access Description Reset
31:0 reg_mipirx_ro_cal2 RO Analog lane 2 calibration result
u
ib
REG_40
r
REG_44
n by
REG_48
Offset Address: 0x048
ifi p
REG_80
M
REG_A0
379
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_A4
ed
Offset Address: 0x0a4
Bits Name Access Description Reset
w
13:0 reg_cam0_vs_stp R/W 0x0
lo
15:14 Reserved
al
29:16 reg_cam0_htt R/W 0x0
31:30 Reserved
t
no
REG_A8
e
Offset Address: 0x0a8
ar
Bits Name Access Description Reset
13:0 reg_cam0_hs_str R/W 0x0
n
15:14 Reserved
tio
31:30 Reserved
r ib
REG_AC
di V
st
Offset = 0x0A0D0300
ifi p
REG_00
od de
2'b00: CSI
2'b01: Sub-LVDS & HiSPi
2'b10: SLVSEC
31:2 Reserved
REG_04
Offset Address: 0x004
Bits Name Access Description Reset
2:0 reg_csi_lane_d0_sel R/W Data lane 0 select 0x1
3 Reserved
6:4 reg_csi_lane_d1_sel R/W Data lane 1 select 0x2
380
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_08
Offset Address: 0x008
ed
Bits Name Access Description Reset
w
2:0 reg_csi_lane_ck_sel R/W Clock lane select 0x0
3 Reserved
lo
4 reg_csi_lane_ck_pnswap R/W Clock lane pn swap 0x0
al
7:5 Reserved
t
8 reg_csi_lane_d0_pnswap R/W Data lane 0 pn swap 0x0
no
9 reg_csi_lane_d1_pnswap R/W Data lane 1 pn swap 0x0
10 reg_csi_lane_d2_pnswap R/W Data lane 2 pn swap 0x0
11 reg_csi_lane_d3_pnswap R/W Data lane 3 pn swap 0x0
e
ar
15:12 Reserved
23:16 reg_csi_ck_phase R/W Clock lane phase 0x0
n
31:24 Reserved
tio
REG_0C
u
4'h0: No lane
re k-
4'h1: 1-lane
d il
4'h3: 2-lane
an M
8'hf: 4-lane
31:4 Reserved
n by
REG_20
tio lic
1 Reserved
3:2 reg_slvds_bit_mode R/W Sub-LVDS bit mode 0x2
M a
M
2'b00: 8-bit
2'b01: 10-bit
2'b10: 12-bit
7:4 reg_slvds_lane_en R/W Sub-LVDS lane enable 0x0
Set this register to start finding sync
code
15:8 Reserved
27:16 reg_slvds_sav_1st R/W Sub-LVDS sync code 1st symbol 0xfff
31:28 Reserved
REG_24
Offset Address: 0x024
381
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_D0_0
Offset Address: 0x100
Bits Name Access Description Reset
ed
0 reg_d0_prbs9_en R/W Manual PRBS9 enable 0x0
1 reg_d0_prbs9_clr_err R/W PRBS9 clear error 0x0
w
2 reg_d0_prbs9_source R/W PRBS9 source select 0x0
lo
1'b0: after sync code shift
1'b1: direct from input
al
3 reg_d0_prbs9_stop_when_done R/W PRBS9 error count accumalation 0x0
t
1'b0: still count after test time done
no
1'b1: do not count after test time done
7:4 Reserved
e
15:8 reg_d0_calib_max R/W Calibration max step 0x1f
ar
23:16 reg_d0_calib_step R/W Calibration one step value 0x1
31:24 reg_d0_calib_pattern R/W Calibration golden pattern
n 0xaa
REG_D0_1
tio
31:4 Reserved
tio lic
REG_D0_3
ca ub
REG_D0_4
M a
REG_D0_5
Offset Address: 0x114
Bits Name Access Description Reset
31:0 reg_d0_skew_calib_result_2 RO Calibration result phase 64~95
REG_D0_6
Offset Address: 0x118
Bits Name Access Description Reset
382
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_D0_7
Offset Address: 0x11c
Bits Name Access Description Reset
31:0 reg_d0_skew_calib_result_4 RO Calibration result phase 128~159
REG_D0_8
ed
Offset Address: 0x120
Bits Name Access Description Reset
w
31:0 reg_d0_skew_calib_result_5 RO Calibration result phase 160~191
lo
al
REG_D0_9
Offset Address: 0x124
t
no
Bits Name Access Description Reset
31:0 reg_d0_skew_calib_result_6 RO Calibration result phase 192~223
e
REG_D0_A
ar
Offset Address: 0x128 n
Bits Name Access Description Reset
tio
31:0 reg_d0_skew_calib_result_7 RO Calibration result phase 224~255
u
REG_D1_0
ib
REG_D1_1
M a
REG_D1_3
383
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_D1_4
Offset Address: 0x150
Bits Name Access Description Reset
31:0 reg_d1_skew_calib_result_1 RO Calibration result phase 32~63
ed
REG_D1_5
Offset Address: 0x154
w
Bits Name Access Description Reset
lo
31:0 reg_d1_skew_calib_result_2 RO Calibration result phase 64~95
al
REG_D1_6
t
Offset Address: 0x158
no
Bits Name Access Description Reset
31:0 reg_d1_skew_calib_result_3 RO Calibration result phase 96~127
e
ar
REG_D1_7
Offset Address: 0x15c
n
tio
Bits Name Access Description Reset
31:0 reg_d1_skew_calib_result_4 RO Calibration result phase 128~159
u
ib
REG_D1_8
r
REG_D1_9
Offset Address: 0x164
n by
REG_D1_A
Offset Address: 0x168
ifi p
REG_D2_0
M
REG_D2_1
Offset Address: 0x184
Bits Name Access Description Reset
0 reg_d2_calib_en R/W Calibration software enable 0x0
1 reg_d2_calib_source R/W Calibration source 0x0
1'b0: normal position
ed
1'b1: direct from analog
w
2 reg_d2_calib_mode R/W Calibration software mode 0x0
1'b0: use identical calibration pattern
lo
1'b1: use PRBS9 pattern
al
3 reg_d2_calib_ignore R/W Ignore calibration command 0x0
31:4 Reserved
t
no
REG_D2_3
Offset Address: 0x18c
e
Bits Name Access Description Reset
ar
31:0 reg_d2_skew_calib_result_0 RO Calibration result phase 0~31
n
REG_D2_4
tio
REG_D2_5
re k-
REG_D2_6
Offset Address: 0x198
tio lic
REG_D2_7
od de
REG_D2_8
Offset Address: 0x1a0
Bits Name Access Description Reset
31:0 reg_d2_skew_calib_result_5 RO Calibration result phase 160~191
REG_D2_9
Offset Address: 0x1a4
Bits Name Access Description Reset
31:0 reg_d2_skew_calib_result_6 RO Calibration result phase 192~223
385
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_D2_A
Offset Address: 0x1a8
Bits Name Access Description Reset
31:0 reg_d2_skew_calib_result_7 RO Calibration result phase 224~255
REG_D3_0
Offset Address: 0x1c0
Bits Name Access Description Reset
0 reg_d3_prbs9_en R/W Manual PRBS9 enable 0x0
ed
1 reg_d3_prbs9_clr_err R/W PRBS9 clear error 0x0
2 reg_d3_prbs9_source R/W PRBS9 source select 0x0
w
1'b0: after sync code shift
lo
1'b1: direct from input
3 reg_d3_prbs9_stop_when_done R/W PRBS9 error count accumalation 0x0
al
1'b0: still count after test time done
1'b1: do not count after test time done
t
no
7:4 Reserved
15:8 reg_d3_calib_max R/W Calibration max step 0x1f
23:16 reg_d3_calib_step R/W Calibration one step value 0x1
e
ar
31:24 reg_d3_calib_pattern R/W Calibration golden pattern 0xaa
REG_D3_1
n
Offset Address: 0x1c4
tio
REG_D3_3
tio lic
REG_D3_4
Offset Address: 0x1d0
M a
REG_D3_5
Offset Address: 0x1d4
Bits Name Access Description Reset
31:0 reg_d3_skew_calib_result_2 RO Calibration result phase 64~95
REG_D3_6
Offset Address: 0x1d8
Bits Name Access Description Reset
31:0 reg_d3_skew_calib_result_3 RO Calibration result phase 96~127
386
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_D3_7
Offset Address: 0x1dc
Bits Name Access Description Reset
31:0 reg_d3_skew_calib_result_4 RO Calibration result phase 128~159
REG_D3_8
Offset Address: 0x1e0
Bits Name Access Description Reset
31:0 reg_d3_skew_calib_result_5 RO Calibration result phase 160~191
ed
REG_D3_9
w
Offset Address: 0x1e4
lo
Bits Name Access Description Reset
al
31:0 reg_d3_skew_calib_result_6 RO Calibration result phase 192~223
t
REG_D3_A
no
Offset Address: 0x1e8
Bits Name Access Description Reset
e
31:0 reg_d3_skew_calib_result_7 RO Calibration result phase 224~255
ar
n
Offset = 0x0A0D0600
tio
REG_00
u
2'b00: CSI
2'b01: Sub-LVDS & HiSPi
d il
2'b10: SLVSEC
an M
31:2 Reserved
n by
REG_04
Offset Address: 0x004
tio lic
31:6 Reserved
M a
REG_08
M
387
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_0C
Offset Address: 0x00c
Bits Name Access Description Reset
1:0 reg_deskew_lane_en R/W Deskew lane enable 0x0
2'h0: No lane
2'h1: 1-lane
2'h3: 2-lane
31:2 Reserved
REG_20
ed
Offset Address: 0x020
w
Bits Name Access Description Reset
lo
0 reg_slvds_inv_en R/W Sub-LVDS bit reverse 0x1
1'b0: LSB first
al
1'b1: MSB first
1 Reserved
t
no
3:2 reg_slvds_bit_mode R/W Sub-LVDS bit mode 0x2
2'b00: 8-bit
2'b01: 10-bit
e
2'b10: 12-bit
ar
5:4 reg_slvds_lane_en R/W Sub-LVDS lane enable 0x0
Set this register to start finding sync
n
code
tio
31:6 Reserved
u
REG_D0_0
ib
REG_D0_1
M a
M
388
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_D0_3
Offset Address: 0x10c
Bits Name Access Description Reset
31:0 reg_d0_skew_calib_result_0 RO Calibration result phase 0~31
REG_D0_4
Offset Address: 0x110
Bits Name Access Description Reset
31:0 reg_d0_skew_calib_result_1 RO Calibration result phase 32~63
ed
REG_D0_5
w
Offset Address: 0x114
lo
Bits Name Access Description Reset
al
31:0 reg_d0_skew_calib_result_2 RO Calibration result phase 64~95
t
REG_D0_6
no
Offset Address: 0x118
Bits Name Access Description Reset
e
31:0 reg_d0_skew_calib_result_3 RO Calibration result phase 96~127
REG_D0_7 ar
n
tio
Offset Address: 0x11c
Bits Name Access Description Reset
u
REG_D0_8
di V
st
REG_D0_9
n by
REG_D0_A
ifi p
REG_D1_0
Offset Address: 0x140
Bits Name Access Description Reset
0 reg_d1_prbs9_en R/W Manual PRBS9 enable 0x0
1 reg_d1_prbs9_clr_err R/W PRBS9 clear error 0x0
2 reg_d1_prbs9_source R/W PRBS9 source select 0x0
1'b0: after sync code shift
1'b1: direct from input
3 reg_d1_prbs9_stop_when_done R/W PRBS9 error count accumalation 0x0
1'b0: still count after test time done
1'b1: do not count after test time done
389
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_D1_1
Offset Address: 0x144
Bits Name Access Description Reset
ed
0 reg_d1_calib_en R/W Calibration software enable 0x0
1 reg_d1_calib_source R/W Calibration source 0x0
w
1'b0: normal position
1'b1: direct from analog
lo
2 reg_d1_calib_mode R/W Calibration software mode 0x0
al
1'b0: use identical calibration pattern
1'b1: use PRBS9 pattern
t
3 reg_d1_calib_ignore R/W Ignore calibration command 0x0
no
31:4 Reserved
e
REG_D1_3
ar
Offset Address: 0x14c
Bits Name Access Description Reset
n
tio
31:0 reg_d1_skew_calib_result_0 RO Calibration result phase 0~31
u
REG_D1_4
ib
REG_D1_5
an M
REG_D1_6
ca ub
REG_D1_7
M a
REG_D1_8
Offset Address: 0x160
Bits Name Access Description Reset
31:0 reg_d1_skew_calib_result_5 RO Calibration result phase 160~191
REG_D1_9
Offset Address: 0x164
Bits Name Access Description Reset
390
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_D1_A
Offset Address: 0x168
Bits Name Access Description Reset
31:0 reg_d1_skew_calib_result_7 RO Calibration result phase 224~255
ed
w
The second part is MIPI Rx CSI controller register.
lo
al
REG_00
t
Offset Address: 0x000
no
Bits Name Access Description Reset
2:0 reg_csi_lane_mode R/W Lane mode 0x0
3'b000: 1-lane
e
ar
3'b001: 2-lane
3'b011: 4-lane
3'b111: 8-lane
n
3 reg_csi_ignore_ecc R/W Ignore ecc result 0x0
tio
1'b0: normal
1'b1: still processing even ecc error
u
vc_set[3:0]
re k-
7:5 Reserved
d il
signal
31:13 Reserved
ca ub
REG_04
ifi p
391
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_08
Offset Address: 0x008
Bits Name Access Description Reset
15:0 reg_csi_n0_ob_lef R/W ID for LEF ob n0 0x221
31:16 reg_csi_n0_ob_sef R/W ID for SEF ob n0 0x222
REG_0C
Offset Address: 0x00c
Bits Name Access Description Reset
ed
15:0 reg_csi_n0_lef R/W ID for LEF active n0 0x241
31:16 reg_csi_n1_ob_lef R/W ID for LEF ob n1 0x231
w
REG_10
lo
Offset Address: 0x010
al
Bits Name Access Description Reset
15:0 reg_csi_n1_ob_sef R/W ID for SEF ob n1 0x232
t
no
31:16 reg_csi_n1_lef R/W ID for LEF active n1 0x251
REG_14
e
Offset Address: 0x014
ar
Bits Name Access Description Reset
5:0 reg_csi_blc_dt R/W Data type for optical black line 0x37
n
7:6 Reserved
tio
11:9 Reserved
ib
14:12 reg_csi_blc_format_set R/W Optical black line data format set 0x2
r
3'd2: RAW8
d il
3'd3: RAW10
an M
3'd4: RAW12
3'd5: RAW16
n by
else: reserved
31:15 Reserved
tio lic
REG_18
ca ub
31:16 Reserved
REG_1C
Offset Address: 0x01c
Bits Name Access Description Reset
15:0 reg_csi_n0_sef R/W ID for SEF active n0 0x242
31:16 reg_csi_n1_sef R/W ID for SEF active n1 0x252
REG_20
Offset Address: 0x020
Bits Name Access Description Reset
15:0 reg_csi_n0_sef2 R/W ID for SEF2 active n0 0x244
392
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_24
Offset Address: 0x024
Bits Name Access Description Reset
15:0 reg_csi_n0_ob_sef2 R/W ID for SEF2 ob n0 0x224
31:16 reg_csi_n1_ob_sef2 R/W ID for SEF2 ob n1 0x234
REG_40
ed
Offset Address: 0x040
w
Bits Name Access Description Reset
0 reg_csi_ecc_no_error RO ECC no error
lo
1 reg_csi_ecc_corrected_error RO ECC corrected error
al
2 reg_csi_ecc_error RO ECC error
t
3 Reserved
no
4 reg_csi_crc_error RO CRC error
e
5 reg_csi_wc_error RO WC error
ar
7:6 Reserved
8 reg_csi_fifo_full RO CSI FIFO full
n
tio
15:9 Reserved
21:16 reg_csi_decode_format RO CSI decode format from header
u
bit[3]: RAW10
re k-
bit[4]: RAW12
bit[5]: RAW16
d il
an M
31:22 Reserved
n by
REG_60
Offset Address: 0x060
tio lic
31:8 Reserved
M
REG_70
Offset Address: 0x070
Bits Name Access Description Reset
1:0 reg_csi_vs_gen_mode R/W 2'b00: vs gen by FS 0x2
2'b01: vs gen by FE
else: vs gen by FS & FE
3:2 Reserved
4 reg_csi_vs_gen_by_vcset R/W Vsync generation setting 0x0
1'b0: generated by all vc short packet
1'b1: only generated by indicated vc
short packet
393
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_74
Offset Address: 0x074
Bits Name Access Description Reset
0 reg_csi_hdr_dt_mode R/W CSI HDR DT mode enable 0x0
3:1 Reserved
9:4 reg_csi_hdr_dt_format R/W CSI HDR DT mode video format data 0x0
ed
type
11:10 Reserved
w
17:12 reg_csi_hdr_dt_lef R/W CSI HDR DT mode LEF data type 0x0
lo
19:18 Reserved
al
25:20 reg_csi_hdr_dt_sef R/W CSI HDR DT mode SEF data type 0x0
31:26 Reserved
t
no
The third part is MIPI Rx Sub-LVDS control registers
e
REG_00 ar
n
tio
Offset Address: 0x000
Bits Name Access Description Reset
u
7:0 reg_slvds_enable R/W Sub-LVDS lane enable for each lane 0x0
ib
2'b01: 10-bit
re k-
2'b10: 12-bit
10 reg_slvds_data_reverse R/W Sub-LVDS data packet bit inverse 0x0
d il
an M
11 Reserved
12 reg_slvds_hdr_mode R/W Sub-LVDS HDR mode enable 0x0
n by
31:14 Reserved
ca ub
REG_04
ifi p
15:12 Reserved
M
REG_08
Offset Address: 0x008
Bits Name Access Description Reset
11:0 reg_slvds_sync_3rd R/W Sub-LVDS SYNC code 3rd word 0x000
15:12 Reserved
27:16 reg_slvds_norm_bk_sav R/W Normal mode blanking SAV 0xAB0
31:28 Reserved
394
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_0C
Offset Address: 0x00c
Bits Name Access Description Reset
11:0 reg_slvds_norm_bk_eav R/W Normal mode blanking EAV 0xB60
15:12 Reserved
27:16 reg_slvds_norm_sav R/W Normal mode active SAV 0x800
31:28 Reserved
REG_10
ed
Offset Address: 0x010
Bits Name Access Description Reset
w
11:0 reg_slvds_norm_eav R/W Normal mode active EAV 0x9D0
lo
15:12 Reserved
al
27:16 reg_slvds_n0_bk_sav R/W HDR mode n0 blanking SAV 0x2B0
31:28 Reserved
t
no
REG_14
Offset Address: 0x014
e
Bits Name Access Description Reset
ar
11:0 reg_slvds_n0_bk_eav R/W HDR mode n0 blanking EAV 0x360
15:12 Reserved
n
tio
27:16 reg_slvds_n1_bk_sav R/W HDR mode n1 blanking SAV 0x6B0
31:28 Reserved
u
ib
REG_18
r
15:12 Reserved
an M
31:28 Reserved
ca ub
REG_1C
ifi p
REG_20
Offset Address: 0x020
Bits Name Access Description Reset
395
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:28 Reserved
w
REG_24
lo
Offset Address: 0x024
al
Bits Name Access Description Reset
11:0 reg_slvds_n1_lef_eav R/W Sub-LVDS mode: n1 long exposure eav 0xDD1
t
no
Sub-LVDS 12-bit LEF EAV n1 (DD1)
Sub-LVDS 10-bit LEF EAV n1 (5D4)
HiSPi P-SP mode: EOF T1 (E00)
e
15:12 Reserved
ar
27:16 reg_slvds_n1_sef_sav R/W Sub-LVDS mode: n1 short exposure sav 0xC02
Sub-LVDS 12-bit SEF SAV n1 (C02)
n
Sub-LVDS 10-bit SEF SAV n1 (408)
tio
REG_28
r
di V
st
REG_2C
ca ub
31:13 Reserved
REG_30
Offset Address: 0x030
Bits Name Access Description Reset
2:0 reg_slvds_lane_mode R/W Sub-LVDS lane mode 0x3
2'b0: 1-lane
2'b1: 2-lane
2'b3: 4-lane
2'b7: 8-lane
3 Reserved
11:4 reg_slvds_sync_source R/W Sub-LVDS output sync source select 0x1
396
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_50
Offset Address: 0x050
Bits Name Access Description Reset
11:0 reg_slvds_n0_lsef_sav R/W SAV for n0 long & short exposure both 0x803
exist line
only used for pattern 2
ed
15:12 Reserved
27:16 reg_slvds_n0_lsef_eav R/W EAV for n0 long & short exposure both 0x9D3
w
exist line
lo
only used for pattern 2
31:28 Reserved
al
t
REG_54
no
Offset Address: 0x054
Bits Name Access Description Reset
e
11:0 reg_slvds_n1_lsef_sav R/W SAV for n1 long & short exposure both 0xC03
ar
exist line
only used for pattern 2
n
15:12 Reserved
tio
27:16 reg_slvds_n1_lsef_eav R/W EAV for n1 long & short exposure both 0xDD3
exist line
u
31:28 Reserved
r
di V
st
REG_58
re k-
REG_60
Offset Address: 0x060
ifi p
1'b1: HiSPi
M
REG_64
Offset Address: 0x064
Bits Name Access Description Reset
11:0 reg_hispi_norm_sof R/W HiSPi SOF sync code 0xC00
15:12 Reserved
27:16 reg_hispi_norm_eof R/W HiSPi EOF sync code 0xE00
397
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
REG_68
Offset Address: 0x068
Bits Name Access Description Reset
11:0 reg_hispi_hdr_t1_sof R/W HiSPi HDR T1 SOF 0xC00
15:12 Reserved
27:16 reg_hispi_hdr_t1_eof R/W HiSPi HDR T1 EOF 0xE00
ed
31:28 Reserved
w
REG_6C
lo
Offset Address: 0x06c
al
Bits Name Access Description Reset
11:0 reg_hispi_hdr_t1_sol R/W HiSPi HDR T1 SOL 0x800
t
15:12 Reserved
no
27:16 reg_hispi_hdr_t1_eol R/W HiSPi HDR T1 EOL 0xA00
31:28 Reserved
e
ar
REG_70 n
Offset Address: 0x070
tio
Bits Name Access Description Reset
11:0 reg_hispi_hdr_t2_sof R/W HiSPi HDR T2 SOF 0xC20
u
15:12 Reserved
ib
31:28 Reserved
di V
st
re k-
REG_74
d il
an M
31:28 Reserved
ca ub
REG_80
ifi p
31:8 Reserved
M
398
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ISP
10.1Function Overview
ed
Image signal processor (ISP) optimizes the image captured by sensor, including 3A
w
(automatic exposure (AE), automatic white balance (AWB), automatic focus (AF)), black
lo
level correction (BLC), defect pixel correction (DPC), fix pattern noise(FPN), high
al
dynamic range image processing (HDR), Bayer domain noise reduction (BNR), and de
t
no
mosaic (CFA), gamma correction, Dehaze, color space convert (CSC), image sharpen,
time domain noise reduction(3DNR), brightness noise reduction(YNR), color noise
e
reduction(CNR), hsv space conversion(HSV), etc. The specifications it supports are as
follows.
ar
n
tio
399
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
10.2Overview
ed
processing. The pre_raw_fe_top has two sets that support dual-camera input, while the
w
pre_raw_be_top is used to process statistical data of pre_raw_fe_top dual-camera input
lo
al
separately. The three main modules, raw_top, rgb_top, and yuv_top, can also be
collectively referred to as post_raw. Figures 10-2, 10-3, 10-4, and 10-5 are detailed block
t
no
diagrams of the four main modules. As the ISP supports dual-camera input, two sets of
e
modules in pre_raw_fe_top are responsible for receiving dual-camera data. The image
ar
data from the two sensors are then processed separately in pre_raw_be_top and
n
post_raw.
u tio
r ib
di V
st
re k-
d il
The following figure shows the basic module diagram of pre_raw_fe and pre_raw_be.
tio lic
The CSI_BRG of pre_raw_fe receives signals from the sensor side, and the data stream is
ca ub
divided into two paths. One path is directly stored in DRAM or transmitted to
ifi p
pre_raw_be, while the other path is cropped to the desired processing size, and then
od de
RGBMAP statistics and WBG correction are performed, and the data is stored in DRAM.
M a
M
The input data of pre_raw_be is the raw data sent by pre_raw_fe through DRAM or
direct transmission. After being processed by crop, BLC, and DPC, one path is directly
sent to post_raw for processing of RGB Bayer data, or it is first stored in DRAM and then
extracted by post_raw from DRAM. The AF statistics data is directly written to DRAM.
400
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
The following is the basic block diagram of the raw_top module. The long and short
tio lic
exposure data are processed by modules such as CROP, BNR, LSC, CFA, RGBCAC, and
ca ub
LCAC to generate RGB data, which is then sent to rgb_top. The parallel statistical
ifi p
processing is divided into two paths: one is processed by AE and GMS after LSC module
od de
processing and the data is stored in DRAM, and the other is processed by WBG and
M a
M
then processed by LMAP and stored in DRAM for reference in subsequent WDR
processing.
401
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
Figure 10- 3 raw_top Module Diagram
t
no
The following is the basic module diagram of rgb_top. Its input is the processed RGB
e
data from raw_top. The data is processed through modules such as CCM, HDR
ar
(Fusion+LTM), User gamma, Gamma, Dehaze, and CLUT, and then converted to the YUV
n
domain by the RGB2YUV (CSC) module. The YUV data is then transferred to YUV_TOP.
tio
The other path is the statistical data path, which is processed by Hist_v after CCM
u
The first module in yuv_top is PRE_EE which does the first round of edge enhancement.
od de
3DNR then works on temporal domain for noise reduction. The brightness and color
M a
M
information are then separately processed in spatial domain using YUV422 format for
noise reduction (YNR, CNR). After brightness noise reduction, it will go through
SHARPPEN(EE) and then the brightness and chroma information will be combined for
DCI, LDCI, and CA processing. The brightness and chroma information will then be split
again. The brightness goes through the Ycurve module while the chroma information
goes through the CA2 module. After passing through the image size cropping module
(Crop) once more, the entire ISP image processing process is complete.
402
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
10.2.2 Working Mode
lo
al
- The maximum 12 bit Bayer input is supported. When the input is less than 12 bit, the
t
lower bit will be 0
no
Raw 8 = {data_in[7:0],4’b0}
e
Raw 10 = {data_in[9:0], 2’b0}
ar
- Support any RG, GB order interchange n
- Support IR sensor
tio
brightness mode))
di V
st
re k-
d il
地址 状态位 清除位 描述
1 : 有中断 (写 1 清成 0)
0 : 无中断
0x0A07_0000 bit[29] bit[29] post_raw register update completed
(shadow update done) interrupt
bit[24] bit[24] pre_raw_be channel 0 update
completed (shadow update
done)intertupt
bit[19] bit[19] pre_raw_fe0 channel 3 update
completed (shadow update
403
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
地址 状态位 清除位 描述
1 : 有中断 (写 1 清成 0)
0 : 无中断
done)interrupt
bit[18] bit[18] pre_raw_fe0 channel 2 register update
completed (shadow update done)
interrupt
bit[17] bit[17] pre_raw_fe0 channel 1 register update
ed
completed (shadow update done)
w
interrupt
lo
bit[16] bit[16] pre_raw_fe0 channel 0 register update
al
completed (shadow update done)
interrupt
t
no
bit[10] bit[10] post_raw frame done interrupt
bit[8] bit[8] pre_raw_be channel 0 frame done
e
interrupt
ar
bit[3] bit[3] pre_raw_fe0 channel 3 frame done
n
interrupt
tio
interrupt
di V
st
interrupt
d il
an M
completed interrupt
bit[11] bit[11] pre_raw_fe0 transmission specified
tio lic
interrupt
M a
interrupt
bit[1] bit[1] pre_raw_fe0 channel 1 frame start
interrupt
bit[0] bit[0] pre_raw_fe0 channel 0 frame start
interrupt
404
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
b. pre_raw_fe0/pre_raw_be/post_raw register completion interrupt:
w
indicates that the register has updated the working register from the
lo
shadow register, and the user can continue to write the register settings
al
of the next frame into the shadow register.
t
no
c. p re_raw_fe0 frame error interrupt: when an error condition (ex. drop
frame or csi bridge fifo overflow) occurs in the transmission process, ISP
e
ar
will send this interrupt to inform the user that the error detection is in
pre_raw_fe0, so post_ raw will not have this interrupt.
n
tio
d. Instruction queue interrupt: in the instruction queue mode, when the last
u
start of the frame, so post_ raw will not have this interrupt.
n by
when the transmission reach a certain line, rather than when the last
ca ub
frame is completed.
ifi p
od de
Figure 10-6 is the timing diagram of ISP interrupt under normal transmission condition.
M a
Frame start -- > shadow update done -- > frame done will occur in sequence
M
405
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
Figure 10- 6 ISP Timing Diagram when Interrupt occurs
t
no
e
10.4Module Function
ar
n
tio
10.4.2 Crop
ifi p
The module can cut the input image, as shown in Figure 10-7.
od de
M a
M
406
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 10- 7 Image Cutting Diagram
e
10.4.3 AE (Auto Exposure) ar
n
tio
Auto exposure collects image data in Bayer domain, and then uses software
u
ib
Automatic exposure (AE) statistical information cuts the image into 32x30 blocks,
re k-
accumulates the values of the pixels in each block according to the (R, G, b) three
d il
an M
fields, counts the number of points in the R/G/B three fields at the same time,
and finally outputs them to the memory (DRAM), and then uses the software
n by
The AE module also includes AWB statistics. The AWB statistics information uses
ca ub
a 34x30 block to accumulate the values of pixels in the R/G/B three domains that
ifi p
fall within the specified upper and lower threshold values, and counts the
od de
number of pixels that meet the threshold values. Finally, the information is
M a
output to DRAM and further AWB decisions are made using algorithms.
M
AF (auto focus) collects image data in Bayer domain, and then uses software
algorithm to realize the function of AF.
407
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AF statistics engine cuts the image into 17x15 blocks, makes a series of vertical
and horizontal high-pass filters and low-pass filters for the pixels in each block
with a 17x5 moving window, counts the number of highlight points in each block,
and finally outputs them to DRAM, and then uses software algorithm to make
further AF decision.
ed
10.4.5 DIS (Digital image stabilization)
w
lo
DIS (Digital image stabilization) realizes the function of anti-shaking for images
al
in Bayer domain.
t
no
DIS will collect the histogram of cumulative number of green pixels in X and Y
e
directions in 3x3 blocks of the image, and then output it to DRAM for further DIS
ar
decision. n
u tio
BLC (black level correction) provides the function of adding and subtracting
re k-
corresponding registers.
n by
DG (Digital gain) provides the function of multiplying the image in Bayer domain
ifi p
10.4.8 DPC
M a
M
DPC aims to detect and compensate the bad points, which is divided into two
parts: static bad points and dynamic bad points. Static bad points can be filled in
the internal SRAM by software in advance, while dynamic bad points are
detected dynamically in the process of image moving to compensate for single
bad point and bad point aggregation.
408
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
10.4.9 GE
GE aims to correct the phenomenon that the pixel values of Gr and Gb are not
equal when the sensor leaves the factory, the phenomenon that will lead to
irregular noise in the image. After GE compensates the pixels of Gr and Gb, the
gap between them is narrowed and the crosstalk phenomenon is removed.
ed
w
lo
10.4.10 LSC (Lens shading correction)
al
t
LSC (lens shading correction) is used to correct the dark area of lens. Due to the
no
optical properties of the lens, the image in the corner area may be darker than
e
that in the central area, so we need to use gain compensation. LSC provides
ar
37x37 gain matrix of four components (R, Gr, Gb, B) for correction. The 37x37
n
gain matrix is evenly distributed to the input image and uniformly compensated
tio
converting the values with a larger value range to a smaller value range. It
n by
selectively enhances the image contrast in different regions while preserving the
details of the edges, making the image more suitable for display and human
tio lic
observation.
ca ub
ifi p
WBG (white balance gain) provides the function of multiplying the image in
M
BNR module in Bayer domain pixel data achieves image denoising. The purpose
is to remove the noise, while retaining the details. The module can eliminate the
sensor noise according to the noise model provided by users.
409
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
eliminate the chromatic aberration (purple fringing) distortion commonly
w
caused by lenses in chroma.
lo
al
10.4.15 CCM
t
no
It is to convert the R, G, B obtained by the sensor into the standard R, G, B format
e
through linear transformation. Using 3x3 array, the parameter is s3.10. Using the
ar
array CCM parameters corrected in advance under different color temperatures,
n
Firmware dynamically calculates the CCM parameters according to the current
tio
10.4.16 Gamma
tio lic
ca ub
brightness of the scene. Here we use a 257-point table, where each element is
od de
12bit and is used for adjustment and interpolation. R, G and B can support the
M a
10.4.17 Dehaze
Dehaze aims at the function of demisting. By analyzing the image scene and
calculating the ambient light source, the contrast difference between the fog
area and the surrounding area can be obtained. Based on the contrast difference,
410
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
the pixels in the fog area can be enhanced to achieve the effect of fog area
removal.
10.4.18 CSC
ed
10.4.19 3DNR (3-Dimensional Noise Reduction)
w
lo
Combining the noise suppression function of time domain (adjacent frame) and
al
space domain (surrounding pixel) calculus, the picture is smoother.
t
no
10.4.20 YNR
e
ar
In the luminance Y domain, the noise suppression in the spatial domain is
n
implemented with reference to the information of the surrounding pixels and the
tio
region saturation to improve the details of the dark region and the performance
n by
of high-frequency parts.
tio lic
10.4.22 Sharpen
ca ub
ifi p
Sharpen the middle frequency and high frequency edges of the image to
od de
highlight the details of the image. The image details can be divided into material area,
M a
texture and directional edge. The texture area or edge area can be adjusted separately
M
according to the needs to enhance part of the image details, avoiding noise
enhancement caused by single sharpening method and achieving better visual effect.
411
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
10.4.23 CNR
ed
10.4.24 CAC (PFC inside CNR)
w
CNR acts on YUV domain and can be used to reduce the noise of chroma. PFC
lo
al
acts at the end of CNR, and its function is to further eliminate the phenomenon
t
of purple fringes, which is common in chroma.
no
10.4.25 CLUT (HSV_3D_LUT)
e
ar
CLUT (Color Look-Up Table) uses a 3D LUT (Lookup Table) with a size of 17x17x17
n
tio
independently controlled.
r
di V
st
re k-
10.4.26 RGBCAC
d il
an M
RGBCAC corrects purple fringing in the RGB data field after CFA processing.
n by
10.4.27 PREYEE
tio lic
ca ub
The module functions the same as sharpen, but is located in front of NR.
ifi p
od de
10.4.28 Hist_V
M a
M
Hist_V is used to calculate the histogram of brightness as the basis for adjusting
brightness weights.
10.4.29 CACP
The CA mode provides the ability to multiply the chroma by different gain values
determined by the luminance (Luma) and sensitivity luminance (ISO), while the CP
mode provides different color results directly corresponding to different brightness.
412
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
10.4.30 CA2
CA_LITE provides the ability to multiply the chroma by gain values determined by
different saturation levels.
10.4.31 LCAC
ed
Also known as Local Chromatic Aberration Cancellation, its function is to eliminate
w
regional purple fringing. Purple fringing is easy to occur at the junction of high and low
lo
al
brightness, and this function can be turned on for purple fringing removal.
t
no
10.4.32 User Gamma
e
ar
Brightness value gamma correction performed before gamma correction in the RGB
domain.
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
413
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Audio interface
11.1AIAO
ed
11.1.1 Overview
w
lo
The Audio Input/Audio Output interface is used for connecting with the built-in Audio
al
Codec or external Audio Codec and the digital microphone to complete the
t
no
transmitting and receiving of audio data and realize the functions of recording, playing
and intercom. The AIAO related modules are integrated into a subsystem. The built-in
e
ar
Audio Codec ADC/DAC can support stereo input and output. The AIAO integrates four
sets of I2S TX/RX modules and supports two sets of I2S IO interfaces for connecting
n
tio
with external device. The AIAO can transmit and receive the audio data simultaneously
u
and support multi-channel data. The AIAO block diagram is shown as below figure:
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
414
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
11.1.2 Features
AIAO interface supports both Master-mode and Slave-mode of I2S, PCM, multi-channel
TDM modes. The received audio data or audio data to be transmitted are transferred
ed
using System DMA. The specific features are as follows:
w
lo
High flexible and configurable timing parameters, including frame period,
al
channel period, frame sync signal active period and polarity
t
Configurable clock sampling edge for input and output signals
no
Support transmitting and receiving stereo audio data in I2S master and slave
e
modes
ar
Support transmitting and receiving stereo and mono audio data in PCM master
n
and slave modes
tio
Support transmitting and receiving multi-channel audio data in TDM master and
u
slave modes
r ib
simultaneously
d il
an M
n by
Frame sync signal supports short pulse (one bit clock cycle) and long pulse
ifi p
415
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
AIAO subsystem connects with chip built-in audio codec, I2S IO pins and
transmitter/receiver modules through internal pinmux. It needs to be properly
configured to achieve different connection modes.
ed
11.1.3.1 Typical applications
w
lo
The typical application and connection are described as follows:
al
t
no
Support I2S slave mode to connect with internal Audio Codec ADC, or
I2S/PCM/TDM master or slave mode to connect with external ADC for audio
e
ar
recording n
Support I2S master mode to connect with internal Audio Codec DAC, or
tio
I2S/PCM/TDM master or slave mode to connect with external DAC for audio
u
playback
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
Figure 11-2 Example connection of I2S TX/RX module with internal Audio Codec
416
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
Figure 11-3 Example connection of I2S TX/RX module with external Audio Codec
ib
417
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Figure 11-4 Example connection of I2S TX/RX module with external Audio Codec
using master mode
ed
The audio source is converted into digital data sample by internal or external Audio
Codec ADC. The data sample is received by RX module through I2S or PCM interface,
w
lo
and stored into the circular buffer within DRAM through DMA. The data sample can be
al
further processed and transfered to storage device to complete the recording function.
t
The TX module reads the digital data sample from the circular buffer through DMA and
no
transmits to internal or external Audio Codec DAC through I2S or PCM interface to
e
complete the audio playback function.
ar
n
The typical I2S interface timing is shown in Figure 11-5.
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
Figure 11-5 takes 24-bit data sample as an example. The data sample is transmitted in
MSB first mode. The MSB delays one BCLK cycle relative to LRCK. The signals are issued
at the falling edge of BCLK and latched at the rising edge of BCLK (tx_sample_edge = 0,
rx_sample_edge = 1). However, it can be configured to use rising edge of BCLK issue
signals and falling edge of BCLK latch signals (tx_sample_edge = 1, rx_sample_edge =0).
418
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The typical PCM interface standard mode timing is shown in Figure 11-6, and the left-
justified mode timing is shown in Figure 11-7.
ed
w
lo
al
t
no
e
ar
n
Figure 11-6 PCM interface standard mode timing
u tio
ib
Figure 11-6 takes 16-bit data sample as an example. The data sample is transmitted in
r
di V
st
MSB first mode. The MSB delays one BCLK cycle relative to LRCK. The signals are issued
re k-
at the falling edge of BCLK and latched at the rising edge of BCLK (tx_sample_edge = 0,
d il
an M
rx_sample_edge = 1).
n by
tio lic
ca ub
ifi p
od de
M a
M
419
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
In left-justified mode, the MSB of data sample and LRCK signals are issued at the same
BCLK clock cycle.
ed
The AIAO subsystem control registers including i2s_tdm_sclk_in_sel, i2s_tdm_fs_in_sel,
i2s_tdm_sdi_in_sel, and i2s_tdm_sdo_out_sel, should be properly configured depending
w
lo
on the audio interface connection prior to enable data transmission.
al
t
no
11.1.4.1 Clock control
e
If AIAO operates at master mode, the register bit master_mode should be set to 1. The
ar
clock division registers I2S_CLK_CTRL1 (mclk_div, bclk_div) should be properly
n
tio
configured depending on data sampling rate, and then set the register aud_en to 1 to
turn-on audio clock source.
u
r ib
di V
st
re k-
The four TX/RX modules integrated in AIAO all have individual software reset. Each
n by
420
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
I2S_ TDM_ 0~I2S_ TDM_ 3 module registers overview is shown in Table 11-2.
ed
w
Table 11- 2 I2S_TDM_0/1/2/3 register overview (address 0x0410_0000 + n*0x10000)
lo
Name Address Description
al
Offset
BLK_MODE_SETTING 0x000 TX/RX module operation control
t
no
FRAME_SETTING 0x004 Audio frame timing control
SLOT_SETTING1 0x008 Channel and data control
SLOT_SETTING2 0x00c Channel enable
e
ar
DATA_FORMAT 0x010 Specify storage data format
BLK_CFG 0x014 TX/RX block config
n
I2S_ENABLE 0x018 TX/RX block enable
tio
421
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
i2s_tdm_sclk_in_sel
Select sclk source
Offset Address: 0x000
Bits Name Access Description Reset
2:0 i2s_tdm_0_sclk_in_sel R/W Select SCLK input source for i2s_tdm_0 0x4
when operates at slave mode
000 = reserved
001 = From i2s_tdm_1 bclk_out
010 = From i2s_tdm_2 bclk_out
ed
011 = From i2s_tdm_3 bclk_out
w
100 = From IO bclk_in_i2s0 (internal
AADC)
lo
101 = From IO bclk_in_i2s1
al
110 = From IO bclk_in_i2s2
111 = From IO bclk_in_i2s3
t
3 Reserved
no
6:4 i2s_tdm_1_sclk_in_sel R/W Select SCLK input source for i2s_tdm_1 0x5
when operates at slave mode
e
000 = From i2s_tdm_0 bclk_out
ar
001 = From internal audio_pdm i2s_sck
010 = From i2s_tdm_2 bclk_out
011 = From i2s_tdm_3 bclk_out
n
tio
100 = From IO bclk_in_i2s0 (internal
AADC)
101 = From IO bclk_in_i2s1
u
7 Reserved
st
re k-
10:8 i2s_tdm_2_sclk_in_sel R/W Select SCLK input source for i2s_tdm_2 0x6
when operates at slave mode
d il
AADC)
101 = From IO bclk_in_i2s1
ca ub
11 Reserved
od de
14:12 i2s_tdm_3_sclk_in_sel R/W Select SCLK input source for i2s_tdm_3 0x7
when operates at slave mode
M a
i2s_tdm_fs_in_sel
Offset Address: 0x004
422
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
110 = From IO ws_lrck_fs_in_i2s2
111 = From IO ws_lrck_fs_in_i2s3
w
3 Reserved
lo
6:4 i2s_tdm_1_fs_in_sel R/W Select FS input source for i2s_tdm_1 0x5
when operates at slave mode
al
000 = From i2s_tdm_0 ws_lrck_fs_out
001 = From internal audio_pdm i2s_lrck
t
no
010 = From i2s_tdm_2 ws_lrck_fs_out
011 = From i2s_tdm_3 ws_lrck_fs_out
100 = From IO ws_lrck_fs_in_i2s0
e
(internal AADC)
ar
101 = From IO ws_lrck_fs_in_i2s1
110 = From IO ws_lrck_fs_in_i2s2
n
111 = From IO ws_lrck_fs_in_i2s3
tio
7 Reserved
10:8 i2s_tdm_2_fs_in_sel R/W Select FS input source for i2s_tdm_2 0x6
u
010 = reserved
re k-
(internal AADC)
101 = From IO ws_lrck_fs_in_i2s1
n by
011 = reserved
100 = From IO ws_lrck_fs_in_i2s0
M a
(internal AADC)
M
i2s_tdm_sdi_in_sel
Offset Address: 0x008
Bits Name Access Description Reset
2:0 i2s_tdm_0_sdi_in_sel R/W Select SDI input source for i2s_tdm_0 0x4
000 = reserved
001 = From i2s_tdm_1 sdo
423
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
001 = From internal audio_pdm
i2s_sdata
w
010 = From i2s_tdm_2 sdo
lo
011 = From i2s_tdm_3 sdo
100 = From IO sdi_i2s0 (internal AADC)
al
101 = From IO sdi_i2s1
110 = From IO sdi_i2s2
t
no
111 = From IO sdi_i2s3
7 Reserved
10:8 i2s_tdm_2_sdi_in_sel R/W Select SDI input source for i2s_tdm_2 0x6
e
000 = From i2s_tdm_0 sdo
ar
001 = From i2s_tdm_1 sdo
010 = reserved
n
011 = From i2s_tdm_3 sdo
tio
11 Reserved
di V
st
re k-
14:12 i2s_tdm_3_sdi_in_sel R/W Select SDI input source for i2s_tdm_3 0x7
000 = From i2s_tdm_0 sdo
d il
31:15 Reserved
ifi p
i2s_tdm_sdo_out_sel
od de
ed
111 = select i2s_tdm_3 sdo to IO
sdo_i2s2
w
others = reserved
lo
11 Reserved
al
14:12 i2s_tdm_3_sdo_out_sel R/W Only 0x7 is allowed. 0x7
31:15 Reserved
t
no
i2s_bclk_oen_sel
e
Offset Address: 0x030
ar
Bits Name Access Description Reset
0 i2s0_bclk_oen_sel R/W Reserved 0x0
n
1 i2s1_bclk_oen_sel R/W Select bclk_out_i2s1 IO oen control 0x0
tio
i2s1_bclk_oen_ext
ib
1 = bclk_oen controlled by
re k-
i2s2_bclk_oen_ext
3 i2s3_bclk_oen_sel R/W Only 0x0 is allowed. 0x0
d il
an M
7:4 Reserved
8 i2s0_bclk_oen_ext R/W External control bclk_out_i2s0 IO oen 0x0
n by
0 = output disable
1 = output enable
9 i2s1_bclk_oen_ext R/W External control bclk_out_i2s1 IO oen 0x0
tio lic
0 = output disable
1 = output enable
ca ub
0 = output disable
1 = output enable
od de
16
M
audio_pdm_ctrl
Offset Address: 0x040
Bits Name Access Description Reset
1:0 audio_pdm_sel_i2s_io R/W Enable PDM mode: 0x0
00 = General operating mode
01 = I2S1 IO operates in PDM mode
10 = I2S2 IO operates in PDM mode
The i2s_tdm_1 RX module is used
to receive data. When this value
425
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
i2s_sys_int_en
al
Offset Address: 0x060
Bits Name Access Description Reset
t
no
0 i2s0_int_en R/W Enable I2S0 interrupt 0x1
1 i2s1_int_en R/W Enable I2S1 interrupt 0x1
2 i2s2_int_en R/W Enable I2S2 interrupt 0x1
e
3 i2s3_int_en R/W Enable I2S3 interrupt 0x1
ar
7:4 Reserved n
8 i2s_subsys_int_en R/W Enable I2S_SUBSYS interrupt 0x1
tio
31:9 Reserved
u
i2s_sys_ints
ib
status.
2 i2s2_int RO I2S2 interrupt status
ifi p
426
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
BLK_MODE_SETTING
Offset Address: 0x000
Bits Name Access Description Reset
ed
0 tx_mode R/W Transmission mode 0x0
0 = RX mode, 1 = TX mode
w
1 master_mode R/W I2S master/slave operation mode 0x0
0 = slave mode, 1 = master mode
lo
2 rx_sample_edge R/W Select sampling clock edge for SDI & 0x0
al
LRCK
0 = negative edge, 1 = positive edge
t
3 tx_sample_edge R/W Select sampling clock edge for SDO in TX 0x0
no
mode
0 = negative edge, 1 = positive edge
e
6:4 Reserved
ar
7 dma_mode R/W DMA transfer mode 0x1
0 = SW mode, 1 = HW DMA mode
n
8 Reserved R/W Multiple I2S synchronous operation 0x0
tio
mode
0 = standalone operation
u
9 Reserved
r
mode TX
re k-
0 = internally generate WS
d il
11 Reserved
12 pcm_synth_mode R/W PCM FS use synthesis mode 0x0
n by
FRAME_SETTING
M a
M
ed
first data sample for each frame. If
fs_offset = 1 & fs_idef = 1, one bit offset
w
will be inserted before MSB of every
sample whenever WS/LRCK toggle.
lo
15 Reserved
al
23:16 fs_active_length R/W Frame sync (FS/WS/LRCK) active length 0x0F
0~255 = 1~256 bits. The value of
t
no
fs_active_length must less than
frame_length. It is usually half of frame
length in I2S mode, and is 1-bit for
e
PCM/TDM mode.
ar
31:24 Reserved n
SLOT_SETTING1
tio
frame
st
re k-
I2S/PCM mode.
an M
7:4 Reserved
13:8 slot_size R/W Slot size 0x0F
n by
20:16 data_size R/W data size inside the slot (channel) 0x0F
0~31 = 1~32 bits
ca ub
23:21 Reserved
od de
slot.
31:29 Reserved
SLOT_SETTING2
Offset Address: 0x00c
Bits Name Access Description Reset
15:0 slot_en R/W Active slot (channel) 0x0003
slot_en[n] = 1 means slot-n is active.
Otherwise, slot-n is inactive.
31:16 Reserved
428
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
DATA_FORMAT
Offset Address: 0x010
Bits Name Access Description Reset
0 data_format R/W Storage data format 0x0
0 = packet mode
1 = reserved
2:1 word_length R/W Word length selection for each data 0x1
sample storage
00 = 8-bit, 01 = 16-bit, 10 = 32-bit, 11 =
ed
reserved
Right align each data sample if size
w
smaller than setting.
lo
3 pad_slot_no R/W Pad slot number to data sample (RX 0x0
only)
al
0 = no
1 = pad 4-bit slot/channel number to
t
no
MSB of each data sample.
For example, if data sample size is 24-bit
and register word_length set to 2'b10,
e
each data will be padded to 32-bit word
ar
as {slot[3:0], 4'h0, data[23:0]}. This
function is no used when data size is
n
equal to word_length.
tio
4 skip_rx_inactive_slot R/W Skip inactive Slot data for receive mode 0x0
0 = store zero instead of received data
u
mode
0 = Read data from FIFO but transmit
d il
an M
0 = select right-aligned
1 = select left-aligned
ifi p
BLK_CFG
Offset Address: 0x014
Bits Name Access Description Reset
0 force_complete R/W force complete mode 0x0
0 = stop operation until an audio frame
429
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
1 = dma_req forced to low after
i2s_enable set from 1 to 0 in dma mode
w
3:2 Reserved
lo
4 auto_disable_with_ch_en R/W I2S FIFO control auto disable 0x0
0 = normal operation
al
1 = FIFO control will automatically stop
operation after DMA channel is disabled
t
no
before I2S is disabled (i2s_enable set to
0). No further RX data will be received
and TX zero bit will be transmitted.
e
5 Reserved
ar
6 rx_start_wait_dma_en R/W I2S receiver block wait DMA enable 0x0
0 = I2S receiver block start operation
n
after i2s_enable set from 0 to 1
tio
7 Reserved
ib
1 = always on
re k-
on
an M
15:10 Reserved
16 tx_blk_clk_force_en R/W I2S transmitter block sclk force on 0x0
tio lic
31:18 Reserved
M a
M
I2S_ENABLE
block enable
Offset Address: 0x018
Bits Name Access Description Reset
0 i2s_enable R/W i2s_tdm engine enable 0x0
Must set i2s_reset_tx or i2s_reset_rx to
1 then to 0 firstly before setting
i2s_enable
31:1 Reserved
430
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
I2S_RESET
sw reset
Offset Address: 0x01c
Bits Name Access Description Reset
0 i2s_reset_rx R/W Reset receiver block 0x0
0 = nop, 1 = reset
Set to 1 then set to 0 to reset receiver
block. Must add some delay before set
this bit back to 0 due to the signal needs
ed
to be synced from pclk domain to sclk
w
domain.
1 i2s_reset_tx R/W Reset transmitter block 0x0
lo
0 = nop, 1 = reset
al
Set to 1 then set to 0 to reset transmit
block. Must add some delay before set
t
this bit back to 0 due to the signal needs
no
to be synced from pclk domain to sclk
domain.
31:2 Reserved
e
I2S_INT_EN
ar
n
interrupt enable
tio
3 Reserved
d il
7 Reserved
8 i2s_int_en R/W Enable I2S IP interrupt 0x1
tio lic
I2S_INT
M
interrupt status
Offset Address: 0x024
Bits Name Access Description Reset
0 rx_fifo_avail_int RO RX FIFO data available interrupt status
This bit will be set to 1 whenever RX
FIFO fullness is larger than
rx_fifo_threshold and
rx_fifo_avail_int_en is 1. Write 1 to
clear.
1 rx_fifo_overflow_int RO RX FIFO overflow interrupt status
Write 1 to clear.
431
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
5 tx_fifo_overflow_int RO TX FIFO overflow interrupt status
Write 1 to clear.
w
6 tx_fifo_underflow_int RO TX FIFO underflow interrupt status
lo
Write 1 to clear.
al
7 Reserved
8 rx_fifo_avail_int_raw RO RX FIFO data available interrupt raw
t
status
no
This bit will be set to 1 whenever RX
FIFO fullness is larger than
e
rx_fifo_threshold no matter
ar
rx_fifo_avail_int_en is 1 or 0. Write 1 to
clear.
9 rx_fifo_overflow_int_raw RO RX FIFO overflow interrupt raw status
n
Write 1 to clear.
tio
11 Reserved
ib
status
re k-
tx_fifo_threshold no matter
an M
tx_fifo_avail_int_en is 1 or 0. Write 1 to
clear.
n by
31:15 Reserved
ifi p
FIFO_THRESHOLD
od de
432
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
I2S_LRCK_MASTER
block enable
Offset Address: 0x02c
Bits Name Access Description Reset
0 i2s_lrck_master_enable R/W Enable i2s_tdm use as bclk/lrck master 0x0
generator
If the i2s_tdm IP need to operate as a
BCLK & LRCK generator master only
without TX or RX data transfer, set
ed
master_mode to 1 and BCLK will start to
w
output after aud_en set to 1. Then LRCK
will start to output after this bit set to 1.
lo
No need to set i2s_enable in this
al
condition. In addition, apply
i2s_reset_rx or i2s_reset_tx before set
t
this bit to 1.
no
31:1 Reserved
e
FIFO_RESET
ar
Offset Address: 0x030 n
Bits Name Access Description Reset
tio
15:1 Reserved
ib
31:17 Reserved
re k-
d il
RX_STATUS
an M
TX_STATUS
Offset Address: 0x048
Bits Name Access Description Reset
8:0 tx_frame_size_cnt RO Transmit blk internal counter status
9 tx_i2s_disable_req RO Internal signal
10 i2s_tx_start_wait RO Internal signal
433
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
I2S_CLK_CTRL0
w
Offset Address: 0x060
lo
Bits Name Access Description Reset
al
0 aud_clk_sel R/W I2S audio clock (aud_clk) source select 0x0
0 = from audio PLL
t
no
1 = from external mclk_in
2:1 Reserved reserved
3 bclk_out_inv R/W bclk_out clock inverse 0x0
e
0 = bclk_out without inverse
ar
1 = bclk_out inverted
4 bclk_in_inv R/W bclk_in clock inverse 0x0
n
0 = bclk_in without inverse
tio
1 = bclk_in inverted
5 Reserved bclk_in clock inverse
u
1 = bclk_in inverted
r
1 = always output
re k-
start
an M
1 = enable
8 aud_en R/W I2S clock gen and master signal out 0x0
enable
tio lic
IO
1 = enable clock generator and bclk_out
ifi p
IO
Always set this bit to 0 when I2S
od de
I2S_CLK_CTRL1
Offset Address: 0x064
Bits Name Access Description Reset
15:0 mclk_div R/W mclk clock divider from audio clock 0x2
1 = div 1, 2 = div 2, …
31:16 bclk_div R/W bclk clock divider from audio clock (for 0x2
434
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
I2S_PCM_SYNTH
Offset Address: 0x068
Bits Name Access Description Reset
11:0 ck_coef_n R/W PCM FS period synthesis timing 0x1
coefficient N
ed
The frequency of FS for PCM mode =
BCLK * (N/M) when pcm_synth_mode
w
set to 1.
lo
The value of ck_coef_n must smaller
than ck_coef_m.
al
15:12 Reserved
t
31:16 ck_coef_m R/W PCM FS period synthesis timing 0x40
no
coefficient M
The frequency of FS for PCM mode =
BCLK * (N/M) when pcm_synth_mode
e
set to 1.
RX_RD_PORT ar
n
tio
TX_WR_PORT
re k-
11.2Audio Codec
ifi p
od de
11.2.1 Overview
M a
M
The chip integrates high-performance Audio Codec, including stereo playback DAC
(90dB DR A-Weighted), supporting two single-end lineout; stereo recording ADC (90dB
DR A-Weighted), supporting stereo single-end input.
11.2.2 Characteristics
435
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
The ADC supports Mic in stereo single-end input or line in stereo single-end input
w
lo
11.2.3 Audio Codec register overview
al
t
no
11.2.3.1 Audio DAC/ADC register overview
e
Name Address Description
ar
Offset
txdac_ctrl0 0x000 n
txdac_ctrl1 0x004
tio
txdac_status 0x008
u
txdac_afe0 0x00c
ib
txdac_afe1 0x010
r
txdac_ana0 0x020
di V
st
re k-
txdac_ana1 0x024
d il
rxadc_ctrl0 0x100
an M
rxadcc_ctrl1 0x104
rxadc_status 0x108
n by
rxadc_ana0 0x110
tio lic
rxadc_ana1 0x114
rxadc_ana2 0x118
ca ub
rxadc_ana3 0x11c
ifi p
rxadc_ana4 0x120
od de
M a
M
rxadc_ctrl0
Offset Address: 0x100
Bits Name Access Description Reset
0 reg_rxadc_en R/W 0x0
1 reg_i2s_tx_en R/W 0x0
436
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rxadcc_ctrl1
Offset Address: 0x104
ed
0: downsample ratio 64
w
1: downsample ratio 128
lo
2: downsample ratio 256
al
3: downsample ratio 512
t
no
2 reg_rxadc_chn_swap R/W L/R input data channel swap 0x0
e
used when ANALOG in differential
ar
input mode
n
tio
6:4 reg_rxadc_dcb_opt R/W DC blocking filter option 0x5
3'b000: bypass
u
ib
3'b001: 1-2^(-8)
r
3'b010: 1-2^(-9)
di V
st
re k-
3'b011: 1-2^(-10)
d il
3'b100: 1-2^(-11)
an M
3'b101: 1-2^(-12)
n by
other: bypass
tio lic
7 Reserved
ca ub
0: adc0_vld
1: adc1_vld
31:11 Reserved
rxadc_status
Offset Address: 0x108
Bits Name Access Description Reset
0 reg_rxadc_cic0_init_done RO cic_d_0 init done
1 reg_rxadc_fir1_0_init_done RO fir1_0 init done
2 reg_rxadc_fir2_0_init_done RO fir2_0 init done
437
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
rxadc_ana0
w
Offset Address: 0x110
lo
Bits Name Access Description Reset
al
12:0 reg_gstepl_rxpga R/W PGA feedback resistance selection 0x0001
2dB/step default:20Kohm
t
no
13 reg_g6dbl_rxpga R/W PGA input resistance selection 0x0
0:20Kohm 1:10Kohm
15:14 reg_gainl_rxadc R/W PGA input resistance selection 0x0
e
0:20Kohm(0dB)
ar
1:10Kohm(6dB)
2: 5Kohm(12dB)
n
3: 2.5Kohm(18dB)
tio
0:20Kohm 1:10Kohm
r
0:20Kohm(0dB)
re k-
1:10Kohm(6dB)
2: 5Kohm(12dB)
d il
an M
3: 2.5Kohm(18dB)
n by
rxadc_ana1
Offset Address: 0x114
tio lic
[15:14]: gainl
31:16 reg_gainr_status RO [28:16]: gstepr
od de
[29]: g6dbr
[31:30]: gainr
M a
M
rxadc_ana2
Offset Address: 0x118
Bits Name Access Description Reset
0 reg_mutel_rxpga R/W Enable pin of mute left channel, active 0x0
high
1 reg_muter_rxpga R/W Enable pin of mute right channel, active 0x0
high
15:2 Reserved
16 reg_diff_en_rxpga R/W Enable pin of differential mode(Left 0x0
channel only,
VIN/VINB=PAD_VINL/PAD_VINR
438
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
rxadc_ana3
Offset Address: 0x11c
Bits Name Access Description Reset
0 reg_addi_rxadc R/W ADC opamp current +50%, active High 0x0
ed
1 reg_cksel_rxadc R/W PGA enable control input, active High 0x0
2 reg_en_asar_i_rxadc R/W Enable pin of L channel quantizer 0x1
w
3 reg_en_asar_q_rxadc R/W Enable pin of Q channel quantizer 0x1
5:4 reg_dem_type_rxadc R/W DEM TYPE 0x1
lo
0:rotation
al
1: min cell switching
2/3: NA
t
7:6 Reserved
no
11:8 reg_ctune_rxadc R/W RXADC integrator CFB selection 0xc
12*135fF + (8/4/2/1)*135fF
e
12 reg_en_dither_rxadc R/W Enable pin of dithering 0x1
ar
13 reg_rstsdm_rxadc R/W Enable pin of resetting integrator 0x0
14 reg_en_vcmt_rxadc R/W ? 0x0
n
15 Reserved
tio
01:0.9V
ib
10:0.95V
r
11:1.0V
di V
st
00:1.1V
d il
01:1.15V
an M
10:1.2V
11:1.25V
n by
rxadc_ana4
ca ub
439
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
txdac_ctrl0
Offset Address: 0x000
Bits Name Access Description Reset
ed
0 reg_txdac_en R/W audio dac enable 0x0
1 reg_i2s_rx_en R/W audio dac i2s output enable 0x0
w
31:2 Reserved
lo
txdac_ctrl1
al
Offset Address: 0x004
t
no
Bits Name Access Description Reset
e
ar
0: upsample ratio 64
n
1: upsample ratio 128
tio
3:2 Reserved
r
di V
st
0:rotation
d il
an M
7:6 Reserved
tio lic
0: order2
ifi p
1: order1
od de
11 Reserved
0: disable
others: weight = LSB/(2^(n-1))
440
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
31:15 Reserved
txdac_status
Offset Address: 0x008
Bits Name Access Description Reset
ed
2:0 reg_txdac_fsm RO DAC main fsm state
3 Reserved
w
6:4 reg_txdac_afe_fsm RO DAC AFE fsm state
lo
7 Reserved
al
16:8 reg_txdac_gain0 RO DAC L-channel gain
t
19:17 Reserved
no
28:20 reg_txdac_gain1 RO DAC R-channel gain
31:29 Reserved
e
ar
txdac_afe0 n
Offset Address: 0x00c
tio
7:6 Reserved
r
di V
st
re k-
27:16 reg_txdac_gain_tick R/W DAC AFE tick value for gain ramp 0x800
n by
31:28 Reserved
tio lic
txdac_afe1
ca ub
bound
0x00: gain=0
M a
441
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
txdac_ana0
Offset Address: 0x020
Bits Name Access Description Reset
0 reg_addi_txdac R/W na 0x0
3:1 Reserved
5:4 reg_tsel_txdac R/W 2'b00: NA 0x0
2'b01: VCM
2'b10: VDD15A
2'b11: undefined
ed
7:6 Reserved
w
9:8 reg_vsel_txdac R/W 1.5V LDO output selection 0x3
2'b00:1.35V
lo
2'b01:1.4V
al
2'b10:1.45V
2'b11:1.5V
t
31:10 Reserved
no
txdac_ana1
e
ar
Offset Address: 0x024
Bits Name Access Description Reset
n
0 reg_da_en_txdac_ow_val R/W DA_EN_TXDAC overwrite value 0x0
tio
31:18 Reserved
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
442
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Peripherals equipment
12.1I2C
ed
12.1.1 Overview
w
lo
There are five I2C controllers in the chip. Each I2C controller can be individually
al
configured as Master / Slave. For IO configuration, please refer to chapter 2.2 pin
t
no
information description.
e
12.1.2 Function description
ar
n
I2C controller has the following features:
tio
The transmission rate supports standard mode (100kbit/S) and fast mode
r
(400kbits/S).
di V
st
re k-
Figure 12-1 shows the functional block diagram of I2C module. IIC_CLK is the module
M a
M
clock, and could be 25MHz or 100MHz. CPU configures registers through APB bus to
select I2C modes and timing, writes TXFIFO, reads RXFIFO, and triggers FSM to send and
receive SDA / SCL related IO signals. System DMA can also be used with I2C DMA_IF,
and write TXFIFO and read RXFIFO through APB bus to send and receive I2C signal.
443
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
Figure 12-1 I2C function block diagram
e
12.1.4 I2C Agreement timing
ar
n
The I2C protocol timing of chip I2C supporting general standards is shown in Figure 12-
tio
2.
u
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
444
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
2. Setting related timing configuration should be in controller disable state. The
w
IC_ENABLE needs to be set 0 and query IC_ENABLE_Status [0] confirmed to be 0.
lo
3. Refer to table 12-1, according to the frequency of IIC_CLK to config controller
al
registers.
t
no
e
Table 12-1 Relationship between I2C clock selection and related register
ar
configuration n
tio
Register 25M IIC_CLK 100M IIC_CLK Description
IC_SS_SCL_HCNT 115 460 SCL high level time counting in standard
u
speed mode
ib
speed mode
st
re k-
edge of SCL
IC_FS_SPKLEN 2 5 I2C burr suppression time count
ifi p
od de
M a
M
445
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
Figure 12-3 data transmission software flow in I2C non DMA mode
M a
M
446
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
Figure 12-4 data transmission software flow under I2C DMA mode
447
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
I2C register overview of chip
w
Name Address Description
Offset
lo
IC_CON 0x000 I2C Control
al
IC_TAR 0x004 I2C Target Address
IC_SAR 0x008 I2C Slave Address
t
IC_DATA_CMD 0x010 I2C Rx/Tx Data Buffer and Command
no
IC_SS_SCL_HCNT 0x014 Standard speed I2C Clock SCL High Count
IC_SS_SCL_LCNT 0x018 Standard speed I2C Clock SCL Low Count
e
IC_FS_SCL_HCNT 0x01c Fast speed I2C Clock SCL High Count
ar
IC_FS_SCL_LCNT 0x020 Fast speed I2C Clock SCL Low Count
IC_INTR_STAT 0x02c I2C Interrupt Status
n
IC_INTR_MASK 0x030 I2C Interrupt Mask
tio
448
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IC_CON
Offset Address: 0x000
Bits Name Access Description Reset
ed
0 MASTER_MODE R/W enable master mode 0x1
2:1 SPEED R/W 1: standard mode (~100 kbit/s) 0x3
w
2: fast mode (~400 kbit/s)
lo
3 IC_10BITADDR_SLAVE R/W enable 10bit slave address mode 0x1
4 IC_10BITADDR_MASTER R/W enable 10bit master address mode 0x1
al
5 IC_RESTART_EN R/W enable I2C master to be able generate 0x1
restart
t
no
6 IC_SLAVE_DISABLE R/W 0: slave is enabled 0x1
1: slave is disabled
31:7 Reserved
e
ar
IC_TAR n
Offset Address: 0x004
tio
0: general call
1: start byte
d il
BYTE
31:12 Reserved
n by
IC_SAR
tio lic
IC_DATA_CMD
M
IC_SS_SCL_HCNT
Offset Address: 0x014
449
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IC_SS_SCL_LCNT
Offset Address: 0x018
Bits Name Access Description Reset
ed
15:0 IC_SS_SCL_LCNT R/W Standard Speed I2C Clock SCL Low 0x01d6
Count Register
w
31:16 Reserved
lo
IC_FS_SCL_HCNT
al
Offset Address: 0x01c
t
no
Bits Name Access Description Reset
15:0 IC_FS_SCL_HCNT R/W Fast Speed I2C Clock SCL High Count 0x003C
Register
e
31:16 Reserved
IC_FS_SCL_LCNT ar
n
tio
15:0 IC_FS_SCL_LCNT R/W Fast Speed I2C Clock SCL Low Count 0x0082
ib
Register
r
di V
31:16 Reserved
st
re k-
d il
IC_INTR_STAT
an M
Status
1 R_RX_OVER RO corresponding masked interrupt staus,
ca ub
ed
Status
11 R_GEN_CALL RO corresponding masked interrupt staus,
w
please reference I2C Raw Interrupt
lo
Status
31:12 Reserved
al
t
IC_INTR_MASK
no
Offset Address: 0x030
Bits Name Access Description Reset
e
ar
0 M_RX_UNDER R/W corresponding interrupt staus mask, 0x1
please reference I2C Raw Interrupt
Status
n
1 M_RX_OVER R/W corresponding interrupt staus mask, 0x1
tio
Status
di V
st
Status
an M
Status
5 M_RD_REQ R/W corresponding interrupt staus mask, 0x1
please reference I2C Raw Interrupt
tio lic
Status
ca ub
Status
7 M_RX_DONE R/W corresponding interrupt staus mask, 0x1
od de
451
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IC_RAW_INTR_STAT
Offset Address: 0x034
Bits Name Access Description Reset
0 IST_RX_UNDER RO when receive buffer is empty by reading
from the IC_DATA_CMD register
1 IST_RX_OVER RO receive buffer is oveflow (64Bytes)
2 IST_RX_FULL RO receive buffer reaches or goes above
the RX_TL threshold
3 IST_TX_OVER RO transmit buffer is oveflow (64Bytes)
ed
4 IST_TX_EMPTY RO transmit buffer is at or below the TX_TL
w
threshold
5 IST_RD_REQ RO In slave mode, I2C hold SCL and wait for
lo
the response from processor
al
6 IST_TX_ABRT RO In master or slave mode, when
transmitter is unable to complete the
t
action
no
7 IST_RX_DONE RO In slave-transmitter mode, a NACK is
received
e
8 IST_ACTIVITY RO I2C activity is detected
ar
9 IST_STOP_DET RO STOP occurred
10 IST_START_DET RO START or RESTART occurred
n
11 IST_GEN_CALL RO General Call address is received
tio
31:12 Reserved
u
ib
IC_RX_TL
r
di V
st
31:8 Reserved
n by
IC_TX_TL
Offset Address: 0x03c
tio lic
IC_CLR_INTR
M a
IC_CLR_RX_UNDER
Offset Address: 0x044
Bits Name Access Description Reset
0 CLR_RX_UNDER RO read to clear corresponding interupt
raw staus, please reference I2C Raw
Interrupt Status
452
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IC_CLR_RX_OVER
Offset Address: 0x048
Bits Name Access Description Reset
0 CLR_RX_OVER RO read to clear corresponding interupt
raw staus, please reference I2C Raw
Interrupt Status
ed
31:1 Reserved
w
lo
IC_CLR_TX_OVER
al
Offset Address: 0x04c
Bits Name Access Description Reset
t
no
0 CLR_TX_OVER RO read to clear corresponding interupt
raw staus, please reference I2C Raw
Interrupt Status
e
31:1 Reserved
IC_CLR_RD_REQ ar
n
tio
Interrupt Status
st
re k-
31:1 Reserved
d il
an M
IC_CLR_TX_ABRT
Offset Address: 0x054
n by
31:1 Reserved
ifi p
IC_CLR_RX_DONE
od de
IC_CLR_ACTIVITY
Offset Address: 0x05c
Bits Name Access Description Reset
0 CLR_ACTIVITY RO read to clear corresponding interupt
raw staus, please reference I2C Raw
Interrupt Status
453
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IC_CLR_STOP_DET
Offset Address: 0x060
Bits Name Access Description Reset
0 CLR_STOP_DET RO read to clear corresponding interupt
raw staus, please reference I2C Raw
Interrupt Status
ed
31:1 Reserved
w
lo
IC_CLR_START_DET
al
Offset Address: 0x064
Bits Name Access Description Reset
t
no
0 CLR_START_DET RO read to clear corresponding interupt
raw staus, please reference I2C Raw
Interrupt Status
e
31:1 Reserved
IC_CLR_GEN_CALL ar
n
tio
Interrupt Status
st
re k-
31:1 Reserved
d il
an M
IC_ENABLE
Offset Address: 0x06c
n by
31:1 Reserved
ca ub
IC_STATUS
ifi p
IC_TXFLR
Offset Address: 0x074
454
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IC_RXFLR
Offset Address: 0x078
Bits Name Access Description Reset
6:0 RXFLR RO I2C Receive FIFO Level Register
ed
31:7 Reserved
w
IC_SDA_HOLD
lo
Offset Address: 0x07c
al
Bits Name Access Description Reset
t
15:0 IC_SDA_HOLD R/W Sets the required SDA hold time in units 0x1
no
of IP clock.
31:16 Reserved
e
ar
IC_TX_ABRT_SOURCE n
Offset Address: 0x080
tio
31:16 Reserved
r ib
di V
st
IC_SLV_DATA_NACK_ONLY
re k-
IC_DMA_CR
tio lic
31:2 Reserved
M a
M
IC_DMA_TDLR
Offset Address: 0x08c
Bits Name Access Description Reset
5:0 DMATDL R/W the dma_tx_req signal is generated 0x0
when the number of
valid data entries in the transmit FIFO is
equal to or below this field
value
31:6 Reserved
IC_DMA_RDLR
455
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IC_SDA_SETUP
ed
Offset Address: 0x094
w
Bits Name Access Description Reset
lo
0 SDA_SETUP R/W SDA Setup time config register 0x64
31:1 Reserved
al
t
IC_ACK_GENERAL_CALL
no
Offset Address: 0x098
Bits Name Access Description Reset
e
ar
0 ACK_GEN_CALL R/W When set to 1, DW_apb_i2c responds 0x1
with a ACK when it receives a General
Call. When set to 0, the IP does not
n
generate General Call interrupts
tio
31:1 Reserved
u
ib
IC_ENABLE_STATUS
r
di V
IC_FS_SPKLEN
ca ub
31:8 Reserved
M
IC_HS_SPKLEN
Offset Address: 0x0a4
Bits Name Access Description Reset
7:0 IC_HS_SPKLEN R/W I2C HS Spike Suppression Limit Register 0x1
31:8 Reserved
456
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.2UART
12.2.1 Overview
ed
into internal bus after serial parallel conversion, and output data to external devices
w
after parallel serial conversion. The main function of UART is to connect with UART of
lo
al
external chip, so as to realize the communication between two chips.
This chip provides 5 UART controllers. The relevant overview is shown in the table below.
t
no
For IO configuration, please refer to chapter 2.2 pin information description.
e
ar
Controller Support mode IO pin n
UART0 Two line UART UART0_TX/UART0_RX
tio
UART
ib
UART
XGPIOA[20]/ XGPIOA[21]/ XGPIOA[22]/ XGPIOA[26]
d il
an M
IIC2_SDA/IIC2_SCL
n by
PWM3/PWM2
ca ub
UART1_RTS/UART1_CTS
M a
M
12.2.2 Characteristics
457
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Support the programmable bit width of data bit and stop bit. Data bits can be
programmed to 5 / 6 / 7 / 8 bits;
The stop bit can be set to 1 bit, 1.5 bit or 2 bit by programming.
Support odd, even or no check.
Support the programmable transmission rate.
Support receiving FIFO interrupt, sending FIFO interrupt and error interrupt.
ed
Support initial interrupt status query and post mask interrupt status query.
w
Support DMA operation.
lo
al
12.2.3 Function description
t
no
12.2.3.1 Application diagram
e
ar
UART is a general point-to-point physical layer transport protocol, which can be used to
n
connect various systems, including PC and various peripheral chips, and can be used as
tio
Baud rate
Since UART interface has no reference clock and belongs to asynchronous transmission
mode, both sides need to use the same transmission speed, that is, the baud rate, to
communicate. If there is any error, the error rate should be small enough to avoid
458
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
misinformation. The rate of one bit is called the baud rate. Typical baud rates are 300,
1200, 2400, 9600, 19200, 38400, 115200 bps, etc.
Frame structure
The data structure of UART transmission is in frame. The frame structure includes start
signal, data signal, check bit and end signal.
ed
w
lo
al
t
no
Figure 12-6 UART transmission data structure
Start bit
e
ar
The start signal is the mark of the beginning of a frame. The beginning of starting a
n
frame transmission is to send a low level signal bit on the TXD. In RXD, if a low level
tio
signal bit is received in idle state, it is judged as the beginning of receiving a detection
u
transmission
ib
Data bit
r
di V
st
re k-
The data bit width can be adjusted according to different application requirements,
d il
which can be 5 / 6 / 7 / 8 bit data bit width. The typical data width is 8 bits
an M
Parity bit
n by
The check bit is a 1-bit error correction signal. The check bit of UART includes odd parity
check, even parity check and fixed check bit. At the same time, it supports the enable
tio lic
and disable of check bit. Please refer to LCR register for detailed description
ca ub
Stop bit
ifi p
The end signal is the stop bit of the frame. It supports 1 bit, 1.5 bit and 2 bit stop bits.
od de
Sending the end signal of a frame is to send the TXD to high level to complete the
M a
M
transmission and enter the idle state. After counting the check bits of a received frame,
the end signal needs to be received.
459
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
clk_sel_0_13 and select the working clock of uart0~uart4. The default setting is 1:XTAL
w
25MHz , and could be configurated to 0:187.5mhz, if necessary, frequency division
lo
register div_clk_187p5m can be configured, adjust the clock to 1500/N MHz, up to
al
187.5 MHz.
t
no
UART baud rate configuration
DLL and DLH are the baud rate frequency division control registers in UART controller.
e
ar
DLH is the high 8 bits and DLL is the low 8 bits. Before configuring DLH and DLL, LCR [7]
must be set to 1. The RBR_THR_DLL(DLL) register and IER_DLH(DLH)register can be
n
tio
configured.
After configuration, baud rate is set. The formula is:
u
ib
Take UART SCLK 25MHz as an example, 115200 baud rate is configured, and the
re k-
formula is:
d il
an M
(115200 − 114286)
��� ����� = 115200 = 3.12%
ifi p
Take UART SCLK 187.5MHz as an example, 115200 baud rate is configured, and the
formula is:
256 ∗ ��� + ��� = 187.5� 16 ∗ 115200 = 101.7
If DLL is 102 and DLH is 0, the actual baud rate is :
���� ���� = 187.5� 16 ∗ 102 = 114890
One bit time error is:
(115200 − 114890)
��� ����� = 115200 = 0.27%
460
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
461
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
462
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
register, configure the baud rate of transmission.
w
3. Write 0 to LCR [7].
lo
al
4. Configure LCR and set corresponding UART working mode.
t
5. Configure FCR and set corresponding transmit and receive FIFO threshold.
no
6. If interrupt mode is used, IER should be set to enable corresponding interrupt
e
ar
signal. n
tio
1. When LCR [7] is 0, the transmitted data could be written into RBR_THR_DLL
r
di V
st
2. If query mode is used, TX is detected by reading USR [1] (transmit FIFO not
an M
full) and TFL (transmit FIFO level) to detect the status of TX_FIFO, according to
n by
RBR_THR_DLL.
ca ub
4. By detecting USR [2] (Transmit FIFO Empty), judge whether UART completes
M
1. If query mode is used, the status of RX_FIFO is detected by reading USR [3]
(receive FIFO not empty) and RFL (receive FIFO level), according to the status
463
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
12.2.4.5 Data transmission in DMA mode
lo
al
12.2.4.5.1 Initialization steps
t
no
1. Write 1 to LCR [7]. Enable and configure Divisor Latch Access
e
2. Write the corresponding configuration value to RBR_THR_DLL、IER_DLH
ar
register, configure the baud rate of transmission.
n
tio
5. Configure FCR and set corresponding transmit and receive FIFO threshold.
st
re k-
other parameters. Please refer to chapter 3.6 DMA controller for specific
configuration.
464
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
number to the corresponding system DMA channel. For example, If we want
w
mapping UART0 RX to DMA channel 1, we should configurate
lo
al
sdma_dma_ch_remap0[13:8] to 8 and write 1 to update_dma_remp_0_3 to
t
make the configuration effective.
no
2. Configure DMA data channel, including data transmission source and
e
ar
destination address, data receiving area address, data transmission number,
n
transmission type and other parameters. Please refer to chapter 3.6 DMA
tio
UART0 0x04140000
ifi p
UART1 0x04150000
od de
UART2 0x04160000
UART3 0x04170000
M a
UART4 0x041C0000
M
RTCSYS_UART 0x05022000
ed
USR 0x07c UART Status Register
TFL 0x080 Transmit FIFO Level
w
RFL 0x084 Receive FIFO Level
lo
SRR 0x088 Software Reset Register
al
SRTS 0x08c Shadow Request to Send
SBCR 0x090 Shadow Break Control Register
t
SDMAM 0x094 Shadow DMA Mode
no
SFE 0x098 Shadow FIFO Enable
SRT 0x09c Shadow RCVR Trigger
e
STET 0x0a0 Shadow TX Empty Trigger
ar
HTX 0x0a4 Halt TX
DMASA 0x0a8 DMA Software Acknowledge
n
u tio
RBR_THR_DLL
an M
(W)Transmit Holding
Register,Data to be transmitted on the
ifi p
31:8 Reserved
IER_DLH
Offset Address: 0x004
Bits Name Access Description Reset
7:0 IER_DLH R/W LCR[7] bit = 0 : 0x0
IER[0] : Enable Received Data
Available Interrupt.
IER[1] : Enable Transmit
Holding Register Empty Interrupt.
IER[2] : Enable Receiver Line
466
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:8 Reserved
w
FCR_IIR
lo
Offset Address: 0x008
al
Bits Name Access Description Reset
t
7:0 FCR_IIR R/W (R) interrupt Identification Register 0x1
no
[3:0] Interrupt ID
0000 : modem status
0001 : no interrupt pending
e
ar
0010 : THR empty
0100 : received data available
0110 : receiver line status
n
0111 : busy detect
tio
00 – disabled
ib
11 – enable
r
transfers at a time
1 – mode 1, multi DMA data
transfers are made continuously
tio lic
[5:4] TX Empty
00 – FIFO empty
ca ub
11 – FIFO ½ full
od de
01 – FIFO ¼ full
M
10 – FIFO ½ full
11 – FIFO 2 less than full
31:8 Reserved
LCR
Offset Address: 0x00c
Bits Name Access Description Reset
7:0 LCR R/W Line Control Register 0x0
[1:0] Data Length Select. (00:5
bits,01:6 bits,10:7 bits,11:8 bits)
[2] Number of stop bits. (0:1 stop
467
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
MCR
w
Offset Address: 0x010
lo
Bits Name Access Description Reset
al
7:0 MCR R/W Modem Control Register 0x0
[0] reserved
t
[1] Request to Send. This is used to
no
directly control the Request to Send
(rts_n) output
[2] reserved
e
ar
[3] reserved
[4] reserved
[5] Auto Flow Control Enable.
n
[6] reserved
tio
31:8 Reserved
u
ib
LSR
r
error.
[2] Parity Error bit.
ca ub
31:8 Reserved
MSR
Offset Address: 0x018
Bits Name Access Description Reset
7:0 MSR RO Modem Status Register
[0] Delta Clear to Send.
[1] reserved
[2] reserved
[3] reserved
[4] CTS
468
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
LPDLL
Offset Address: 0x020
Bits Name Access Description Reset
ed
7:0 LPDLL R/W LCR[7] bit = 1 : Low Power Divisor Latch 0x0
w
(Low) Register
31:8 Reserved
lo
al
LPDLH
t
Offset Address: 0x024
no
Bits Name Access Description Reset
7:0 LPDLH R/W LCR[7] bit = 1 : Low Power Divisor Latch 0x0
e
(High) Register
ar
31:8 Reserved n
SRBR_STHR
tio
Buffer Register
st
re k-
31:8 Reserved
an M
FAR
n by
31:1 Reserved
od de
TFR
M a
M
RFW
Offset Address: 0x078
Bits Name Access Description Reset
9:0 RFW R/W Receive FIFO Write. These bits are only 0x0
valid when FIFO access mode is enabled
469
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
USR
Offset Address: 0x07c
Bits Name Access Description Reset
ed
4:0 USR RO UART Status Register
w
[0] UART Busy.
[1] Transmit FIFO Not Full.
lo
[2] Transmit FIFO Empty.
al
[3] Receive FIFO Not Empty.
[4] Receive FIFO Full.
t
31:5 Reserved
no
TFL
e
ar
Offset Address: 0x080
Bits Name Access Description Reset
n
5:0 TFL RO Transmit FIFO Level. This is indicates the
tio
number of
data entries in the transmit FIFO.
u
31:6 Reserved
r ib
RFL
di V
st
re k-
SRR
ca ub
SRTS
Offset Address: 0x08c
Bits Name Access Description Reset
0 SRTS R/W Shadow Request to Send. This is a 0x0
shadow register for the RTS bit (MCR[1])
31:1 Reserved
470
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SBCR
Offset Address: 0x090
Bits Name Access Description Reset
0 SBCR R/W Shadow Break Control Bit. This is a 0x0
shadow register for the Break bit
(LCR[6]).
31:1 Reserved
ed
SDMAM
Offset Address: 0x094
w
Bits Name Access Description Reset
lo
0 SDMAM R/W Shadow DMA Mode. This is a shadow 0x0
al
register for the DMA mode bit (FCR[3]).
31:1 Reserved
t
no
SFE
e
Offset Address: 0x098
ar
Bits Name Access Description Reset
0 SFE R/W Shadow FIFO Enable. This is a shadow 0x0
n
register for the FIFO enable bit (FCR[0]).
tio
31:1 Reserved
u
SRT
r ib
(FCR[7:6]).
31:2 Reserved
n by
STET
tio lic
trigger bits
(FCR[5:4]).
M a
31:2 Reserved
M
HTX
Offset Address: 0x0a4
Bits Name Access Description Reset
0 HTX R/W This register is use to halt transmissions 0x0
for testing,
31:1 Reserved
DMASA
Offset Address: 0x0a8
471
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
12.3SPI
w
lo
al
12.3.1 Overview
t
no
The system is equipped with four SPI controller modules, which can be used as a Master
e
for synchronous serial communication with external devices to realize serial/parallel
conversion of data.
ar
n
u tio
12.3.2 Characteristics
r ib
di V
st
re k-
Support Motorola SPI (full duplex), TI SSP (full duplex) and NS MicroWire (half
an M
The clock frequency of SPI interface is programmable
ca ub
Support DMA operation mode
ifi p
472
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The application block diagram of SPI master docking with external slave is shown in
Figure 12-9.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
12.3.4.2 Clock
The reference clock of SPI controller module can be set to 187.5MHz or 100MHz.
SPI_SCK output supports a maximum of 46.875MHz.
473
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
SPI_SCK output = 187.5MHz/4 = 46.875MHz
w
lo
al
12.3.4.3 Interrupt processing
t
no
SPI controller module has six interrupts, the first five of which are level interrupts(active
high) and can be masked independently.
e
ar
RXFINTR
Receive FIFO interrupt request. The interrupt is set when RXFTLR+1 or
n
tio
RXOINTR
ib
When the receive FIFO is full and new data needs to be written into FIFO,
r
di V
st
FIFO overflow will be caused and the interrupt is set. At this time, the data
re k-
RXUINTR
n by
When the receive FIFO is read empty and no new data is written into the
receive FIFO, a new read request occurs, which will cause FIFO underflow
tio lic
and the interrupt is set. At this time, all the values read are 0. The interrupt
ca ub
TXOINTR
od de
When the transmit FIFO is full and new data needs to be written into FIFO,
M a
M
474
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
To mask this interrupt, register IMR must be set to mask the above five
interrupts.
If any of the above five independent interrupts is set and enabled, the
interrupt is set.
12.3.4.4 Initialization
ed
The initialization steps of SPI controller module are as follows:
w
Step 1: set "0" in register SPIENR to stop SPI module.
lo
Step 2: configure the register BAUDR and set the divisor of output clock frequency
al
division. The set value must be even number.
t
no
Step 3: set register CTRLR0, and configure parameters such as bit width and frame
format of transmission data.
e
ar
Step 4: In DMA operation mode, configure register DMACR to enable DMA function of
SPI. When operating in DMA mode, the interrupt related register should be set
n
tio
interrupt signal
r
di V
st
The process of SPI master docking with external SPI / SSP slave is shown in Figure
12-10.
tio lic
ca ub
ifi p
od de
M a
M
475
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
Figure 12-10 data transmission process when docking with external SPI / SSP slave
The process of SPI master docking with external microwire slave is shown in Figure
12-11.
476
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
Figure 12-11 data transmission process when connecting to external Microwire slave
477
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SPI module uses two DMA channels, one for transmitting and one for receiving. The
registers of SPI DMA mode are DMACR, DMATDLR and DMARDLR.
The steps to enable SPI DMA mode are as follows:
Step 1: allocate two DMA channels for SPI.
Step 2: set the register DMACR[1:0] to enable SPI DMA transmission.
ed
Step 3: set "1" in register SPIENR to enable SPI.
w
lo
Step 4: send data
al
1. Configure the control registers related to the transmit DMA channel.
t
2. Start DMA controller to respond to the request of SPI sending FIFO.
no
3. Judge whether the transmission is completed through DMA Controller
e
Interrupt report, and close DMA function of SPI if the transmission is
ar
completed. n
tio
SPI.
n by
The following figures show various data transmission formats of Motorola SPI. SCPH
M
stands for SPI_ SCK phase, SCPOL for SPI_ SCK polarity is set by register CTRLR0[7:6].
(A) SCPH = 0
In this mode, SPI_CS_X is set to high level when it is idle and low level when it
is transmitting. SPI_SCK is different through SCPOL setting, SCPOL = 0, set to
low level when in idle state, capture data by rising edge of clock when
478
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
transmitting, SCPOL = 1, set to high level when in idle state, capture data by
falling edge of clock when transmitting.
The single frame transmission format is shown in Figure 12-12.
ed
w
lo
al
t
no
Figure 12-12Motorola SPI single frame transmission format (SCPH = 0)
e
ar
The format of continuous frame transmission is shown in Figure 12-13.
n
u tio
r ib
di V
st
re k-
d il
an M
n by
(B) SCPH = 1
ifi p
od de
In this mode, SPI_CS_X is set to high level when it is idle and low level when it
is transmitting. SPI_SCK is different through scpol setting, SCPOL = 0, set to
M a
M
low level when in idle state, capture data by falling edge of clock when
transmitting, SCPOL = 1, set to high level when in idle state, capture data by
rising edge of clock when transmitting.
The single frame transmission format is shown in Figure 12-14.
479
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
Figure 12-14 Motorola SPI single frame transmission format (SCPH = 1)
lo
al
t
The continuous frame transmission format is shown in Figure 12-15.
no
e
ar
n
u tio
r ib
di V
st
re k-
format (SCPH = 1)
an M
n by
In SSP mode, SPI_CS_X is set to high level when in idle state; SPI_CS_X is set to low level
ca ub
when in transmitting state. SPI_ SCK is set to low level when in idle state, and it captures
ifi p
480
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
Figure 12- 2 TI SSP Continuous Frame Transmission Format
t
no
e
12.3.5.3 National Semiconductor Microwire Interface ar
n
tio
In Microwire mode, SPI_CS_X is set to high level when in idle state; SPI_CS_X is set to
u
ib
low level when in transmitting state. SPI_ SCK is set to low level when in idle state, and it
r
In this mode, the control word must be added before data transmission, and then the
d il
an M
external chip responds to the data word required by the Master according to the
control word. The length of the control word can be set through the register
n by
CTRLR0[15:12], and other related parameters can be set through the register MWCR.
tio lic
ca ub
481
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
Figure 12- 4 NS Microwire Continuous Frame Transmission Format
no
e
12.3.6 Register Overview
ar
n
tio
The base addresses of four groups of SPI modules are shown in Table 12-2.
u
r ib
Table 12- 2 Four Groups of SPI Module Base Address of the Chip
di V
st
re k-
SPI0 0x04180000
SPI1 0x04190000
n by
SPI2 0x041A0000
SPI3 0x041B0000
tio lic
ca ub
Table 12-3 is the offset address and definition of the first group of SPI module (SPI0)
ifi p
482
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
RXUICR 0x040 Receive FIFO Underflow Interrupt Clear Register
MSTICR 0x044 Multi-Master Interrupt Clear Register
w
ICR 0x048 Interrupt Clear Register
lo
DMACR 0x04c DMA Control Register
al
DMATDLR 0x050 DMA Transmit Data Level
DMARDLR 0x054 DMA Receive Data Level
t
DR (36 组) 0x060 Data Register
no
RX_SAMPLE_DLY 0x0f0 Rx Sample Delay Register
e
12.3.7 Register Description
ar
n
u tio
ib
CTRLR0
r
di V
st
483
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
indicates whether the receive or
transmit data are valid.
w
In transmit-only mode, data received
lo
from the external device is not valid and
al
is not stored in the receive FIFO
memory; it is overwritten on the next
t
transfer.
no
In receive-only mode, transmitted data
are not valid. After the first write to the
transmit FIFO, the same word is
e
retransmitted for the duration of the
ar
transfer.
In transmit-and-receive mode, both
n
transmit and receive data are valid. The
tio
10 –- Receive Only
11 –- EEPROM Read
ifi p
od de
ed
[5:4] Frame Format.
w
Selects which serial protocol transfers
lo
the data.
00 –- Motorola SPI
al
01 –- Texas Instruments SSP
10 –- National Semiconductors
t
no
Microwire
11 –- Reserved
e
[3:0] Data Frame Size.
ar
Selects the data frame length. When the
data frame size is programmed to be
n
less than 16 bits, the receive data are
tio
CTRLR1
Offset Address: 0x004
Bits Name Access Description Reset
15:0 CTRLR1 R/W Number of Data Frames. 0x0
When TMOD = 10 or TMOD = 11, this
register field sets the number of data
frames to be continuously received by
485
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SPIENR
ed
Offset Address: 0x008
w
Bits Name Access Description Reset
lo
0 SPIENR R/W SPI Enable. 0x0
al
Enables and disables all SPI operations.
When disabled, all serial transfers are
t
halted immediately. Transmit and
no
receive FIFO buffers are cleared when
the device is disabled. It is impossible to
program some of the SPI control
e
ar
registers when enabled. When disabled,
the spi_sleep output is set (after delay)
to inform the system that it is safe to
n
remove the spi_clk, thus saving power
tio
MWCR
r
di V
st
486
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
1 – sequential transfer
31:3 Reserved
w
lo
SER
al
Offset Address: 0x010
t
Bits Name Access Description Reset
no
0 SER R/W Slave Select Enable Flag. 0x0
This register corresponds to a slave
select line (ss_x_n]) from the SPI master.
e
ar
When this register is set (1), the slave
select line from the master is activated
when a serial transfer begins. It should
n
be noted that setting or clearing this
tio
communicate.
d il
1: Selected
an M
0: Not Selected
31:1 Reserved
n by
BAUDR
tio lic
TXFTLR
Offset Address: 0x018
487
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
than or equal to this value, the transmit
FIFO empty interrupt is triggered.
w
31:3 Reserved
lo
al
RXFTLR
Offset Address: 0x01c
t
no
Bits Name Access Description Reset
2:0 RXFTLR R/W Receive FIFO Threshold. 0x0
Controls the level of entries (or above)
e
ar
at which the receive FIFO controller
triggers an interrupt. The FIFO depth is
8. If you attempt to set this value
n
greater than the depth of the FIFO, this
tio
31:3 Reserved
re k-
d il
TXFLR
an M
31:4 Reserved
ifi p
RXFLR
od de
SR
Offset Address: 0x028
Bits Name Access Description Reset
6:0 SR RO [6] Data Collision Error.
This bit is set if the SPI master is actively
transmitting when another master
488
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Set if the transmit FIFO is empty when a
transfer is started. Data from the
w
previous transmission is resent on the
lo
txd line. This bit is cleared when read.
0 – No error
al
1 – Transmission error
t
no
[4] Receive FIFO Full.
When the receive FIFO is completely
full, this bit is set. When the receive
e
FIFO contains one or more empty
ar
location, this bit is cleared.
0 – Receive FIFO is not full
n
1 – Receive FIFO is full
tio
489
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IMR
Offset Address: 0x02c
Bits Name Access Description Reset
5:0 IMR R/W [5] Multi-Master Contention Interrupt 0x3F
Mask.
0 – spi_mst_intr interrupt is masked
1 – spi_mst_intr interrupt is not masked
ed
0 – spi_rxf_intr interrupt is masked
1 – spi_rxf_intr interrupt is not masked
w
lo
[3] Receive FIFO Overflow Interrupt
al
Mask
0 – spi_rxo_intr interrupt is masked
t
1 – spi_rxo_intr interrupt is not masked
no
[2] Receive FIFO Underflow Interrupt
e
Mask
ar
0 – spi_rxu_intr interrupt is masked
1 – spi_rxu_intr interrupt is not masked
n
tio
[1] Transmit FIFO Overflow Interrupt
Mask
0 – spi_txo_intr interrupt is masked
u
ib
31:6 Reserved
n by
ISR
Offset Address: 0x030
tio lic
490
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Status
0 = spi_txo_intr interrupt is not active
w
after masking
lo
1 = spi_txo_intr interrupt is active after
al
masking
t
[0] Transmit FIFO Empty Interrupt Status
no
0 = spi_txe_intr interrupt is not active
after masking
1 = spi_txe_intr interrupt is active after
e
ar
masking
31:6 Reserved n
tio
RISR
Offset Address: 0x034
u
ib
Interrupt Status.
re k-
prior to masking
1 = spi_rxo_intr interrupt is active prior
masking
491
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
prior to masking
1 = spi_txe_intr interrupt is active prior
w
masking
lo
31:6 Reserved
al
TXOICR
t
no
Offset Address: 0x038
Bits Name Access Description Reset
e
0 TXOICR RO Clear Transmit FIFO Overflow Interrupt.
ar
This register reflects the status of the
interrupt. A read from this register
clears the spi_txo_intr interrupt; writing
n
has no effect.
tio
31:1 Reserved
u
ib
RXOICR
r
di V
st
31:1 Reserved
ca ub
RXUICR
ifi p
MSTICR
Offset Address: 0x044
Bits Name Access Description Reset
0 MSTICR RO Clear Multi-Master Contention
Interrupt.
492
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ICR
ed
Offset Address: 0x048
Bits Name Access Description Reset
w
0 ICR RO Clear Interrupts.
lo
This register is set if any of the
al
interrupts below are active. A read
clears the spi_txo_intr, spi_rxu_intr,
t
spi_rxo_intr, and the spi_mst_intr
no
interrupts. Writing to this register has
no effect.
31:1 Reserved
e
DMACR
ar
n
tio
Offset Address: 0x04c
Bits Name Access Description Reset
u
31:2 Reserved
ca ub
DMATDLR
ifi p
DMARDLR
Offset Address: 0x054
493
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:3 Reserved
w
DR
lo
Offset Address: 0x060
al
Bits Name Access Description Reset
t
15:0 DR R/W Data Register. 0x0
no
When writing to this register, you must
right-justify the data. Read data are
automatically right-justified.
e
ar
Read = Receive FIFO buffer
Write = Transmit FIFO buffer
n
Note :
tio
31:16 Reserved
tio lic
RX_SAMPLE_DLY
ca ub
494
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.4SD/SDIO Controller
ed
SD / SDIO controller (SD controller for short) is used to handle the operation of data
w
reading and writing of SD card, as well as the external devices (such as Bluetooth, WiFi,
lo
al
etc.) supported by SDIO protocol. The chip provides two sets of SD controllers,
including:
t
no
SDIO0 supports devices compliant to the Secure Digital Memory (SD 3.0) protocol.
e
ar
SDIO1 supports devices complian to the Secure Digital I/O(SDIO 3.0) protocol.
n
tio
The function signals and pins corresponding to the SD controllers in the chip are shown
u
SD_CMD SD0_CMD
SD_DATA0 SD0_D0
tio lic
SD_DATA1 SD0_D1
ca ub
SD_DATA2 SD0_D2
ifi p
SD_DATA3 SD0_D3
od de
SD_CARD_DETECT SD0_CD
SD_POWER_EN SD0_PWR_EN
M a
M
495
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
Figure 12- 20 SD Controller Function Block Diagram
t
no
Functions of SDMMC:
e
ar
1. Support SD card, SDIO device.
2. Transfer data between SD / SDIO and system memory through internal DMA
n
tio
controller.
u
4. The required frequency between different modes can be generated through the
r
di V
st
5. Provide a mechanism to turn off the internal clock and the clock on the interface
an M
to save power.
n by
6. Provide 1-bit and 4-bit data transmission interface to communicate with the
device.
tio lic
7. Support block_size read and write operations with size equal to 1-2048byte.
ca ub
8. Support SDIO protocol, including interrupt interval, suspend, resume and read
ifi p
wait.
od de
9. Support AXI/AHB interface and access system memory through internal DMA.
M a
M
10. Support AHB interface and access internal registers through CPU.
496
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
The bus packet of SD consists of three parts: commmand, response and data.
tio lic
The commmand and response packets are transmitted through the CMD signal line.
ca ub
Command Packet
ifi p
The command packet is sent to the device by the host to indicate the start of an
od de
operation. The packet format consists of 48 bits including start bit, transmit bit,
M a
M
command index, command argument, CRC verification code and end bit. It is shown
in Figure 12-22.
497
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
Figure 12- 22 SD/SDIO Command Format
t
no
e
ar
Response Packet
After receiving the command, the device will return the response according to
n
tio
different command types, which is used to show the status or parameters of the
u
Data Packet
498
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Data packets are used to exchange data between the host and the device.
According to different requirements, 1-bit (DATA0), 4-bit (DATA 0- DATA 3) or 7-bit
(DATA 0- DATA 7) can be selected. In each clock cycle, each data signal line can
choose to transmit 1-bit (single data rate) or 2-bit (dual data rate). The packet
formats are shown in Figure 12-24 to 12-26.
ed
w
lo
al
Figure 12- 24 SD/SDIO 1-bit Data Packet Format
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
499
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
Figure 12- 26 SD/SDIO 4-bit Data Packet Format
u tio
ib
According to whether there is data transmission, commands can be further divided into
r
di V
st
Non data transmission command: through the signal line CMD to complete the
d il
an M
The data transmission between the host and the device is mainly based on the block. In
addition to the data, CRC check bits are also included to verify the correctness of the
data. Common methods of data reading and writing include single-block and multi-
ed
block. Compared with single block data transmission, multi block data transmission has
w
higher efficiency. Among them, the block size of SD card is 512byte. SDIO is special. It
lo
al
can support 1-2048byte block size. Users can define the block size value according to
different devices.
t
no
(1) Single block and multi block read operations are shown in Figure 12-30. Single
block transmission consists of command, response, data and CRC. Multi block
e
ar
transmission terminates transmission by STOP CMD. n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
(2) Single block and multi block write operations are shown in Figure 12-31. In the
od de
transmission process, a BUSY signal will be sent through the DAT0 signal line to
M a
M
501
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
Figure 12- 29 Single Block and Multi Block Write Operation
lo
al
t
no
12.4.1.4 Speed Mode and Voltage Switching supported by SD3.0
e
Voltage Switching Procedure (1.8V 3.3V)
ar
n
Step 1: Set PWRSW to 3.0V mode
tio
502
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
12.4.2 Application Explanation
lo
al
12.4.2.1 Clock off Control
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
503
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
As shown in Figure 12-30, is a clock off control program. The host must ensure that
there is no transmission on the bus before the clock can be turned off.
(1) Read register PRESENT_STS
(2) Check bit CMD_ INHIBIT and DAT_INHIBIT are both 0
(3) If any bit is not 0, it means that the transmission is still in progress and needs to be
ed
delayed.
w
(4) If all are 0, it can be set_ CTL[SD_ CLK_ EN] = 0 to turn off the clock
lo
al
t
12.4.2.2 Soft Reset
no
When the controller operation is abnormal, reset the configuration register (base
e
ar
address = 0x0300_ 3000) for soft reset. The register addresses used are as follows.
n
6. SDIO0 : SOFT_RSTN_0[reg_soft_reset_x_sd0] (address offset : 0x000, Bit16)
tio
Figure 12-31 shows the flow chart of interface clock configuration. SD controller
provides a frequency divider, which allows users to adjust the required clock frequency
n by
When SD changes the frequency, in addition to ensuring that no commands and data
ifi p
are still in transmission, it must also be set according to the steps of the interface clock
od de
configuration flow chart to avoid the clock glitch output to the SD device.
M a
504
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
(6) If the clock frequency switching is completed, turn on the interface clock.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
505
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
execute step (3) to confirm whether it is an Abort command.
w
(3) If it is an Abort command, it means that when the CMD line completes the
lo
transmission, the DATA line is also idle, so you can directly go to step (5);
al
otherwise, if it is not an Abort command, you must go to step (4) to confirm
t
no
whether the busy on the DATA line has been released.
(4) Check if register bit PRESENT[DAT_INHIBIT] is 0 to confirm whether the DATA
e
ar
line is still in use or not. If it is still in use, wait until the end of transmission, and
then perform step (5).
n
tio
(5) Set the value of ARGUMENT register and CMD register according to the
command requirements.
u
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
506
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
ed
(4) If it is an command containing data transmission, step (5) will be executed;
w
otherwise, skip to step (8).
lo
(5) Wait for data transmission interrupt NORM_INT_STS[XFER_CMPL].
al
(6) Set NORM_INT_STS[XFER_CMPL]=1 to clear XFER_CMPL interrupt status after
t
no
receiving interrupt.
(7) Check RESP1_0, RESP3_ 2, RESP5_ 4, and RESP7_ 6 registers to confirm whether
e
ar
there is an error state. If there is no error status, go to step (8) and return that
there is no error. If there is an error, perform step (9) to report the error.
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
508
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
509
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
(1) Stop data transmission of infinite block.
w
(2) Stop multi block data transmission.
lo
al
The procedure of abort command is shown in Figure 12-34, and the detailed steps
t
are as follows.
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
510
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
There are two ways of abort command: synchronous abort command and
asynchronous abort command.
Asynchronous Abort Command Sequence
Figure 12-35 shows the diagram of asynchronous abort command. The detailed
steps are as follows.
511
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
512
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
(6) Check bit SW_RESET[SW_RST_CMD] and SW_RESET[SW_RST_DAT] to confirm
w
whether the reset is completed. If both are 0, the procedure ends. If one of
lo
them is 1, return to step (6) to delay waiting.
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
513
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The procedure of non DMA data transfer mode is shown in Figure 12-37. The detailed
steps are as follows.
(1) Write BLK_SIZE register to set the block size.
(2) Write BLK_ CNT register to set the number of blocks.
ed
(3) Write ARGUMENT register to set the command argument.
w
(4) Write XFER_MODE register to set the transmission mode. The host can decide the
lo
setting according to the situation, including Single or Multiple Block Select, DMA
al
Enable, Block Count Enable, Data Transfer Direction, Auto CMD Enable.
t
(5) Write CMD register to set the type of command and response.
no
(6) Wait for the interrupt NORM_INT_STS[CMD_CMPL] completed by Command.
e
(7) Set NORM_INT_STS[CMD_CMPL]=1 to clear the CMD_CMPL interrupt status after
receiving interrupt.
ar
n
(8) Next read RESP1_0, RESP3_ 2, RESP5_ 4, and RESP7_ 6 to get the response value.
tio
(9) Step (14) is executed for a read operation and step (10) is executed for a write
u
ib
operation.
r
di V
(13) If there are more blocks to write, go back to step (10) until the last block is
tio lic
(16) Read the data from BUF_DATA in order, the data that received from the device.
M
(17) If there are more blocks to read, go back to step (14), and then go to step (18)
until the last block is read.
(18) Determine the transmission is single module transmission, multi module
transmission or infinite module transmission. If it is single module or multi module
transmission, skip to step (19). If it is infinite module transmission, skip to step (21)
and execute abort command.
514
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
(19) Wait for the interrupt NORM_INT_STS[XFER_CMPL] after the data transmission is
completed.
(20) Set NORM_INT_STS[CMD_XFER]=1 to clear theXFER_CMPL interrupt status after
receiving interrupt.
(21) Execute the abort command procedure.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
515
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
516
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The procedure of SDMA data transmission mode is shown in Figure 12-38, and the
detailed steps are as follows.
(1) Write SDMA_ SA register to set the starting address of system memory used in data
transmission.
ed
(2) Write BLK_ SIZE register to set the block size.
w
(3) Write BLK_ CNT register to set the number of blocks.
lo
(4) Write the ARGUMENT register to set the command argument.
al
(5) Write to XFER_MODE register to set the transmission mode. The host can decide the
t
setting according to the situation, including Single or Multiple Block Select, DMA
no
Enable, Block Count Enable, Data Transfer Direction, Auto CMD Enable.
e
(6) Write to the CMD register to set the type of command and response.
ar
(7) Wait for the interrupt NORM_INT_STS[CMD_CMPL] completed by Command.
n
(8) Set NORM_INT_STS[CMD_CMPL]=1 to clear the CMD_ Cmpl interrupt status after
tio
receiving interrupt.
u
ib
(9) Next read RESP1_0, RESP3_ 2, RESP5_ 4, and RESP7_ 6 to get the response value.
r
di V
(11) Read interrupt state register NORM_INT_STS to determine the type of interrupt.
d il
an M
(13) Write to SDMA_SA register to reset the next starting address of the system
ca ub
DMA_INT and XFER_CMPL status value, and then end the sequence.
M a
M
517
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
518
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The procedure of ADMA data transmission mode is shown in Figure 12-39, and the
detailed steps are as follows.
(15) Fill ADMA description table into system memory.
(16) Write ADMA_ SA_ L and ADMA_ SA_ H register to set the starting address of the
system memory used by the description table.
(17) Write BLK_ SIZE register to set the block size.
ed
(18) Write BLK_ CNT register to set the number of blocks.
w
(19) Write the ARGUMENT register to set the command argument.
lo
(20) Write to XFER_MODE register to set the transmission mode. The main controller
al
can decide the setting according to the situation, including Single or Multiple Block
t
no
Select, DMA Enable, Block Count Enable, Data Transfer Direction, Auto CMD Enable.
(21) Write to the CMD register to set the type of command and response.
e
ar
(22) Wait for the interrupt NORM_INT_STS[CMD_CMPL] completed by Command.
(23) Set NORM_INT_STS[CMD_CMPL]=1 to clear the CMD_ Cmpl interrupt status
n
tio
(26) Read interrupt state register NORM_INT_STS and ERR_INT_STS to determine the
re k-
transmission with the device. If necessary, check the ADMA Error Status register to
ca ub
519
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
520
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Offset
w
SDMA_SADDR 0x000 SDMA System Memory Address/ Argument2
BLK_SIZE_AND_CNT 0x004 Block Size and Block Count Register
lo
ARGUMENT 0x008 Argument 1 Register
al
XFER_MODE_AND_CMD 0x00c Transfer Mode and Command Register
RESP31_0 0x010 Response Bit 31-0 Regsiter
t
RESP63_32 0x014 Response Bit 63-32 Regsiter
no
RESP95_64 0x018 Response Bit 95-64 Regsiter
RESP127_96 0x01c Response Bit 127-96 Regsiter
e
BUF_DATA 0x020 Buffer Data Port Register
ar
PRESENT_STS 0x024 Present State Register
HOST_CTL1_PWR_BG_WUP 0x028 Host Control 1 , Power, Block Gap and Wakeup Register
n
CLK_CTL_SWRST 0x02c Clock and Reset Control Register
tio
NORM_AND_ERR_INT_STS 0x030 Normal and Error Interrupt Status Register
NORM_AND_ERR_INT_STS_EN 0x034 Normal and Error Interrupt Status Enable Register
u
AUTO_CMD_ERR_AND_HOST_CTL2 0x03c Auto CMD Error Status Register and Host Control 2
register
r
di V
st
SLOT_INT_AND_HOST_VER 0x0fc Slot Interrupt Status and Host Controller Version Register
ifi p
521
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SDMA_SADDR
SDMA System Memory Address/ Argument2
ed
Offset Address: 0x000
Bits Name Access Description Reset
w
31:0 SDMA_SA R/W Physical system memory address used 0x0
lo
for DMA transfer and the second
argument for Auto CMD23
al
BLK_SIZE_AND_CNT
t
no
Block Size and Block Count Register
Offset Address: 0x004
Bits Name Access Description Reset
e
ar
11:0 XFER_BLK_SIZE R/W Block Size of data transfer. 0x0
- 0x1 : 1 byte
- 0x2 : 2 bytes
n
...........
tio
- 0x0 ( 4K bytes)
- 0x1 (8K bytes)
d il
ARGUMENT
od de
Argument 1 Register
Offset Address: 0x008
M a
XFER_MODE_AND_CMD
Transfer Mode and Command Register
Offset Address: 0x00c
Bits Name Access Description Reset
0 DMA_ENABLE R/W DMA enable 0x0
1 : DMA Data Transfer
0 : No data transfer or Non DMA data
transfer
1 BLK_CNT_ENABLE R/W Block Count Enable. 0x0
This bit is used to enable the block
522
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0x2 : Auto CMD23 Enable
0x3 : Reserved
w
4 DAT_XFER_DIR R/W Data Transfer Direction Select 0x0
1 : Read ( card to host)
lo
0 : Write ( host to card )
al
5 MULTI_BLK_SEL R/W Multi/single Block Select 0x0
1 : Multiple block transfer
t
0 : Single block transfer
no
6 RESP_TYPE R/W Response Type R1/R5 0x0
0x0 : R1 (Memory)
e
0x1 : R5 (SDIO)
ar
7 RESP_ERR_CHK_ENABLE R/W Response Error Check Enable 0x0
1 : Enable
n
0 : Disable
tio
0 : Enable
ib
15:9 Reserved
r
0x0 : No Response
re k-
1 : Sub Command
0 : Main Command
19 CMD_CRC_CHK_ENABLE R/W Command CRC check enable 0x0
tio lic
1 : Enable
0 : Disable
ca ub
1 : Enable
0 : Disable
od de
(ex. CMD52)
(2) Commands with no data transfer
but using busy signal on DAT0 ( ex. R1b)
(3) Resume command
1 : Data Present
0 : No Data Present
23:22 CMD_TYPE R/W Command Type 0x0
0x0 : Normal
0x1 : Suspend ( CMD52 for writing "Bus
Suspend" in CCCR)
0x2 : CMD52 for writing "Function
Select" in CCCR)
0x3 : Abort ( CMD12, CMD52 for writing
523
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RESP31_0
Response Bit 31-0 Regsiter
Offset Address: 0x010
Bits Name Access Description Reset
ed
31:0 RESP31_0 RO Command Response for RSP[39:8]
w
RESP63_32
lo
Response Bit 63-32 Regsiter
al
Offset Address: 0x014
Bits Name Access Description Reset
t
31:0 RESP63_32 RO Command Response for RSP[71:40]
no
RESP95_64
e
Response Bit 95-64 Regsiter
ar
Offset Address: 0x018
Bits Name Access Description Reset
n
31:0 RESP95_64 RO Command Response for RSP[103:72]
tio
RESP127_96
u
ib
BUF_DATA
Buffer Data Port Register
n by
PRESENT_STS
ifi p
524
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0 : No valid data
10 BUF_WR_ENABLE RO Buffer Write Enable
w
1 : Enable
lo
0 : Disable
al
11 BUF_RD_ENABLE RO Buffer Read Enable
1 : Enable
t
0 : Disable
no
15:12 Reserved
16 CARD_INSERTED RO Card Inserted
e
1 : Card Inserted
ar
0 : Reset or Debouncing or No card
17 CARD_STABLE RO Card State Stable
n
1 : No Card or Inserted
tio
0 : Reset or Debouncing
18 CARD_CD_STS RO Card Detect Pin Level
u
HOST_CTL1_PWR_BG_WUP
tio lic
1 : LED on
M
0 : LED off
1 DAT_XFER_WIDTH R/W Data Transfer Width. 0x0
1 : 4-bit mode
0 : 1-bit mode
2 HS_ENABLE R/W High Speed Enable 0x0
1 : High Speed Enable
0 : Normal Speed Enable
4:3 DMA_SEL R/W DMA Select. 0x0
0x0 : SDMA mode
0x1 : Reserved
0x2 : ADMA2
0x3 : ADMA2 or ADMA3
525
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0 : SD_CD Is selected
8 SD_BUS_PWR R/W SD Bus Power. 0x0
w
1 : Power on
lo
0 : Power off
11:9 SD_BUS_VOL_SEL R/W SD Bus Voltage Select 0x0
al
111b : 3.3V
110b : 3.0V
t
no
101b : 1.8V
100b - 000b : Reserved
15:12 Reserved
e
16 STOP_BG_REQ R/W Stop At Block Gap Request. 0x0
ar
This bit is used to stop executing read
and write transaction at the next block
n
gap for non-DMA, SDMA and ADMA
tio
transfers.
1 : Stop
u
0 : Transfer
ib
STOP_BG_REQ.
d il
1 : Restart
an M
0 : Not affect
18 READ_WAIT R/W Read Wait Control 0x0
n by
1 : Enable
ca ub
0 : Disabel
23:20 Reserved
ifi p
1 : Enable
0 : Disable
M a
M
CLK_CTL_SWRST
Clock and Timeout Control Register
Offset Address: 0x02c
Bits Name Access Description Reset
526
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
3 PLL_EN R/W PLL Enable 0x0
1 : Enable
w
0 : Disable
lo
5:4 Reserved
al
7:6 UP_FREQ_SEL R/W Upper Bits of SDCLK Frequency Select 0x0
15:8 FREQ_SEL R/W SDCLK Frequency Select 0x0
t
19:16 TOUT_CNT R/W Data Timeout Counter Value 0x0
no
0x0 : TMCLK x 2^13
0x1 : TMCLK x 2^14
…......
e
ar
0xe : TMCLK x 2^ 27
0xf : Reserved
23:20 Reserved
n
tio
24 SW_RST_ALL R/W Software Reset For All 0x0
25 SW_RST_CMD R/W Software Reset For CMD Line 0x0
u
31:27 Reserved
r
di V
st
NORM_AND_ERR_INT_STS
re k-
527
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
21 DAT_CRC_ERR RWC Data CRC Error
w
22 DAT_ENDBIT_ERR RWC Data End Bit Error
lo
23 CURR_LIMIT_ERR RWC Current Limit Error
al
24 AUTO_CMD_ERR RWC Auto Command Error
25 ADMA_ERR RWC ADMA Error
t
no
26 TUNE_ERR RWC Tuning Error
27 Reserved
e
28 BOOT_ACK_ERR RWC
ar
31:29 Reserved n
tio
NORM_AND_ERR_INT_STS_EN
Normal and Error Interrupt Status Enable Register
u
528
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
NORM_AND_ERR_INT_SIG_EN
Normal and Error Interrupt Signal Enable Register
Offset Address: 0x038
Bits Name Access Description Reset
0 CMD_CMPL_SIG_EN R/W Command Complete Signal Enable 0x0
ed
1 XFER_CMPL_SIG_EN R/W Transfer Complete Signal Enable 0x0
2 BG_EVENT_SIG_EN R/W Block Gap Event Signal Enable 0x0
w
3 DMA_INT_SIG_EN R/W DMA Interrupt Signal Enable 0x0
lo
4 BUF_WRDY_SIG_EN R/W Buffer Write Ready Signal Enable 0x0
5 BUF_RRDY_SIG_EN R/W Buffer Read Ready Signal Enabel 0x0
al
6 CARD_INSERT_INT_SIG_EN R/W Card Insertion Signal Enable 0x0
7 CARD_REMOV_INT_SIG_EN R/W Card Removal Signal Enable 0x0
t
no
8 CARD_INT_SIG_EN R/W Card Interrupt Signal Enable 0x0
9 INT_A_SIG_EN R/W INT_A Signal Enable. 0x0
10 INT_B_SIG_EN R/W INT_B Signal Enable. 0x0
e
11 INT_C_SIG_EN R/W INT_C Signal Enable. 0x0
ar
12 RE_TUNE_EVENT_SIG_EN R/W Re-Tuning EventSignal Enable 0x0
13 Reserved
n
tio
14 CQE_EVENT_SIG_EN R/W CQE EventSignal Enable 0x0
15 Reserved
u
27 Reserved
ca ub
AUTO_CMD_ERR_AND_HOST_CTL2
Auto CMD Error Status Register and Host Control 2 register
M a
529
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
eMMC Speed Mode Select ( for eMMC)
0x0 : Default speed
w
0x1 : High speed
0x2 : Reserved
lo
0x3 : HS200
al
0x4 : DDR52
0x5 : Reserved
t
0x6 : Reserved
no
0x7 : Reserved
19 EN_18_SIG R/W 1.8V Signaling Enable 0x0
e
21:20 DRV_SEL R/W Driver Strength Select 0x0
ar
0x0 : Driver Type B
0x1 : Driver Type A
n
0x2 : Driver Type C
tio
0x3 : Driver Type D
22 EXECUTE_TUNE R/W Execute Tuning 0x0
u
1 : Execute Tuning
ib
0 : Disable
31 PRESET_VAL_ENABLE R/W Preset Value Enable 0x0
1 : Automatic Selection by Preset Value
tio lic
are Enabled
0 : SDLCK and Driver Strength are
ca ub
CAPABILITIES1
od de
Capabilities 1 Register
Offset Address: 0x040
M a
530
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
20 Reserved
21 HS_SUPPORT RO High Speed Support
w
22 SDMA_SUPPORT RO SDMA Support
lo
23 SUSP_RES_SUPPORT RO Suspend/Resume Support
al
24 V33_SUPPORT RO 3.3V Support
t
25 V30_SUPPORT RO 3.0V Support
no
26 V18_SUPPORT RO 1.8V Support
27 Reserved
e
ar
28 BUS64_SUPPORT RO 64-bit System Bus Support
29 ASYNC_INT_SUPPORT RO Asynchronous Interrupt Support
n
31:30 SLOT_TYPE RO Slot Type
tio
CAPABILITIES2
di V
st
Capabilities 2 Register
re k-
3 Reserved
4 DRV_A_SUPPORT RO Driver Type A Support
ca ub
7 Reserved
11:8 RETUNE_TIMER RO Timer Count for Re-Tuning
M a
M
0x0 : Disable
n : 2^(n-1) seconds
0xB : 1024 seconds
0xC ~ 0xE : Reserved
0xF : Get Information from other source
12 Reserved
13 TUNE_SDR50 RO Use Tuning for SDR50
15:14 RETUNE_MODE RO Re-Tuning Modes
23:16 CLK_MULTIPLIER RO Clock Multiplier
31:24 Reserved
531
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
FORCE_EVENT_ERR
Force Event Register for Auto CMD Error Status
Offset Address: 0x050
Bits Name Access Description Reset
0 FORCE_AUTO_CMD12_NOT_EXE R/W Force Event for Auto CMD12 Not 0x0
Executed
1 FORCE_AUTO_CMD_TOUT_ERR R/W Force Event for Auto CMD Timeout 0x0
Error
2 FORCE_AUTO_CMD_CRC_ERR R/W Force Event for Auto CMD CRC Error 0x0
3 FORCE_AUTO_CMD_EBIT_ERR R/W Force Event for Auto CMD End Bit Error 0x0
ed
4 FORCE_AUTO_CMD_IDX_ERR R/W Force Event for Auto CMD Index Error 0x0
w
6:5 Reserved
7 FORCE_AUTO_CMD_NOT_ISSUE R/W Force Event for Command Not Issued By 0x0
lo
Auto CMD12 Error
al
15:8 Reserved
t
16 FORCE_CMD_TOUT_ERR R/W Force Event for Auto CMD12 Not 0x0
no
Executed
17 FORCE_CMD_CRC_ERR R/W Force Event for CMD Timeout Error 0x0
18 FORCE_CMD_EBIT_ERR R/W Force Event for CMD End Bit Error 0x0
e
19 FORCE_CMD_IDX_ERR R/W Force Event for CMD Index Error 0x0
ar
20 FORCE_DAT_TOUT_ERR R/W Force Event for DATA Timeout Error 0x0
21 FORCE_DAT_CRC_ERR R/W Force Event for DATA End Bit Error 0x0
n
22 FORCE_DAT_EBIT_ERR R/W Force Event for DATA Index Error 0x0
tio
27 Reserved
di V
st
re k-
ADMA_ERR_STS
n by
31:3 Reserved
M
ADMA_SADDR_L
ADMA System Address Register for low 32-bit
Offset Address: 0x058
Bits Name Access Description Reset
31:0 ADMA_SA_L R/W ADMA System Address for low 32-bit 0x0
ADMA_SADDR_H
ADMA System Address Register for high 32-bit
Offset Address: 0x05c
Bits Name Access Description Reset
532
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
PRESENT_VUL_INIT_DS
Present Value Register for Initialization and Default Speed
Offset Address: 0x060
Bits Name Access Description Reset
31:0 PRESENT_VUL_INIT_DS RO Present Value Register for Initialization
and Default Speed
ed
PRESENT_VUL_HS_SDR12
w
Present Value Register for High-speed and SDR12
Offset Address: 0x064
lo
Bits Name Access Description Reset
al
31:0 PRESENT_VUL_HS_SDR12 RO Present Value Register for High-speed
and SDR12
t
no
PRESENT_VUL_SDR25_SDR50
Present Value Register for SDR25 and SDR50
e
Offset Address: 0x068
ar
Bits Name Access Description Reset
31:0 PRESENT_VUL_SDR25_SDR50 RO Present Value Register for SDR25 and
n
SDR50
tio
PRESENT_VUL_SDR104_DDR50
u
SLOT_INT_AND_HOST_VER
n by
15:8 Reserved
23:16 SPEC_VER RO Specification Version Number
ifi p
EMMC_CTRL
MSHC Control register
Offset Address: 0x200
Bits Name Access Description Reset
0 EMMC_FUNC_EN R/W eMMC Card present 0x0
1 LATANCY_1T R/W Latancy 1t for cmd in 0x1
2 CLK_FREE_EN R/W Internal clock gating disable control 0x0
3 DISABLE_DATA_CRC_CHK R/W Disable Data CRC Check 0x0
533
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
0 : Priority based reordering with FCFS
(PRI_REORDER_PLUS_FCFS)
w
13 CQE_PREFETCH_DISABLE R/W Enable or Disable CQE's PREFETCH 0x0
Feature
lo
1 : Disable
al
0 : Enable
15:14 Reserved
t
no
16 timer_clk_sel R/W timer clock source selection 0x0
1 : 32K
0 : 100K
e
31:17 Reserved
CDET_TOUT_CTL ar
n
tio
Card Detect Control Register
Offset Address: 0x208
u
MBIU_CTRL
d il
31:4 Reserved
ifi p
PHY_TX_RX_DLY
od de
534
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
PHY_DS_DLY
PHY DS delay line register
ed
Offset Address: 0x244
Bits Name Access Description Reset
w
6:0 PHY_DS_DLY R/W PHY DS delay line phase selection 0x0
lo
7 Reserved
al
9:8 PHY_DS_SRC R/W PHY DS delay line clock source selection 0x0
10 PHY_DS_EVEN_ODD R/W PHY DS delay line clock source selection 0x0
t
31:11 Reserved
no
PHY_DLY_STS
e
PHY delay line status register
ar
Offset Address: 0x248
Bits Name Access Description Reset
n
0 PHY_TX_LEAD_LAG RO PHY tx delay line lead or lag flag
tio
31:3 Reserved
r
di V
st
re k-
PHY_CONFIG
d il
7:2 Reserved
9:8 ADJ_NCR R/W Adjust NCR counter 0x0
ifi p
31:12 Reserved
M a
M
535
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.5GPIO
12.5.1 Overview
The system is equipped with four groups of GPIO (General Purpose Input/Output),
namely GPIO0, GPIO1, GPIO2, and GPIO3. Each group of GPIO provides 32
ed
programmable Input / Output pins.
w
The direction of each pin can be arbitrarily set as input or output to generate the output
lo
al
signal of a specific application or collect the input signal of a specific application. When
set to input pin, GPIO can be used as interrupt source; when set to output pin, each
t
no
GPIO can output 0 or 1 independently.
e
GPIO can generate maskable interrupt according to the level or value change of input
ar
signal(level or edge sensitive). GPIOx_INTR_FLAG(x=0~3) signal gives an indication
n
to the interrupt controller, indicating that an interrupt has occurred.
u tio
12.5.2 Characteristics
r ib
di V
st
When the chip is powered on or the system is reset, the four GPIO modules are reset at
the same time, and the GPIO pins are in the input state by default after reset.
M a
M
Each pin can be set as input or output at will. The steps are as follows.
536
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Each GPIO can be used as an interrupt source through the control of nine registers
including GPIO_INTEN and so on. By these registers, the user can select the interrupt
ed
source, interrupt level polarity and edge trigger characteristics.
w
When multiple GPIO interrupts occur at the same time, one interrupt will be aggregated
lo
al
for reporting (each of the four groups of GPIO will have a collective flag broken
reporting).
t
no
The characteristics of interrupt source and the type of interrupt trigger are determined
by the following five registers: GPIO_INTTYPE_LEVEL, GPIO_INT_POLARITY,
e
ar
GPIO_INTMASK, GPIO_DEBOUNCE, and GPIO_LS_SYNC. n
The original state and masked state of the interrupt are read through
tio
Each GPIO can support interrupt. The setting steps are as follows.
r
di V
st
re k-
trigger.
an M
Step 2 Configure register GPIO_INT_POLARITY and select low level / high level trigger
n by
The base addresses of the four GPIO modules are shown in Table 12-7.
M
537
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Table 12-8 shows the offset addresses and definitions of the first group of GPIO module
(GPIO0) registers. GPIO0 to GPIO3 have the same register definitions.
ed
Offset
w
GPIO_SWPORTA_DR 0x000 Port A data register
GPIO_SWPORTA_DDR 0x004 Port A data direction register
lo
GPIO_INTEN 0x030 Interrupt enable register
al
GPIO_INTMASK 0x034 Interrupt mask register
GPIO_INTTYPE_LEVEL 0x038 Interrupt level register
t
GPIO_INT_POLARITY 0x03c Interrupt polarity register
no
GPIO_INTSTATUS 0x040 Interrupt status of Port A
GPIO_RAW_INTSTATUS 0x044 Raw interrupt status of Port A (pre-masking)
e
GPIO_DEBOUNCE 0x048 Debounce enable register
ar
GPIO_PORTA_EOI 0x04c Port A clear interrupt register
GPIO_EXT_PORTA 0x050 Port A external port register
n
GPIO_LS_SYNC 0x060 Level-sensitive synchronization enable register
u tio
ib
GPIO_SWPORTA_DR
n by
this register.
M
GPIO_SWPORTA_DDR
Offset Address: 0x004
Bits Name Access Description Reset
31:0 GPIO_SWPORTA_DDR R/W Values written to this register 0x0
independently control the direction of
the corresponding data bit in Port A.
The default direction can be configured
as input or output after system reset
through the GPIO_DFLT_DIR_A
parameter.
0 – Input (default)
538
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
GPIO_INTEN
Offset Address: 0x030
Bits Name Access Description Reset
31:0 GPIO_INTEN R/W Allows each bit of Port A to be 0x0
configured for interrupts. By default the
generation of interrupts is disabled.
ed
Whenever a 1 is written to a bit of this
register, it configures the corresponding
w
bit on Port A to become an interrupt;
lo
otherwise, Port A operates as a normal
GPIO signal. Interrupts are disabled on
al
the corresponding bits of Port A if the
t
corresponding data direction register is
no
set to Output or if Port A mode is set to
Hardware.
0 – Configure Port A bit as normal GPIO
e
signal (default)
ar
1 – Configure Port A bit as interrupt
n
GPIO_INTMASK
tio
masking.
ca ub
1 – Mask interrupt
od de
GPIO_INTTYPE_LEVEL
M a
GPIO_INT_POLARITY
539
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
1 – Active-high
w
GPIO_INTSTATUS
lo
Offset Address: 0x040
al
Bits Name Access Description Reset
t
31:0 GPIO_INTSTATUS RO Interrupt status of Port A
no
GPIO_RAW_INTSTATUS
e
ar
Offset Address: 0x044
Bits Name Access Description Reset
n
31:0 GPIO_RAW_INTSTATUS RO Raw interrupt of status of Port A
tio
(premasking bits)
u
GPIO_DEBOUNCE
ib
internally processed.
ca ub
0 – No debounce (default)
1 – Enable debounce
ifi p
GPIO_PORTA_EOI
od de
GPIO_EXT_PORTA
540
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
GPIO_LS_SYNC
Offset Address: 0x060
w
Bits Name Access Description Reset
lo
0 GPIO_LS_SYNC R/W [0] Synchronization level 0x0
al
Writing a 1 to this register results in all
level-sensitive interrupts being
t
synchronized to pclk_intr.
no
0 – No synchronization to pclk_intr
(default)
e
1 – Synchronize to pclk_intr
ar
31:1 Reserved
n
u tio
r ib
di V
st
12.6.1 Overview
n by
tio lic
The function of USB DRD is to play the role of Hostor Device respectively, which can be changed
ca ub
by software setting. The transfer protocol conforms to USB 2.0 specification, and the maximum
ifi p
transfer rate can reach more than 40 MB/s. The software interface of Host conforms to xHCI
od de
specification, and the main operation mode of Device is scatter/gather DMA. Details will be
M a
described in the following sections. The functions of USB DRD are as follows.
M
. Control Transfer
. Bulk Transfer
. Isochronous Transfer
.Host can connect USB Hub and support Interrupt Transfer)
.USB DRD passed the USB electrical characteristic test (USBET), showing
that the signal quality and compatibility are good
541
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The picture below shows the internal system block diagram of USB DRD.
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
542
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
. Support Host or Device functions
w
. Support four kinds of USB transmission modes: control transfer, bulk transfer, isochronous
lo
transfer and interrupt transfer
al
. It can connect USB Hub and expand single interface to multiple USB interfaces
t
. Up to 127 device devices can be connected through USB hub extension
no
. Support USB2.0 suspend / resume power saving mode
. Support keyboard, mouse and other HID devices
e
ar
. Device mode is mainly used for downloading and updating internal software. It can also be
used for other functions, such as data transmission
n
tio
USB DRD can switch between Host and Device functions, and can choose between one of them,
However, it can't work at the same time. Its function selection and management are controlled
tio lic
by the USB block. In addition, there are some events and interrupt triggers on the serial bus
ca ub
between the host and device that also place buffers in this block.
ifi p
543
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
GOTGCTL
w
Control and Status Register
lo
Offset Address: 0x000
al
Bits Name Acces Description Reset
s
t
0 SesReqScs RO Mode: Device only
no
Session Request Success (SesReqScs)
The core sets this bit when a session request initiation is
e
successful.
ar
■ 1'b0: Session request failure
■ 1'b1: Session request successn
Shadow: Yes
tio
Shadow Ctrl: vs_1t
Shadow Read Select: shrd_sel
One-Way: Enabled
u
ib
Shadow: Yes
M a
544
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ 1'b0: vbusvalid value is 1'b0 when GOTGCTL.VbvalidOvEn
=1
w
■ 1'b1: vbusvalid value is 1'b1 when GOTGCTL.VbvalidOvEn
lo
=1
4 AvalidOvEn R/W Mode: Host only 0x0
al
A-Peripheral Session Valid Override Enable (AvalidOvEn)
This bit is used to enable/disable the software to override
t
no
the Avalid
signal using the GOTGCTL.AvalidOvVal.
■ 1'b1: Internally Avalid received from the PHY is
e
overridden with
ar
GOTGCTL.AvalidOvVal.
■ 1'b0: Override is disabled and avalid signal from the
n
respective PHY
tio
This bit is used to set Override value for Avalid signal when
r
GOTGCTL.AvalidOvEn is set.
di V
st
the Bvalid
signal using the GOTGCTL.BvalidOvVal.
■ 1'b1: Internally Bvalid received from the PHY is
tio lic
overridden with
ca ub
GOTGCTL.BvalidOvVal.
■ 1'b0: Override is disabled and bvalid signal from the
ifi p
respective PHY
selected is used internally by the force
od de
This bit is used to set Override value for Bvalid signal when
M
GOTGCTL.BvalidOvEn is set.
■ 1'b0: Bvalid value is 1'b0 when GOTGCTL.BvalidOvEn =1
■ 1'b1: Bvalid value is 1'b1 when GOTGCTL.BvalidOvEn =1
8 HstNegScs RO Mode: HNP-capable device
Host Negotiation Success (HstNegScs)
The core sets this bit when host negotiation is successful.
The core
clears this bit when the HNP Request (HNPReq) bit in this
register is
set.
■ 1'b0: Host negotiation failure
■ 1'b1: Host negotiation success
545
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
(GOTGINT.HstNegSucStsChng) is set. The core clears this bit
when the
w
HstNegSucStsChng bit is cleared.
■ 1'b0: No HNP request
lo
■ 1'b1: HNP request
al
10 HstSetHNPEn R/W Mode: HNP Capable OTG Host 0x0
Host Set HNP Enable (HstSetHNPEn)
t
no
The application sets this bit when it has successfully enabled
HNP
(using the SetFeature.SetHNPEnable command) on the
e
connected
ar
device.
■ 1'b0: Host Set HNP is not enabled
n
■ 1'b1: Host Set HNP is enabled
tio
USB host.
di V
st
■ 1'b0: Disabled
■ 1'b1: Enabled
16 ConIDSts RO Mode: Host and Device
Connector ID Status (ConIDSts)
Indicates the connector ID status on a connect event.
■ 1'b0: The DWC_otg core is in A-Device mode
■ 1'b1: The DWC_otg core is in B-Device mode
17 DbncTime RO Mode: Host only
Long/Short Debounce Time (DbncTime)
Indicates the debounce time of a detected connection.
■ 1'b0: Long debounce time, used for physical connections
(100 ms +
546
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
19 BSesVld RO Mode: Device only
B-Session Valid (BSesVld)
w
Indicates the Device mode transceiver status.
lo
■ 1'b0: B-session is not valid.
al
■ 1'b1: B-session is valid.
In OTG mode, you can use this bit to determine if the device
t
is connected or disconnected.
no
20 OTGVer R/W OTG Version (OTGVer) 0x0
Indicates the OTG revision.
■ 1'b0: OTG Version 1.3. In this version the core supports
e
ar
Data line
pulsing and VBus pulsing for SRP.
■ 1'b1: OTG Version 2.0. In this version the core supports
n
only Data
tio
■ Bit 25 - rid_gnd
■ Bit 24 - rid_a
tio lic
■ Bit 23 - rid_b
■ Bit 22 - rid_c
ca ub
asserting chirp_on
before sending an actual Chirp "K" signal on USB. This bit is
M a
present
M
GOTGINT
Interrupt Register
Offset Address: 0x004
Bits Name Access Description Reset
1:0 Reserved_04_1_0 RO Reserved for future use.
Shadow: Yes
547
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
should write 1 to clear it.
7:3 Reserved_04_7_3 RO Reserved for future use.
w
8 SesReqSucStsChng RWC Write Behavior: One to clear
lo
Mode: Host and Device
al
Session Request Success Status Change
(SesReqSucStsChng)
t
The core sets this bit on the success or failure of a
no
session request.
The application must read the Session Request
Success bit in the
e
OTG Control and Status register
ar
(GOTGCTL.SesReqScs) to check
for success or failure.This bit can be set only by the
n
core and the
tio
(HstNegSucStsChng)
di V
st
USB host
d il
Host Negotiation
Success bit of the OTG Control and Status register
n by
the USB.This bit can be set only by the core and the
M
application
should write 1 to clear it.
18 ADevTOUTChg RWC Write Behavior: One to clear
Mode: Host and Device
A-Device Timeout Change (ADevTOUTChg)
The core sets this bit to indicate that the A-device
has timed out
while waiting for the B-device to connect.This bit can
be set only by
the core and the application should write 1 to clear
it.
19 DbnceDone RWC Write Behavior: One to clear
548
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
register
(GUSBCFG.HNPCap or GUSBCFG.SRPCap,
w
respectively).This bit
can be set only by the core and the application
lo
should write 1 to
al
clear it.
20 MultValIpChng RWC Write Behavior: One to clear
t
This bit when set indicates that there is a change in
no
the value of at
least one ACA pin value.
e
This bit is present only if OTG_BC_SUPPORT=1,
ar
otherwise it is
reserved. n
31:21 Reserved_04_31_21 RO Reserved for future use.
tio
Shadow: Yes
Shadow Ctrl: vs_1t
Shadow Read Select: shrd_sel
u
ib
GAHBCFG
r
di V
st
registers are
updated by the core.
ca ub
Shadow: Yes
od de
549
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ 4'b0000 Single
■ 4'b0001 INCR 4'b0011
w
■ INCR4 4'b0101
lo
■ INCR8 4'b0111
■ INCR16
al
■ Others: Reserved
t
5 DMAEn R/W Mode: Host and device 0x0
no
DMA Enable (DMAEn)
■ 1'b0: Core operates in Slave mode
■ 1'b1: Core operates in a DMA mode
e
This bit is always 0 when Slave-Only mode has been
ar
selected.
6 Reserved_08_6 RO Reserved for future use.
n
Shadow: Yes
tio
This bit is used only in Slave mode. In host mode and with
di V
st
Shared FIFO
re k-
TxFIFO Empty
an M
triggered.
With dedicated FIFO in device mode, this bit indicates when
IN endpoint
tio lic
Non- Periodic
M
550
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
20:9 Reserved_08_20_ RO Reserved for future use.
9 Shadow: Yes
w
Shadow Ctrl: vs_1t
lo
Shadow Read Select: shrd_sel
21 RemMemSupp R/W Mode: Host and Device 0x0
al
Remote Memory Support (RemMemSupp)
This bit is programmed to enable the functionality to wait
t
no
for the system
DMA Done Signal for the DMA Write Transfers.
■ GAHBCFG.RemMemSupp=1
e
The int_dma_req output signal is asserted when HSOTG
ar
DMA starts
write transfer to the external memory. When the core is
n
done with the
tio
signal from
the system to proceed further and complete the Data
r
di V
st
Transfer
re k-
as soon as
the DMA write transfer is done at the HSOTG Core Boundary
tio lic
and it
doesn't wait for the sys_dma_done signal to complete the
ca ub
DATA
transfers.
ifi p
551
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Channel/Endpoint.
23 AHBSingle R/W Mode: Host and Device 0x0
w
AHBSingleSupport (AHBSingle)
lo
This bit when programmed supports Single transfers for the
remaining data
al
in a transfer when the DWC_otg core is operating in DMA
mode.
t
■ 1’b0: This is the default mode. When this bit is set to
no
1’b0, the remaining
data in the transfer is sent using INCR burst size.
e
■ 1’b1: When set to 1’b1, the remaining data in a transfer is
ar
sent using
Single burst size.
n
Note: If this feature is enabled, the AHB RETRY and SPLIT
tio
transfers still
have INCR burst type. Enable this feature when the AHB
u
Slave connected
ib
25 Shadow: Yes
od de
GUSBCFG
USB Configuration Register
Offset Address: 0x00c
Bits Name Access Description Reset
2:0 TOutCal R/W Mode: Host and Device 0x0
HS/FS Timeout Calibration (TOutCal)
The number of PHY clocks that the application programs in this
field
is added to the high-speed/full-speed interpacket timeout
duration in
the core to account for any additional delays introduced by the
PHY.
552
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
must program this field based on the speed of enumeration.
The
w
number of bit times added per PHY clock are:
High-speed operation:
lo
■ One 30-MHz PHY clock = 16 bit times
al
■ One 60-MHz PHY clock = 8 bit times
Full-speed operation:
t
no
■ One 30-MHz PHY clock = 0.4 bit times
■ One 60-MHz PHY clock = 0.2 bit times
■ One 48-MHz PHY clock = 0.25 bit times
e
Using the HS as an example, if you set ToutCal to '001' you add
ar
one
30MHz PHY clock or 16 bit times. If you set ToutCal to '010'
n
you add
tio
two 30MHz PHY clocks or 32 bit times, and so on. The 3 bits
allow
u
depend
r
Shadow: Yes
re k-
One-Way: Enabled
3 PHYIf RO Mode: Host and Device
n by
■ 1'b1: 16 bits
ifi p
interface
selected during configuration.
M a
Shadow: Yes
M
553
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ 1'b1: 3-pin bidirectional full-speed serial interface
If a USB 1.1 Full-Speed Serial Transceiver interface was not
w
selected, this bit is always 0, with Read Only access.
lo
If a USB 1.1 FS interface was selected, then the application can
set
al
this bit to select between the 3- and 6-pin interfaces, and
access is
t
no
Read and Write.
6 PHYSel R/W Mode: Host and Device 0x0
USB 2.0 High-Speed PHY or USB 1.1 Full-Speed Serial
e
Transceiver
ar
Select (PHYSel)
The application uses this bit to select either a high-speed
n
UTMI+ or
tio
always 1,
with Read Only access.
d il
an M
or
Double Data Rate (DDR) or ULPI interface.
ifi p
bus
■ 1'b1: Double Data Rate ULPI Interface, with 4-bit-wide data
M a
bus
M
554
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
The application uses this bit to control the DWC_otg core's
HNP
w
capabilities.
■ 1'b0: HNP capability is not enabled.
lo
■ 1'b1: HNP capability is enabled.
al
This bit is writable only if an HNP mode was specified for
Mode of
t
no
Operation in coreConsultant (parameter OTG_MODE).
Otherwise,
reads return 0.
e
If HNP functionality is disabled by the software, the OTG
ar
signals on
the PHY domain must be tied to the appropriate values.
n
13:10 USBTrdTim R/W Mode: Device only 0x5
tio
time
ib
Note: The values above are calculated for the minimum AHB
frequency of 30 MHz. USB turnaround time is critical for
certification
n by
where long cables and 5-Hubs are used, so If you need the
AHB to
tio lic
4
od de
FS
and LS modes, the PHY can usually operate on a 48-MHz clock
to
save power.
■ 1'b0: 480-MHz Internal PLL clock
■ 1'b1: 48-MHz External Clock
In 480 MHz mode, the UTMI interface operates at either 60 or
30-
MHz, depending upon whether 8- or 16-bit data width is
selected. In
48-MHz mode, the UTMI interface operates at 48 MHz in FS
mode
and at either 48 or 6 MHz in LS mode (depending on the PHY
555
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Enable
I2C Interface? in coreConsultant (parameter
w
OTG_I2C_INTERFACE
lo
= 2). Otherwise, reads return 0.
17 ULPIFsLs R/W Mode: Host and Device 0x0
al
ULPI FS/LS Select (ULPIFsLs)
The application uses this bit to select the FS/LS serial interface
t
no
for
the ULPI PHY. This bit is valid only when the FS serial
transceiver is
e
selected on the ULPI PHY.
ar
■ 1'b0: ULPI interface
■ 1'b1: ULPI FS/LS serial interface
n
(Valid only when RTL parameters OTG_HSPHY_INTERFACE = 2
tio
or
3 and OTG_FSPHY_INTERFACE = 1, 2, or 3)
u
GUSBCFG.ULPI_UTMI_SEL = 1'b1.
r
register on
an M
register
on the ULPI PHY. This bit applies only in serial or carkit modes.
od de
or 3)
20 ULPIExtVbusDrv R/W Mode: Host only 0x0
ULPI External VBUS Drive (ULPIExtVbusDrv)
This bit selects between internal or external supply to drive 5V
on
VBUS, in ULPI PHY.
■ 1'b0: PHY drives VBUS using internal charge pump
(Default).
■ 1'b1: PHY drives VBUS using external supply.
(Valid only when RTL parameter OTG_HSPHY_INTERFACE = 2
or 3)
21 ULPIExtVbusInd R/W Mode: Host only 0x0
556
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
This bit selects utmi_termselect to drive data line pulse during
SRP.
w
■ 1'b0: Data line pulsing using utmi_txvalid (Default).
lo
■ 1'b1: Data line pulsing using utmi_termsel.
al
23 Complement R/W Mode: Host only 0x0
Indicator Complement
t
Controls the PHY to invert the ExternalVbusIndicator input
no
signal,
generating the Complement Output. For more information,
refer to
e
the ULPI Specification.
ar
■ 1'b0: PHY does not invert ExternalVbusIndicator signal
■ 1'b1: PHY does invert ExternalVbusIndicator signal
n
This bit is reserved and read-only when
tio
OTG_HSPHY_INTERFACE
is set to 0 or 1.
u
State
d il
Specification.
■ 1'b0: Complement Output signal is qualified with the
n by
Internal
VbusValid comparator.
■ 1'b1: Complement Output signal is not qualified with the
tio lic
Internal
ca ub
VbusValid comparator.
This bit is reserved and read-only when
ifi p
OTG_HSPHY_INTERFACE
is set to 0 or 1.
od de
Controls circuitry built into the PHY For protecting the ULPI
M
interface
when the link tri-states STP and data. Any pull-ups or pull-
downs
employed by this feature can be disabled. For more
information,
refer to the ULPI Specification.
■ 1'b0: Enables the interface protect circuit
■ 1'b1: Disables the interface protect circuit
This bit is reserved and read-only when
OTG_HSPHY_INTERFACE
is set to 0 or 1.
26 IC_USBCap RO Mode: Host and Device
557
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
OTG_SELECT_IC_USB when OTG_ENABLE_IC_USB = 1. In all
other cases, this bit is set to 1'b0 and the bit is read only.
w
27 IC_USBTrafCtl R/W Mode: Device only 0x0
lo
IC_USB TrafficPullRemove Control (IC_USBTrafCtl)
When this bit is set, pullup/pulldown resistors are detached
al
from the
USB during traffic signaling, per section 6.3.4 of the IC_USB
t
no
specification. This bit is valid only when configuration
parameter
OTG_ENABLE_IC_USB = 1 and register field
e
USBCFG.IC_USBCap is set to 1.
ar
28 TxEndDelay R/W Mode: Device only 0x0
Tx End Delay (TxEndDelay)
n
Writing 1'b1 to this bit enables the core to follow the
tio
TxEndDelay
timings as per UTMI+ specification 1.05 section 4.1.5 for
u
opmode
ib
After setting the force bit, the application must wait at least 25
ms
ca ub
scale
down mode, waiting for 500 μs is sufficient. This bit is valid
od de
only
when OTG_MODE = 0, 1 or 2. In all other cases, this bit reads
M a
0.
M
558
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
GRSTCTL
ed
Reset Register
Offset Address: 0x010
w
Bits Name Access Description Reset
lo
0 CSftRst RO Write Behavior: One to set
al
Mode: Host and Device
Core Soft Reset (CSftRst)
t
Resets the hclk and phy_clock domains as follows:
no
■ Clears the interrupts and all the CSR registers except the
following register
bits:
e
- PCGCCTL.RstPdwnModule
ar
- PCGCCTL.GateHclk
- PCGCCTL.PwrClmp
n
- PCGCCTL.StopPPhyLPwrClkSelclk
tio
- GUSBCFG.PhyLPwrClkSel
- GUSBCFG.DDRSel
u
- GUSBCFG.PHYSel
ib
- GUSBCFG.FSIntf
r
- GUSBCFG.ULPI_UTMI_Sel
di V
st
- GUSBCFG.PHYIf
re k-
- GUSBCFG.TxEndDelay
d il
- GUSBCFG.TermSelDLPulse
an M
- GUSBCFG.ULPIClkSusM
- GUSBCFG.ULPIAutoRes
n by
- GUSBCFG.ULPIFsLs
- GGPIO
- GPWRDN
tio lic
- GADPCTL
- HCFG.FSLSPclkSel
ca ub
- DCFG.DevSpd
- DCTL.SftDiscon
ifi p
■ All module state machines (except the AHB Slave Unit) are
od de
reset to the
IDLE state, and all the transmit FIFOs and the receive FIFO are
M a
flushed.
M
559
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Typically, software reset is used during software development
and also when
w
you dynamically change the PHY selection bits in the USB
configuration
lo
registers listed above. When you change the PHY, the
al
corresponding clock for
the PHY is selected and used in the PHY domain. After a new
t
clock is
no
selected, the PHY domain has to be reset for proper operation.
Shadow: Yes
e
Shadow Ctrl: vs_1t
ar
Shadow Read Select: shrd_sel
One-Way: Enabled n
1 PIUFSSftRst RO Write Behavior: One to set
tio
Mode: Host and Device
PIU FS Dedicated Controller Soft Reset (PIUFSSftRst)
u
case of any
PHY Errors like Loss of activity or Babble Error resulting in the
d il
PHY remaining
an M
necessary logic is
reset in the core.
tio lic
Shadow: Yes
Shadow Ctrl: vs_1t
ca ub
560
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
application must only
write to this bit after checking that the core is neither reading
w
from the RxFIFO
nor writing to the RxFIFO.
lo
The application must wait until the bit is cleared before
al
performing any other
operations. This bit requires 8 clocks (slowest of PHY or AHB
t
clock) to clear.
no
5 TxFFlsh RWS Write Behavior: One to set
Mode: Host and Device
e
TxFIFO Flush (TxFFlsh)
ar
This bit selectively flushes a single or all transmit FIFOs, but
cannot do so if n
the core is in the midst of a transaction.
tio
The application must write this bit only after checking that the
core is neither
writing to the TxFIFO nor reading from the TxFIFO.
u
FIFO
■ Write - GRSTCTL.AHBIdle ensures the core is not writing
d il
anything to the
an M
FIFO.
Flushing is normally recommended when FIFOs are
n by
reconfigured or when
switching between Shared FIFO and Dedicated Transmit FIFO
tio lic
operation.
FIFO flushing is also recommended during device endpoint
ca ub
disable. The
application must wait until the core clears this bit before
ifi p
performing any
operations. This bit takes eight clocks to clear, using the slower
od de
clock of
M a
phy_clk or hclk.
M
561
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ 5'hF:
- Periodic TxFIFO 15 flush in Device mode when in shared FIFO
w
operation
lo
- TXFIFO 15 flush in device mode when in dedicated FIFO
mode
al
■ 5'h10:
- Flush all the transmit FIFOs in device or host mode.
t
no
29:11 Reserved_10_2 RO Reserved for future use.
9_11
30 DMAReq RO Mode: Host and Device
e
DMA Request Signal (DMAReq)
ar
Indicates that the DMA request is in progress. Used for debug.
31 AHBIdle RO Mode: Host and Device
n
AHB Master Idle (AHBIdle)
tio
GINTSTS
r
Shadow: Yes
Shadow Ctrl: vs_1t
ca ub
562
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
must clear the appropriate status bit in the GOTGINT register
to clear
w
this bit.
Shadow: Yes
lo
Shadow Ctrl: vs_1t
al
Shadow Read Select: shrd_sel
One-Way: Enabled
t
3 Sof RWC Write Behavior: One to clear
no
Mode: Host and Device
Start of (micro)Frame (Sof)
e
In Host mode, the core sets this bit to indicate that an SOF
ar
(FS),
micro-SOF (HS), or Keep-Alive (LS) is transmitted on the USB.
n
The
tio
application must write a 1 to this bit to clear the interrupt.
In Device mode, in the core sets this bit to indicate that an SOF
token
u
has been received on the USB. The application can read the
ib
Device
r
di V
interrupt
is seen only when the core is operating at either HS or FS.This
d il
bit can
an M
does not indicate that an SOF has been sent (in host mode), or
SOF
ifi p
has been received (in device mode). The read value of this
interrupt is
od de
application can
M
563
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
In device mode, the application uses GINTSTS.NPTxFEmp when
OTG_EN_DED_TX_FIFO=0. When OTG_EN_DED_TX_FIFO=1,
w
the
application uses DIEPINTn.TxFEmp.
lo
6 GINNakEff RO Mode: Device only
al
Global IN Non-periodic NAK Effective (GINNakEff)
Indicates that the Set Global Non-periodic IN NAK bit in the
t
Device
no
Control register (DCTL.SGNPInNak) set by the application has
taken
e
effect in the core. That is, the core has sampled the Global IN
ar
NAK bit
set by the application. This bit can be cleared by clearing the
n
Clear
tio
Global Non-periodic IN NAK bit in the Device Control register
(DCTL.CGNPInNak). This interrupt does not necessarily mean
that a
u
NAK handshake is sent out on the USB. The STALL bit takes
ib
effect in
the core. This bit can be cleared by writing the Clear Global
n by
OUT NAK
bit in the Device Control register (DCTL.CGOUTNak).
tio lic
received.
The core's PHY sets ULPI Carkit interrupt in UART or Audio
od de
mode.
This field is used only if the Carkit interface was enabled in
M a
reads return 0.
564
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Mode: Device only
Early Suspend (ErlySusp)
w
The core sets this bit to indicate that an Idle state has been
detected
lo
on the USB For 3 ms.
al
11 USBSusp RWC Write Behavior: One to clear
Mode: Device only
t
USB Suspend (USBSusp)
no
The core sets this bit to indicate that a suspend was detected
on the
e
USB. The core enters the Suspend state when there is no
ar
activity on
the linestate signal for an extended period of time.
n
12 USBRst RWC Write Behavior: One to clear
tio
Mode: Device only
USB Reset (USBRst)
u
The core sets this bit to indicate that a reset is detected on the
ib
USB.
13 EnumDone RWC Write Behavior: One to clear
r
di V
complete.
an M
The core sets this bit when it fails to write an isochronous OUT
packet
ifi p
into the RxFIFO because the RxFIFO does not have enough
space to
od de
OUT endpoint.
15 EOPF RWC Write Behavior: One to clear
Mode: Device only
End of Periodic Frame Interrupt (EOPF)
Indicates that the period specified in the Periodic Frame
Interval field
of the Device Configuration register (DCFG.PerFrInt) has been
reached in the current microframe.
16 RstrDoneInt RWC Mode: Host and Device
Restore Done Interrupt (RstrDoneInt)
The core sets this bit to indicate that the Restore command
after
Hibernation was completed by the core.
565
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Indicates that an IN token has been received for a non-periodic
endpoint, but the data for another endpoint is present in the
w
top of the
Non-periodic Transmit FIFO and the IN endpoint mismatch
lo
count
al
programmed by the application has expired.
18 IEPInt RO Mode: Device only
t
IN Endpoints Interrupt (IEPInt)
no
The core sets this bit to indicate that an interrupt is pending
on one of
e
the IN endpoints of the core (in Device mode). The application
ar
must
read the Device All Endpoints Interrupt (DAINT) register to
n
determine
tio
the exact number of the IN endpoint on Device IN Endpoint-n
Interrupt
(DIEPINTn) register to determine the exact cause of the
u
interrupt. The
ib
corresponding
st
re k-
Endpoint-n
Interrupt (DOEPINTn) register to determine the exact cause of
od de
the
interrupt. The application must clear the appropriate status bit
M a
in the
M
566
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Incomplete Isochronous OUT Transfer (incompISOOUT)
Mode: Device only
w
In Device mode, the core sets this interrupt to indicate that
there is at
lo
least one isochronous OUT endpoint on which the transfer is
al
not
completed in the current microframe. This interrupt is
t
asserted along
no
with the End of Periodic Frame Interrupt (EOPF) bit in this
register.
e
22 FetSusp RWC Write Behavior: One to clear
ar
Mode: Device only
Data Fetch Suspended (FetSusp) n
This interrupt is valid only in DMA mode. This interrupt
tio
indicates that
the core has stopped fetching data For IN endpoints due to the
unavailability of TxFIFO space or Request Queue space. This
u
algorithm.
r
di V
application:
■ Sets a Global non-periodic IN NAK handshake
d il
■ Disables In endpoints
an M
Sequence
Learning Queue
tio lic
The
core generates an 'IN token received when FIFO empty'
M a
interrupt.
M
567
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
DWC_otg core ports in Host mode. The application must read
the
w
Host Port Control and Status (HPRT) register to determine the
exact
lo
event that caused this interrupt. The application must clear
al
the
appropriate status bit in the Host Port Control and Status
t
register to
no
clear this bit.
25 HChInt RO Mode: Host only
e
Host Channels Interrupt (HChInt)
ar
The core sets this bit to indicate that an interrupt is pending
on one of n
the channels of the core (in Host mode). The application must
tio
read the
Host All Channels Interrupt (HAINT) register to determine the
exact
u
then read
r
di V
to
determine the exact cause of the interrupt. The application
d il
must clear
an M
568
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Disconnect Detected Interrupt (DisconnInt)
Asserted when a device disconnect is detected.
w
30 SessReqInt RWC Write Behavior: One to clear
lo
Mode: Host and Device
Session Request/New Session Detected Interrupt (SessReqInt)
al
In Host mode, this interrupt is asserted when a session request
is
t
detected from the device.
no
In Device mode, this interrupt is asserted when the
utmisrp_bvalid
e
signal goes high.
ar
31 WkUpInt RWC Write Behavior: One to clear
Mode: Host and Device
n
Resume/Remote Wakeup Detected Interrupt (WkUpInt)
tio
Wakeup Interrupt during Suspend(L2) or LPM(L1) state.
■ During Suspend (L2):
u
Initiated
Resume or Device Initiated Remote Wakeup on USB.
- Host Mode - This interrupt is asserted for either Host
n by
Initiated
Resume or Device Initiated Remote Wakeup on USB.
tio lic
GINTMSK
ca ub
569
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
(GINNakEffMsk)
7 GOUTNakEffMsk R/W Mode: Device only 0x0
w
Global OUT NAK Effective Mask (GOUTNakEffMsk)
lo
8 ULPICKINTMsk_I2C R/W ULPI Carkit Interrupt Mask (ULPICKINTMsk) 0x0
CKINTMsk Mode: Host and Device
al
I2C Carkit Interrupt Mask (I2CCKINTMsk)
t
no
Mode: Host and Device
9 I2CIntMsk R/W Mode: Host and Device 0x0
I2C Interrupt Mask (I2CIntMsk)
e
10 ErlySuspMsk R/W Mode: Device only 0x0
ar
Early Suspend Mask (ErlySuspMsk)
11 USBSuspMsk R/W Mode: Device only 0x0
n
USB Suspend Mask (USBSuspMsk)
tio
14 ISOOutDropMsk R/W Mode: Device only Isochronous OUT Packet Dropped 0x0
di V
st
Interrupt
re k-
Mask (ISOOutDropMsk)
d il
(incompISOINMsk)
This bit is enabled only when device periodic endpoints
are enabled
in Dedicated TxFIFO mode.
21 incomplPMsk_inco R/W Incomplete Periodic Transfer Mask (incomplPMsk) 0x0
mpISOOUTMsk Mode: Host only
ed
28 ConIDStsChngMsk R/W Mode: Host and Device 0x0
Connector ID Status Change Mask (ConIDStsChngMsk)
w
29 DisconnIntMsk R/W Mode: Host and Device 0x0
lo
Disconnect Detected Interrupt Mask (DisconnIntMsk)
30 SessReqIntMsk R/W Mode: Host and Device 0x0
al
Session Request/New Session Detected Interrupt Mask
(SessReqIntMsk)
t
no
31 WkUpIntMsk R/W Mode: Host and Device 0x0
Resume/Remote Wakeup Detected Interrupt Mask
(WkUpIntMsk)
e
The WakeUp bit is used for LPM state wake up in a way
ar
similar to
that of wake up in suspend state.
n
tio
GUID
User ID Register
u
Application-programmable ID field.
re k-
Reset: Configurable
d il
an M
GLPMCFG
Core LPM Configuration Register
n by
571
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Even though ACK is pre-programmed, the core Device
responds with ACK
w
only on successful LPM transaction. The LPM transaction is
lo
successful if:
- No PID/CRC5 Errors in either EXT token or LPM token (else
al
ERROR)
- Valid bLinkState = 0001B (L1) received in LPM transaction
t
(else STALL)
no
- No data pending in transmit queue (else NYET).
■ 0: NYET
e
The pre-programmed software bit is over-ridden for
ar
response to LPM token
when:
n
- The received bLinkState is not L1 (STALL response), or
tio
- An error is detected in either of the LPM token packets
because of
u
Shadow: Yes
Shadow Ctrl: vs_1t
r
di V
st
resume.
Device Mode (Read-Only): This field is updated with the
ca ub
Received LPM
Token HIRD bmAttribute when an ACK, NYET, or STALL
ifi p
response is sent to
an LPM transaction.
od de
1 4’b0000 50
M
2 4’b0001 125
3 4’b0010 200
4 4’b0011 275
5 4’b0100 350
6 4’b0101 425
7 4’b0110 500
8 4’b0111 575
9 4’b1000 650
10 4’b1001 725
11 4’b1010 800
12 4’b1011 875
13 4’b1100 950
14 4’b1101 1025
572
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
resume.
Device Mode (Read-Only): This field is updated with the
w
Received LPM
lo
Token BESL bmAttribute when an ACK, NYET, or STALL
response is sent to
al
an LPM transaction.
Sl. No BESL[3:0] TBESL (μs)
t
1 4’b0000 125
no
2 4’b0001 150
3 4’b0010 200
e
4 4’b0011 300
ar
5 4’b0100 400
6 4’b0101 500 n
7 4’b0110 1000
tio
8 4’b0111 2000
9 4’b1000 3000
10 4’b1001 4000
u
11 4’b1010 5000
ib
12 4’b1011 6000
r
di V
13 4’b1100 7000
st
re k-
14 4’b1101 8000
15 4’b1110 9000
d il
16 4’b1111 10000
an M
Shadow: Yes
Shadow Ctrl: vs_1t
n by
transaction.
Device Mode (Read-Only): This field is updated with the
od de
response is sent to an
M
LPM transaction.
7 EnblSlpM R/W Mode: Host and Device 0x0
Enable utmi_sleep_n (EnblSlpM)
ULPI Interface: The application uses this bit to control the
utmi_sleep_n
assertion to the PHY when in L1 state. For the host, this bit is
valid only in “local
device” mode.
■ 1b0: utmi_sleep_n assertion from the core is not
transferred to the external
PHY.
■ 1b1: utmi_sleep_n assertion from the core is transferred
573
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
utmi_sleep_n assertion
to the PHY in the L1 state. For the host, this bit is valid only
w
in Local Device mode.
■ 1’b0: utmi_sleep_n assertion from the core is not
lo
transferred to the external
al
PHY.
■ 1’b1: utmi_sleep_n assertion from the core is transferred
t
no
to the external PHY
when utmi_l1_suspend_n cannot be asserted.
12:8 HIRD_Thres R/W Mode: Host and Device 0x0
e
BESL or HIRD Threshold (HIRD_Thres)
ar
Device Mode:
■ EnBESL = 1’b0: The core puts the PHY into deep low
n
power mode in L1 (by
tio
BESL value
corresponding to L1 exit time specified in HIRD_Thresh[3:0].
ca ub
The Device
sends a NYET response when the received HIRD in LPM
ifi p
HIRD threshold.
■ Note: To differentiate between Deep Sleep and Shallow
M a
574
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
4 4’b0011 285 250
5 4’b0100 360 350
w
6 4’b0101 435 450
7 4’b0110 510 950
lo
8 4’b0111 585 Invalid
al
9 4’b1000 660 Invalid
10 4’b1001 735 Invalid
t
11 4’b1010 810 Invalid
no
12 4’b1011 885 Invalid
13 4’b1100 960 Invalid
e
14 4’b1101 Invalid Invalid
ar
15 4’b1110 Invalid Invalid
16 4’b1111 Invalid Invalid n
The following truth table explains the difference in behavior
tio
between the UTMI
and ULPI interface in different modes of operation:
Bit 7 --Bit 6 --sleep_n ---l1_suspend_n --suspend_n ---Mode
u
of Operation
ib
0 --- -----1- --- ----1--- --- --1--- --- ------- --- --1--- --- ------- --
r
di V
Normal Operation
st
re k-
0 --- -----0- --- ----1--- --- --1--- --- ------- --- --0--- --- ------- --L2
Suspend
d il
1 --- -----0- --- ----1--- --- --0--- --- ------- --- --1--- --- ------- --L1
an M
Deep Sleep
1 --- -----1- --- ----0--- --- --1--- --- ------- --- --1--- --- ------- --L1
n by
Shallow Sleep
14:13 CoreL1Res RO Mode: Host and Device
LPM Response (CoreL1Res)
tio lic
received is reflected
in these two bits.
ifi p
■ 11 - ACK
■ 10 - NYET
M a
M
■ 01 - STALL
■ 00 - ERROR (No handshake response)
15 SlpSts RO Mode: Device only
Port Sleep Status (SlpSts)
This bit is set as long as a Sleep condition is present on the
USB bus. The core
enters the Sleep state when an ACK response is sent to an
LPM transaction and
the TL1TokenRetry timer has expired. To stop the PHY clock,
the application must
set the Port Clock Stop bit, which asserts the PHY Suspend
input signal.
The application must rely on SlpSts and not ACK in
575
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Host Mode: The host transitions to Sleep (L1) state as a side-
effect of a
w
successful LPM transaction by the core to the local port with
lo
ACK response from
the device. The read value of this bit reflects the current
al
Sleep status of the port.
The core clears this bit after:
t
no
■ The core detects a remote L1 Wakeup signal,
■ The application sets the Port Reset bit or the Port
L1Resume bit in the HPRT
e
register, or
ar
■ The application sets the L1Resume/ Remote Wakeup
Detected Interrupt bit or
n
Disconnect Detected Interrupt bit in the Core Interrupt
tio
register
(GINTSTS.L1WkUpInt or GINTSTS.DisconnInt, respectively).
u
Values:
ib
■ 1b1: Core in L1
di V
st
delay of 50 μs
(TL1Residency).
This bit is reset when SlpSts is 0.
tio lic
state
■ 1b0: The application or core cannot start Resume from
ifi p
Sleep state
20:17 LPM_Chnl_Indx R/W Mode: Host only 0x0
od de
applied while
M
576
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
has finished
transmitting the programmed number of LPM retries.
w
Note: This bit must be set only when the host is connected
to a local port.
lo
27:25 LPM_RetryCnt_St RO Mode: Host only
al
s LPM Retry Count Status (LPM_RetryCnt_Sts)
Number of LPM Host Retries still remaining to be
t
transmitted for the current LPM
no
sequence.
28 EnBESL R/W Mode: Host and device 0x0
e
Enable Best Effort Service Latency (BESL)
ar
This bit enables the BESL feature as defined in the LPM
errata:
n
■ 1’b0: The core works as described in the following
tio
document:
USB 2.0 Link Power Management Addendum Engineering
u
Change Notice to
ib
down or hibernation),
the application needs to program this bit to restore the LPM
status in the core.
n by
577
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
HSIC enable/disable.
This bit overrides and functionally inverts the if_sel_hsic
w
input port signal.
If the core is non-HSIC-capable, it can connect to only PHYs
lo
that are not HSIC
al
capable.
If the core is HSIC-capable, it can connect only to PHYs that
t
are HSIC capable.
no
■ If if_sel_hsic input signal is 1:
- InvSelHsic = 1b1: HSIC capability is not enabled
e
- InvSelHsic = 1b0: HSIC capability is enabled
ar
■ If if_sel_hsic input signal is 0:
- InvSelHsic = 1b1: HSIC capability is enabled
n
- InvSelHsic = 1b0: HSIC capability is not enabled
tio
This bit is writable only if HSIC mode is specified for Mode of
Operation in
u
valid only if
OTG_ENABLE_HSIC is enabled. Otherwise, reads return 0.
r
di V
st
re k-
GPWRDN
Power Down Register
d il
an M
(OTG_EN_PWROPT =
ca ub
2), a write to this bit with 1'b1 enables the PMU to generate
interrupts
ifi p
Note: This bit must be set to 1'b1 before the core is put into
hibernation
M a
578
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
mode from the PMU module.
■ 1’b0: DWC_otg in normal mode of operation
w
■ 1’b1: DWC_otg in restore mode
lo
Note: This bit must not be written to during normal mode of
operation.
al
This bit is valid only when OTG_EN_PWROPT = 2.
Shadow: Yes
t
no
Shadow Ctrl: vs_1t
Shadow Read Select: shrd_sel
One-Way: Enabled
e
3 PwrDnClmp R/W Mode: Host and Device 0x0
ar
Power Down Clamp (PwrDnClmp)
The application must program this bit to enable or disable
n
the clamps
tio
core
during the Hibernation exit process or during ADP when
powering up
n by
the core (if the DWC_otg core was powered off during ADP
process).
tio lic
operation.
5 PwrDnSwtch R/W Mode: Host and Device 0x0
od de
switch is in
M
ON or OFF state.
■ 1'b0: DWC_otg is in ON state
■ 1'b1: DWC_otg is in OFF state
Note: This bit must not be written to during normal mode of
operation.
6 DisableVBUS R/W Mode: Host and Device 0x0
DisableVBUS
Host Mode:
The application must program this bit if HPRT0.PrtPwr was
programmed to 0 before switching off the Core. This
indicates to the
PMU whether session was ended before entering
579
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ 1'b1: bvalid signal is Low (Session End)
This bit is valid only when GPWRDN.PMUActv is 1.
w
7 LnStsChng RWC Write Behavior: One to clear
lo
Mode: Host and Device
al
Line State Change (LnStsChng)
This interrupt is asserted when there is a linestate change
t
detected by
no
the PMU. The application must read GPWRDN.Linestate to
determine
the current linestate on USB.
e
■ 1'b0: No LineState change on USB
ar
■ 1'b1: LineState change on USB
This bit is valid only when GPWRDN.PMUActv is 1 and
n
OTG_EN_PWROPT = 2.
tio
ResetDetected
re k-
This field indicates that Reset has been detected by the PMU
d il
module.
an M
during
hibernation the application must not restore the core, but
instead start
the initialization process.
■ 1'b0: Disconnect not detected
■ 1'b1: Disconnect detected
This bit is valid only when OTG_EN_PWROPT = 2.
12 DisconnectDetect R/W Mode: Host only 0x0
Msk Mask For DisconnectDetect Interrupt
(DisconnectDetectMsk)
This bit is valid only when OTG_EN_PWROPT = 2.
13 ConnectDet RO Mode: Host and Device
580
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
This bit is valid only when OTG_EN_PWROPT = 2.
15 SRPDetect RWC Mode: Host only
w
SRPDetect
lo
This field indicates that SRP has been detected by the PMU.
This field
al
generates an interrupt. After detecting SRP during
hibernation the
t
no
application must not restore the core. The application must
get into
the initialization process.
e
■ 1'b0: SRP not detected
ar
■ 1'b1: SRP detected
16 SRPDetectMsk R/W Mode: Host only 0x0
n
Mask For SRPDetect Interrupt (SRPDetectMsk)
tio
BSessVld
r
signal.
di V
st
GPWRDN
register and interpret the change in IDDIG or BSesVld with
n by
respect to
the previous value stored by the application.
Note: When Battery Charger is Enabled and the ULPI
tio lic
interface is
ca ub
581
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
This bit is valid only when GPWRDN.PMUActv is 1.
21 IDDIG RO Mode: Host and Device
w
IDDIG
lo
This bit indicates the status of the IDDIG signal. The
al
application must
read this bit after receiving GPWRDN.StsChngInt and decode
t
based
no
on the previous value stored by the application.
Indicates the current mode.
■ 1'b1: Device mode
e
■ 1'b0: Host mode
ar
This bit is valid only when GPWRDN.PMUActv is 1.
22 BSessVld RO Mode: Device only
n
B Session Valid (BSessVld)
tio
This field reflects the B session valid status signal from the
PHY.
u
■ 1'b0: B-Valid is 0
ib
■ 1'b1: B-Valid is 1
r
di V
MultValIdBC (MultValIdBC)
Battery Charger ACA inputs in the following order:
tio lic
■ Bit 28 - rid_float
■ Bit 27 - rid_gnd
ca ub
■ Bit 26 - rid_a
■ Bit 25 - rid_b
ifi p
■ Bit 24 - rid_c
od de
582
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
After completing the [clock startup procedure] and [mode switching and initialization
procedure], the XHCI initialization procedure needs to be executed. As listed below, four
standard types of transmission can be started according to the requirements. For details of the
method of starting standard transmission, please refer to the XHCI specification, which will not
be repeated here.
1. Set the GINTMSK.PrtInt register to the unmask state.
2. Set the HCFG register to configure the FS or HS device.
ed
3. Set the HPRT.PrtPwr register to 1, which turns on the VBUS on the USB bus.
w
4. Wait for the HPRT0.PrtConnDet interrupt to occur, indicating that a device is connected to
lo
the USB downstream port.
al
5. Set the HPRT.PrtRst register to 1 to begin the USB port reset process.
t
no
6. Wait at least 10ms to allow enough time for the USB port reset to complete the handshake.
7. Set the HPRT.PrtRst to 0 to complete the USB port reset process.
e
8. Wait for the HPRT.PrtEnChng interrupt to occur.
9.
ar
Read the HPRT.PrtSpd register to obtain the enumeration speed value.
n
10. Set the HFIR register to configure the corresponding PHY Clock.
tio
11. Set the RXFSIZE register to configure the size of the RXFIFO.
u
12. Set the GNPTXFSIZ register to configure the size of the non-periodic transmission TXFIFO.
ib
13. Set the HPTXFSIZ register to configure the size of the periodic transmission TXFIFO.
r
di V
st
re k-
The base address of the Host register in the whole memory space is 0x0434_0000, indicating as
n by
HOST_BASE_ADDR in this article. Therefore, the real address of each register of the host
tio lic
Offset
M a
583
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
HCFG
Host Configuration Register
Offset Address: 0x400
ed
Bits Name Access Description Reset
1:0 FSLSPclkSel R/W FS/LS PHY Clock Select (FSLSPclkSel) 0x0
w
When the core is in FS Host mode:
■ 2'b00: PHY clock is running at 30/60 MHz
lo
■ 2'b01: PHY clock is running at 48 MHz
al
■ Others: Reserved
When the core is in LS Host mode:
t
no
■ 2'b00: PHY clock is running at 30/60 MHz. When the
UTMI+/ULPI
PHY Low Power mode is not selected, use 30/60 MHz.
e
■ 2'b01: PHY clock is running at 48 MHz. When the UTMI+
ar
PHY Low
Power mode is selected, use 48MHz If the PHY supplies a 48
n
MHz
tio
use 6
ib
MHz when the UTMI+ PHY Low Power mode is selected and
r
the
di V
st
MHz
d il
■ 2'b11: Reserved
Notes:
n by
584
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Shadow Read Select: shrd_sel
One-Way: Enabled
w
7 Ena32KHzS R/W Enable 32 KHz Suspend mode (Ena32KHzS) 0x0
lo
This bit can be set only if FS PHY interface is selected.
Otherwise, this
al
bit needs to be set to zero. When FS PHY interface is chosen
and this bit
t
is set, the core expects that the PHY clock is switched from
no
48 MHz to
32 KHz during Suspend.
e
15:8 ResValid R/W Resume Validation Period (ResValid) 0x2
ar
This field is effective only when HCFG.Ena32KHzS is set. It
controls the
n
Resume period when the core resumes from Suspend. The
tio
core counts
the ResValid number of clock cycles to detect a valid resume
u
when this
ib
is set.
22:16 Reserved_400_22 RO Reserved for future use.
r
di V
st
_16
re k-
configuration of
an M
the RTL, the application can set this bit during initialization
to enable the
n by
following
combinations are available for programming:
ca ub
mode
■ GAHBCFG.DMAEn=1,HCFG.DescDMA=1 =>
M a
Scatter/Gather DMA
M
mode
In non-Scatter/Gather DMA mode, this bit is reserved.
25:24 FrListEn R/W Frame List Entries (FrListEn) 0x0
The value in the register specifies the number of entries in
the Frame
list. This field is valid only in Scatter/Gather DMA mode.
■ 2'b00: Reserved
■ 2'b01: 8 Entries
■ 2'b10: 16 Entries
■ 2'b11: 32 Entries
In non-Scatter/Gather DMA mode, these bits are reserved.
26 PerSchedEna R/W Enable Periodic Scheduling (PerSchedEna) 0x0
585
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
enabled
periodic scheduling. Once HCFG.PerSchedEna is set, the
w
application is
not supposed to reset the bit unless HCFG.PerSchedStat is
lo
set. As soon
al
as this bit is reset, the core gets ready to stop scheduling
periodic
t
channels and resets HCFG.PerSchedStat.
no
In non-Scatter/Gather DMA mode, this bit is reserved.
30:27 Reserved_400_30 RO Reserved for future use.
e
_27
ar
31 ModeChTimEn R/W Mode Change Ready Timer Enable (ModeChTimEn) 0x0
This bit is used to enable/disable the Host core to wait 200
n
PHY clock
tio
cycles at the end of Resume to change the opmode signal to
the PHY to
00 after Suspend or LPM.
u
■ 1'b0: The Host core waits for either 200 PHY clock cycles
ib
or a
r
di V
st
opmode from
2'b10 to 2'b00
d il
■ 1'b1: The Host core waits only for a linestate of SE0 at the
an M
end of
resume to change the opmode from 2'b10 to 2'b00.
n by
HFIR
tio lic
Keep-Alive
tokens (HS). This field contains the number of PHY clocks
that constitute the
required frame interval. The default value set in this field for
an FS operation
when the PHY clock frequency is 60 MHz. The application
can write a value to
this register only after the Port Enable bit of the Host Port
Control and Status
register (HPRT.PrtEnaPort) has been set. If no value is
programmed, the core
calculates the value based on the PHY clock specified in the
586
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
16 HFIRRldCtrl R/W Reload Control (HFIRRldCtrl) 0x0
This bit allows dynamic reloading of the HFIR register during
w
run time.
lo
■ 1'b0: The HFIR cannot be reloaded dynamically
■ 1'b1: The HFIR can be dynamically reloaded during
al
runtime.
t
This bit needs to be programmed during initial configuration
no
and its value must
not be changed during runtime.
31:17 Reserved_404_31 RO Reserved for future use.
e
_17 Shadow: Yes
ar
Shadow Ctrl: vs_1t
Shadow Read Select: shrd_sel
n
tio
HFNUM
u
USB, and is
reset to 0 when it reaches 16'h3FFF.
This field is writable only if Remove Optional Features? was
n by
not selected in
coreConsultant (OTG_RM_OTG_FEATURES = 0). Otherwise,
tio lic
reads return
the frame number value.
ca ub
Shadow: Yes
Shadow Ctrl: vs_1t
ifi p
microframe (HS) or
M
HPTXSTS
Host Periodic Transmit FIFO/Queue Status Register
Offset Address: 0x410
587
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ Others: Reserved
w
Shadow: Yes
Shadow Ctrl: vs_1t
lo
Shadow Read Select: shrd_sel
al
One-Way: Enabled
23:16 PTxQSpcAvail RO Periodic Transmit Request Queue Space Available
t
(PTxQSpcAvail)
no
Indicates the number of free locations available to be written
in the Periodic
Transmit Request Queue. This queue holds both IN and OUT
e
ar
requests.
■ 8'h0: Periodic Transmit Request Queue is full
■ 8'h1: 1 location available
n
tio
■ 8'h2: 2 locations available
■ n: n locations available (n: 0~16)
u
■ Others: Reserved
ib
Shadow: Yes
Shadow Ctrl: vs_1t
r
di V
st
that is currently
being processes by the MAC. This register is used for
debugging.
n by
- 2'b10: CSPLIT
- 2'b11: Disable channel command
M a
endpoint)
HAINT
Host All Channels Interrupt Register
Offset Address: 0x414
Bits Name Access Description Reset
15:0 HAINT RO Channel Interrupts (HAINT)
One bit per channel: Bit 0 for Channel 0, bit 15 for Channel
15
Shadow: Yes
Shadow Ctrl: vs_1t
588
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
HAINTMSK
Host All Channels Interrupt Mask Register
Offset Address: 0x418
ed
Bits Name Access Description Reset
w
15:0 HAINTMsk R/W Channel Interrupt Mask (HAINTMsk) 0x0
One bit per channel: Bit 0 for channel 0, bit 15 for channel
lo
15
al
Shadow: Yes
Shadow Ctrl: vs_1t
t
Shadow Read Select: shrd_sel
no
One-Way: Enabled
31:16 Reserved_418_31 RO Reserved for future use
e
_16
HFLBAddr
ar
n
Host Frame List Base Address Register
tio
31:0 HFLBAddr R/W The starting address of the Frame list. This register is 0x0
r
Shadow: Yes
re k-
One-Way: Enabled
n by
HCCHARn
Host Channel-n Characteristics Register
tio lic
endpoint.
Shadow: Yes
M a
589
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
The application must program this bit when a low speed
device is
w
connected to the host through an FS HUB. The DWC_otg
lo
Host core
uses this field to drive the XCVR_SELECT signal to 2’b11 while
al
communicating to the LS Device through the FS hub.
Note: In a peer to peer setup, the DWC_otg Host core
t
no
ignores this bit
even if it is set by the application software.
19:18 EPType R/W Endpoint Type (EPType) 0x0
e
Indicates the transfer type selected.
ar
■ 2'b00: Control
■ 2'b01: Isochronous
n
■ 2'b10: Bulk
tio
■ 2'b11: Interrupt
21:20 EC R/W Multi Count (MC) / Error Count (EC) 0x0
u
When the Split Enable bit of the Host Channel-n Split Control
ib
register
r
host the
re k-
■ 2'b01: 1 transaction
■ 2'b10: 2 transactions to be issued for this endpoint per
ifi p
microframe
■ 2'b11: 3 transactions to be issued for this endpoint per
od de
microframe
When HCSPLTn.SpltEna is set (1'b1), this field indicates the
M a
M
number of
immediate retries to be performed for a periodic split
transaction on
transaction errors. This field must be set to at least 2'b01.
28:22 DevAddr R/W Device Address (DevAddr) 0x0
This field selects the specific device serving as the data
source or sink.
29 OddFrm R/W Odd Frame (OddFrm) 0x0
This field is set (reset) by the application to indicate that the
OTG host
must perform a transfer in an odd (micro)frame. This field is
applicable
for only periodic (isochronous and interrupt) transactions.
590
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
data on a
channel, even before the transfer for that channel is
w
complete. The
lo
application must wait for the Channel Disabled interrupt
before treating
al
the channel as disabled.
31 ChEna RWS Write Behavior: One to set
t
no
Channel Enable (ChEna)
When Scatter/Gather mode is enabled:
■ 1'b0: Indicates that the descriptor structure is not yet
e
ready.
ar
■ 1'b1: Indicates that the descriptor structure and data
buffer with data
n
is setup and this channel can access the descriptor.
tio
host.
ib
HCDMAn
d il
an M
Shadow: Yes
Shadow Ctrl: vs_1t
M a
One-Way: Enabled
HCDMABn
Host Channel-n DMA Buffer Address Register
Offset Address: 0x51c
Bits Name Access Description Reset
31:0 DMABufAddr R/W DMA Address (DMAAddr) 0x0
Holds the current buffer address. This register is updated as
and when the data
transfer for the corresponding end point is in progress. This
register is present only
591
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
12.6.6 Device Initialization Program
al
t
Be sure to complete the [clock start procedure] in 13.8.6.1 before starting and switching to the
no
device function. Please keep to the following steps.
e
1. Set DescDMA to 1 to start descriptor DMA mode.
ar
2. Set the device speed to HS or FS. n
3. Set the non-zero transfer status bit.
tio
6. Clear the DCTL.SftDiscon bit to allow the device to initiate the Connection action with the
r
di V
st
host.
re k-
13. Wait for the GINTSTS.USBReset interrupt to occur and start the USB reset initialization
ifi p
process.
od de
14. Wait for the GINTSTS.EnumerationDone interrupt to occur, indicating that the USB reset
M a
program has been completed. Then read the DSTS register to obtain the enumeration
M
592
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Name Address Description
w
Offset
lo
DCFG 0x800 Device Configuration Register
al
DCTL 0x804 Device Control Register
DSTS 0x808 Device Status Register
t
DIEPMSK 0x810 Device IN Endpoint Common Interrupt Mask Register
no
DOEPMSK 0x814 Device OUT Endpoint Common Interrupt Mask Register
DAINT 0x818 Device All Endpoints Interrupt Register
DAINTMSK 0x81c Device Endpoints Interrupt Mask Register
e
ar
DIEPEMPMSK 0x834 Device IN Endpoint FIFO Empty Interrupt Mask Register
DEACHINT 0x838 Device Each Endpoint Interrupt Register
DEACHINTMSK 0x83c Device Each Endpoint Interrupt Register Mask
n
u tio
DCFG
an M
connected.
■ 2'b00: High speed (USB 2.0 PHY clock is 30 MHz or 60 MHz)
■ 2'b01: Full speed (USB 2.0 PHY clock is 30 MHz or 60 MHz)
■ 2'b10: Low speed (USB 1.1 transceiver clock is 6 MHz). If
you select
6MHz LS mode, you must do a soft reset.
■ 2'b11: Full speed (USB 1.1 transceiver clock is 48 MHz)
Shadow: Yes
Shadow Ctrl: vs_1t
Shadow Read Select: shrd_sel
One-Way: Enabled
2 NZStsOUTHShk R/W Non-Zero-Length Status OUT Handshake (NZStsOUTHShk) 0x0
593
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
■ 1'b0: Send the received OUT packet to the application
(zero-length or
w
non zero-length) and send a handshake based on the NAK and
lo
STALL
bits for the endpoint in the Device Endpoint Control register.
al
Shadow: Yes
Shadow Ctrl: vs_1t
t
no
Shadow Read Select: shrd_sel
3 Ena32KHzSusp R/W Enable 32 KHz Suspend mode (Ena32KHzSusp) 0x0
This bit can be set only if FS PHY interface is selected.
e
Otherwise, this bit
ar
needs to be set to zero. If FS PHY interface is chosen and this
bit is set, the
n
PHY clock during Suspend must be switched from 48 MHz to
tio
32 KHz.
Shadow: Yes
u
command.
an M
application must be
notified using the End Of Periodic Frame Interrupt. This can be
tio lic
used to
determine if all the isochronous traffic for that (micro)frame is
ca ub
complete.
■ 2'b00: 80% of the (micro)frame interval
ifi p
■ 2'b01: 85%
od de
■ 2'b10: 90%
■ 2'b11: 95%
M a
This bit enables setting NAK for Bulk OUT endpoints after the
transfer is
completed for Device mode Descriptor DMA mode.
■ 1'b0: The core does not set NAK after Bulk OUT transfer
complete
■ 1'b1: The core sets NAK after Bulk OUT transfer complete
This is a one time programmable bit after reset like any other
DCFG register
bits.
This bit is valid only when OTG_EN_DESC_DMA == 1’b1.
14 XCVRDLY R/W Enables or disables delay between xcvr_sel and txvalid during 0x0
device chirp
594
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
17_16
22:18 EPMisCnt R/W IN Endpoint Mismatch Count (EPMisCnt) 0x8
w
This field is valid only in shared FIFO operation.
lo
The application programs this field with a count that
al
determines when the
core generates an Endpoint Mismatch interrupt
t
(GINTSTS.EPMis). The core
no
loads this value into an internal counter and decrements it.
The counter is
reloaded whenever there is a match or when the counter
e
expires. The width
ar
of this counter depends on the depth of the Token Queue.
23 DescDMA R/W Enable Scatter/Gather DMA in Device mode (DescDMA). 0x0
n
When the Scatter/Gather DMA option is selected during
tio
configuration of the
RTL, the application can set this bit during initialization to
u
enable the
ib
mode.
This field specifies the amount of time the Internal DMA
ifi p
engine must
allocate For fetching periodic IN endpoint data. Based on the
od de
number of
periodic endpoints, this value must be specified as 25,50 or
M a
75% of
M
(micro)frame.
When any periodic endpoints are active, the internal DMA
engine allocates
the specified amount of time in fetching periodic IN endpoint
data.
When no periodic endpoints are active, the internal DMA
engine services
non-periodic endpoints, ignoring this field.
After the specified time within a (micro)frame, the DMA
switches to fetching
for non-periodic endpoints.
■ 2'b00: 25% of (micro)frame.
595
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
when this bit is
set.
w
lo
DCTL
al
Device Control Register
t
Offset Address: 0x804
no
Bits Name Access Description Reset
0 RmtWkUpSig R/W Remote Wakeup Signaling (RmtWkUpSig) 0x0
e
When the application sets this bit, the core initiates remote
ar
signaling to wake the USB host. The application must set this
bit to instruct the core to exit the Suspend state. As specified
n
in
tio
the USB 2.0 specification, the application must clear this bit 1–
15 ms after setting it.If LPM is enabled and the core is in the L1
u
(Sleep) state, when the application sets this bit, the core
ib
Sleep
st
re k-
being
an M
set by the application. The application must not set this bit
when GLPMCFG bRemoteWake from the previous LPM
n by
transaction is zero.
Shadow: Yes
tio lic
One-Way: Enabled
1 SftDiscon R/W Soft Disconnect (SftDiscon) 0x1
ifi p
see that the device is connected, and the device does not
receive signals on the USB. The core stays in the disconnected
M a
M
596
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
Shadow Read Select: shrd_sel
One-Way: Enabled
w
3 GOUTNakSts RO Global OUT NAK Status (GOUTNakSts)
lo
■ 1'b0: A handshake is sent based on the FIFO Status and
the NAK and STALL bit settings.
al
■ 1'b1: No data is written to the RxFIFO, irrespective of space
t
availability. Sends a NAK handshake on all packets, except
no
on SETUP transactions. All isochronous OUT packets are
dropped.
6:4 TstCtl R/W Test Control (TstCtl) 0x0
e
■ 3'b000: Test mode disabled
ar
■ 3'b001: Test_J mode
■ 3'b010: Test_K mode
n
■ 3'b011: Test_SE0_NAK mode
tio
■ 3'b101: Test_Force_Enable
ib
■ Others: Reserved
7 SGNPInNak RWC Set Global Non-periodic IN NAK (SGNPInNak)
r
di V
st
The application must set this bit only after making sure that
the
tio lic
OUT endpoints. The application must set the this bit only after
M
making sure that the Global OUT NAK Effective bit in the Core
Interrupt Register (GINTSTS.GOUTNakEff) is cleared.
10 CGOUTNak RWC Clear Global OUT NAK (CGOUTNak)
A write to this field clears the Global OUT NAK.
11 PWROnPrgDon R/W Power-On Programming Done (PWROnPrgDone) 0x0
e The application uses this bit to indicate that register
programming is complete after a wake-up from Power Down
mode.
12 Reserved_804_ RO Reserved for future use.
12
14:13 GMC R/W Global Multi Count (GMC) 0x0
GMC must be programmed only once after initialization.
Applicable only for Scatter/Gather DMA mode. This indicates
597
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
is disabled, this field is reserved and reads 2’b00.
15 IgnrFrmNum R/W Ignore frame number for isochronous endpoints (IgnrFrmNum) 0x0
w
Slave Mode (GAHBCFG.DMAEn=0):
lo
This bit is not valid in Slave mode and should not be
al
programmed to 1.Non-Scatter/Gather DMA mode
(GAHBCFG.DMAEn=1,DCFG.DescDMA=0):
t
This bit is not used when Threshold mode is enabled and
no
should not be programmed to 1.
In non-Scatter/Gather DMA mode, the application receives
transfer complete interrupt after transfers for multiple
e
(micro)frames are completed.
ar
■ When Scatter/Gather DMA mode is disabled, this field is
used by the application to enable periodic transfer interrupt.
n
The application can program periodic endpoint transfers for
tio
multiple (micro)frames.
- 0: Periodic transfer interrupt feature is disabled; the
u
(GAHBCFG.DMAEn=1,DCFG.DescDMA=1):
This bit is not applicable to high-speed, high-bandwidth
tio lic
598
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
a one-time programmable after reset bit like any other DCTL
register bits.
w
18 DeepSleepBESL R/W Deep Sleep BESL Reject 0x0
lo
Reject Core rejects LPM request with HIRD value greater than HIRD
threshold programmed. NYET response is sent for LPM tokens
al
with HIRD value greater than HIRD threshold. By default, the
Deep Sleep BESL Reject feature is disabled.
t
no
31:19 Reserved_804_ RO Reserved for future use.
31_19
e
DSTS
Device Status Register
ar
n
Offset Address: 0x808
tio
detected on
r
di V
the USB. The core enters the Suspend state when there is no
st
re k-
activity on the
phy_line_state_i signal for an extended period of time.
d il
conditions:
■ If there is any activity on the phy_line_state_i signal
n by
after speed
M a
599
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
When the core is operating at high speed, this field contains a
microframe
w
number. When the core is operating at full or low speed, this
field contains a
lo
Frame number.
al
Note: This register may return a non zero value if read
immediately after
t
power on reset. In case the register bit reads non zero
no
immediately after
power on reset it does not indicate that SOF has been received
e
from the
ar
host. The read value of this interrupt is valid only after a valid
connection n
between host and device is established.
tio
23:22 DevLnSts RO Device Line Status (DevLnSts)
Indicates the current logic level USB data lines
u
DIEPMSK
n by
One-Way: Enabled
1 DiEPDisbldMsk R/W Endpoint Disabled Interrupt Mask (EPDisbldMsk) 0x0
M a
M
600
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
DOEPMSK
ed
Device OUT Endpoint Common Interrupt Mask Register
w
Offset Address: 0x814
lo
Bits Name Access Description Reset
0 XferComplMsk R/W Transfer Completed Interrupt Mask (XferComplMsk) 0x0
al
Shadow: Yes
Shadow Ctrl: vs_1t
t
no
Shadow Read Select: shrd_sel
One-Way: Enabled
1 EPDisbldMsk R/W Endpoint Disabled Interrupt Mask (EPDisbldMsk) 0x0
e
2 AHBErrMsk R/W AHB Error (AHBErrMsk) 0x0
ar
3 SetUPMsk R/W SETUP Phase Done Mask (SetUPMsk) 0x0
Applies to control endpoints only.
n
4 OUTTknEPdisMsk R/W OUT Token Received when Endpoint Disabled Mask 0x0
tio
(OUTTknEPdisMsk)
Applies to control OUT endpoints only.
u
Msk (Back2BackSETupMsk)
di V
st
_10
12 BbleErrMsk R/W Babble Error interrupt Mask (BbleErrMsk) 0x0
tio lic
Shadow: Yes
Shadow Ctrl: vs_1t
ifi p
_15
M a
M
DAINT
Device All Endpoints Interrupt Register
Offset Address: 0x818
Bits Name Access Description Reset
15:0 InEpInt RO OUT Endpoint Interrupt Bits (OutEPInt)
One bit per OUT endpoint:
Bit 16 for OUT endpoint 0, bit 31 for OUT endpoint 15
Shadow: Yes
Shadow Ctrl: vs_1t
Shadow Read Select: shrd_sel
One-Way: Enabled
601
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
DAINTMSK
Device Endpoints Interrupt Mask Register
Offset Address: 0x81c
ed
Bits Name Access Description Reset
15:0 InEpMsk R/W IN EP Interrupt Mask Bits (InEpMsk) 0x0
w
One bit per IN Endpoint:
Bit 0 for IN EP 0, bit 15 for IN EP 15
lo
The value of this field depends on the number of IN
al
endpoints that are configured.
Shadow: Yes
t
Shadow Ctrl: vs_1t
no
Shadow Read Select: shrd_sel
One-Way: Enabled
e
31:16 OutEpMsk R/W OUT EP Interrupt Mask Bits (OutEpMsk) 0x0
ar
One per OUT endpoint:
Bit 16 for OUT EP 0, bit 31 for OUT EP 15
The value of this field depends on the number of OUT
n
endpoints that are configured.
u tio
DIEPEMPMSK
ib
(InEpTxfEmpMsk)
These bits acts as mask bits for DIEPINTn.
n by
Shadow: Yes
Shadow Ctrl: vs_1t
ifi p
DEACHINT
Device Each Endpoint Interrupt Register
Offset Address: 0x838
Bits Name Access Description Reset
15:0 EchInEpInt RO IN Endpoint Interrupt Bits (EchInEpInt)
One bit per IN Endpoint:
■ Bit 0 for IN endpoint 0
...
■ Bit 15 for endpoint 15
Shadow: Yes
Shadow Ctrl: vs_1t
602
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
DEACHINTMSK
ed
Device Each Endpoint Interrupt Register Mask
w
Offset Address: 0x83c
lo
Bits Name Access Description Reset
al
15:0 EchInEpMsk R/W IN EP Interrupt Mask Bits (EchInEpMsk) 0x0
One bit per IN Endpoint:
t
■ Bit 0 for IN endpoint 0
no
...
■ Bit 15 for endpoint 15
e
Shadow: Yes
ar
Shadow Ctrl: vs_1t
Shadow Read Select: shrd_sel
n
One-Way: Enabled
tio
...
r
12.7SARADC
tio lic
ca ub
12.7.1 Overview
ifi p
od de
12.7.2 Features
603
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The CPU configures the scanning channels, 3 channels can be configured at the same
time, and then starts SARADC for channel sampling. After finishing all the enabled
ed
channels sampling, the system is notified of the completion of sampling through
interrupts, and the CPU can obtain the conversion results.
w
lo
12.7.4 SARADC register overview
al
t
no
SARADC Base address 0x030F0000
RTCSYS_SARADC Base address 0x0502C000
e
ar
Name Address Description
Offset n
saradc_ctrl 0x004 control register
tio
saradc_status 0x008 staus register
saradc_cyc_set 0x00c saradc waveform setting register
saradc_ch1_result
u
saradc_ctrl
Offset Address: 0x004
M a
M
saradc_status
Offset Address: 0x008
Bits Name Access Description Reset
604
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
saradc_cyc_set
w
Offset Address: 0x00c
lo
Bits Name Access Description Reset
al
4:0 reg_saradc_cyc_settling R/W saradc startup cycle = 1 + 0xF
reg_saradc_cyc_settling , default is 16
t
no
cycle
7:5 Reserved
11:8 reg_saradc_cyc_samp R/W saradc sample window = 1 + 0x3
e
reg_saradc_cyc_samp , default is 4 cycle
ar
15:12 reg_saradc_cyc_clkdiv R/W saradc clock divider , freq = 0x1
ip_clk/(1+clk_div) , default is 25M/2 =
n
12.5M = 80ns
tio
cycle
ib
31:20 Reserved
r
di V
st
re k-
saradc_ch1_result
d il
14:12 Reserved
15 sta_saradc_ch1_valid RO ch1 measure result is valid.
tio lic
31:16 Reserved
od de
saradc_ch2_result
M a
saradc_ch3_result
605
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
saradc_intr_en
w
lo
Offset Address: 0x020
al
Bits Name Access Description Reset
0 sta_saradc_intr_en R/W interrupt enable (mask) 0x0
t
31:1 Reserved
no
saradc_intr_clr
e
ar
Offset Address: 0x024
Bits Name Access Description Reset
n
0 sta_saradc_intr_clr RWC interrupt clear
tio
31:1 Reserved
u
saradc_intr_sta
r ib
time is finished
31:1 Reserved
n by
saradc_intr_raw
tio lic
time is finished
31:1 Reserved
M a
M
606
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.8Temperature sensor
12.8.1 Overview
The chip has two built-in temperature sensors to monitor the chip temperature
periodically. The power management module can be triggered to reset the system
ed
when the chip is overheated and the CPU cannot respond to the overheating interrupt
w
to avoid the risk of overheating.
lo
al
12.8.2 Working method
t
no
Single measurement time:
e
ar
If setting reg_tempsen_accsel to 1 (1024T), the sampling time will be
(1/(25M/12))*(1024+2+64) ~ 523.2us
n
tio
measured simultaneously。
tio lic
Configure the temperature threshold that triggers high temperature alarm and low
ifi p
中斷位 信號 描述
[0] Irq_Temp0_measure Tempsens0 量測完成
[1] Irq_Temp1_measure Tempsens1 量測完成
[2] reserved 保留
607
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
中斷位 信號 描述
[3] reserved 保留
[4] Irq_Temp0_over_high_level Tempsens0 溫度大於、等於高溫臨界值
[5] Irq_Temp1_over_high_level Tempsens1 溫度大於、等於高溫臨界值
[6] reserved 保留
[7] reserved 保留
ed
[8] Irq_Temp0_under_low_level Tempsens0 溫度小於、等於低溫臨界值
w
[9] Irq_Temp1_under_low_level Tempsens1 溫度小於、等於低溫臨界值
lo
[10] reserved 保留
al
[11] reserved 保留
t
[12] Irq_Temp0_over_high_cont Tempsens0 溫度大於、等於高溫臨界值已達
no
reg_tempsen_ovhl_cnt_to_irq 次數
[13] Irq_Temp1_over_high_cont Tempsens1 溫度大於、等於高溫臨界值已達
e
ar
reg_tempsen_ovhl_cnt_to_irq 次數
[14] reserved 保留
n
tio
[15] reserved 保留
u
reg_tempsen_udll_cnt_to_irq 次數
r
di V
st
reg_tempsen_udll_cnt_to_irq 次數
d il
an M
[18] reserved 保留
[19] reserved 保留
n by
[22] reserved 保留
[23] reserved 保留
ifi p
od de
M a
M
608
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
Figure 12- 40 Relationship between temperature measurement time, count and
interruption
n
tio
low temperature.
an M
reg_overheat_reset_en.
ca ub
trigger power down or restart. In the case of overheating, the temp sensor
controller will first issue an interrupt and start counting down. When
M a
M
609
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
BassAddress: 0x030A0000
Name Address Description
Offset
tempsen_version 0x000 ip version number
ed
tempsen_ctrl 0x004 control register
tempsen_status 0x008 staus register
w
tempsen_set 0x00c temperature sensor macro setting
tempsen_intr_en 0x010 interrupt enable
lo
tempsen_intr_clr 0x014 interrupt clear
al
tempsen_intr_sta 0x018 interupt status
tempsen_intr_raw 0x01c interrupt raw status
t
no
tempsen_ch0_result 0x020 temperature sensor channel 0 result
tempsen_ch1_result 0x024 temperature sensor channel 1 result
tempsen_ch0_temp_th 0x040 temperature sensor channel 0 threshold
e
tempsen_ch1_temp_th 0x044 temperature sensor channel 1 threshold
ar
Overheat_th 0x060 overheat threshold register
tempsen_auto_period 0x064 auto sample setting register
n
tempsen_overheat_ctrl 0x068 overheat control register
tio
tempsen_version
ifi p
tempsen_ctrl
Offset Address: 0x004
Bits Name Access Description Reset
0 reg_tempsen_en R/W when re_tempsen_en is set , tempsen 0x0
start to measure the channel set in
reg_tempsen_sel
3:1 Reserved
7:4 reg_tempsen_sel R/W temperature sense channel selection 0x0
15:8 Reserved
23:16 reg_tempsen_ovhl_cnt_to_irq R/W counting threshold of high temperature 0x8
610
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
tempsen_status
Offset Address: 0x008
Bits Name Access Description Reset
0 sta_tempsen_busy RO busy status rise when re_tempsen_en is
set
31:1 Reserved
ed
w
tempsen_set
lo
Offset Address: 0x00c
al
Bits Name Access Description Reset
0 reg_tempsen_bgen R/W sensor macro bandgap enable 0x0
t
1 reg_tempsen_chopen R/W sensor macro chopper function enable 0x1
no
2 reg_tempsen_choppol R/W sensor macro chopper polarity when 0x1
CHOPEN=0
e
3 reg_tempsen_clkpol R/W sensor macro clock polarity when 0x1
ar
DA_TEMPSEN_EN=0
5:4 reg_tempsen_chopsel R/W sensor macro chop period, 0:128T, 0x2
n
1:256T, 2:512T, 3:1024T
tio
15:8 reg_tempsen_cyc_clkdiv R/W clock divider for sensor macro, freq = 0xB
ib
17:16 reg_tempsen_tsel R/W sensor macro test selection, please keep 0x0
re k-
0
18 reg_tempsen_en_bjt_test R/W sensor macro test selection, please keep 0x0
d il
an M
0
31:19 Reserved
n by
tempsen_intr_en
tio lic
tempsen_intr_clr
Offset Address: 0x014
M a
M
tempsen_intr_sta
Offset Address: 0x018
Bits Name Access Description Reset
31:0 sta_tempsen_intr_sta RO interrupt masked status
tempsen_intr_raw
Offset Address: 0x01c
611
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
event count is more than threshold
[23:20] ch3~ch0 measurement result is
w
higher than overheat temperature
lo
tempsen_ch0_result
al
Offset Address: 0x020
t
no
Bits Name Access Description Reset
12:0 sta_tempsen_ch0_result RO channel 0 current temperature
measurement result
e
15:13 Reserved
ar
28:16 sta_tempsen_ch0_max_result RO channel 0 max temperature
measurement result
n
30:29 Reserved
tio
tempsen_ch1_result
r
di V
st
re k-
30:29 Reserved
ca ub
tempsen_ch0_temp_th
Offset Address: 0x040
M a
M
tempsen_ch1_temp_th
Offset Address: 0x044
Bits Name Access Description Reset
612
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Overheat_th
ed
Offset Address: 0x060
w
Bits Name Access Description Reset
12:0 reg_tempsen_overheat_th R/W overheat temperature threshold 0x0
lo
31:13 Reserved
al
t
tempsen_auto_period
no
Offset Address: 0x064
Bits Name Access Description Reset
e
23:0 reg_tempsen_auto_cycle R/W auto measure period. T_measure = 0x0
ar
reg_tempsen_auto_cycle*T_prediv
31:24 reg_tempsen_auto_prediv R/W a predivider setting for auto measure 0x18
n
period. T_prediv =
tio
(25M/( reg_tempsen_auto_prediv+1))
u
tempsen_overheat_ctrl
r ib
29:0 reg_tempsen_overheat_cycle R/W After overheat event happens, the cycle 0x10000
d il
tempsen_overheat_countdown
ifi p
30 Reserved
M
tempsen_ch0_temp_th_cnt
Offset Address: 0x070
Bits Name Access Description Reset
7:0 sta_ch0_over_hi_temp_th_cnt RO channel 0 high temperature event count
status
15:8 sta_ch0_under_lo_temp_th_cnt RO channel 0 low temperature event count
status
16 reg_ch0_temp_th_cnt_clr RWC write 1 to clear channel 0 temperature
613
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
tempsen_ch1_temp_th_cnt
Offset Address: 0x074
Bits Name Access Description Reset
7:0 sta_ch1_over_hi_temp_th_cnt RO channel 1 high temperature event count
status
ed
15:8 sta_ch1_under_lo_temp_th_cnt RO channel 1 low temperature event count
w
status
16 reg_ch1_temp_th_cnt_clr RWC write 1 to clear channel 1 temperature
lo
event count
al
31:17 Reserved
t
no
12.9PWM
e
ar
n
12.9.1 Overview
u tio
12.9.2 Features
d il
an M
n by
The clock source for PWM is either 100MHz or 148.5MHz (default is 100MHz). Each
PWM channel can operate independently:
tio lic
ca ub
Support 30-bit period counter and high/low level counter for PWM waveform
ifi p
614
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.9.3 Operation
1. Calculates the clock cycle counts for PWM waveform high/low-level period
according to the selected clock source
ed
2. Write the period counter value into registers HLPERIOD0、PERIOD0
w
3. Set register bit PWMMODE to 0 to operate at continuous mode. The PWM0 will
lo
start generating after register bit PWMSTART[0] is set to 1 and will stop until
al
PWMSTART[0] is set to 0.
t
no
4. Set register bit PWMMODE to 1 to operate at fixed pulse count mode. Specify
the required PWM waveform to be generated to register PCOUNT0. The PWM0
e
ar
will start generating after PWMSTART[0] is set to 1 and will stop automatically
when the number of pulse is met. The status register PWMDONE turns from 0 to
n
tio
1.
u
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
615
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
For example: to generate an 1MHz frequency square waveform which low level period
percentage is 75%, and totally 16 pulses:
1. Use 100MHz clock source, the period count (PERIOD0) is 100MHz / 1MHz = 100,
ed
and the low-level count (HLPERIOD0) is 100 x 75% = 75. The pulse count
w
(PCOUNT0) is 16.
lo
al
2. Set PWMSTART[0] to 1 to start PWM.
3. Read register bit PWMDONE[0] until changes from 0 to 1.
t
no
4. The generated number of PWM pulses is stored in register PULSECOUNT0 and
its value should equal to 16.
e
ar
n
To enable PWM again, set PWMSTART[0] to 0 and then 1 to reset the counters and
tio
status registers.
u
ib
Set SHIFTMODE to 1 can make 4-channel PWM operate at synchronous mode. The
r
di V
st
re k-
SHIFTCOUNT0 to SHIFTCOUNT3.
ca ub
3. Set PWMSTART[3:0] to 4'hF and then set register bit SHIFTSTART to 1. The period
ifi p
counters of four PWM will start counting at the same time, and the first rising
od de
616
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
Figure 12- 43 PWM Continuous Shift Mode
ar
n
For example: to simultaneously generate four channels 1KHz frequency square
tio
waveform which low level period percentage is 75% and each waveform is shifted by
u
ib
1. Use 100MHz clock source, the period count is 100MHz / 1KHz = 100000, and the
d il
an M
75,000.
ca ub
Set SHIFTSTART to 0 to stop PWM. Read register bits PWMDONE[3:0] until 4'hf
M a
617
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
错误!未找到引用源。.
ed
HLPERIOD0
w
Offset Address: 0x000
lo
Bits Name Access Description Reset
al
29:0 HLPERIOD0 R/W PWM0 low level period counter value 0x1
(unit is clk_pwm, value must > 0)
t
no
PERIOD0
Offset Address: 0x004
e
ar
Bits Name Access Description Reset
29:0 PERIOD0 R/W PWM0 period counter value (unit is
n 0x2
clk_pwm, PERIOD must > 1 and must >
tio
HLPERIOD)
u
HLPERIOD1
ib
29:0 HLPERIOD1 R/W PWM1 low level period counter value 0x1
(unit is clk_pwm, value must > 0)
d il
an M
PERIOD1
n by
HLPERIOD2
od de
29:0 HLPERIOD2 R/W PWM2 low level period counter value 0x1
(unit is clk_pwm, value must > 0)
PERIOD2
Offset Address: 0x014
Bits Name Access Description Reset
29:0 PERIOD2 R/W PWM2 period counter value (unit is 0x2
clk_pwm, PERIOD must > 1 and must >
HLPERIOD)
618
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
HLPERIOD3
Offset Address: 0x018
Bits Name Access Description Reset
29:0 HLPERIOD3 R/W PWM3 low level period counter value 0x1
(unit is clk_pwm, value must > 0)
PERIOD3
Offset Address: 0x01c
ed
Bits Name Access Description Reset
29:0 PERIOD3 R/W PWM3 period counter value (unit is 0x2
w
clk_pwm, PERIOD must > 1 and must >
lo
HLPERIOD)
al
POLARITY
t
no
Offset Address: 0x040
Bits Name Access Description Reset
e
3:0 POLARITY R/W Polarity of PWM0~3 0x0
ar
[n] = 0: PWMn default low
[n] = 1: PWMn default high
n
7:4 Reserved
tio
15:12 Reserved
r
mode
an M
19:17 Reserved
20 pclk_force_en R/W pclk clock always enable 0x0
n by
31:21 Reserved
ca ub
PWMSTART
ifi p
PWMDONE
Offset Address: 0x048
Bits Name Access Description Reset
3:0 PWMDONE RO PWM output done status for PWM0~3
619
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
PWMUPDATE
Offset Address: 0x04c
Bits Name Access Description Reset
ed
3:0 PWMUPDATE R/W Dynamic Update PWM counter value 0x0
w
When PWMSTART set to 1, the register
value (HLPERIODn, PERIODn) will be
lo
latched. In order to dynamic update
al
PWM period, set this bit to 1 then to 0
to upload the new values of HLPERIODn
t
and PERIOD.
no
31:4 Reserved
e
PCOUNT0
ar
Offset Address: 0x050 n
Bits Name Access Description Reset
tio
23:0 PCOUNT0 R/W PWM0 pulse count (value must > 0) 0x1
Only valid when PWMMODE[0] = 1.
u
31:24 Reserved
r ib
PCOUNT1
di V
st
re k-
23:0 PCOUNT1 R/W PWM1 pulse count (value must > 0) 0x1
Only valid when PWMMODE[1] = 1.
n by
31:24 Reserved
tio lic
PCOUNT2
Offset Address: 0x058
ca ub
23:0 PCOUNT2 R/W PWM2 pulse count (value must > 0) 0x1
Only valid when PWMMODE[2] = 1.
od de
31:24 Reserved
M a
M
PCOUNT3
Offset Address: 0x05c
Bits Name Access Description Reset
23:0 PCOUNT3 R/W PWM3 pulse count (value must > 0) 0x1
Only valid when PWMMODE[3] = 1.
31:24
PULSECOUNT0
Offset Address: 0x060
Bits Name Access Description Reset
620
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
PULSECOUNT1
Offset Address: 0x064
Bits Name Access Description Reset
23:0 PULSECOUNT1 RO PWM1 output pulse counter status
ed
31:24 Reserved
w
PULSECOUNT2
lo
Offset Address: 0x068
al
Bits Name Access Description Reset
23:0 PULSECOUNT2 RO PWM2 output pulse counter status
t
no
31:24 Reserved
e
PULSECOUNT3
ar
Offset Address: 0x06c
Bits Name Access Description Reset
n
tio
23:0 PULSECOUNT3 RO PWM3 output pulse counter status
31:24 Reserved
u
ib
SHIFTCOUNT0
r
di V
st
SHIFTCOUNT1
tio lic
SHIFTCOUNT2
M
SHIFTCOUNT3
Offset Address: 0x08c
Bits Name Access Description Reset
23:0 SHIFTCOUNT3 R/W PWM3 first pulse shift count 0x0
621
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SHIFTSTART
Offset Address: 0x090
Bits Name Access Description Reset
0 SHIFTSTART R/W PWM start in Phase shift mode 0x0
ed
When SHIFTMODE = 1, set this bit to 1
to simultaneously start outputting
w
PWM0~3.
31:1 Reserved
lo
al
PWM_OE
t
Offset Address: 0x0d0
no
Bits Name Access Description Reset
3:0 PWM_OE R/W PWM0~3 IO output enable 0xF
e
1 = output, 0 = input
ar
31:4 Reserved n
u tio
ib
12.10.1 Overview
an M
n by
Keyscan supports a matrix of up to 8x8 = 64 keys. If you don't need so many keys, you
can freely decide which rows or columns to mask or keep. You can select snapshot
tio lic
mode and FIFO mode to obtain key information according to software needs.
ca ub
ifi p
622
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
When the state machine (FSM) is in the rest mode (no key is pressed), all rows output 0,
od de
while col is in the input mode and the weak pull-up is turned on (the weak pull-up is set
M a
in the register mapped to IOBLK, not in the keyscan module). When any key is pressed,
M
col will see the value of not all 1 after debounce. It indicates that a key is pressed. At this
time, FSM will start a scan to let row [0] - > row [7] have only one bit output 0 at a time
(the rest are in HiZ high resistance state). Each result will be updated into an array
FSM will scan repeatedly until the col returned by all rows are all 1, indicating no key
was pressed, and then it will go to rest mode (all rows output 0)
623
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
for column input to be used.
w
The reg_slow_div in KEYSCAN_CONFIG1 determines the time of each stage in
lo
FSM of IP. Remember that this number must be larger than the debounce time.
al
Otherwise, it will be wrongly interpret the IO state before debounce completion.
t
no
The reg_wait_cntr in KEYSCAN_CONFIG3 can be used to reduce the scanning
speed. As long as the key is pressed, the keyscan module will scan continuously. This
e
ar
counter can control to wait for a certain time before starting a new round of scanning.
Which result in lower scanning frequency.
n
u tio
r ib
When FIFO mode is used, the 64 key values scanned by IP will be stored in the array. As
n by
long as the status of any key is different from that of the last scan, it will push the index
tio lic
of the key and the current value (0 / 1) into the FIFO. Therefore, the number in [5:0]
ca ub
specifies which key state change. [6] indicates whether it is pressed (0) or released (1).
When the FIFO is not empty, IRQ will be issued. The advantage of this mode is to offload
ifi p
od de
the software bit by bit to check which bit is changed. On the other hand, the
disadvantage is that KEY_SCAN_FIFO is a register where read will pop FIFO
M a
M
624
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
When using snapshot array, the value of 64 keys currently scanned in IP will be stored in
an array. If the content of the array is not consistent with KEYSCAN_SNAPSHOT_ARRAY ,
it will send IRQ. And the software can trigger KEYSCAN_SNAPSHOT_TRIG to capture the
current array content to snapshot array, and then slowly compare what content has
changed with the previous cognition.
ed
Open the reg_irq_snapshot_change_enable in KEYSCAN_IRQ_ENABLE.
w
After receiving IRQ, read trigger KEYSCAN_SNAPSHOT_TRIG, interpret the content of
lo
KEYSCAN_SNAPSHOT_ARRAY, then clear KEY_SCAN_IRQ_CLEAR, and then finish IRQ
al
return.
t
no
e
12.10.6 Key scan Register Overview
ar
n
tio
KEYSCAN_CONFIG0 0x000
r
KEYSCAN_CONFIG1 0x004
di V
st
re k-
KEYSCAN_CONFIG2 0x008
KEYSCAN_CONFIG3 0x00c
d il
an M
KEYSCAN_SNAPSHOT_ARRAY 0x014
KEYSCAN_SNAPSHOT_TRIG 0x01c
n by
KEYSCAN_FIFO_STATUS 0x020
KEYSCAN_FIFO 0x024
tio lic
KEYSCAN_IRQ_ENABLE 0x028
ca ub
KEYSCAN_IRQ_FLAG 0x02c
ifi p
KEYSCAN_IRQ_CLEAR 0x030
od de
M a
M
KEYSCAN_CONFIG0
Offset Address: 0x000
Bits Name Access Description Reset
7:0 reg_row_mask R/W ROW[7:0] Mask 0xff
0 = enable
1 = disable
625
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
KEYSCAN_CONFIG1
ed
Offset Address: 0x004
w
Bits Name Access Description Reset
lo
23:0 reg_slow_div R/W slow divider (MUST BE BIGGER THAN 0xff
al
reg_db_col)
Each step is IP clock frequency divide by
t
reg_slow_div
no
Scan frequency = IP clock freq /
e
( (reg_slow_div+1) *
ar
(9+reg_wait_count+1))
IDLE -> ROW0 -> ROW1 -> ROW2-
n
>ROW3->ROW4->ROW5->ROW6-
tio
>ROW7->UPDATE->WAIT->IDLE
31:24 Reserved
u
ib
KEYSCAN_CONFIG2
r
di V
st
clock cycle)
31:16 Reserved
n by
KEYSCAN_CONFIG3
tio lic
reg_slow_div count)
31:8 Reserved
od de
M a
KEYSCAN_SNAPSHOT_ARRAY
M
626
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
KEYSCAN_SNAPSHOT_TRIG
Offset Address: 0x01c
Bits Name Access Description Reset
0 reg_cpu_snapshot_toggle W1T Write 1 to Trigger snapshot array to
update
When current result is different from
snapshot result, irq happen
To solve the IRQ, write 1 to trigger the
snapshot array to copy from current
ed
array and start checking which bit is
different from previous state
w
31:1 Reserved
lo
al
KEYSCAN_FIFO_STATUS
t
Offset Address: 0x020
no
Bits Name Access Description Reset
3:0 reg_fifo_count RO FIFO content count
e
0 = Empty
ar
1 = one content in FIFO
N = N content in FIFO
4 reg_fifo_not_empty RO FIFO not empty flag
n
0 = Empty
tio
1 = Not empty
31:5 Reserved
u
ib
KEYSCAN_FIFO
r
di V
st
re k-
6:0 reg_fifo_rdata ROC read data from FIFO (Auto POP) - check
FIFO empty-ness before read
[6] 0 = press, 1 = not-press
n by
[5:0] = index
Row = INT(index/8)
tio lic
Col = mod(index,8)
63 = Row 7 , Column 7
ca ub
13 = Row 1 , Clumne 5
31:7 Reserved
ifi p
od de
KEYSCAN_IRQ_ENABLE
M a
KEYSCAN_IRQ_FLAG
627
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:5 Reserved
w
KEYSCAN_IRQ_CLEAR
lo
Offset Address: 0x030
al
Bits Name Access Description Reset
t
0 reg_irq_fifo_not_empty_clear_w1t W1T FIFO not empty IRQ Clear (Write 1 clear)
no
3:1 Reserved
4 reg_irq_snapshot_change_clear_w1 W1T Snapshot Change IRQ Clear (Write 1
e
t clear)
ar
31:5 Reserved
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
628
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.11 Wiegand
12.11.1 Overview
ed
w
lo
al
t
no
e
Figure 12- 45 the way wiegand signal bus transmits 0 / 1
ar
n
tio
The Wiegand interface uses two single ended signals, d0 / D1. When the bus idle both
are high, a low pulse appears on D0, indicating that a "0" is transmitted. When a low
u
ib
Wiegand is commonly used in access control system. There are two common formats,
d il
an M
Wiegand 26 / 34, which represent the bit number of packets respectively. The brief
n by
12.11.1.1 Wiegand 26
ifi p
od de
M a
M
629
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.11.1.2 Wiegand 34
ed
w
lo
al
t
no
Figure 12- 47 Wiegand 34 format
e
ar
F = Facility Code n
U = User code
u tio
Some access card has a series of numbers on the back. After converting them to hex,
ib
34, 34282 are facility code & user code in decimal system
PS. this IP TX RX does not handle the insertion or checking of parity. It is handled by
software.
630
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
The Wiegand module contains TX and Rx, which can be used for single direction or bi-
diretion used. During Transmitting, the RX will stop monitoring the bus to avoid
received the message of its own tramission. Transmitter support push pull mode or
open drain mode
631
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.11.2.1 TX
Before Transmit, set the high time and low time of TX, and transmit sequence is MSB 1st
or LSB 1st. Then put the data in TX_BUFFER register, use TX_Trig, to start the transfer of
the data.
ed
After the transmission is complete, one can use TX_FINISH interrupt or by polling
w
TX_BUSY status to determine when can transfer another packet.
lo
al
t
no
12.11.2.2 RX
e
ar
Before received, set the debounce time and the number of bits expected to receive in a
packet. When low pulse appears in D0 D1, RX will start to push data into the temp
n
tio
buffer. When the number of received bits reaches the expected number of bits of a
packet, it will push the temp buffer to RX_ BUFFER and sent out interrupt for software
u
ib
If idle timeout occurs on D0 D1, even if the number of bits is not reached, it will be
d il
an M
The high bit element of RX BUFFER will record the total number of bits received by this
tio lic
Every packet received can rely on rx_ buffer_ reciveived interrupt, or RX_ BUFFER_ VALID
od de
to determine is there any valid data in RX_BUFFER. After taking RX Data, trigger RX_
M a
632
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
RX_CONFIG0 0x020
w
RX_CONFIG1 0x024
lo
RX_CONFIG2 0x028
al
RX_BUFFER 0x02c
RX_BUFFER_VALID 0x038
t
no
RX_BUFFER_CLEAR 0x03c
RX_DEBUG 0x040
e
IRQ_ENABLE 0x044
ar
IRQ_FLAG 0x048
IRQ_CLEAR 0x04c
n
u tio
ib
TX_CONFIG0
n by
TX_CONFIG1
od de
31:24 Reserved
TX_CONFIG2
Offset Address: 0x008
Bits Name Access Description Reset
6:0 reg_tx_bitcount R/W TX Frame bit count per transmit , unit = 0x18
bit
7 Reserved
8 reg_tx_msb1st R/W TX Transmit from MSB or LSB 0x0
0 : LSB 1st , from tx_buffer[0] -->
tx_buffer[reg_tx_bitcount]
633
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
TX_BUFFER
lo
Offset Address: 0x00c
al
Bits Name Access Description Reset
63:0 reg_tx_buffer R/W TX buffer content 0x00
t
no
TX_TRIG
e
Offset Address: 0x014
ar
Bits Name Access Description Reset
0 reg_tx_trig_w1t W1T Trigger transmittion
n
Write 1 trigger (please check
tio
TX_BUSY
r
di V
st
31:1 Reserved
tio lic
TX_DEBUG
ca ub
0 : idle
1 : wait bus idle
M a
2 : tx_start
M
3 : transmit low
4 : transmit high
5 : tx_stop
7:3 Reserved
14:8 reg_tx_pointer RO TX pointer current position
indicate how many bit is still not yet
send
31:15 Reserved
RX_CONFIG0
Offset Address: 0x020
634
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RX_CONFIG1
Offset Address: 0x024
Bits Name Access Description Reset
31:0 reg_idle_timeout R/W Bus timeout cycle count 0xfff
ed
When bus is idle for idle_timeout cycle,
bus is expected to be back to idle
w
If some bit has received but not yet
accumulate to rx_bitcount, it will also
lo
treat as a complete packet.
al
RX_CONFIG2
t
no
Offset Address: 0x028
Bits Name Access Description Reset
e
6:0 reg_rx_bitcount R/W RX Expected Frame bit count , unit = bit 0x18
ar
7 Reserved
8 reg_rx_msb1st R/W RX Received sequence 0x0
n
0 : LSB 1st, 1st data is put in
tio
reg_rx_buffer[0]->[1]->[2]….
1 : MSB 1st, 1st data is put in
u
reg_rx_buffer[reg_rx_bitcount]->[0]
ib
11:9 Reserved
r
0 : disable
re k-
1 : Enable
d il
31:13 Reserved
an M
RX_BUFFER
n by
an un-read message
95:73 Reserved
RX_BUFFER_VALID
Offset Address: 0x038
Bits Name Access Description Reset
0 reg_rx_buffer_valid RO reg_rx_buffer validness
0 : not valid
1 : valid
31:1 Reserved
635
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
RX_BUFFER_CLEAR
Offset Address: 0x03c
Bits Name Access Description Reset
0 reg_rx_buffer_clear_w1t W1T reg_rx_buffer clear (write 1 clear)
31:1 Reserved
RX_DEBUG
Offset Address: 0x040
ed
Bits Name Access Description Reset
w
0 reg_businidle RO bus in idle indication
lo
0 : bus is not in idle
1 : bus is in idle more than
al
reg_rx_idle_timeout cycle
31:1 Reserved
t
no
IRQ_ENABLE
e
Offset Address: 0x044
ar
Bits Name Access Description Reset
0 reg_irq_tx_finish_enable R/W TX Finish IRQ Enable (to inform all data 0x0
n
has being transmit, ready for next)
tio
0 : Disable
1 : Enable
u
3:1 Reserved
ib
0 : Disable
st
re k-
1 : Enable
7:5 Reserved
d il
an M
31:9 Reserved
tio lic
IRQ_FLAG
ca ub
0 : no IRQ
1 : IRQ (one tranmission has being
M a
completed)
M
3:1 Reserved
4 reg_irq_rx_overflow RO RX overflow IRQ Flag
0 : no IRQ
1 : IRQ (rx buffer is not pop and new
data has overwrited)
7:5 Reserved
8 reg_irq_rx_received RO RX received IRQ Flag
0 : no IRQ
1 : RX buffer has new data
31:9 Reserved
636
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IRQ_CLEAR
Offset Address: 0x04c
Bits Name Access Description Reset
0 reg_irq_tx_finish_clear_w1t W1T TX Finish IRQ Clear , Write 1 to clear
reg_irq_tx_finish flag
3:1 Reserved
4 reg_irq_rx_overflow_clear_w1t W1T RX Overflow IRQ Clear . Write 1 to clear
reg_irq_rx_overflow flag
7:5 Reserved
ed
8 reg_irq_rx_received_clear_w1t W1T RX Received IRQ Clear . Write 1 to clear
w
reg_irq_rx_received flag
31:9 Reserved
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
637
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
12.12.1 Overview
ed
12.12.2 Characteristics
w
1. Support NEC encoding mode (including repeat code).
lo
2. Support Philips RC5/RC6 encoding mode.
al
3. Support Sony encoding mode.
t
4. Support infrared wake-up function.
no
e
ar
12.12.3 Working Mode n
u tio
r ib
di V
st
re k-
The software predefines the format of the received infrared data. When the IRRX module
d il
an M
receives the infrared signal, it decodes it, and the encoded data that conforms to the
predefined format is transmitted to the CPU via an interrupt. The CPU then performs
n by
Offset
M a
IR_EN 0x000
M
IR_MODE 0x004
IR_CFG 0x008
IR_FRAME 0x00c
int_en 0x010
int_clr 0x014
int_msk 0x018
int 0x01c
638
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
int_raw 0x020
IR_SYMBOL_CFG0 0x030
IR_SYMBOL_CFG1 0x034
IR_SYMBOL_CFG2 0x038
ed
IR_SYMBOL_CFG3 0x03c
w
IR_SYMBOL_CFG4 0x040
lo
IR_SYMBOL_CFG5 0x044
al
IR_SYMBOL_CFG6 0x048
t
no
IR_SYMBOL_CFG7 0x04c
IR_CLOCK_CTRL 0x050
e
ar
IR_DATA0 0x080
IR_DATA1 0x084
n
tio
IR_DATA2 0x088
u
IR_DATA3 0x08c
ib
IR_DATA4 0x090
r
di V
st
IR_NEC_DATA0 0x0a8
re k-
IR_SONY_DATA0 0x0ac
d il
an M
IR_SONY_DATA1 0x0b0
n by
IR_PHILIPS_DATA0 0x0b4
IR_PHILIPS_DATA1 0x0b8
tio lic
IR_PRD_REC0 0x0e0
ca ub
IR_PRD_REC1 0x0e4
ifi p
IR_PRD_REC2 0x0e8
od de
IR_PRD_REC3 0x0ec
M a
M
IR_PRD_REC4 0x0f0
IR_PRD_REC5 0x0f4
SPARE_0 0xff0
SPARE_1 0xff4
SPARE_RO 0xff8
DATA_CODE 0xffc
639
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
1 reg_ir_rx_rst R/W ir receiver reset 0x0
w
15:2 Reserved
lo
al
16 reg_ir_init_done RO ir receiver ready
31:17 Reserved
t
no
IR_MODE
Offset Address: 0x004
e
ar
Bits Name Access n Description Reset
7:2 Reserved
re k-
is ignored
31:9 Reserved
tio lic
IR_CFG
ca ub
15 Reserved
640
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
31:21 Reserved
w
IR_FRAME
lo
Offset Address: 0x00c
al
Bits Name Access Description Reset
t
no
7:0 reg_length R/W ir receiver data length 0x20
e
0x1: TC9012
ar 0x0: others
n
15:9 Reserved
tio
sample mode
di V
st
re k-
31:19 Reserved
d il
int_en
an M
31:5 Reserved
int_clr
Offset Address: 0x014
641
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
31:5 Reserved
int_msk
Offset Address: 0x018
ed
Bits Name Access Description Reset
w
0 reg_rx_done_int_msk R/W rx_done interrupt mask 0x0
lo
1 reg_frame_err_int_msk R/W frame_err interrupt mask 0x0
al
2 reg_frame_ovf_int_msk R/W frame_ovf interrupt mask 0x0
t
no
3 reg_release_int_msk R/W release interrupt mask 0x0
e
ar
31:5 Reserved
int
n
tio
Offset Address: 0x01c
31:5 Reserved
tio lic
int_raw
ca ub
31:5 Reserved
IR_SYMBOL_CFG0
Offset Address: 0x030
642
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
15:12 Reserved
ed
reg_ir_rx_lead_p_tol <= 12'FFF
w
reg_ir_rx_lead_p -
lo
reg_ir_rx_lead_p_tol >= 12'000
al
31:24 Reserved
t
IR_SYMBOL_CFG1
no
Offset Address: 0x034
e
Bits Name Access Description Reset
tolerance
r
reg_ir_rx_lead_n +
di V
st
re k-
reg_ir_rx_lead_n -
an M
31:24 Reserved
tio lic
IR_SYMBOL_CFG2
ca ub
tolerance
reg_ir_rx_stop + reg_ir_rx_stop_tol
<= 8'FF
reg_ir_rx_stop -
reg_ir_rx_stop_tol >= 8'00
15:12 Reserved
643
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
tolerance
reg_ir_rx_bit_p +
reg_ir_rx_bit_p_tol <= 8'FF
reg_ir_rx_bit_p -
reg_ir_rx_bit_p_tol >= 8'00
ed
IR_SYMBOL_CFG3
w
Offset Address: 0x03c
lo
Bits Name Access Description Reset
al
11:0 reg_ir_rx_bit_one R/W data one totol interval 0xe0
t
15:12 Reserved
no
23:16 reg_ir_rx_bit_one_tol R/W data one total interval tolerance 0x18
e
reg_ir_rx_bit_one +
ar
reg_ir_rx_bit_one_tol <= 12'FFF
n
reg_ir_rx_bit_one -
tio
31:24 Reserved
r
IR_SYMBOL_CFG4
di V
st
re k-
15:12 Reserved
tio lic
reg_ir_rx_bit_zero +
reg_ir_rx_bit_zero_tol <= 12'FFF
ifi p
reg_ir_rx_bit_zero -
od de
31:24 Reserved
IR_SYMBOL_CFG5
Offset Address: 0x044
15:0 reg_ir_rx_release_time R/W time for wait repeat code, >108ms. 0x27de
31:16 Reserved
IR_SYMBOL_CFG6
Offset Address: 0x048
644
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
15:12 Reserved
ed
reg_ir_rx_slead_p +
w
reg_ir_rx_slead_p_tol <= 12'FFF
lo
reg_ir_rx_slead_p -
al
reg_ir_rx_slead_p_tol >= 12'000
t
31:24 Reserved
no
IR_SYMBOL_CFG7
e
Offset Address: 0x04c
ar
Bits Name Access n Description Reset
interval
u
ib
15:12 Reserved
r
interval tolerance
d il
reg_ir_rx_slead_n +
an M
reg_ir_rx_slead_n -
tio lic
31:24 Reserved
IR_CLOCK_CTRL
ifi p
7:2 Reserved
31:9 Reserved
IR_DATA0
Offset Address: 0x080
645
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
IR_DATA1
Offset Address: 0x084
ed
IR_DATA2
w
Offset Address: 0x088
lo
Bits Name Access Description Reset
al
31:0 reg_ir_rx_data2 RO recevier data[95:64]
t
IR_DATA3
no
Offset Address: 0x08c
e
Bits Name Access Description Reset
31:0 reg_ir_rx_data3 RO
ar
recevier data[127:96]
n
IR_DATA4
tio
IR_NEC_DATA0
d il
IR_SONY_DATA0
ca ub
15:12 Reserved
M a
M
31 Reserved
IR_SONY_DATA1
Offset Address: 0x0b0
31:20 Reserved
IR_PHILIPS_DATA0
646
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
31:12 Reserved
IR_PHILIPS_DATA1
Offset Address: 0x0b8
ed
Bits Name Access Description Reset
w
19:0 reg_ir_rx_philips_rc6 RO receiver data, RC6 format
lo
31:20 Reserved
al
IR_PRD_REC0
t
Offset Address: 0x0e0
no
Bits Name Access Description Reset
e
11:0 reg_start_p0_min RO start phase0 minimul width
ar
15:12 Reserved n
27:16 reg_start_p0_max RO start phase0 maximul width
tio
31:28 Reserved
u
ib
IR_PRD_REC1
r
15:12 Reserved
n by
31:28 Reserved
ca ub
IR_PRD_REC2
Offset Address: 0x0e8
ifi p
od de
15:12 Reserved
31:28 Reserved
IR_PRD_REC3
Offset Address: 0x0ec
15:12 Reserved
647
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
31:28 Reserved
IR_PRD_REC4
Offset Address: 0x0f0
ed
11:0 reg_end_min RO end phase minimuml width
w
15:12 Reserved
lo
27:16 reg_end_max RO end phase maximuml width
al
31:28 Reserved
t
no
IR_PRD_REC5
Offset Address: 0x0f4
e
Bits Name Access Description Reset
15:0 reg_frame_min RO
ar
frame minimul width
n
tio
31:16 reg_frame_max RO frame maximul width
SPARE_0
u
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
648
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
The security subsystem module includes the following security function modules:
lo
Crypto DMA
al
Secure Debug Protection
t
no
Crypto DMA provides hardware acceleration of symmetric key encryption,
e
decryption and hardware acceleration of Hash. Secure eFuse unit is responsible
ar
for providing system security settings and secure keys for security subsystem.
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
13.1CryptoDMA
13.1.1 Overview
192 / 256, DES / TDES, SM4 and HASH algorithm: SHA-1 / SHA256. Through the
instruction string of linked list, the function of key encryption and decryption or
hash operation of data block can be directly accessed in memory.
The symmetric algorithm is suitable for hardware encryption and
decryption of data, and supports a variety of block encryption and block
series processing methods, including ECB, CBC and CTR.
ed
The implementation of AES (Advanced Encryption Standard) algorithm
w
conforms to FIPS 197 standard. The implementation of DES (data
lo
encryption standard) / TDES algorithm conforms to ISO / IEC 18033-3.
al
Hash algorithm is suitable for data integrity checking and digital
t
no
signature operation acceleration. SHA1 and SHA256 meet FIPS180-2
standard.
e
13.1.2 Function Characteristics
ar
n
tio
encryption mode ECB / CBC / CTR. The key length supports 128 bits and 256 bits,
di V
st
re k-
and the key can be configured by secure operating system or linked list
d il
instruction.
an M
Support symmetric encryption and decryption algorithm DES / TDES and block
ca ub
Support CPU configuration to input PIO data and DMA mode to read active
M a
Support circular linked list structure, support splicing multiple linked list data.
Provide interrupt status query, interrupt mask and interrupt clear function.
complete the block encryption and decryption or hash operation, and output
the operation result to the target address.
encryption mode
ed
w
Symmetric key algorithm AES / DES / SM4 all support ECC / CBC / CTR block
lo
encryption mode.
al
t
13.1.4.1 ECB Mode
no
e
In ECB (Electronic CodeBook) mode, encryption and decryption algorithms are
ar
directly applied to each packet data by the operation of each packet. This feature
n
enables plaintext encryption and ciphertext decryption to be carried out
tio
651
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
to ensure the independence and security of encrypted data processing. Generally, the
M a
XOR operation is carried out between encrypted accumulated sequence and plaintext.
M
652
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
Figure 13- 4 CTR Mode
u tio
r ib
di V
st
re k-
653
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
PIO_cmd_data_20 0x0d0 PIO command20
PIO_cmd_data_21 0x0d4 PIO command21
w
key_data_0 0x100 cipher key data 0
lo
key_data_1 0x104 cipher key data 1
al
key_data_2 0x108 cipher key data 2
key_data_3 0x10c cipher key data 3
t
key_data_4 0x110 cipher key data 4
no
key_data_5 0x114 cipher key data 5
key_data_6 0x118 cipher key data 6
e
key_data_7 0x11c cipher key data 7
ar
key_data_8 0x120 cipher key data 8
key_data_9 0x124 cipher key data 9 n
key_data_10 0x128 cipher key data 10
tio
key_data_11 0x12c cipher key data 11
key_data_12 0x130 cipher key data 12
u
654
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
(基址 0x02060000)
ed
dma_ctrl
dma_ctrl
w
Offset Address: 0x000
lo
Bits Name Access Description Reset
al
0 dma_en R/W DMA Channel Enable Control 0x0
t
0:Channel Forbidden;
no
1:Channel Enable
1 decriptor_mode R/W Channel Command Mode 0x0
e
0: PIO Mode
ar
1:Description Key List Mode
15:2 Reserved
n
23:16 max_read_burst R/W Maximum Read Burst Value 0x0
tio
int_mask
r ib
int_mask
di V
st
re k-
des_base_0
ca ub
des_base_0
ifi p
address
M
des_base_1
des_base_1
Offset Address: 0x00c
Bits Name Access Description Reset
31:0 des_base_1 R/W Description key table address_ High 0x0
address
spacc_int_raw
spacc_int_raw
655
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
secure_key_valid
secure_key_valid
Offset Address: 0x014
Bits Name Access Description Reset
ed
31:0 secure_key_valid R/W Key Valid Value 0x0
One-Way: Enabled
w
lo
des_addr_0
al
des_addr_0
t
Offset Address: 0x018
no
Bits Name Access Description Reset
31:0 des_addr_0 R/W Description key table address offset_ 0x0
e
Low address
des_addr_1
ar
n
tio
des_addr_1
Offset Address: 0x01c
u
High address
st
re k-
PIO_cmd_data_0
d il
an M
656
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
1: Descriptors
2:Reserved
w
4:Reserved
lo
8: Using SHA parameter register
The rest areReserved
al
23:20 PIO_cmd_data_0_20 R/W First operation IV selection 0x0
t
AES / DES / SM4 is used
no
1: Descriptor IV
2:IV2
4:IV1
e
8:IV0
ar
26:24 PIO_cmd_data_0_24 R/W Continued Operation IV Selection 0x0
AES / DES / SM4 is used
n
1: Descriptor IV
tio
2:IV2
4:IV1
u
8:IV0
ib
PIO_cmd_data_1
d il
an M
hash parameter
1 PIO_cmd_data_1_1 R/W CBC Mode 0-ECB/1-CBC 0x0
ifi p
PIO_cmd_data_2
PIO mode descriptor
Offset Address: 0x088
Bits Name Access Description Reset
31:0 PIO_cmd_data_2 R/W Reserved 0x0
PIO_cmd_data_3
PIO mode descriptor
657
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
PIO_cmd_data_4
PIO mode descriptor
Offset Address: 0x090
ed
Bits Name Access Description Reset
31:0 PIO_cmd_data_4 R/W Continuous descriptor address_High 0x0
w
address
lo
al
PIO_cmd_data_5
PIO mode descriptor
t
no
Offset Address: 0x094
Bits Name Access Description Reset
e
31:0 PIO_cmd_data_5 R/W DMA source address_ Low address 0x0
PIO_cmd_data_6
ar
n
tio
PIO mode descriptor
Offset Address: 0x098
u
PIO_cmd_data_7
d il
PIO_cmd_data_8
ca ub
PIO_cmd_data_9
PIO mode descriptor
Offset Address: 0x0a4
Bits Name Access Description Reset
31:0 PIO_cmd_data_9 R/W SHA Information size 0x0
PIO_cmd_data_10
PIO mode descriptor
Offset Address: 0x0a8
658
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
PIO_cmd_data_11
PIO mode descriptor
Offset Address: 0x0ac
Bits Name Access Description Reset
31:0 PIO_cmd_data_11 R/W BASE64 Target Information size 0x0
ed
PIO_cmd_data_12
w
PIO mode descriptor
lo
Offset Address: 0x0b0
al
Bits Name Access Description Reset
t
31:0 PIO_cmd_data_12 R/W Reserved 0x0
no
PIO_cmd_data_13
e
PIO mode descriptor
ar
Offset Address: 0x0b4 n
Bits Name Access Description Reset
tio
PIO_cmd_data_14
ib
PIO_cmd_data_15
n by
PIO_cmd_data_16
od de
PIO_cmd_data_17
PIO mode descriptor
Offset Address: 0x0c4
Bits Name Access Description Reset
31:0 PIO_cmd_data_17 R/W Reserved 0x0
659
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
PIO_cmd_data_18
PIO mode descriptor
Offset Address: 0x0c8
Bits Name Access Description Reset
31:0 PIO_cmd_data_18 R/W Reserved 0x0
PIO_cmd_data_19
PIO mode descriptor
ed
Offset Address: 0x0cc
w
Bits Name Access Description Reset
lo
31:0 PIO_cmd_data_19 R/W Reserved 0x0
al
PIO_cmd_data_20
t
no
PIO mode descriptor
Offset Address: 0x0d0
e
Bits Name Access Description Reset
ar
31:0 PIO_cmd_data_20 R/W Reserved 0x0
n
PIO_cmd_data_21
tio
key_data_0
d il
an M
3key
Offset Address: 0x100
n by
key_data_1
ifi p
key
od de
key_data_2
key
Offset Address: 0x108
Bits Name Access Description Reset
31:0 key_data_2 RO Key
key_data_3
key
660
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
key_data_4
key
Offset Address: 0x110
Bits Name Access Description Reset
ed
31:0 key_data_4 RO Key
w
key_data_5
lo
al
key
Offset Address: 0x114
t
no
Bits Name Access Description Reset
31:0 key_data_5 RO Key
e
ar
key_data_6
key
n
tio
Offset Address: 0x118
Bits Name Access Description Reset
u
key_data_7
st
re k-
key
d il
key_data_8
tio lic
key
ca ub
key_data_9
M
key
Offset Address: 0x124
Bits Name Access Description Reset
31:0 key_data_9 RO Key
key_data_10
key
Offset Address: 0x128
Bits Name Access Description Reset
661
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
key_data_11
key
Offset Address: 0x12c
Bits Name Access Description Reset
31:0 key_data_11 RO Key
ed
key_data_12
w
lo
key
al
Offset Address: 0x130
Bits Name Access Description Reset
t
31:0 key_data_12 RO Key
no
key_data_13
e
ar
key
Offset Address: 0x134
n
tio
Bits Name Access Description Reset
31:0 key_data_13 RO Key
u
ib
key_data_14
r
di V
st
key
re k-
key_data_15
tio lic
key
Offset Address: 0x13c
ca ub
key_data_16
M a
M
key
Offset Address: 0x140
Bits Name Access Description Reset
31:0 key_data_16 RO Key
key_data_17
key
Offset Address: 0x144
Bits Name Access Description Reset
31:0 key_data_17 RO Key
662
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
key_data_18
key
Offset Address: 0x148
Bits Name Access Description Reset
31:0 key_data_18 RO Key
key_data_19
ed
key
Offset Address: 0x14c
w
Bits Name Access Description Reset
lo
31:0 key_data_19 RO Key
al
key_data_20
t
no
key
Offset Address: 0x150
e
Bits Name Access Description Reset
ar
31:0 key_data_20 RO Key n
tio
key_data_21
key
u
ib
key_data_22
an M
key
n by
key_data_23
ifi p
key
od de
ini_data_0
3iv
Offset Address: 0x180
Bits Name Access Description Reset
31:0 ini_data_0 RO Initial parameters
ini_data_1
663
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
iv
Offset Address: 0x184
Bits Name Access Description Reset
31:0 ini_data_1 RO Initial parameters
ini_data_2
iv
Offset Address: 0x188
ed
Bits Name Access Description Reset
w
31:0 ini_data_2 RO Initial parameters
lo
ini_data_3
al
iv
t
no
Offset Address: 0x18c
Bits Name Access Description Reset
e
31:0 ini_data_3 RO Initial parameters
ini_data_4
ar
n
tio
iv
Offset Address: 0x190
u
ini_data_5
d il
iv
an M
ini_data_6
ca ub
iv
ifi p
ini_data_7
iv
Offset Address: 0x19c
Bits Name Access Description Reset
31:0 ini_data_7 RO Initial parameters
ini_data_8
iv
Offset Address: 0x1a0
664
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ini_data_9
iv
Offset Address: 0x1a4
Bits Name Access Description Reset
ed
1:0 ini_data_9 RO Initial parameters
w
31:2 Reserved
lo
ini_data_10
al
iv
t
no
Offset Address: 0x1a8
Bits Name Access Description Reset
31:0 ini_data_10 RO Initial parameters
e
ini_data_11
ar
n
iv
tio
sha_data_0
d il
sha parameter
an M
sha_data_1
ca ub
sha parameter
ifi p
sha_data_2
sha parameter
Offset Address: 0x1c8
Bits Name Access Description Reset
31:0 sha_data_2 RO SHA Parameters
sha_data_3
sha parameter
Offset Address: 0x1cc
665
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
sha_data_4
sha parameter
Offset Address: 0x1d0
Bits Name Access Description Reset
31:0 sha_data_4 RO SHA Parameters
ed
sha_data_5
w
lo
sha parameter
al
Offset Address: 0x1d4
Bits Name Access Description Reset
t
31:0 sha_data_5 RO SHA Parameters
no
sha_data_6
e
ar
sha parameter
Offset Address: 0x1d8
n
tio
Bits Name Access Description Reset
31:0 sha_data_6 RO SHA Parameters
u
ib
sha_data_7
r
di V
st
sha parameter
re k-
In order to read or control the internal functions of the chip during debugging or
M a
testing, the chip provides several debugging interfaces, such as JTAG, I2C and
M
666
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
13.2.1 Overview
ed
3. Test interface: The chip provides special debugging interface for
w
production test
lo
al
For JTAG/I2C interfaces, a secure debugging firewall provides specific protection
t
no
controls for their access.
e
ar
For the Test Interface, a secure debugging interface provides a separate class of
protection controls for its access (Test Access).
n
tio
For these debugging categories, the secure debugging firewall provides three
u
ib
The secure debug firewall provides an independent I2C interface for the external
chip to check the current status of the debug interface through I2C and input the
corresponding password to restart the protected interface. External users need
to specify the I2C ID of the main blockhouse to connect to the firewall interface.
667
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
18 32 Reserved Reserved
w
1C 32 Reserved Reserved
20 32 Reserved Reserved
lo
24 32 Reserved Reserved
al
28 32 Reserved Reserved
2C 32 Reserved Reserved
t
30 32 i2c_TST_password [31:0] 128-bit password entry field for test ports
no
34 32 i2c_TST_password [63:32] 128-bit test debug interface password
38 32 i2c_TST_password [95:64] 128-bit test debug interface password
e
3C 32 i2c_TST_password [127:96] 128-bit test debug interface password
ar
40 1 REE_PW_update Update the password compare result
44 1 Reserved Reserved
n
48 1 Reserved Reserved
tio
4C 1 TST_PW_update Update the compare result of test interface password
u
settings
[1:0] : Interface protection mode,
d il
an M
0:open;1:protected:2/3:closed
[3:2] : Reserved
[5:4] : Reserved
n by
90 32 reserved Reserved
94 4 DBG_PROT_STATUS The current debug protection status
ifi p
[1]: Reserved
[2]: Reserved
M a
668
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
(step 2) I2C sends firewall I2C ID (default 0x56)
(step 3) the I2C reads the address 0x04001A94 to obtain the current protection
w
lo
status of the debugging interface
al
t
no
13.2.3.2 Password Input Process
e
(step 1) control external I2C to send start signal
ar
(step 2) I2C sends the I2C ID of the debugging interface firewall (default: 0x56)
n
tio
(step 3) I2C reads the address of 0x04001A80 / 0x04001A84 to get the Device ID,
and reads the address of 0x04001A88 to get the market distinguishing number
u
ib
(step 5) I2C reads the address 0x94 to get the current protection status of the
d il
an M
0x04001A0c by I2C
ca ub
(step 7) I2C writes any value to the address 0x04001A10 and updates the
ifi p
(step 5) I2C reads the address 0x94 to get the current protection status of the
M a
13.3Efuse Controller
669
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
13.3.1 Overview
4Kbit eFuse space is integrated in the chip, and eFuse is programmed and read
by eFuse Ctrl.
The main functions of eFuse Ctrl include:
A double bit protection mechanism is provided, which consists of two entity
ed
eFuse bits to form a single bit logical effective value. It is equivalent to providing
w
2Kbit memory space to improve the robustness of eFuse burning or data
lo
maintenance
al
t
no
After power-on-reset, the eFuse content is automatically loaded into the register
to provide the configuration settings required by the chip system, reduce the
e
ar
number of reading eFuse and improve the service life
n
tio
Provide eFuse programming, read, verify read and power on / off instructions
and content security protection mechanism.
u
r ib
di V
st
The eFuse data register is divided into two areas, one is a non secure area, and
re k-
the other is a secure area. The data in the non secure area is accessible to all
d il
an M
modules, while the secure area is accessible only to the secure module. The non
n by
secure area stores system configuration and public information, and the secure
area stores security configuration, key and password.
tio lic
ca ub
ifi p
od de
M a
M
670
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
address
The eFuse entity module consists of 128 lines, each line is 32bit. When reading
the entity eFuse data, one line (32bit) can be read each time. When burning, one
671
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
bit can be burned each time. When reading or burning, the operation area
should be specified through the 12bit entity address interface.
The arrangement is as follows:
Fuse physical address [11:0]: {bit address [11:7], row address [6:0]}
ed
The double bit protection bar combines two adjacent different lines of entity
w
data into one line of logical data, which is automatically loaded into the register
lo
after startup. The 4KB entity space is merged into a 64 line 32bit logical space.
al
The system uses the logical space to provide corresponding functions except for
t
no
the entity address used in eFuse programming data process.
e
ar
The corresponding entity address is
Fuse physical address [11:0]: {logical address [11:7], logical row address [5:0],
n
tio
double address}
u
ib
Figure 13- 2 eFuse entity (row) address and logical (row) address corresponding
value
tio lic
ca ub
address
0 0 FTSN0 Production serial number
od de
672
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
15 Analog1 Analog module calibration
w
8 16 Analog2 Analog module calibration
lo
17 Analog2 Analog module calibration
al
9 18 Analog3 Analog module calibration
t
no
19 Analog3 Analog module calibration
10 20 Bonding0 Configuration bonding settings
e
ar
21 Bonding0 Configuration bonding settings
11 22 SW_reserved SoftwareReserved
n
tio
23 SW_reserved SoftwareReserved
12 24 SW_reserved SoftwareReserved
u
ib
25 SW_reserved SoftwareReserved
r
13 26 SW_reserved SoftwareReserved
di V
st
re k-
27 SW_reserved SoftwareReserved
d il
14 28 SW_reserved SoftwareReserved
an M
29 SW_reserved SoftwareReserved
n by
15 30 SW_reserved SoftwareReserved
31 SW_reserved SoftwareReserved
tio lic
16 32 SW_reserved SoftwareReserved
ca ub
33 SW_reserved SoftwareReserved
ifi p
17 34 SW_reserved SoftwareReserved
od de
35 SW_reserved SoftwareReserved
M a
18 36 SW_reserved SoftwareReserved
M
37 SW_reserved SoftwareReserved
19 38 SW_reserved SoftwareReserved
39 SW_reserved SoftwareReserved
20 40 SW_reserved SoftwareReserved
41 SW_reserved SoftwareReserved
21 42 SW_reserved SoftwareReserved
43 SW_reserved SoftwareReserved
673
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
49 SW_reserved SoftwareReserved
w
25 50 SW_reserved SoftwareReserved
lo
51 SW_reserved SoftwareReserved
al
26 52 SW_reserved SoftwareReserved
t
no
53 SW_reserved SoftwareReserved
27 54 SW_reserved SoftwareReserved
e
ar
55 SW_reserved SoftwareReserved
28 56 SW_reserved SoftwareReserved
n
tio
57 SW_reserved SoftwareReserved
29 58 SW_reserved SoftwareReserved
u
ib
59 SW_reserved SoftwareReserved
r
30 60 SW_reserved SoftwareReserved
di V
st
re k-
61 SW_reserved SoftwareReserved
d il
31 62 SW_reserved SoftwareReserved
an M
63 SW_reserved SoftwareReserved
n by
32 64 SW_reserved SoftwareReserved
65 SW_reserved SoftwareReserved
tio lic
33 66 SW_reserved SoftwareReserved
ca ub
67 SW_reserved SoftwareReserved
ifi p
34 68 SW_reserved SoftwareReserved
od de
69 SW_reserved SoftwareReserved
M a
674
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
83 DBG_mode Debug interface protection settings
w
42 84 Kpub_Hash0 Public key hash value
lo
85 Kpub_Hash0 Public key hash value
al
43 86 Kpub_Hash1 Public key hash value
t
no
87 Kpub_Hash1 Public key hash value
44 88 Kpub_Hash2 Public key hash value
e
89 Kpub_Hash2 Public key hash value
ar
45 90 Kpub_Hash3 Public key hash value
91 Kpub_Hash3 Public key hash value
n
tio
675
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
59 118 SecReserved Security system reserved column
w
119 SecReserved Security system reserved column
lo
60 120 SecReserved Security system reserved column
al
121 SecReserved Security system reserved column
t
no
61 122 SecReserved Security system reserved column
123 SecReserved Security system reserved column
e
ar
62 124 SecReserved Security system reserved column
125 SecReserved Security system reserved column
n
tio
63 126 SecReserved Security system reserved column
127 SecReserved Security system reserved column
u
r ib
di V
st
re k-
d il
an M
The eFuse Ctrl register provides two access interfaces, the insecure interface and the
tio lic
secure interface
ca ub
676
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
FTSN3 0x10c Efuse Register contents
FTSN4 0x110 Efuse Register contents
w
eFuse_FT_Debug 0x114 Efuse Register contents
lo
Analog0 0x118 Efuse Register contents
al
Analog1 0x11c Efuse Register contents
Analog2 0x120 Efuse Register contents
t
Analog3 0x124 Efuse Register contents
no
Bonding0 0x128 Efuse Register contents
SW_info 0x12c Efuse Register contents
e
SW_reserved30 0x130 Efuse Register contents
ar
SW_reserved34 0x134 Efuse Register contents
SW_reserved38 0x138 Efuse Register contents
n
SW_reserved3c 0x13c Efuse Register contents
tio
SW_reserved40 0x140 Efuse Register contents
SW_reserved44 0x144 Efuse Register contents
u
677
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
ed
13.3.4 Efuse CTRL Register Overview
w
lo
(Base Address 0x03050000)
al
t
EFUSE_MODE
no
Efuse operation mode
Offset Address: 0x000
e
ar
Bits Name Access Description Reset
3:0 EFUSE_OP_MODE R/W eFuse firewall control register built in 0x0
n
instructions:
tio
0000: standby status / module start
status
u
0: no action
31:12 EFUSE_MODE_reseved R/W Reserved 0x0
ca ub
ifi p
EFUSE_ADR
od de
EFUSE_DIR_CMD
direct bit-wise reg-control signals to eFuse macro IO
Offset Address: 0x008
Bits Name Access Description Reset
31:0 EFUSE_DIR_CMD R/W Reserved, Test interface 0x0
678
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
EFUSE_RD_DATA
eFuse Macro readback data for embedded read
Offset Address: 0x00c
Bits Name Access Description Reset
31:0 EFUSE_RD_DATA RO eFuse Module read value
EFUSE_STATUS
ed
eFuse_busy
Offset Address: 0x010
w
Bits Name Access Description Reset
lo
0 eFuse_busy RO eFuseController busy
al
1 EFUSE_READ_err RO Read action error indication
2 EFUSE_M_READ_err RO Pressure reading action error indication
t
no
3 EFUSE_PGM_err RO Burning action error indication
7:4 EfuseCTL_ST RO Controller status indication
0: Started
e
ar
1: Auto read
2: Waiting
3: Reading
n
4: Burning and writing
tio
5: Pressure reading
6: Test model test
u
7: Shutting down
ib
EFUSE_ONE_WAY
d il
EFUSE_ONE_WAY
an M
PGM_PLUSE_WIDTH
ifi p
PGM_PLUSE_WIDTH
od de
31:9 Reserved
A_READ_WIDTH
A_READ_WIDTH
Offset Address: 0x01c
Bits Name Access Description Reset
8:0 A_READ_WIDTH R/W Reserved 0x0
31:9 Reserved
M_READ_WIDTH
679
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
M_READ_WIDTH
Offset Address: 0x020
Bits Name Access Description Reset
8:0 M_READ_WIDTH R/W Reserved 0x0
31:9 Reserved
FTSN0
serial number for FT(function test)
ed
Offset Address: 0x100
w
Bits Name Access Description Reset
31:0 FTSN0 RO Production serial number
lo
al
FTSN1
t
serial number for FT(function test)
no
Offset Address: 0x104
e
Bits Name Access Description Reset
ar
31:0 FTSN1 RO Production serial number
n
FTSN2
tio
FTSN3
d il
an M
FTSN4
ifi p
MRK_SEG
Market Segment
Offset Address: 0x114
Bits Name Access Description Reset
31:0 MRK_SEG RO Market differentiation number
Analog0
Analog trimming data
680
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Analog1
Analog trimming data
Offset Address: 0x11c
Bits Name Access Description Reset
ed
31:0 Analog1 RO Analog module calibration
w
Analog2
lo
al
Analog trimming data
Offset Address: 0x120
t
no
Bits Name Access Description Reset
31:0 Analog2 RO Analog module calibration
e
ar
Analog3
Analog trimming data
n
tio
Offset Address: 0x124
Bits Name Access Description Reset
u
Bonding0
st
re k-
Bonding option
d il
SW_info
tio lic
SW_reserved30
reserved for SW or MBIST use
Offset Address: 0x130
Bits Name Access Description Reset
31:0 reserved30 RO SoftwareReserved
SW_reserved34
reserved for SW or MBIST use
Offset Address: 0x134
Bits Name Access Description Reset
681
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SW_reserved38
reserved for SW or MBIST use
Offset Address: 0x138
Bits Name Access Description Reset
31:0 reserved38 RO SoftwareReserved
ed
SW_reserved3c
w
lo
reserved for SW or MBIST use
al
Offset Address: 0x13c
Bits Name Access Description Reset
t
31:0 reserved3c RO SoftwareReserved
no
SW_reserved40
e
ar
reserved for SW or MBIST use
Offset Address: 0x140
n
tio
Bits Name Access Description Reset
31:0 reserved40 RO SoftwareReserved
u
ib
SW_reserved44
r
di V
st
SW_reserved48
tio lic
SW_reserved4c
M a
M
SW_reserved50
reserved for SW or MBIST use
Offset Address: 0x150
Bits Name Access Description Reset
31:0 reserved50 RO SoftwareReserved
682
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SW_reserved54
reserved for SW or MBIST use
Offset Address: 0x154
Bits Name Access Description Reset
31:0 reserved54 RO SoftwareReserved
SW_reserved58
ed
reserved for SW or MBIST use
Offset Address: 0x158
w
Bits Name Access Description Reset
lo
31:0 reserved58 RO SoftwareReserved
al
SW_reserved5c
t
no
reserved for SW or MBIST use
Offset Address: 0x15c
e
Bits Name Access Description Reset
ar
31:0 reserved5c RO SoftwareReserved
n
tio
SW_reserved60
reserved for SW or MBIST use
u
ib
SW_reserved64
an M
SW_reserved68
ifi p
SW_reserved6c
reserved for SW or MBIST use
Offset Address: 0x16c
Bits Name Access Description Reset
31:0 reserved6c RO SoftwareReserved
SW_reserved70
683
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
SW_reserved74
reserved for SW or MBIST use
Offset Address: 0x174
ed
Bits Name Access Description Reset
w
31:0 reserved74 RO SoftwareReserved
lo
SW_reserved78
al
reserved for SW or MBIST use
t
no
Offset Address: 0x178
Bits Name Access Description Reset
e
31:0 reserved78 RO SoftwareReserved
SW_reserved7c
ar
n
tio
reserved for SW or MBIST use
Offset Address: 0x17c
u
SW_reserved80
d il
SW_reserved84
ca ub
SW_reserved88
reserved for SW or MBIST use
Offset Address: 0x188
Bits Name Access Description Reset
31:0 reserved88 RO SoftwareReserved
DID0
device ID
Offset Address: 0x18c
684
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
DID1
device ID
Offset Address: 0x190
Bits Name Access Description Reset
31:0 DID1 RO Chip serial number
ed
MSID
w
lo
Nvcounter
al
Offset Address: 0x194
Bits Name Access Description Reset
t
31:0 MSID RO Anti rollback number
no
eFuse_w_lock0
e
ar
eFuse_w_lock0
Offset Address: 0x198
n
tio
Bits Name Access Description Reset
31:0 eFuse_w_lock0 RO efuse Anti write options
u
ib
eFuse_w_lock1
r
di V
st
eFuse_w_lock1
re k-
SCS_config
tio lic
SCS_config
Offset Address: 0x1a0
ca ub
DBG_mode
M a
M
DBG_mode
Offset Address: 0x1a4
Bits Name Access Description Reset
31:0 REE_dbg_mode RO Debug interface protection settings
Kpub_Hash0
Hash value of boot loader authentication public key
Offset Address: 0x1a8
Bits Name Access Description Reset
31:0 Kpub_Hash0 RO Public key hash value
685
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Kpub_Hash1
Hash value of boot loader authentication public key
Offset Address: 0x1ac
Bits Name Access Description Reset
31:0 Kpub_Hash1 RO Public key hash value
Kpub_Hash2
ed
Hash value of boot loader authentication public key
Offset Address: 0x1b0
w
Bits Name Access Description Reset
lo
31:0 Kpub_Hash2 RO Public key hash value
al
Kpub_Hash3
t
no
Hash value of boot loader authentication public key
Offset Address: 0x1b4
e
Bits Name Access Description Reset
ar
31:0 Kpub_Hash3 RO Public key hash value
n
tio
Kpub_Hash4
Hash value of boot loader authentication public key
u
ib
Kpub_Hash5
an M
Kpub_Hash6
ifi p
Kpub_Hash7
Hash value of boot loader authentication public key
Offset Address: 0x1c4
Bits Name Access Description Reset
31:0 Kpub_Hash7 RO Public key hash value
686
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The contents of eFuse will automatically load the eFuse contents into the internal
ed
registers during the boot process, and set the eFuse to a closed state after loading is
completed.
w
lo
13.3.5.1 eFuse Start Process
al
t
EFuse Ctrl will enter the closed state after the startup procedure is completed.
no
Before further action, the controller must be started.
e
Step 1: Read eFuse_ Status [0], until the read back value is 0, indicating that the
ar
eFuse controller is idle and can initiate the next operation.
n
tio
Step 2: Set eFuse Ctrl to write 0x40 to start the commandeFuse CTRL
u
eFuse CTRL has built-in burn command to do the burning of single bit eFuse.
re k-
d il
Step 1: Read EFUSE_STATUS [0], until the read back value is 0, indicating that the
an M
Step 2: Convert the value to be burned into the entity address of eFuse and fill in
EFUSE_ADR
tio lic
Step 3: Set eFuse CTRL to write 0x14 and start the burning command
ca ub
Step 4: Read EFUSE_STATUS [0], until the read back value is 0, indicating that the
ifi p
eFuse controller has completed the burning and writing, and can initiate the next
od de
operation.
M a
M
Step 5: Set eFuse Ctrl to write 0x12 and start the read command.
Step 6: Check EFUSE_RD_DATA whether the burned address in data can be read
back to the previously burned value.
After the eFuse is started manually, it can still control the eFuse to go back to the
off state, which can save power consumption and avoid the eFuse's invalid action.
687
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
Step 1: Read EFUSE_STATUS [0], until the read back value is 0, indicating that the
eFuse controller is idle and can initiate the next operation.
Step 2: Set eFuse Ctrl to write to 0xf0 to close the command
ed
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
688
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
In order to keep the operation environment of the blockhouse security system reliable
and the security of intelligent programs and data not threatened, the operation system
ed
must establish a perfect intelligent security operation environment to provide
w
comprehensive and complete protection for valuable assets. In particular, the intelligent
lo
program library and personal identification data must provide confidentiality, credibility
al
and integrity to ensure the asset security of manufacturers and users.
t
no
According to the requirements of intelligent secure operation environment, the security
e
system provides complete hardware and software protection functions from startup,
ar
n
It includes: 1. The establishment of trust chain: providing the foundation of security
tio
setting, trust root, security startup; 2. Data encryption security: data encryption
r
di V
isolation; 4. Software and firmware verification: verifying the credibility and integrity of
d il
an M
software, including Boot and load verification procedures, 5. Secure storage and
transmission: protect external data storage and exchange, 6. Secure update: ensure a
n by
When the device is started, the hardware system will start the security mechanism
according to the security settings. Secure boot refers to the trusted platform startup
sequence for security applications. After powering on, the initial instruction is read from
the built-in read-only memory (ROM), which is the secure boot ROM of the system. This
program contains the secure boot root public key for authorization authentication,
which will verify the root signature of the underlying boot loader. Once it passes the
verification, the system will start. Then it verifies subsequent boot loaders. After
689
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
verifying the legality of the signature, the entire boot program starts to load the driver,
detect devices, and start the system daemon. If any component fails the check, that
component will not be loaded, and the secure boot process will fail.
ed
w
lo
al
t
no
e
ar
n
u tio
ib
For confidential programs or data that need to be kept secret, including loaders, secure
tio lic
and non secure system programs required for startup, secure and non secure code and
ca ub
data required for application, such as AI model, security system can provide encryption
ifi p
protection programs, and use secure key operation to complete in the trusted
od de
data are also isolated from the system .In a secure environment, non secure program
M
access is not allowed. The system provides common public standard cryptographic
algorithms, including symmetric and asymmetric encryption and decryption and
signature verification algorithms, such as AES, des or RSA, ECC, etc. It also supports
Chinese cryptographic algorithms, including SM2, SM3 and SM4, which meet a wide
range of security standards. The key is managed by the security system, and the non
security program is not allowed to use the security key.
690
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
The trust chain will ensure that all system components are officially written, signed and
distributed, and can not come from other unknown organizations, such as malicious
attackers from third parties. The trust chain is also used to check the signature when the
application starts. All applications must be signed directly or indirectly by the official to
ed
ensure the credibility and integrity of the system program and prevent the program
w
from being modified or implanted with malicious programs or backdoors. In the
lo
running stage, if the system wants to load the program library dynamically, such as the
al
artificial intelligence model library, it still needs to be verified and decrypted by the
t
no
security system to ensure the credibility of the program library.
e
14.4Secure Storage and Transmission ar
n
tio
Due to the application requirements, the system must transfer the security data into or
u
ib
out of the security environment to achieve data storage or exchange. For the storage or
r
di V
st
transmission of security data, the security operation environment only allows data
re k-
transmission through the pre-defined security interface. The security interface includes
d il
an M
Secure storage requires that secure data cannot be transmitted to external storage
tio lic
media in plaintext. All secure data must be encrypted according to the device security
ca ub
key or private password corresponding to its security level before moving out of the
ifi p
security environment. The external storage data exists in ciphertext. Security debugging
od de
according to the security level of the running environment. Secure connection ensures
M
14.5Security Update
691
CV1835
Preliminary Datasheet
Specifications are subject to change without notice
startup, as well as version control and anti rollback protection. The security update
firmware needs to be verified by the authorized signature to start the security firmware
update, and the version of the chip is consistent with the firmware through eFuse.
ed
of manufacturers and users, and meet the national security requirements.
w
lo
al
t
no
e
ar
n
u tio
r ib
di V
st
re k-
d il
an M
n by
tio lic
ca ub
ifi p
od de
M a
M
692