WIEN | RIEN | DMAWEN | DMAREN | Write | Read |
---|---|---|---|---|---|
0 | 0 | 0 | 0 | Polling | Polling |
0 | 1 | 0 | 0 | Polling | Interrupt |
1 | 0 | 0 | 0 | Interrupt | Polling |
1 | 1 | 0 | 0 | Interrupt | Interrupt |
0 | 0 | 0 | 1 | Polling | DMA |
0 | 0 | 1 | 0 | DMA | Polling |
0 | 0 | 1 | 1 | DMA | DMA |
0 | 1 | 1 | 0 | DMA | Interrupt |
1 | 0 | 0 | 1 | Interrupt | DMA |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | FULL_WM[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |
rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | EMPTYWM[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | |
rw | rw | ||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Y_BUF_SIZE[7:0] | Y_BASE[7:0] | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
START | FUNC[6:0] | R[7:0] | |||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Q[7:0] | P[7:0] | ||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Res. | Res. | Res. | Res. | Res. | SAT | UNFL | OVFL | Res. | Res. | Res. | Res. | Res. | Res. | X1 FULL | Y EMPTY |
r | r | r | r | r |
Offset | Register name | 31 | 3.0 | 2Q3 | 2Q3 | 27 | 2623 | 24 | 23 | 22 | 21 | 2023 | 9 | 8 | 17 | 1. | 1.5 | 4 | 13 | 12 | 110 | 98 | 76 | 5 | 4 | 3 | 2 | 10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x00 | FMAC_X1BUFCFG | 品 | 13 | 超市 | : | :nm 7.7.0.3 | 1.00 | 3 | : | 3 | : | SHE | y | g | yé | X1_BUF_SIZE[7:0] | X1_BASE[7:0] | |||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 00 | 00 | 0 | 0 | 0 | 0 | 00 | ||||||||||||||
0x04 | FMAC_X2BUFCFG | y | 3 | 3 | 3.00 | 3 | 8锅 | 1.00 | COMP | y y | g | 绿色 | y4 | S | y y | : | X2_BUF_SIZE[7:0] | X2_BASE[7:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 00 | 00 | 00 | 0 | 0 | 0 | 0 | 00 | ||||||||||||||||
0x08 | FMAC YBUFCFG | 3 | 3 | y | 好的 | a | 3WM 人LdW3 | (1,001) | : | 3 | 8 | 3 | 3 | g | 3 | : | Y_BUF_SIZE[7:0] | Y_BASE[7:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 00 | 00 | 0 | 0 | 0 | 0 | 00 | ||||||||||||||
0x0C | FMAC PARAM | SARE | FUNC[6:0] | R[7:0] | Q[7:0] | P[7:0] | ||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 00 | 00 | 0 | 0 | 0 | 0 | 00 | |
0x10 | FMAC_CR | of | of | LUS | 8 | 新中 | Leten | COMP | Let | SCON | Let | vi | 时 | : | 3 | 13838 | N3d170 | of | 沙 | : | SO3 | N3MVWONEVVWO | Let新 | a | NEILVS | Naihyn | NEITHAO | VolumineREE |
Reset value | 0 | 0 | 00 | 0 | 0 | 0 | 00 | |||||||||||||||||||||
0x14 | FMAC_SR | 1,000 | Life | COMP | 1.0 | Let | WLet | 时 | 8 | B | y) | LUB | STAR | S | 好好 | 小 | 好的 | 新华 | LUB | B | 好的SS | SHAOF | LetLet | 3 | Laborated | Let | y3 | 11NHLX人LdW3人 |
Reset value | 0 | 00 | 01 | |||||||||||||||||||||||||
0x18 | FMAC_WDATA | 时 | SCON | S | S | 3STA | 千港元 | CON | 3 | 3 | STA | S | SCON | S | 8 | WDATA[15:0] | ||||||||||||
0x1C | Reset value FMAC_RDATA | 8 | 8 | : | Wi | 3新时 | 时 | B | SCON | La | 锅 | LUM | 8 | 3 | B | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RDATA[15:0] | ||||||||||||
Reset value | 0000000000000000 |
HADDR[27:26](1) | Selected bank |
---|---|
00 | Bank 1 - NOR/PSRAM 1 |
01 | Bank 1 - NOR/PSRAM 2 |
HADDR[27:26](1) | Selected bank |
---|---|
10 | Bank 1 - NOR/PSRAM 3 |
11 | Bank 1 - NOR/PSRAM 4 |
Memory width(1) | Data address issued to the memory | Maximum memory capacity (bits) |
---|---|---|
8-bit | HADDR[25:0] | 64 Mbytes x 8 = 512 Mbits |
16-bit | HADDR[25:1] >> 1 | 64 Mbytes/2 x 16 = 512 Mbits |
Start address | End address | FMC bank | Memory space | Timing register |
---|---|---|---|---|
0x8800 0000 | 0x8BFF FFFF | Bank 3 - NAND flash | Attribute | FMC_PATT (0x8C) |
0x8000 0000 | 0x83FF FFFF | Common | FMC_PMEM (0x88) |
Section name | HADDR[17:16] | Address range |
---|---|---|
Address section | 1X | 0x020000-0x03FFFF |
Command section | 01 | 0x010000-0x01FFFF |
Data section | 00 | 0x000000-0x0FFFF |
Parameter | Function | Access mode | Unit | Min. | Max. |
---|---|---|---|---|---|
Address setup | Duration of the address setup phase | Asynchronous | AHB clock cycle (HCLK) | 0 | 15 |
Address hold | Duration of the address hold phase | Asynchronous, muxed I/Os | AHB clock cycle (HCLK) | 1 | 15 |
NBL setup | Duration of the byte lanes setup phase | Asynchronous | AHB clock cycle (HCLK) | 0 | 3 |
Data setup | Duration of the data setup phase | Asynchronous | AHB clock cycle (HCLK) | 1 | 256 |
Data hold | Duration of the data hold phase | Asynchronous | AHB clock cycle (HCLK) | 0 | 3 |
Bust turn | Duration of the bus turnaround phase | Asynchronous and synchronous read / write | AHB clock cycle (HCLK) | 0 | 15 |
Clock divide ratio | Number of AHB clock cycles (HCLK) to build one memory clock cycle (CLK) | Synchronous | AHB clock cycle (HCLK) | 2 | 16 |
Data latency | Number of clock cycles to issue to the memory before the first data of the burst | Synchronous | Memory clock cycle (CLK) | 2 | 17 |
FMC signal name | I/O | Function |
---|---|---|
CLK | O | Clock (for synchronous access) |
A[25:0] | 0 | Address bus |
FMC signal name | I/O | Function |
---|---|---|
D[15:0] | I/O | Bidirectional data bus |
NE[x] | O | Chip select, x = 1..4 |
NOE | 0 | Output enable |
NWE | 0 | Write enable |
0 | Latch enable (this signal is called address valid, NADV, by some NOR flash devices | |
NWAIT | 1 | NOR flash wait input signal to the FMC |
FMC signal name | I/O | Function |
---|---|---|
CLK | O | Clock (for synchronous access) |
A[25:16] | O | Address bus |
AD[15:0] | I/O | 16-bit multiplexed, bidirectional address/data bus (the 16-bit address A[15:0] and data D[15:0] are multiplexed on the databus |
NE[x] | O | Chip select, x = 1..4 |
NOE | O | Output enable |
NWE | O | Write enable |
0 | Latch enable (this signal is called address valid, NADV, by some NOR flash devices) | |
NWAIT | 1 | NOR flash wait input signal to the FMC |
FMC signal name | I/O | Function |
---|---|---|
CLK | O | Clock (only for PSRAM synchronous access) |
A[25:0] | O | Address bus |
D[15:0] | I/O | Data bidirectional bus |
NE[x] | O | Chip select, |
NOE | O | Output enable |
NWE | O | Write enable |
O | Address valid only for PSRAM input (memory signal name: NADV) |
FMC signal name | I/O | Function |
---|---|---|
NWAIT | 1 | PSRAM wait input signal to the FMC |
NBL[1:0] | O | Byte lane output. Byte 0 and Byte 1 control (upper and lower byte enable) |
FMC signal name | I/O | Function |
---|---|---|
CLK | O | Clock (for synchronous access) |
A[25:16] | O | Address bus |
AD[15:0] | I/O | 16-bit multiplexed, bidirectional address/data bus (the 16-bit address A[15:0] and data D[15:0] are multiplexed on the databus) |
NE[x] | O | Chip select, |
NOE | O | Output enable |
NWE | O | Write enable |
O | Address valid PSRAM input (memory signal name: NADV) | |
NWAIT | 1 | PSRAM wait input signal to the FMC |
NBL[1:0] | O | Byte lane output. Byte 0 and Byte 1 control (upper and lower byte enable) |
Device | Mode | R/W | AHB data size | Memory data size | Allowed/ not allowed | Comments |
---|---|---|---|---|---|---|
NOR flash (muxed I/Os and nonmuxed I/Os) | Asynchronous | R | 8 | 16 | Y | - |
Asynchronous | W | 8 | 16 | N | - | |
Asynchronous | R | 16 | 16 | Y | - | |
Asynchronous | W | 16 | 16 | Y | - | |
Asynchronous | R | 32 | 16 | Y | Split into 2 FMC accesses | |
Asynchronous | W | 32 | 16 | Y | Split into 2 FMC accesses | |
Asynchronous page | R | - | 16 | N | Mode is not supported | |
Synchronous | R | 8 | 16 | N | - | |
Synchronous | R | 16 | 16 | Y | - | |
Synchronous | R | 32 | 16 | Y | - | |
PSRAM (multiplexed I/Os and non- multiplexed I/Os) | Asynchronous | R | 8 | 16 | Y | - |
Asynchronous | W | 8 | 16 | Y | Use of byte lanes NBL[1:0] | |
Asynchronous | R | 16 | 16 | Y | - | |
Asynchronous | W | 16 | 16 | Y | - | |
Asynchronous | R | 32 | 16 | Y | Split into 2 FMC accesses | |
Asynchronous | W | 32 | 16 | Y | Split into 2 FMC accesses | |
Asynchronous page | R | - | 16 | N | Mode is not supported | |
Synchronous | R | 8 | 16 | N | - | |
Synchronous | R | 16 | 16 | Y | - | |
Synchronous | R | 32 | 16 | Y | - | |
Synchronous | W | 8 | 16 | Y | Use of byte lanes NBL[1:0] | |
Synchronous | W | 16/32 | 16 | Y | - | |
SRAM and ROM | Asynchronous | R | 16 | Y | - | |
Asynchronous | W | 16 | Y | Use of byte lanes NBL[1:0] | ||
Asynchronous | R | 32 | 16 | Y | Split into 2 FMC accesses | |
Asynchronous | W | 32 | 16 | Y | Split into 2 FMC accesses Use of byte lanes NBL[1:0] |
Bit number | Bit name | Value to set |
---|---|---|
31:24 | Reserved | 0x000 |
23:22 | NBLSET[1:0] | As needed |
20 | CCLKEN | As needed |
19 | CBURSTRW | 0x0 (no effect in Asynchronous mode) |
18:16 | CPSIZE | 0x0 (no effect in Asynchronous mode) |
15 | ASYNCWAIT | Set to 1 if the memory supports this feature. Otherwise keep at 0. |
14 | EXTMOD | 0x0 |
13 | WAITEN | 0x0 (no effect in Asynchronous mode) |
12 | WREN | As needed |
10 | Reserved | 0x0 |
9 | WAITPOL | Meaningful only if bit 15 is 1 |
8 | BURSTEN | 0x0 |
7 | Reserved | 0x1 |
6 | FACCEN | Don't care |
5:4 | MWID | As needed |
3:2 | MTYP | As needed, exclude 0x2 (NOR flash memory) |
1 | MUXE | 0x0 |
0 | MBKEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD HCLK cycles for read accesses, DATAHLD+1 HCLK cycles for write accesses |
29:28 | ACCMOD | Don't care |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don't care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15:8 | DATAST | Duration of the second access phase (DATAST HCLK cycles) |
7:4 | ADDHLD | Don't care |
3:0 | ADDSET | Duration of the first access phase (ADDSET HCLK cycles). Minimum value for ADDSET is 0. |
Bit number | Bit name | Value to set |
---|---|---|
31:24 | Reserved | 0x000 |
23:22 | NBLSET[1:0] | As needed |
20 | CCLKEN | As needed |
19 | CBURSTRW | 0x0 (no effect in Asynchronous mode) |
18:16 | CPSIZE | 0x0 (no effect in Asynchronous mode) |
15 | ASYNCWAIT | Set to 1 if the memory supports this feature. Otherwise keep at 0. |
14 | EXTMOD | 0x1 |
13 | WAITEN | 0x0 (no effect in Asynchronous mode) |
12 | WREN | As needed |
11 | WAITCFG | Don't care |
10 | Reserved | 0x0 |
9 | WAITPOL | Meaningful only if bit 15 is 1 |
8 | BURSTEN | 0x0 |
7 | Reserved | 0x1 |
6 | FACCEN | Don't care |
5:4 | MWID | As needed |
3:2 | MTYP | As needed, exclude 0x2 (NOR flash memory) |
1 | MUXEN | 0x0 |
0 | MBKEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD HCLK cycles for read accesses). |
29:28 | ACCMOD | 0x0 |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don’t care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15:8 | DATAST | Duration of the second access phase (DATAST HCLK cycles) for read accesses. |
7:4 | ADDHLD | Don't care |
3:0 | ADDSET | Duration of the first access phase (ADDSET HCLK cycles) for read accesses. Minimum value for ADDSET is 0. |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD+1 HCLK cycles for write accesses). |
29:28 | ACCMOD | 0x0 |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don't care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15:8 | DATAST | Duration of the second access phase (DATAST HCLK cycles) for write accesses. |
7:4 | ADDHLD | Don't care |
3:0 | ADDSET | Duration of the first access phase (ADDSET HCLK cycles) for write accesses. Minimum value for ADDSET is 0. |
Bit number | Bit name | Value to set |
---|---|---|
31:24 | Reserved | 0x000 |
23:22 | NBLSET[1:0] | Don't care |
20 | CCLKEN | As needed |
19 | CBURSTRW | 0x0 (no effect in Asynchronous mode) |
18:16 | CPSIZE | 0x0 (no effect in Asynchronous mode) |
15 | ASYNCWAIT | Set to 1 if the memory supports this feature. Otherwise keep at 0 . |
14 | EXTMOD | 0x1 for mode B, 0x0 for mode 2 |
13 | WAITEN | 0x0 (no effect in Asynchronous mode) |
12 | WREN | As needed |
11 | WAITCFG | Don't care |
10 | Reserved | 0x0 |
9 | WAITPOL | Meaningful only if bit 15 is 1 |
8 | BURSTEN | 0x0 |
7 | Reserved | 0x1 |
6 | FACCEN | 0x1 |
5:4 | MWID | As needed |
3:2 | MTYP | 0x2 (NOR flash memory) |
1 | MUXEN | 0x0 |
0 | MBKEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD HCLK cycles for read accesses and DATAHLD+1 HCLK cycles for write accesses when Extended mode is disabled) |
29:28 | ACCMOD | 0x1 if Extended mode is set |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don't care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK) |
15:8 | DATAST | Duration of the access second phase (DATAST HCLK cycles) for read accesses. |
7:4 | ADDHLD | Don't care |
3:0 | ADDSET | Duration of the access first phase (ADDSET HCLK cycles) for read accesses. Minimum value for ADDSET is 0. |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD+1 HCLK cycles for write accesses). |
29:28 | ACCMOD | 0x1 if Extended mode is set |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don't care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK) |
15:8 | DATAST | Duration of the access second phase (DATAST HCLK cycles) for write accesses. |
7:4 | ADDHLD | Don’t care |
3:0 | ADDSET | Duration of the access first phase (ADDSET HCLK cycles) for write accesses. Minimum value for ADDSET is 0. |
Bit number | Bit name | Value to set |
---|---|---|
31:24 | Reserved | 0x000 |
23:22 | NBLSET[1:0] | Don't care |
20 | CCLKEN | As needed |
19 | CBURSTRW | 0x0 (no effect in Asynchronous mode) |
18:16 | CPSIZE | 0x0 (no effect in Asynchronous mode) |
15 | ASYNCWAIT | Set to 1 if the memory supports this feature. Otherwise keep at 0 . |
14 | EXTMOD | 0x1 |
13 | WAITEN | 0x0 (no effect in Asynchronous mode) |
12 | WREN | As needed |
11 | WAITCFG | Don't care |
10 | Reserved | 0x0 |
9 | WAITPOL | Meaningful only if bit 15 is 1 |
8 | BURSTEN | 0x0 |
7 | Reserved | 0x1 |
6 | FACCEN | 0x1 |
5:4 | MWID | As needed |
Bit number | Bit name | Value to set |
---|---|---|
3:2 | MTYP | 0x02 (NOR flash memory) |
1 | MUXEN | 0x0 |
0 | MBKEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD HCLK cycles for read accesses). |
29:28 | ACCMOD | 0x2 |
27:24 | DATLAT | 0x0 |
23:20 | CLKDIV | 0x0 |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15:8 | DATAST | Duration of the second access phase (DATAST HCLK cycles) for read accesses. |
7:4 | ADDHLD | Don't care |
3:0 | ADDSET | Duration of the first access phase (ADDSET HCLK cycles) for read accesses. Minimum value for ADDSET is 0 |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD+1 HCLK cycles for write accesses). |
29:28 | ACCMOD | 0x2 |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don't care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15:8 | DATAST | Duration of the second access phase (DATAST HCLK cycles) for write accesses. |
7:4 | ADDHLD | Don't care |
3:0 | ADDSET | Duration of the first access phase (ADDSET HCLK cycles) for write accesses. Minimum value for ADDSET is 0 |
Bit number | Bit name | Value to set |
---|---|---|
31:24 | Reserved | 0x000 |
23:22 | NBLSET[1:0] | As needed |
20 | CCLKEN | As needed |
19 | CBURSTRW | 0x0 (no effect in Asynchronous mode) |
18:16 | CPSIZE | 0x0 (no effect in Asynchronous mode) |
15 | ASYNCWAIT | Set to 1 if the memory supports this feature. Otherwise keep at 0. |
14 | EXTMOD | 0x1 |
13 | WAITEN | 0x0 (no effect in Asynchronous mode) |
12 | WREN | As needed |
11 | WAITCFG | Don't care |
10 | Reserved | 0x0 |
9 | WAITPOL | Meaningful only if bit 15 is 1 |
8 | BURSTEN | 0x0 |
7 | Reserved | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
6 | FACCEN | Set according to memory support |
5:4 | MWID | As needed |
3:2 | MTYP | As needed |
1 | MUXEN | 0x0 |
0 | MBKEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD HCLK cycles for read accesses). |
29:28 | ACCMOD | 0x3 |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don't care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15:8 | DATAST | Duration of the second access phase (DATAST HCLK cycles) for read accesses. |
7:4 | ADDHLD | Duration of the middle phase of the read access (ADDHLD HCLK cycles) |
3:0 | ADDSET | Duration of the first access phase (ADDSET HCLK cycles) for read accesses. Minimum value for ADDSET is 1. |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD+1 HCLK cycles for write accesses). |
29:28 | ACCMOD | 0x3 |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don't care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15:8 | DATAST | Duration of the second access phase (DATAST HCLK cycles). |
7:4 | ADDHLD | Duration of the middle phase of the write access (ADDHLD HCLK cycles) |
3:0 | ADDSET | Duration of the first access phase (ADDSET HCLK cycles) for write accesses. Minimum value for ADDSET is 1 |
Bit number | Bit name | Value to set |
---|---|---|
31:24 | Reserved | 0x000 |
23:22 | NBLSET[1:0] | As needed |
20 | CCLKEN | As needed |
19 | CBURSTRW | 0x0 (no effect in Asynchronous mode) |
18:16 | CPSIZE | 0x0 (no effect in Asynchronous mode) |
15 | ASYNCWAIT | Set to 1 if the memory supports this feature. Otherwise keep at 0. |
14 | EXTMOD | 0x0 |
13 | WAITEN | 0x0 (no effect in Asynchronous mode) |
12 | WREN | As needed |
11 | WAITCFG | Don't care |
10 | Reserved | 0x0 |
9 | WAITPOL | Meaningful only if bit 15 is 1 |
8 | BURSTEN | 0x0 |
7 | Reserved | 0x1 |
6 | FACCEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
5:4 | MWID | As needed |
3:2 | MTYP | 0x2 (NOR flash memory) or 0x1(PSRAM) |
1 | MUXEN | 0x1 |
0 | MBKEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Duration of the data hold phase (DATAHLD HCLK cycles for read accesses, DATAHLD+1 HCLK cycles for write accesses |
29:28 | ACCMOD | 0x0 |
27:24 | DATLAT | Don't care |
23:20 | CLKDIV | Don't care |
19:16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15:8 | DATAST | Duration of the second access phase (DATAST HCLK cycles). |
7:4 | ADDHLD | Duration of the middle phase of the access (ADDHLD HCLK cycles) |
3:0 | ADDSET | Duration of the first access phase (ADDSET HCLK cycles). Minimum value for ADDSET is 1. |
Bit number | Bit name | Value to set |
---|---|---|
31:24 | Reserved | 0x000 |
23:22 | NBLSET[1:0] | Don't care |
20 | CCLKEN | As needed |
19 | CBURSTRW | No effect on synchronous read |
18:16 | CPSIZE | 0x0 (no effect in Asynchronous mode) |
15 | ASYNCWAIT | 0x0 |
14 | EXTMOD | 0x0 |
13 | WAITEN | To be set to 1 if the memory supports this feature, to be kept at 0 otherwise |
12 | WREN | No effect on synchronous read |
11 | WAITCFG | To be set according to memory |
10 | Reserved | 0x0 |
9 | WAITPOL | To be set according to memory |
Bit number | Bit name | Value to set |
---|---|---|
8 | BURSTEN | 0x1 |
7 | Reserved | 0x1 |
6 | FACCEN | Set according to memory support (NOR flash memory) |
5-4 | MWID | As needed |
3-2 | MTYP | 0x1 or 0x2 |
1 | MUXEN | As needed |
0 | MBKEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
31:30 | DATAHLD | Don't care |
29:28 | ACCMOD | 0x0 |
27-24 | DATLAT | Data latency |
27-24 | DATLAT | Data latency |
23-20 | CLKDIV | 0x0 to get CLK = HCLK 0x1 to get CLK = 2 × HCLK .. |
19-16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15-8 | DATAST | Don't care |
7-4 | ADDHLD | Don't care |
3-0 | ADDSET | Don't care |
Bit number | Bit name | Value to set |
---|---|---|
31:24 | Reserved | 0x000 |
23:22 | NBLSET[1:0] | Don't care |
20 | CCLKEN | As needed |
19 | CBURSTRW | 0x1 |
18:16 | CPSIZE | As needed (0x1 for CRAM 1.5) |
15 | ASYNCWAIT | 0x0 |
14 | EXTMOD | 0x0 |
13 | WAITEN | To be set to 1 if the memory supports this feature, to be kept at 0 otherwise. |
Bit number | Bit name | Value to set |
---|---|---|
12 | WREN | 0x1 |
11 | WAITCFG | 0x0 |
10 | Reserved | 0x0 |
9 | WAITPOL | to be set according to memory |
8 | BURSTEN | no effect on synchronous write |
7 | Reserved | 0x1 |
6 | FACCEN | Set according to memory support |
5-4 | MWID | As needed |
3-2 | MTYP | 0x1 |
1 | MUXEN | As needed |
0 | MBKEN | 0x1 |
Bit number | Bit name | Value to set |
---|---|---|
31-30 | DATAHLD | Don't care |
29:28 | ACCMOD | 0x0 |
27-24 | DATLAT | Data latency |
23-20 | CLKDIV | 0x0 to get CLK = HCLK 0x1 to get CLK = 2 × HCLK |
19-16 | BUSTURN | Time between NEx high to NEx low (BUSTURN HCLK). |
15-8 | DATAST | Don't care |
7-4 | ADDHLD | Don't care |
3-0 | ADDSET | Don't care |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | NBLSET[1:0] | WFDIS | CCLK EN | CBURST RW | CPSIZE[2:0] | |||
rw | rw | rw | rw | rw | rw | rw | rw |
ASYNC WAIT | EXT MOD | WAIT EN | WREN | WAIT CFG | Res. | WAIT POL | BURST EN | Res. | FACC EN | MWID[1:0] | MTYP[1:0] | MUX EN | MBK EN | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DATAHLD[1:0] | ACCMOD[1:0] | DATLAT[3:0] | CLKDIV[3:0] | BUSTURN[3:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ADDLILDION | ADDOSTION |
DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DATAHLD[1:0] | ACCMOD[1:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | BUSTURN[3:0] | |||||
rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | |||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Parameter | Function | Access mode | Unit | Min. | Max. |
---|---|---|---|---|---|
Memory setup time | Number of clock cycles (HCLK) required to set up the address before the command assertion | Read/Write | AHB clock cycle (HCLK) | 1 | 255 |
Memory wait | Minimum duration (in HCLK clock cycles) of the command assertion | Read/Write | AHB clock cycle (HCLK) | 2 | 255 |
Memory hold | Number of clock cycles (HCLK) during which the address must be held (as well as the data if a write access is performed) after the command de-assertion | Read/Write | AHB clock cycle (HCLK) | 1 | 254 |
Memory databus high-Z | Number of clock cycles (HCLK) during which the data bus is kept in high-Z state after a write access has started | Write | AHB clock cycle (HCLK) | 1 | 255 |
FMC signal name | I/O | Function |
---|---|---|
A[17] | O | NAND flash address latch enable (ALE) signal |
A[16] | O | NAND flash command latch enable (CLE) signa |
D[7:0] | I/O | 8-bit multiplexed, bidirectional address/data bus |
NCE | O | Chip select |
NOE(= NRE) | O | Output enable (memory signal name: read enable, NRE) |
NWE | O | Write enable |
NWAIT/INT | 1 | NAND flash ready/busy input signal to the FMC |
FMC signal name | I/O | Function |
---|---|---|
A[17] | O | NAND flash address latch enable (ALE) signal |
A[16] | O | NAND flash command latch enable (CLE) signa |
D[15:0] | I/O | 16-bit multiplexed, bidirectional address/data bus |
NCE | O | Chip select |
NOE(= NRE) | O | Output enable (memory signal name: read enable, NRE) |
NWE | O | Write enable |
NWAIT/INT | 1 | NAND flash ready/busy input signal to the FMC |
Device | Mode | R/W | AHB data size | Memory data size | Allowed/ not allowed | Comments |
---|---|---|---|---|---|---|
NAND 8-bit | Asynchronous | R | 8 | 8 | Y | - |
Asynchronous | W | 8 | 8 | Y | - | |
Asynchronous | R | 16 | 8 | Y | Split into 2 FMC accesses | |
Asynchronous | W | 16 | 8 | Y | Split into 2 FMC accesses | |
Asynchronous | R | 32 | 8 | Y | Split into 4 FMC accesses | |
Asynchronous | w | 32 | 8 | Y | Split into 4 FMC accesses | |
NAND 16-bit | Asynchronous | R | 8 | 16 | Y | - |
Asynchronous | W | 8 | 16 | N | - | |
Asynchronous | R | 16 | 16 | Y | - | |
Asynchronous | W | 16 | 16 | Y | - | |
Asynchronous | R | 32 | 16 | Y | Split into 2 FMC accesses | |
Asynchronous | W | 32 | 16 | Y | Split into 2 FMC accesses |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ECCPS[2:0] | TAR3 | ||
rw | rw | rw | rw | ||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
TAR[2:0] | TCLR[3:0] | Res. | Res. | ECCEN | PWID[1:0] | PTYP | PBKEN | PWAITEN | Res. | ||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FEMPT | IFEN | ILEN | IREN | IFS | ILS | IRS |
r | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MEMHIZ[7:0] | MEMHOLD[7:0] | ||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
MEMWAIT(7:0) | MEMSET[7:0] | ||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ATTHIZ[7:0] | ATTHOLD[7:0] | ||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ATTWAIT[7:0] | ATTSET[7:0] | ||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ECC[31:16] | |||||||||||||||
r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ECC[15:0] | |||||||||||||||
r | r | r | r | r | r | r |
ECCPS[2:0] | Page size in bytes | ECC bits |
---|---|---|
000 | 256 | ECC[21:0] |
001 | 512 | ECC[23:0] |
010 | 1024 | ECC[25:0] |
011 | 2048 | ECC[27:0] |
100 | 4096 | ECC[29:0] |
101 | 8192 | ECC[31:0] |
Offset | Register name reset value | 31 | 30 | 23 | 28 | 2726 | 25 | 24 | 232221 | 20 | 1.9 | 1.8仍伯 | 伯1413 | 121110 | 9 | 007 | 54 | 321 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x00 | FMC_BCR1 | B | 8 | y) | SHE | 时LIS | 小时 | [1:0]NBLSETSIGHM | NEPPROO | MYLLSYNGO | CPSIZE [2:0] | LIVMON人SYaowix3NELIVM | Why 12 (1)9.10.11VM | 70d1IVM | NELLSYNANEOOVE | MWID [1:0] | MTYP[1:0]NEXNW | NEWAW | |
Reset value | 000 | 0 | 00 | 01 | 10 | 0 | 0 | 01 | 101 | 1 | |||||||||
0x08 | FMC_BCR2 | 8 | 3 | (1) | 1.00 | SSTA | 好 | 新市 | NBL SET [1:0] | CONDER | MYLLSYNGO | CPSIZE [2:0] | LIVMON人SYCOWLX3NELIVM | Why 129.10.1.1VM | 70d1IVM | NELLSYNA | MWID [1:0] | MTYP[1:0]NEXNW | NEWSW |
Reset value | 00 | │ 0│ 0 | 01 | 10 | 0 | 0 | 01 | 001 | 0 | ||||||||||
0x10 | FMC_BCR3 | 8 | 13 | COM | 33 | BUD3 | S | a | NBL [1:0]SETa | g | Malisango | CPSIZE [2:0] | LIVMON人SVCOWLX3NELIVM | N38M9.10.1.1VM | 70dJIVM | NELLSYNANEJOVE | MWID [1:0] | MTYP[1:0]NEXNW | N3X8W |
Reset value | 00 | 0 | │ 0│ 0 | 01 | 10 | 0 | 0 | 01 | 001 | 0 | |||||||||
0x18 | FMC_BCR4 | B | 3 | 8 | 3SHOP | 3 | 8 | NBL SET [1:0] | MYLLSYNAO | CPSIZE [2:0] | LIVMONASYCOW1X3NELIVM | Why 129.10.1.1VM | 70d1IVM | NELLSYNA | MWID [1:0] | MTYP[1:0]N3XΛW | NEXISW | ||
Reset value | 00 | 000 |0 | 001 | 10 | 0 | 0 | 01 | 001 | 0 | ||||||||||
0x04 | FMC_BTR1 | [0:1] CTHVIVI | [0:1] goweov | DATLAT[3:0] | CLKDIV[3:0] | BUSTURN [3:0] | DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 11 | 11 | 1111 | 111 | 111111111 | 11 | 1111 | |||||||||
0x0C | FMC_BTR2 | [0:1] CTHVIVA | [0:1] gowo v | DATLAT[3:0] | CLKDIV[3:0] | BUSTURN [3:0] | DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 11 | 1 | | 11 | 1 | 111 | 111111111 | 11 | 1111 | ||||||||
0x14 | FMC_BTR3 | [0:1] an HVIV a | [0:1] do wow | DATLAT[3:0] | CLKDIV[3:0] | BUSTURN [3:0] | DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 11 | 1 | 1 | 111 | 1 | 1 | 111 | 111111111 | 11 | 111 | 1 | ||||
0x1C | FMC_BTR4 | [0:1]CTHV1VC | [0:1] gowest | DATLAT[3:0] | CLKDIV[3:0] | BUSTURN [3:0] | DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 11 | 1 | 1 | 111 | 1 | 1 | 111 | 111111111 | 11 | 111 | 1 | ||||
0x20 | FMC PCSCNTR | e | 8 | 9 | 品 | 3的 | 的 | 留 | de3 | N3t81NO | NELLNON379.1N0NE181N0 | CSCOUNT[15:0] | |||||||
Reset value | 0 | 00 | 000 | 000 | 0 | 00 | 00 | 000 | 0 | ||||||||||
0x104 | FMC_BWTR1 | [O': 1]CTHV1VC | [0:1] goweov | LetBUB | y y | 时间 | 新时间Let | 5,549 | BUSTURN [3:0] | DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | |||||||
Reset value | 0 | 0 | 0 | 0 | 1 | 111 | 111 | 111 | 1 | 11 | 11 | 111 | 1 |
Offset | Register name reset value | 31 | 30 | 23 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 2022 | 1.91.8 | 17伯 | 1614 | 13 | 1211 | 109 | 8 | 76 | 54 | 32 | 1 | O |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x10C | FMC_BWTR2 | [0:1] | [0:1] above over | Light | 3 | 3 | 3 | LOUR | : | CHE | STRAND | BUSTURN [3:0] | DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 11 | 11 | 11 | 1 | 11 | 11 | 1 | 11 | 11 | 11 | 1 | 1 | |||||||||
0x114 | FMC_BWTR3 | [0:1] CTHVIVA | [0:1] do work | y | 3 | Mat | 3 | 新鲜 | 3 | y | : | BUSTURN [3:0] | DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 11 | 11 | 11 | 1 | 11 | 11 | 1 | 11 | 11 | 11 | 1 | 1 | |||||||||
0x11C | FMC_BWTR4 | [0:1] | :1] COWOOV | 3 | 3 | 路 | 13 | 路 | S | RAND | 3 | BUSTURN [3:0] | DATAST[7:0] | ADDHLD[3:0] | ADDSET[3:0] | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 11 | 11 | 11 | 1 | 11 | 11 | 1 | 11 | 11 | 11 | 1 | 1 | |||||||||
0x80 | FMC_PCR | 3 | ig | 13 | 3 | 3 | S | y | 3 | 3 | y | 3 | ECCPS [2:0] | TAR[3:0] | TCLR[3:0] | 3 | :N3003 | PWID [1:0] | Problem 2Pre-20 | NELIVMd | 3 | ||||
Reset value | 00 | 00 | 00 | 0 | 00 | 00 | 0 | 01 | 10 | 0 | |||||||||||||||
0x84 | FMC_SR | BUR | Let | BUR | Let | 13.00% | si | 中心g | siB | SupposeLet | ![]() | ![]() | For | STA1dW3- | 止日出2022 | HK$’000III. | HK$’00 | HK$’00 | |||||||
Reset value | 1 | 00 | 00 | 0 | 0 | ||||||||||||||||||||
0x88 | FMC PMEM | MEMHIZx[7:0] | MEMHOLDx[7:0 | MEMWAITx[7:0] | MEMSETx[7:0] | ||||||||||||||||||||
Reset value | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 11 | 00 | 11 | 1 | 11 | 10 | 0 | 11 | 11 | 11 | 0 | 0 | |
0x8C | FMC_PATT | ATTHIZ[7:0] | ATTHOLD[7:0] | ATTWAIT[7:0] | ATTSET[7:0] | ||||||||||||||||||||
Reset value | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 11 | 00 | 11 | 1 | 11 | 10 | 0 | 11 | 11 | 11 | 0 | 0 | |
0x94 | FMC ECCR | ECCx[31:0] | |||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 00 | 00 | 0 | 00 | 00 | 0 | 00 | 00 | 00 | 0 | 0 |
Signal name | Signal type | Description |
---|---|---|
CLK | Digital output | Clock to FLASH 1 and FLASH 2 |
BK1_IO0/SO | Digital input/output | Bidirectional I/O in dual/quad modes or serial output in single mode, for FLASH 1 |
BK1_IO1/SI | Digital input/output | Bidirectional I/O in dual/quad modes or serial input in single mode, for FLASH 1 |
BK1_IO2 | Digital input/output | Bidirectional I/O in quad mode, for FLASH 1 |
BK1_IO3 | Digital input/output | Bidirectional I/O in quad mode, for FLASH 1 |
BK2_IO0/SO | Digital input/output | Bidirectional I/O in dual/quad modes or serial output in single mode, for FLASH 2 |
BK2_IO1/SI | Digital input/output | Bidirectional I/O in dual/quad modes or serial input in single mode, for FLASH 2 |
BK2_IO2 | Digital input/output | Bidirectional I/O in quad mode, for FLASH 2 |
BK2_IO3 | Digital input/output | Bidirectional I/O in quad mode, for FLASH 2 |
BK1_NCS | Digital output | Chip select (active low) for FLASH 1. Can also be used for FLASH 2 if QUADSP is always used in dual-flash mode. |
BK2_NCS | Digital output | Chip select (active low) for FLASH 2. Can also be used for FLASH 1 if QUADSPI is always used in dual-flash mode. |
Interrupt event | Event flag | Enable control bit |
---|---|---|
Timeout | TOF | TOIE |
Status match | SMF | SMIE |
FIFO threshold | FTF | FTIE |
Transfer complete | TCF | TCIE |
Transfer error | TEF | TEIE |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PRESCALER[7:0] | PMM | APMS | Res. | TOIE | SMIE | FTIE | TCIE | TEIE | |||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Resr | Res. | Res. | FTHRES[3:0] | FSEL | DFM | Res. | SSHIF T | TCEN | DMAE N | ABORT | EN | |||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FSIZE[4:0] | ||||
rw | rw | rw | rw | rw | |||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Resr | Res. | Res. | Res. | CSHT[2:0] | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CKMO DE | ||
rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CTOF | CSMF | Res. | CTCF | CTEF |
w | w | w | w |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DL[31:16] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DL[15:0] | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DDRM | DHHC | Res. | SIOO | FMODE[1:0] | DMODE[1:0] | Res. | DCYC[4:0] | ABSIZE[1:0] | |||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ABMODE[1:0] | ADSIZE[1:0] | ADMODE[1:0] | IMODE[1:0] | INSTRUCTION(7:0) | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ADDRESS[31:16] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ADDRESS[15:0] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ALTERNATE[31:16] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ALTERNATE[15:0] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
DATA[15:0] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MASK[31:16] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
MASK[15:0] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
MATCHNO.01 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Offset | Register name | 31 | 30 | 23 | 23 | 27 | 26 | 26 | 24 | 23 | 22 | 21 | 20 | 1. | 1. | 17 | 伯 | 1.5 | 14 | 1 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | O |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x000 | QUADSPI_CR | PRESCALER[7:0] | Problem | Antonio | SUB | TOUT | Source | HE | TOUT | 千港元 | LUMB | Life | 时 | LIST | FTHRES [3:0] | ECCO | DEL | 3 | LHIHSS | For | NEWWO | Acta | 五 | ||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||
0x004 | QUADSPI_DCR | a | W | of | u4 qu3 | si | LUS | LUE | 3 | of | Let | 新鲜 | FSIZE[4:0] | 中心 | LIS | a | LUB | STA | CSHT | of | y3 | y y | LUB | Let | y4 | 3 | 300W20 | ||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||
0x008 | QUADSPI SR | y | of | ai | 3 | W | y | 中國 | gi | ai | g | 3 | a | 中华 | y | 3 | 好 | 3 | FLEVEL[4:0] | BB | PO | Source | 千港元 | t | 世 | ||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||
0x00C | QUADSPI FCR | 奶茶 | gi | : | COMP | 3 | S | 3 | 的 | gi | S | 0 | S | CHIP | : | 3 | 3 | 坊 | 3 | 3 | 3 | 3 | 3 | gi | S | 3 | SUB | 3 | CON | COMPER | TOUT | LUE | |
Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
0x010 | QUADSPIDLR | DL[31:0] | |||||||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
0x014 | QUADSPI CCR | WYCC | DEE | So | 300W3 | (1,191) | 300W0 | 1.00 | 坊中 | DCYC[4:0] | 321S8V | (1,001) | 300WAV(1,011) | 32ISCV | 1,010 | 300W(1,011) | 300WI | 1.19 | INSTRUCTION(7:0) | ||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||
0x018 | QUADSPIAR | ADDRESSI31:01 | |||||||||||||||||||||||||||||||
Reset value | O | OOOOO00O0O0![]() ![]() ![]() | O | ||||||||||||||||||||||||||||||
0x01C | QUADSPIABR | Al | |||||||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
0x020 | QUADSPIDR | DATA131:0 | |||||||||||||||||||||||||||||||
Reset value | OOOOOOO0OO0OO0OOO0OOO0OOOOOO00O0 |
Offset | Register name | 31 | 30 | 23 | 28 | 27 | 26 | 26 | 24 | 23 | 22 | 21 | 20 | 1. | 1 | 17 | 伯 | 16 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | O |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x024 | QUADSPT PSMKR | MASK[31:0] | |||||||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | O | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
0x028 | QUADSPI PSMAR | MATCH[31:0] | |||||||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | O | O | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
0x02C | QUADSPI PIR | 3 | y3 | si | 3 | 3 | 3 | 3 | 3 | si | 3 | 3 | y2 | 3 | 3 | 好 | INTERVAL[15:0] | ||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
0x030 | QUADSPI LPTR | si | y | si | 3 | 3 | 3 | TIMEOUT[15:0] | |||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ADC modes/features | ADC1 | ADC2 | ADC3 | ADC4 | ADC5 |
---|---|---|---|---|---|
Dual mode | X (coupled together) | X (coupled together) | - |
Internal signal name | Signal type | Description |
---|---|---|
adc_ext_trg[31:0] | Inputs | Up to 32 external trigger inputs for the regular conversions (can be connected to on-chip timers). These inputs are shared between the ADC master and the ADC slave. |
adc_jext_trg[31:0] | Inputs | Up to 31 external trigger inputs for the injected conversions (can be connected to on-chip timers). These inputs are shared between the ADC master and the ADC slave. |
adc_awdx_out | Output | Internal analog watchdog output signal connected to on-chip timers (x = Analog watchdog number 1,2,3) |
adc_ker_ck | Output | ADC kernel clock |
adc_hclk | Input | ADC peripheral clock |
adc_it | Output | ADC interrupt |
adc_dma | Output | ADC DMA request |
Input | Output voltage from internal temperature sensor | |
VREFINT | Input | Output voltage from internal reference voltage |
Input supply | External battery voltage supply |
Pin name | Signal type | Comments |
---|---|---|
VREF+ | Input, analog reference positive | The higher/positive reference voltage for the ADC |
VDDA | Input, analog supply | Analog power supply equal V |
VREF- | Input, analog reference negative | The lower/negative reference voltage for the ADC. |
VSSA | Input, analog supply ground | Ground for analog power supply. On device package which do not have a dedicated |
Positive analog input channels for each ADC | Connected either to ADCx INPi external channels or to internal channels. This input is converted in single- ended mode | |
VINNI | Negative analog input channels for each ADC | Connected either to |
Pin name | Signal type | Comments |
---|---|---|
ADCx_INNi | Negative external analog input signals | Up to 19 analog input channels |
ADCx_INPi | Positive external analog input signals | Up to 19 analog input channels (x = ADC number = 1, 2, 3, 4 or 5). Refer to Section 21.4.4: ADC1/2/3/4/5 connectivity for details |
21.4.7 | Single-ended and differential input channels |
Channels can be configured to be either single-ended input or differential input by programming DIFSEL[i] bits in the ADC_DIFSEL register. This configuration must be written while the ADC is disabled (ADEN = 0). Note that the DIFSEL[i] bits corresponding to single- ended channels are always programmed at 0. | |
In single-ended input mode, the analog voltage to be converted for channel “i” is th difference between the ADCy_INPx external voltage equal to | |
In differential input mode, the analog voltage to be converted for channel “i” is the difference between the ADCy_INPx external voltage positive input equal to | |
The input voltage in differential mode ranges from | |
The ADC sensitivity in differential mode is twice smaller than in single-ended mode | |
When ADC is configured as differential mode, both inputs should be biased at | |
The input signals are supposed to be differential (common mode voltage should be fixed). | |
Internal channels (such as | |
For a complete description of how the input channels are connected for each ADC, refer to Section 21.4.4: ADC1/2/3/4/5 connectivity. | |
Caution: | When configuring the channel “i” in differential input mode, its negative input voltage |
21.4.8 | Calibration (ADCAL, ADCALDIF, ADC_CALFACT) |
Each ADC provides an automatic calibration procedure which drives all the calibration sequence including the power-on/off sequence of the ADC. During the procedure, the ADC calculates a calibration factor which is 7-bit wide and which is applied internally to the ADC until the next ADC power-off. During the calibration procedure, the application must not use the ADC and must wait until calibration is complete. | |
Calibration is preliminary to any ADC operation. It removes the offset error which may vary from chip to chip due to process or bandgap variation | |
The calibration factor to be applied for single-ended input conversions is different from the factor to be applied for differential input conversions: | |
- Write ADCALDIF | |
Write ADCALDIF |
EXTEN[1:0] | Source |
---|---|
00 | Hardware Trigger detection disabled, software trigger detection enabled |
01 | Hardware Trigger with detection on the rising edge |
10 | Hardware Trigger with detection on the falling edge |
11 | Hardware Trigger with detection on both the rising and falling edges |
JEXTEN[1:0] | Source |
---|---|
00 | – If JQDIS = 1 (Queue disabled): Hardware trigger detection disabled, software trigger detection enabled – If JQDIS = 0 (Queue enabled), Hardware and software trigger detection disabled |
01 | Hardware Trigger with detection on the rising edge |
10 | Hardware Trigger with detection on the falling edge |
11 | Hardware Trigger with detection on both the rising and falling edges |
Name | Source | Type | EXTSEL[4:0] |
---|---|---|---|
adc_ext_trg | tim1_oc1 | Internal signal from on-chip timers | 00000 |
adc_ext_trg1 | tim1_oc2 | Internal signal from on-chip timers | 00001 |
adc_ext_trg2 | tim1_oc3 | Internal signal from on-chip timers | 00010 |
adc_ext_trg3 | tim2_oc2 | Internal signal from on-chip timers | 00011 |
adc_ext_trg4 | tim3_trgo | Internal signal from on-chip timers | 00100 |
adc_ext_trg5 | tim4_oc4 | Internal signal from on-chip timers | 00101 |
adc_ext_trg6 | EXTI line 11 | External pin | 00110 |
adc_ext_trg7 | tim8_trgo | Internal signal from on-chip timers | 00111 |
adc_ext_trg8 | tim8_trgo2 | Internal signal from on-chip timers | 01000 |
Name | Source | Type | EXTSEL[4:0] |
---|---|---|---|
adc_ext_trg9 | tim1_trgo | Internal signal from on-chip timers | 01001 |
adc_ext_trg10 | tim1_trgo2 | Internal signal from on-chip timers | 01010 |
adc_ext_trg11 | tim2_trgo | Internal signal from on-chip timers | 01011 |
adc_ext_trg12 | tim4_trgo | Internal signal from on-chip timers | 01100 |
adc_ext_trg13 | tim6_trgo | Internal signal from on-chip timers | 01101 |
adc_ext_trg14 | tim15_trgo | Internal signal from on-chip timers | 01110 |
adc_ext_trg15 | tim3_oc4 | Internal signal from on-chip timers | 01111 |
adc_ext_trg16 | tim20_trgo | Internal signal from on-chip timers | 10000 |
adc_ext_trg17 | tim20_trgo2 | Internal signal from on-chip timers | 10001 |
adc_ext_trg18 | tim20_oc1 | Internal signal from on-chip timers | 10010 |
adc_ext_trg19 | tim20_oc2 | Internal signal from on-chip timers | 10011 |
adc_ext_trg20 | tim20_oc3 | Internal signal from on-chip timers | 10100 |
adc_ext_trg21 | hrtim_adc_trg1 | Internal signal from on-chip timers | 10101 |
adc_ext_trg22 | hrtim_adc_trg3 | Internal signal from on-chip timers | 10110 |
adc_ext_trg23 | hrtim_adc_trg5 | Internal signal from on-chip timers | 10111 |
adc_ext_trg24 | hrtim_adc_trg6 | Internal signal from on-chip timers | 11000 |
adc_ext_trg25 | hrtim_adc_trg7 | Internal signal from on-chip timers | 11001 |
adc_ext_trg26 | hrtim_adc_trg8 | Internal signal from on-chip timers | 11010 |
adc_ext_trg27 | hrtim_adc_trg9 | Internal signal from on-chip timers | 11011 |
adc_ext_trg28 | hrtim_adc_trg10 | Internal signal from on-chip timers | 11100 |
adc_ext_trg29 | lptim_out | Internal signal from on-chip timers | 11101 |
adc_ext_trg30 | tim7_trgo | Internal signal from on-chip timers | 11110 |
adc_ext_trg31 | reserved | - | 111111 |
Name | Source | Type | JEXTSEL[4:0] |
---|---|---|---|
adc_jext_trg0 | tim1_trgo | Internal signal from on-chip timers | 00000 |
adc_jext_trg1 | tim1_oc4 | Internal signal from on-chip timers | 00001 |
adc_jext_trg2 | tim2_trgo | Internal signal from on-chip timers | 00010 |
adc_jext_trg3 | tim2_oc1 | Internal signal from on-chip timers | 00011 |
adc_jext_trg4 | tim3_oc4 | Internal signal from on-chip timers | 00100 |
adc_jext_trg5 | tim4_trgo | Internal signal from on-chip timers | 00101 |
adc_jext_trg6 | EXTI line 15 | External pin | 00110 |
adc_jext_trg7 | tim8_oc4 | Internal signal from on-chip timers | 00111 |
adc_jext_trg8 | tim1_trgo2 | Internal signal from on-chip timers | 01000 |
Name | Source | Type | JEXTSEL[4:0] |
---|---|---|---|
adc_jext_trg9 | tim8_trgo | Internal signal from on-chip timers | 01001 |
adc_jext_trg10 | tim8_trgo2 | Internal signal from on-chip timers | 01010 |
adc_jext_trg11 | tim3_oc3 | Internal signal from on-chip timers | 01011 |
adc_jext_trg12 | tim3_trgo | Internal signal from on-chip timers | 01100 |
adc_jext_trg13 | tim3_oc1 | Internal signal from on-chip timers | 01101 |
adc_jext_trg14 | tim6_trgo | Internal signal from on-chip timers | 01110 |
adc_jext_trg15 | tim15_trgo | Internal signal from on-chip timers | 01111 |
adc_jext_trg16 | tim20_trgo | Internal signal from on-chip timers | 10000 |
adc_jext_trg17 | tim20_trgo2 | Internal signal from on-chip timers | 10001 |
adc_jext_trg18 | tim20_oc4 | Internal signal from on-chip timers | 10010 |
adc_jext_trg19 | hrtim_adc_trg2 | Internal signal from on-chip timers | 10011 |
adc_jext_trg20 | hrtim_adc_trg4 | Internal signal from on-chip timers | 10100 |
adc_jext_trg21 | hrtim_adc_trg5 | Internal signal from on-chip timers | 10101 |
adc_jext_trg22 | hrtim_adc_trg6 | Internal signal from on-chip timers | 10110 |
adc_jext_trg23 | hrtim_adc_trg7 | Internal signal from on-chip timers | 10111 |
adc_jext_trg24 | hrtim_adc_trg8 | Internal signal from on-chip timers | 11000 |
adc_jext_trg25 | hrtim_adc_trg9 | Internal signal from on-chip timers | 11001 |
adc_jext_trg26 | hrtim_adc_trg10 | Internal signal from on-chip timers | 11010 |
adc_jext_trg27 | tim16_oc1 | Internal signal from on-chip timers | 11011 |
adc_jext_trg28 | reserved | - | 11100 |
adc_iext_trg29 | lptim_out | Internal signal from on-chip timers | 11101 |
adc_jext_trg30 | tim7_trgo | Internal signal from on-chip timers | 11110 |
adc_jext_trg31 | reserved | - | 111111 |
Name | Source | Type | EXTSEL[4:0] |
---|---|---|---|
adc_ext_trg0 | tim3_oc1 | Internal signal from on-chip timers | 00000 |
adc_ext_trg1 | tim2_oc3 | Internal signal from on-chip timers | 00001 |
adc_ext_trg2 | tim1_oc3 | Internal signal from on-chip timers | 00010 |
adc_ext_trg3 | tim8_oc1 | Internal signal from on-chip timers | 00011 |
adc_ext_trg4 | tim3_trgo | Internal signal from on-chip timers | 00100 |
adc_ext_trg5 | EXTI line 2 | External pin | 00101 |
adc_ext_trg6 | tim4_oc1 | Internal signal from on-chip timers | 00110 |
adc_ext_trg7 | tim8_trgo | Internal signal from on-chip timers | 00111 |
Name | Source | Type | EXTSEL[4:0] |
---|---|---|---|
adc_ext_trg8 | tim8_trgo2 | Internal signal from on-chip timers | 01000 |
adc_ext_trg9 | tim1_trgo | Internal signal from on-chip timers | 01001 |
adc_ext_trg10 | tim1_trgo2 | Internal signal from on-chip timers | 01010 |
adc_ext_trg11 | tim2_trgo | Internal signal from on-chip timers | 01011 |
adc_ext_trg12 | tim4_trgo | Internal signal from on-chip timers | 01100 |
adc_ext_trg13 | tim6_trgo | Internal signal from on-chip timers | 01101 |
adc_ext_trg14 | tim15_trgo | Internal signal from on-chip timers | 01110 |
adc_ext_trg15 | tim2_oc1 | Internal signal from on-chip timers | 01111 |
adc_ext_trg16 | tim20_trgo | Internal signal from on-chip timers | 10000 |
adc_ext_trg17 | tim20_trgo2 | Internal signal from on-chip timers | 10001 |
adc_ext_trg18 | tim20_oc1 | Internal signal from on-chip timers | 10010 |
adc_ext_trg19 | hrtim_adc_trg2 | Internal signal from on-chip timers | 10011 |
adc_ext_trg20 | hrtim_adc_trg4 | Internal signal from on-chip timers | 10100 |
adc_ext_trg21 | hrtim_adc_trg1 | Internal signal from on-chip timers | 10101 |
adc_ext_trg22 | hrtim_adc_trg3 | Internal signal from on-chip timers | 10110 |
adc_ext_trg23 | hrtim_adc_trg5 | Internal signal from on-chip timers | 10111 |
adc_ext_trg24 | hrtim_adc_trg6 | Internal signal from on-chip timers | 11000 |
adc_ext_trg25 | hrtim_adc_trg7 | Internal signal from on-chip timers | 11001 |
adc_ext_trg26 | hrtim_adc_trg8 | Internal signal from on-chip timers | 11010 |
adc_ext_trg27 | hrtim_adc_trg9 | Internal signal from on-chip timers | 11011 |
adc_ext_trg28 | hrtim_adc_trg10 | Internal signal from on-chip timers | 11100 |
adc_ext_trg29 | lptim_out | Internal signal from on-chip timers | 11101 |
adc_ext_trg30 | tim7_trgo | Internal signal from on-chip timers | 11110 |
adc_ext_trg31 | reserved | - | 11111 |
Name | Source | Type | JEXTSEL[4:0] |
---|---|---|---|
adc_jext_trg0 | tim1_trgo | Internal signal from on-chip timers | 00000 |
adc_jext_trg1 | tim1_oc4 | Internal signal from on-chip timers | 00001 |
adc_jext_trg2 | tim2_trgo | Internal signal from on-chip timers | 00010 |
adc_jext_trg3 | tim8_oc2 | Internal signal from on-chip timers | 00011 |
adc_jext_trg4 | tim4_oc3 | Internal signal from on-chip timers | 00100 |
adc_jext_trg5 | tim4_trgo | Internal signal from on-chip timers | 00101 |
adc_jext_trg6 | tim4_oc4 | Internal signal from on-chip timers | 00110 |
adc_jext_trg7 | tim8_oc4 | Internal signal from on-chip timers | 00111 |
Name | Source | Type | JEXTSEL[4:0] |
---|---|---|---|
adc_jext_trg8 | tim1_trgo2 | Internal signal from on-chip timers | 01000 |
adc_jext_trg9 | tim8_trgo | Internal signal from on-chip timers | 01001 |
adc_jext_trg10 | tim8_trgo2 | Internal signal from on-chip timers | 01010 |
adc_jext_trg11 | tim1_oc3 | Internal signal from on-chip timers | 01011 |
adc_jext_trg12 | tim3_trgo | Internal signal from on-chip timers | 01100 |
adc_jext_trg13 | EXTI line 3 | External pin | 01101 |
adc_jext_trg14 | tim6_trgo | Internal signal from on-chip timers | 01110 |
adc_jext_trg15 | tim15_trgo | Internal signal from on-chip timers | 01111 |
adc_jext_trg16 | tim20_trgo | Internal signal from on-chip timers | 10000 |
adc_jext_trg17 | tim20_trgo2 | Internal signal from on-chip timers | 10001 |
adc_jext_trg18 | tim20_oc2 | Internal signal from on-chip timers | 10010 |
adc_jext_trg19 | hrtim_adc_trg2 | Internal signal from on-chip timers | 10011 |
adc_jext_trg20 | hrtim_adc_trg4 | Internal signal from on-chip timers | 10100 |
adc_jext_trg21 | hrtim_adc_trg5 | Internal signal from on-chip timers | 10101 |
adc_jext_trg22 | hrtim_adc_trg6 | Internal signal from on-chip timers | 10110 |
adc_jext_trg23 | hrtim_adc_trg7 | Internal signal from on-chip timers | 10111 |
adc_jext_trg24 | hrtim_adc_trg8 | Internal signal from on-chip timers | 11000 |
adc_jext_trg25 | hrtim_adc_trg9 | Internal signal from on-chip timers | 11001 |
adc_jext_trg26 | hrtim_adc_trg10 | Internal signal from on-chip timers | 11010 |
adc_jext_trg27 | hrtim_adc_trg1 | Internal signal from on-chip timers | 11011 |
adc_jext_trg28 | hrtim_adc_trg3 | Internal signal from on-chip timers | 11100 |
adc_jext_trg29 | lptim_out | Internal signal from on-chip timers | 11101 |
adc_jext_trg30 | tim7_trgo | Internal signal from on-chip timers | 11110 |
adc_jext_trg31 | reserved | - | 111111 |
reset and the injected channel sequence switches are launched (all the injected channels are converted once). | |
3. Then, the regular conversion of the regular group of channels is resumed from the las interrupted regular conversion. | |
4. If a regular event occurs during an injected conversion, the injected conversion is not interrupted but the regular sequence is executed at the end of the injected sequence. Figure 98 shows the corresponding timing diagram. | |
Note: | When using triggered injection, one must ensure that the interval between trigger events is longer than the injection sequence. For instance, if the sequence length is 30 ADC cloud is a first real constant. cycles (that is two conversions with a sampling time of 2.5 clock periods), the minimum interval between triggers must be 31 ADC clock cycles. |
Auto-injection mode | |
If the JAUTO bit in the ADC_CFGR register is set, then the channels in the injected group are automatically converted after the regular group of channels. This can be used to converted to converge to the convergence. a sequence of up to 20 conversions programmed in the ADC_SQRy and ADC_JSQR registers. | |
In this mode, the ADSTART bit in the ADC_CR register must be set to start regula conversions, followed by injected conversions (JADSTART must be kept cleared). Se the ADSTP bit aborts both regular and injected conversions (JADSTP bit must not be used) | |
In this mode, external trigger on injected channels must be disabled | |
if the CONT bit is also set in addition to the JAUTO bit, regular channels followed by injecte channels are continuously converted. | |
Note: | It is not possible to use both the auto-injected and discontinuous modes simultaneously. |
When the DMA is used for exporting regular sequencer’s data in JAUTO mode, it is necessary to program it in circular mode (CIRC bit set in DMA_CCRx register). If the CIF bit is reset (single-shot mode), the JAUTO sequence is stopped upon DMA Transfer Complete event. | |
RES (bits) | Tsar (ns) at | Tconv (ns) at | ||
---|---|---|---|---|
12 | 12.5 ADC clock cycles | 416.67 ns | 15 ADC clock cycles | 500.0 ns |
10 | 10.5 ADC clock cycles | 350.0 ns | 13 ADC clock cycles | 433.33 ns |
8 | 8.5 ADC clock cycles | 203.33 ns | 11 ADC clock cycles | 366.67 ns |
6 | 6.5 ADC clock cycles | 216.67 ns | 9 ADC clock cycles | 300.0 ns |
Data register, data alignment and offset (ADC_DR, OFFSETy, OFFSETy_CH, ALIGN) | |
Data and alignment | |
At the end of each regular conversion channel (when EOC event occurs), the result of the converted data is stored into the ADC_DR data register which is 16 bits wide. | |
At the end of each injected conversion channel (when JEOC event occurs), the result converted data is stored into the corresponding ADC_JDRy data register which is 16 bits wide. | |
The ALIGN bit in the ADC_CFGR register selects the alignment of the data stored a conversion. Data can be right- or left-aligned as shown in Figure 115, Figure 116, Figure 11 and Figure 118. | |
Special case: when left-aligned, the data are aligned on a half-word basis except when the resolution is set to 6-bit. In that case, the data are aligned on a byte basis as shown in Figure 117 and Figure 118. | |
Note: | Left -alignment is not supported in oversampling mode. When ROVSE and/or JOVSE bit is set, the ALIGN bit value is ignored and the ADC only provides right-aligned data. |
Offset | |
An offset y (y = 1,2,3,4) can be applied to a channel by setting the bit OFFSETy_EN = 1 into ADC_OFRy register. The channel to which the offset is applied is programmed into the bits OFFSETy_CH[4:0] of ADC_OFRy register. In this case, the converted value is decreased by the user-defined offset written in the bits OFFSETy[11:0]. The result may be a negativ value so the read data is signed and the SEXT bit represents the extended sign value. | |
Note: | Offset correction is not supported in oversampling mode. When ROVSE and/or JOVSE bit i set, the value of the OFFSETy_EN bit in ADC_OFRy register is ignored (considered as reset). |
Table 170 describes how the comparison is performed for all the possible resolutions for analog watchdog 1. | |
Resolution (bits RES[1:0]) | Subtraction between raw converted data and offset | Result | Comments | |
---|---|---|---|---|
Raw converted Data, left aligned | Offset | |||
00: 12-bit | DATA[11:0] | OFFSET[11:0] | Signed 12-bit data | - |
01: 10-bit | DATA[11:2],00 | OFFSET[11:0] | Signed 10-bit data | The user must configure OFFSET[1:0] to 00 |
Resolution (bits RES[1:0]) | Subtraction between raw converted data and offset | Result | Comments | |
---|---|---|---|---|
Raw converted Data, left aligned | Offset | |||
10: 8-bit | DATA[11:4],00 00 | OFFSET[11:0] | Signed 8-bit data | The user must configure OFFSET[3:0] to 0000 |
11: 6-bit | DATA[11:6],00 0000 | OFFSET[11:0] | Signed 6-bit data | The user must configure OFFSET[5:0] to 000000 |
DMA circular mode (DMACFG = 1) | |
In this mode, the ADC generates a DMA transfer request each time a new conversion data is available in the data register, even if the DMA has reached the last DMA transfer. This allows configuring the DMA in circular mode to handle a continuous analog input data stream. | |
21.4.27 | Dynamic low-power features |
Auto-delayed conversion mode (AUTDLY) | |
The ADC implements an auto-delayed conversion mode controlled by the AUTDLY configuration bit. Auto-delayed conversions are useful to simplify the software as well as to optimize performance of an application clocked at low frequency where there would be risk of encountering an ADC overrun. | |
When AUTDLY = 1, a new conversion can start only if all the previous data of the same group has been treated: | |
For a regular conversion: once the ADC_DR register has been read or if the EOC bi has been cleared (see Figure 120). | |
- For an injected conversion: when the JEOS bit has been cleared (see Figure 121). | |
This is a way to automatically adapt the speed of the ADC to the speed of the system which reads the data. | |
The delay is inserted after each regular conversion (whatever DISCEN = 0 or 1) and after each sequence of injected conversions (whatever JDISCEN = 0 or 1). | |
Note: | There is no delay inserted between each conversions of the injected sequence, except after the last one. |
During a conversion, a hardware trigger event (for the same group of conversions) occurring during this delay is ignored. | |
Note: | This is not true for software triggers where it remains possible during this delay to set the bits ADSTART or JADSTART to restart a conversion: it is up to the software to read the data to the same constant. before launching a new conversion. |
No delay is inserted between conversions of different groups (a regular conversion followed by an injected conversion or conversely): | |
’ If an injected trigger occurs during the automatic delay of a regular conversion, the injected conversion starts immediately (see Figure 121) | |
Once the injected sequence is complete, the ADC waits for the delay (if not ended) of the previous regular conversion before launching a new regular conversion (see Figure 123). | |
The behavior is slightly different in auto-injected mode (JAUTO = 1) where a new regular conversion can start only when the automatic delay of the previous injected sequence of conversion has ended (when JEOS has been cleared). This is to ensure that the software can read all the data of a given sequence before starting a new sequence (see Figure 124 | |
Channels guarded by the analog watchdog | AWD1SGL bit | AWD1EN bit | JAWD1EN bit |
---|---|---|---|
None | X | 0 | 0 |
All injected channels | 0 | 0 | 1 |
All regular channels | 0 | 1 | 0 |
All regular and injected channels | 0 | 1 | 1 |
Single(1) injected channel | 1 | 0 | 1 |
Single(1) regular channel | 1 | 1 | 0 |
Single(1) regular or injected channel | 1 | 1 | 1 |
Resolution( bit RES[1:0]) | Analog watchdog comparison between: | Comments | |
---|---|---|---|
Raw converted data, left aligned(1) | Thresholds | ||
00: 12-bit | DATA[11:0] | LT1[11:0] and HT1[11:0] | - |
01: 10-bit | DATA[11:2],00 | LT1[11:0] and HT1[11:0] | User must configure LT1[1:0] and HT1[1:0] to 00 |
10: 8-bit | DATA[11:4],0000 | LT1[11:0] and HT1[11:0] | User must configure LT1[3:0] and HT1[3:0] to 0000 |
11: 6-bit | DATA[11:6],000000 | LT1[11:0] and HT1[11:0] | User must configure LT1[5:0] and HT1[5:0] to 000000 |
Resolution (bits RES[1:0]) | Analog watchdog comparison between: | Comments | |
---|---|---|---|
Raw converted data, left aligned(1) | Thresholds | ||
00: 12-bit | DATA[11:4] | LTx[7:0] and HTx[7:0] | DATA[3:0] are not relevant for the comparison |
01: 10-bit | DATA[11:4] | LTx[7:0] and HTx[7:0] | DATA[3:2] are not relevant for the comparison |
10: 8-bit | DATA[11:4] | LTx[7:0] and HTx[7:0] | - |
11: 6-bit | DATA[11:6],00 | LTx[7:0] and HTx[7:0] | User must configure LTx[1:0] and HTx[1:0] to 00 |
Over sampling ratio | Max Raw data | No-shift OVSS = 0000 | 1-bit shift OVSS = 0001 | 2-bit shift OVSS = 0010 | 3-bit shift OVSS = 0011 | 4-bit shift OVSS = 0100 | 5-bit shift OVSS = 0101 | 6-bit shift OVSS = 0110 | 7-bit shift OVSS = 0111 | 8-bit shift OVSS = 1000 |
---|---|---|---|---|---|---|---|---|---|---|
2x | 0x1FFE | 0x1FFE | 0x0FFF | 0x0800 | 0x0400 | 0x0200 | 0x0100 | 0x0080 | 0x0040 | 0x020 |
4x | 0x3FFC | 0x3FFC | 0x1FFE | 0x0FFF | 0x0800 | 0x0400 | 0x0200 | 0x0100 | 0x0080 | 0x0040 |
8x | 0x7FF8 | 0x7FF8 | 0x3FFC | 0x1FFE | 0x0FFF | 0x0800 | 0x0400 | 0x0200 | 0x0100 | 0x0080 |
16x | 0xFFF0 | 0xFFF0 | 0x7FF8 | 0x3FFC | 0x1FFE | 0x0FFF | 0x0800 | 0x0400 | 0x0200 | 0x0100 |
32x | 0x1FFE0 | 0xFFE0 | 0xFFF0 | 0x7FF8 | 0x3FFC | 0x1FFE | 0x0FFF | 0x0800 | 0x0400 | 0x0200 |
64x | 0x3FFC0 | 0xFFC0 | 0xFFE0 | 0xFFF0 | 0x7FF8 | 0x3FFC | 0x1FFE | 0x0FFF | 0x0800 | 0x0400 |
128x | 0x7FF80 | 0xFF80 | 0xFFC0 | 0xFFE0 | 0xFFF0 | 0x7FF8 | 0x3FFC | 0x1FFE | 0x0FFF | 0x0800 |
256x | 0xFFF00 | 0xFF00 | 0xFF80 | 0xFFC0 | 0xFFE0 | 0xFFF0 | 0x7FF8 | 0x3FFC | 0x1FFE | 0x0FFF |
RM0440 | Analog-to-digital converters (ADC |
---|---|
conversions,with an equivalent delay equal to | |
- The end of the sampling phase (EOSMP) is set after each sampling phase | |
The end of conversion (EOC) occurs once every N conversions, when the oversampled result is available | |
The end of sequence (EOS) occurs once the sequence of oversampled data i completed (i.e. after | |
ADC operating modes supported when oversampling (single ADC mode | |
In oversampling mode, most of the ADC operating modes are maintained | |
- Single or continuous mode conversions | |
- ADC conversions start either by software or with triggers | |
- ADC stop during a conversion (abort | |
- Data read via CPU or DMA with overrun detection | |
- Low-power modes (AUTDLY | |
- Programmable resolution: in this case, the reduced conversion values (as per RES[1:0 bits in ADC_CFGR1 register) are accumulated, truncated, rounded and shifted in the same way as 12-bit conversions are | |
Note: | The alignment mode is not available when working with oversampled data. The ALIGN bit in ADC_CFGR1 is ignored and the data are always provided right-aligned |
Offset correction is not supported in oversampling mode. When ROVSE and/or JOVSE bit is set, the value of the OFFSETy_EN bit in ADC_OFRy register is ignored (considered a. reset). | |
Analog watchdog | |
The analog watchdog functionality is maintained, with the following difference - The RES[1:0] bits are ignored, comparison is always done using the full 12-bit values HT[11:0] and LT[11:0] | |
’ the comparison is performed on the most significant 12-bit of the 16-bit oversampled results ADC_DR[15:4] | |
Note: | Care must be taken when using high shifting values, since this reduces the comparison range. For instance, if the oversampled result is shifted by 4 bits, thus yielding a 12-bit data right-aligned, the effective analog watchdog comparison can only be performed on 8 bits. The comparison is done between ADC_DR[11:4] and HT[0:7] / LT[[0:7], and HT[11:8] / LT[11:8] must be kept reset. |
Triggered mode | |
The averager can also be used for basic filtering purpose. Although not a very powerful filt (slow roll-off and limited stop band attenuation), it can be used as a notch filter to reject constant parasitic frequencies (typically coming from the mains or from a switched mode power supply). For this purpose, a specific discontinuous mode can be enabled with TROVS bit in ADC_CFGR2, to be able to have an oversampling frequency defined by a user and independent from the conversion time itself. | |
Figure 132 below shows how conversions are started in response to triggers during discontinuous mode. | |
If the TROVS bit is set, the content of the DISCEN bit is ignored and considered as 1 | |
Regular Oversampling ROVSE | Injected Oversampling JOVSE | Oversampler mode ROVSM 0 = continued 1 = resumed | Triggered Regular mode TROVS | Comment |
---|---|---|---|---|
1 | 0 | 0 | 0 | Regular continued mode |
1 | 0 | 0 | 1 | Not supported |
1 | 0 | 1 | 0 | Regular resumed mode |
1 | 0 | 1 | 1 | Triggered regular resumed mode |
1 | 1 | 0 | X | Not supported |
1 | 1 | 1 | 0 | Injected and regular resumed mode |
1 | 1 | 1 | 1 | Not supported |
0 | 1 | X | X | Injected oversampling |
Mode | Description |
---|---|
Sleep | No effect. DMA requests are functional. |
Low-power run | No effect. |
Low-power sleep | No effect. DMA requests are functional. |
Stop 0/Stop 1 | The ADC is not operational. Its state is kept The ADC consumes the static current recommended to disable the peripheral in advance in order to reduce power consumption |
Standby | The ADC is powered down and must be reinitialized after exiting Standby or Shutdown mode. |
Shutdown |
Interrupt event | Event flag | Enable control bit |
---|---|---|
ADC ready | ADRDY | ADRDYIE |
End of conversion of a regular group | EOC | EOCIE |
End of sequence of conversions of a regular group | EOS | EOSIE |
End of conversion of a injected group | JEOC | JEOCIE |
End of sequence of conversions of an injected group | JEOS | JEOSIE |
Analog watchdog 1 status bit is set | AWD1 | AWD1IE |
Analog watchdog 2 status bit is set | AWD2 | AWD2IE |
Analog watchdog 3 status bit is set | AWD3 | AWD3IE |
End of sampling phase | EOSMP | EOSMPIE |
Overrun | OVR | OVRIE |
Injected context queue overflows | JQOVF | JQOVFIE |
Res. | Res. | Res: | Res. | Res. | JQOVF IE | AWD31E | AWD21E | AWD1IE | JEOSIE | JEOCIE | OVRIE | EOSIE | EOCIE | EOSMP IE | ADRDY IE |
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Res. | Res. | Res. | Res: | Res. | Res. | Res. | Resu | Res. | Res. | JADST P | ADSTP | JADST ART | ADSTA RT | ADDIS | ADEN |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rs | rs | rs | rs | rs | rs |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JQDIS | AWD1CH[4:0] | JAUTO | JAWD1 EN | AWD1 EN | AWD1S GL | JQM | JDISC EN | DISCNUM[2:0] | DISC EN | ||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ALIGN | AUT DLY | CONT | OVR MOD | EXTEN[1:0] | EXTSEL[4:0] | RES[1:0] | Res. | DMA CFG | DMA EN | ||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | SMPTRI G | BULB | SWTRI G | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | GCOM P |
rw | rw | rw | rw | ||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | Res. | ROV SM | TROVS | OVSS[3:0] | OVSR[2:0] | JOVSE | ROVSE | |||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SMPPL US | Res: | SMP9[2:0] | SMP8[2:0] | SMP7[2:0] | SMP6[2:0] | SMP5[2:1] | |||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SMP5[ 0] | SMP4[2:0] | SMP3[2:0] | SMP2[2:0] | SMP1[2:0] | SMP0[2:0] | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
SMP15[0] | SMP14[2:0] | SMP13[2:0] | SMP12[2:0] | SMP11[2:0] | SMP10[2:0] | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | HT1[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | AWDFILT[2:0] | LT1[11:0] | |||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | HT2[7:0] | |||||||
rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | LT2[7:0] | |||||||
rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Resr | Res. | Res. | HT3[7:0] | |||||||
rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Resr | Res. | Res. | Res. | Res. | Res. | Res. | LT3[7:0] | |||||||
rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | SQ4[4:0] | Res. | SQ3[4:0] | Res. | SQ2[4] | ||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SQ2[3:0] | Res. | SQ1[4:0] | Res. | Res. | L[3:0] | ||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | SQ9[4:0] | Res. | SQ8[4:0] | Res. | SQ7[4] | ||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SQ7[3:0] | Res. | SQ6[4:0] | Res. | SQ5[4:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | SQ14[4:0] | Res. | SQ13[4:0] | Res. | SQ12[4] | ||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SQ12[3:0] | Res. | SQ11[4:0] | Res. | SQ10[4:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
RDATA[10:0] | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
r | r | r | r | r | r | r | r | r | r | r | r | r | r |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JSQ4[4:0] | Res | JSQ3[4:0] | Res. | JSQ2[4:1] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
JSQ20 | Res. | JSQ1[4:0] | JEXTEN[1:0] | JEXTSEL[4:0] | JL[1:0] | ||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OFFSET EN | OFFSET_CH[4:0] | SATEN | OFFSE TPOS | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ||||
rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | OFFSET[11:0] | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | r |
Resr | Res. | Resr | Res. | Res. | Res. | Res. | Rest | Resr | CALFACT_S[6:0] | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | JQOVF SLV | AWD3 SLV | AWD2 SLV | AWD1 SLV | JEOS SLV | JEOC SLV | OVR_ | EOS_ | EOC_ | EOSMP SLV | ADRDY SLV |
r | r | r | r | r | r | r | r | r | r | r | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res | Res. | Res. | Res. | Res. | JQOVF MST | AWD3 MST | AWD2 MST | AWD1 MST | JEOS MST | JEOC MST | OVR MST | EOS MST | EOC MST | EOSMP MST | ADRDY MST |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
r | r | r | r | r | r | r | r | r | r | r |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | VBATS EL | VSENSES EL | VREF EN | PRESC[3:0] | CKMODE[1:0] | ||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
MDMA[1:0] | DMA CFG | Res. | DELAY[3:0] | Res. | Res. | Res. | DUAL[4:0] | ||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
DELAY bits | 12-bit resolution | 10-bit resolution | 8-bit resolution | 6-bit resolution |
---|---|---|---|---|
0000 | 1 * Tadc_ker_ck | 1 * Tadc_ker_ck | 1 * Tadc_ker_ck | 1 * Tadc_ker_ck |
0001 | 2 * Tadc_ker_ck | 2 * Tadc_ker_ck | 2 * Tadc_ker_ck | 2 * Tadc_ker_ck |
0010 | 3 * Tadc_ker_ck | 3 * Tadc_ker_ck | 3 * Tadc_ker_ck | 3 * Tadc_ker_ck |
DELAY bits | 12-bit resolution | 10-bit resolution | 8-bit resolution | 6-bit resolution |
---|---|---|---|---|
0011 | 4 * Tadc_ker_ck | 4 * Tadc_ker_ck | 4 * Tadc_ker_ck | 4 * Tadc_ker_ck |
0100 | 5 * Tadc_ker_ck | 5 * Tadc_ker_ck | 5 * Tadc_ker_ck | 5 * Tadc_ker_ck |
0101 | 6 * Tadc_ker_ck | 6 * Tadc_ker_ck | 6 * Tadc_ker_ck | 6 * Tadc_ker_ck |
0110 | 7 * Tadc_ker_ck | 7 * Tadc_ker_ck | 7 * Tadc_ker_ck | 6 * Tadc_ker_ck |
0111 | 8 * Tadc_ker_ck | 8 * Tadc_ker_ck | 8 * Tadc_ker_ck | 6 * Tadc_ker_ck |
1000 | 9 * Tadc_ker_ck | 9 * Tadc_ker_ck | 8 * Tadc_ker_ck | 6 * Tadc_ker_ck |
1001 | 10 * Tadc_ker_ck | 10 * Tadc_ker_ck | 8 * Tadc_ker_ck | 6 * Tadc_ker_ck |
1010 | 11 * Tadc_ker_ck | 10 * Tadc_ker_ck | 8 * Tadc_ker_ck | 6 * Tadc_ker_ck |
1011 | 12 * Tadc_ker_ck | 10 * Tadc_ker_ck | 8 * Tadc_ker_ck | 6 * Tadc_ker_ck |
others | 12 * Tadc_ker_ck | 10 * Tadc_ker_ck | 8 * Tadc_ker_ck | 6 * Tadc_ker_ck |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RDATA_SLV[15:0] | |||||||||||||||
r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RDATA_MST[15:0] | |||||||||||||||
r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Offset | Register |
---|---|
0x000 - 0x0FC | Master ADC1/ADC3 |
0x100 - 0x1FC | Slave ADC2/ADC4 |
0x200 - 0x2FC | Reserved/single ADC5 |
0x300 - 0x30C | Master and slave ADCs common registers |
Offset | Register name reset value | 31 | 30 | 2328 | 27 | 2623 | 24 | 23 | 22 | 21 | 20 | 1.91.8 | 仍 | 1.61.5 | 4 | 1.3 | 1211 | 10 | 9 | ∞7 | 6 | 5 | 43 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x00 | ADC_ISR | 8 | o | 33 | COMP | SON时 | S | 5 | 3 | a | Proof. | SLet | 1.00 | COND新时 | 中华 | S | : | HAOOR | Average of the figure 3 | AvenAverage | Jun-20 | Jour | OverEO O | Europe | dWSO3 | 人口YOV |
Reset value | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | |||||||||||||||||
0x04 | ADC_IER | 粉色 | 8 | BUDE | 3 | 3面 | 新 | 3 | (a) | 1.0 | REPH | STASTA | 8 | 好y | 5 | SHIPE | BALL | 3.1. JAOON | 312QMV | 311.0MValsoar | 31003r | Over Current CounterEurope | Europe | 3IdWSO3 | 31人QUIV | |
Reset value | 0 | 0 | 0 | 00 | 0 | 00 | 0 | 0 | 0 | |||||||||||||||||
0x08 | ADC_CR | 7VOCV | JIATVOAV | CMdd330N353WACV | a | 33 | 34 | : | 33 | : a | 13 | 813 | RECT | 33 | MA | Suppose | 33 | y | 3 | Y | 4: | d.LSCY | d1SCVlaviscivi | IVVISAV | SIGCV | AUG |
Reset value | 0 | 010 | 0 | 00 | 0 | 0 | 0 | |||||||||||||||||||
0x0C | ADC_CFGR | 190,013 | AWD1CH[4:0] | Jun-17 | NELOMY | NELOMY | 7.5.1 GMV | Jun-20 | N30SIGR | DISCNUM [2:0] | NEOSICAuto | 人10.1.NV | SQUE | GOWYAO | [O'1]N3.1X3 | EXTSEL[4:0] | RES [1:0] | (a) | 9.104 | NEVWA | ||||||
Reset value | 1 | 0 | 00 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 00 | 0 | 0 | 00 | 0 | 00000 | 00 | 0 | 0 | |||||
0x10 | ADC_CFGR2 | 3 | 8 | S3 | 5181dWS | BullDIYIMS | 3 | COMP | 8 | PUL | :粉 | PRO | dW009 | 5 | 新 | ELL | WSAOY | IG | OVSS[3:0] | OVSR [2:0] | 195, 193 | 3SAOY | ||||
Reset value | 0 | 00 | 0 | 0 | 0 | 000 | 0 | 00 | 0 | 0 | 0 | |||||||||||||||
0x14 | ADC_SMPR1 | SN7ddWS | SMP9 [2:0] | SMP8 [2:0] | SMP7 [2:0] | SMP6 [2:0] | SMP5 | SMP4 | SMP3 [2:0] | SMP2 [2:0] | SMP1 | SMP0 [2:0] | ||||||||||||||
Reset value | 0 | 00 | 0 | 00 | 0 | 000 | 000 | 00 | 0000 | 00 | 00 | 000 | 0 | 0 | ||||||||||||
0x18 | ADC_SMPR2 | PU | SMP18 [2:0] | SMP17 [2:0] | SMP16 [2:0] | SMP1 15 [2:0] | SMP14 [2:0] | SMP13 [2:0] | SMP12 [2:0] | SMP1 [2:0] | SMP10 [2:0] | |||||||||||||||
Reset value | 00 | 0 | 0 | 0 | 0 | 0 | 00 | 00 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | ||||||
0x1C | Reserved | |||||||||||||||||||||||||
0x20 | ADC_TR1 | 好好 | HT1[11:0] | AWDFILT [2:0] | LT1[11:0] | |||||||||||||||||||||
Reset value | 1 | 11 | 1111111 | 1 | 0 | 0 | 0 | 0 | 00 | 0 | 00 | 0 | 0 | 0 | ||||||||||||
0x24 | ADC_TR2 | 0 | (a) | (a) | 5![]() | ![]() | 8 | ![]() | ![]() | ![]() | LT2[7:0] | |||||||||||||||
Reset value | 111111 | 1 | 00000000 | |||||||||||||||||||||||
0x28 | ADC_TR3 | 3 | HT3[[7:0] | a | LT3[7:0] | |||||||||||||||||||||
Reset value | 1111111100000000 | |||||||||||||||||||||||||
0x2C | Reserved | |||||||||||||||||||||||||
0x30 | ADC_SQR1 | SQ4[4:0] | SQ3[4:0] | SQ2[4:0] | SQ1[4:0] | L[3:0] | ||||||||||||||||||||
Reset value | 0 | 0 | 00 | 0 | 00000 | 00 | 0 | 0 | 0 | 00000 | 0 | 0 | 0 | 0 | ||||||||||||
0x34 | ADC_SQR2 | SQ9[4:0] | SQ8[4:0] | SQ7[4:0] | SQ6[4:0] | 出 | SQ5[4:0] | |||||||||||||||||||
Reset value | 0 | 0000 | 00000 | 00000 | 00000 | 00000 | ||||||||||||||||||||
0x38 | ADC_SQR3 | SQ14[4:0] | SQ13[4:0] | SQ12[4:0] | SQ11[4:0] | SQ10[4:0] | ||||||||||||||||||||
Reset value | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 00 | 00 | 0 | 0 | 0 | 00000 | 00000 | ||||||||||||
0x3C | ADC_SQR4 | 福 | 串 | ![]() | y | a | 出 | SQ16[4:0] | SQ15[4:0] | |||||||||||||||||
Reset value | 0 | 0 | 0 | 00 | 00 | 0 | 0 | 0 | ||||||||||||||||||
0x40 | ADC_DR | 8 | regular RDATA[15:0] | |||||||||||||||||||||||
Reset value | 0000000000000000 |
Offset | Register name reset value | 31 | 3023 | 2827 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 1.9 | 1.8 | 亿 | 伯 | 伯 | 14 | 13 | 12 | 伯109 | 87 | 65432 | 10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x44- 0x48 | ReservedRes. | ||||||||||||||||||||||
0x4C | ADC_JSQR | JSQ4[4:0] | 3 | JSQ3[4:0] | 商品 | JSQ2[4:0] | JSQ1[4:0] | [0:1]na1X3r | JEXTSEL [4:0] | JL[1:0] | |||||||||||||
Reset value | 00 | 0 | 00 | 00000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 000 | 00 | 00000 | 00 | ||||||||||
0x50- 0x5CReservedRes. | |||||||||||||||||||||||
0x60 | ADC_OFR1 | N3~1.13S3.30 | OFFSET1 CH[4:0] | NELVS | SODILISHO | Proof. | 3 | 8 | 股本 | 8 | 串串 | 3 | 好好 | : | 8 | 好 | 时 | OFFSET1[11:0] | |||||
Reset value | 0 | 00 | 0 | 0 | 000 | 00 | 00000 | 00 | |||||||||||||||
0x64 | ADC_OFR2 | N3TZ13SH0 | OFFSET2 CH[4:0] | NELVS | SODILESHO | : | (a) | 5,679 | : | S | 0 | 8 | SU | SCO | (a) | S | : '8 | OFFSET2[11:0] | |||||
Reset value | 0 | 0000 | 0 | 0 | 000 | 00 | 00000 | 00 | |||||||||||||||
0x68 | ADC_OFR3 | N3" <ISH JO | OFFSET3 CH[4:0] | NELLVS | SODILISHO | 3 | B | 5,133 | B | S | BUB | (3,450) | 3 | SHUM | TALL | SHUM | 5,053 | OFFSET3[11:0] | |||||
Reset value | 0 | 0| 0 | 0 | 00 | 0 | 0 | 000 | 00 | 00000 | 00 | |||||||||||||||
0x6C | ADC_OFR4 | N3~t13S3B0 | OFFSET4 CH[4:0] | NELVS | SODILESHK | 500 | as | 中国 | 千港元 | S | 好 | BUS | Let | 新鲜 | PRO | SHU | BUS | OFFSET4[11:0] | |||||
Reset value | 0 | 00 | 00 | 0 | 0 | 0 | 000 | 00 | 00000 | 00 | |||||||||||||
0x70- 0x7C | ReservedRes. | ||||||||||||||||||||||
0x80 | ADC_JDR1 | 0 | 83 | 8 | 8 | 8 | 8 | 郎 | a | 8 | a | JDATA1[15:0] | |||||||||||
Reset value | 0 | 0 | 0 | 0 | 000 | 00 | 00000 | 00 | |||||||||||||||
0x84 | ADC_JDR2 | 的 | 3 | 3 | 8 | 好 | 5,959 | 好 | JDATA2[15:0] | ||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 000 | 00 | 00000 | 00 | |||||||||||||||
0x88 | ADC_JDR3 | 8 | 3 | 3 | : | JDATA3[15:0] | |||||||||||||||||
Reset value | 0000000000000000 | ||||||||||||||||||||||
0x8C | ADC_JDR4 | 郎a | 8: | JDATA4[15:0] | |||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 000 | 00 | 00000 | 00 | |||||||||||||||
0x8C- 0x9C | Reserved | Resi | |||||||||||||||||||||
0xA0 | ADC_AWD2CR | a3 | a名 | a | 8 | 馮 | 3 | 8 | 炒 | AWD2CH[18:0] | |||||||||||||
Reset value | 000000000000000000 | ||||||||||||||||||||||
0xA4 | ADC_AWD3CR | 3a | 38 | a路31388(a) | AWD3CH[18:0] | ||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 000 | 00 | 00000 | 00 | ||||||||||||
0xA8- 0xAC | Reserved | 8 | 36 | 好 | 8 | 33 | S | y2 | 83 | 8 | aga“ | 好(4) | |||||||||||
Offset | Register name reset value | 31 | 30 | 23 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 2023 | 19 | 1.8 | 17 | 伯 | 16 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0xB0 | ADC_DIFSEL | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | DIFSEL[18:0] | ||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||
0xB4 | ADC_CALFACT | 8 | ![]() | ![]() | a | ![]() | 8 | CALFACT_D[6:0] | 3 | ![]() | y | 8 | a | g | y | y | 等 | CALFACT_S[6:0] | |||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||
0xC0 | ADC_GCOMP | 8 | 34 | 3 | 福 | 3 | 3 | 3 | S | 3 | 8 | y | 3 | 8 | GCOMP[13:0] | ||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Offset | Register name reset value | 31 | 30 | 23 | 2Q3 | 27 | 26 | 23 | 24 | 23 | 22 | 21 | 2023 | 1. | 1. | 17 | 伯 | 1.5 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 21 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x00 | ADCx_CSR | SCON | (1) | 1,000 | 时 | Proof. | ats that | atsTeamV | ^TSTZCIMV | msTiamy | ats *soar | ats oder | ats and | ATSTSO3 | ATSTOOE | /) | ATSTACHIV | 分 | SCON | COND | STROP | E | LSW HAODR | ISW EGMV | ISW ZAMY | ISW LAMV | isw soar | iswhoder | ISW YAO | .LSW SO3 | LSW 0031SWTdWSO3 | ISW AGY |
slave ADC2 | master ADC1 | |||||||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | |||||||||||
0x04 | ReservedRes. | |||||||||||||||||||||||||||||||
0x08 | ADCx_CCR | S | S | For | B | HK$’000 | BUR | BUG | 73S1V9A | 73S3SN3SA | NBJ38A | PRESC[3:0] | [0:1]300WX0 | [0:1] | 5.10.7.0 | 2023年 | DELAY[3:0] | 3 | 好 | 8 | DUAL[4:0] | |||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | ||||||||||||
0x0C | ADCX CDR | RDATA SLV[15:0] | RDATA MST[15:0] | |||||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 |
DAC features | DAC1 | DAC2 | DAC3 | DAC4 |
---|---|---|---|---|
Dual channel | X | - | X | X |
Output buffer | X | - | - | |
I/O connection | DAC1 OUT1 on PA4 DAC1_OUT2 on PA5 | DAC2_OUT1 on PA6 | No connection to a GPIO | |
Maximum sampling time | 1 Msps | 15 Msps | ||
Autonomous mode | - | |||
VREF+ pin |
Pin name | Signal type | Remarks |
---|---|---|
VREF+ | Input, analog reference positive | The higher/positive reference voltage for the DAC, |
VDDA | Input, analog supply | Analog power supply |
VSSA | Input, analog supply ground | Ground for analog power supply |
DACx_OUTy | Analog output signal | DACx channely analog output |
Internal signal name | Signal type | Description |
---|---|---|
dac_ch1_dma | Bidirectional | DAC channel1 DMA request/acknowledge |
dac_ch2_dma | Bidirectional | DAC channel2 DMA request/acknowledge |
dac_ch1_trgx (x = 1 to 15) | Inputs | DAC channel1 trigger inputs |
dac_ch2_trgx (x = 1 to 15) | Inputs | DAC channel2 trigger inputs |
dac_ch1_inc_trgx (x = 1 to 15) | Inputs | DAC channel1 sawtooth increment trigger inputs |
dac_chn2_inc_trgx (x = 1 to 15) | Inputs | DAC channel1 sawtooth increment trigger inputs |
dac_unr_it | Output | DAC underrun interrupt |
dac_hclk | Input | DAC peripheral clock |
dac_hold_ck | Input | DAC low-power clock used in Sample and hold mode |
Internal signal name | Signal type | Description |
---|---|---|
dac_out1 | Analog output | DAC channel1 output for on-chip peripherals |
dac_out2 | Analog output | DAC channel2 output for on-chip peripherals |
Signal name | Source | Source type |
---|---|---|
dac_hold_ck | ck_lsi or ck_lse (selected in the RCC) | LSI or LSE clock selected in the RCC |
dac_chx_trg1 (x = 1, 2) | TIM8_TRGO | Internal signal from on-chip timers |
dac_chx_trg2 (x = 1, 2) | TIM7_TRGO | Internal signal from on-chip timers |
dac_chx_trg3 (x = 1, 2) | TIM15_TRGO | Internal signal from on-chip timers |
dac_chx_trg4 (x = 1, 2) | TIM2_TRGO | Internal signal from on-chip timers |
dac_chx_trg5 (x = 1, 2) | TIM4_TRGO | Internal signal from on-chip timers |
dac_chx_trg6 (x = 1, 2) | EXTI9 | External pin |
dac_chx_trg7 (x = 1, 2) | TIM6_TRGO | Internal signal from on-chip timers |
dac_chx_trg8 (x = 1, 2) | TIM3_TRGO | Internal signal from on-chip timers |
dac_chx_trg9 (x = 1, 2) | hrtim_dac_reset_trg1 | Internal signal from on-chip timers |
dac_chx_trg10 (x = 1, 2) | hrtim_dac_reset_trg2 | Internal signal from on-chip timers |
dac_chx_trg11 (x = 1, 2) | hrtim_dac_reset_trg3 | Internal signal from on-chip timers |
dac_chx_trg12 (x = 1, 2) | hrtim_dac_reset_trg4 | Internal signal from on-chip timers |
dac_chx_trg13 (x = 1, 2) | hrtim_dac_reset_trg5 | Internal signal from on-chip timers |
dac_chx_trg14 (x = 1, 2) | hrtim_dac_reset_trg6 | Internal signal from on-chip timers |
dac_chx_trg15 (x = 1, 2) | hrtim_dac_trg1 | Internal signal from on-chip timers |
dac_inc_chx_trg1 (x = 1, 2) | TIM8_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg2 (x = 1, 2) | TIM7_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg3 (x = 1, 2) | TIM15_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg4 (x = 1, 2) | TIM2_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg5 (x = 1, 2) | TIM4_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg6 (x = 1, 2) | EXTI10 | External pin |
dac_inc_chx_trg7 (x = 1, 2) | TIM6_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg8 (x = 1, 2) | TIM3_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg9 (x = 1, 2) | hrtim_dac_step_trg1 | Internal signal from on-chip timers |
dac_inc_chx_trg10 (x = 1, 2) | hrtim_dac_step_trg2 | Internal signal from on-chip timers |
dac_inc_chx_trg11 (x = 1, 2) | hrtim_dac_step_trg3 | Internal signal from on-chip timers |
dac_inc_chx_trg12 (x = 1, 2) | hrtim_dac_step_trg4 | Internal signal from on-chip timers |
Signal name | Source | Source type |
---|---|---|
dac_inc_chx_trg13 (x = 1, 2) | hrtim_dac_step_trg5 | Internal signal from on-chip timers |
dac_inc_chx_trg14 (x = 1, 2) | hrtim_dac_step_trg6 | Internal signal from on-chip timers |
Signal name | Source | Source type |
---|---|---|
dac_hold_ck | ck_lsi or ck_lse (selected in the RCC) | LSI or LSE clock selected in the RCC |
dac_ch1_trg1 | TIM8_TRGO | Internal signal from on-chip timers |
dac_ch1_trg2 | TIM7_TRGO | Internal signal from on-chip timers |
dac_ch1_trg3 | TIM15_TRGO | Internal signal from on-chip timers |
dac_ch1_trg4 | TIM2_TRGO | Internal signal from on-chip timers |
dac_ch1_trg5 | TIM4_TRGO | Internal signal from on-chip timers |
dac_ch1_trg6 | EXTI9 | External pin |
dac_ch1_trg7 | TIM6_TRGO | Internal signal from on-chip timers |
dac_ch1_trg8 | TIM3_TRGO | Internal signal from on-chip timers |
dac_ch1_trg9 | hrtim_dac_reset_trg1 | Internal signal from on-chip timers |
dac_ch1_trg10 | hrtim_dac_reset_trg2 | Internal signal from on-chip timers |
dac_ch1_trg11 | hrtim_dac_reset_trg3 | Internal signal from on-chip timers |
dac_ch1_trg12 | hrtim_dac_reset_trg4 | Internal signal from on-chip timers |
dac_ch1_trg13 | hrtim_dac_reset_trg5 | Internal signal from on-chip timers |
dac_ch1_trg14 | hrtim_dac_reset_trg6 | Internal signal from on-chip timers |
dac_ch1_trg15 | hrtim_dac_trg2 | Internal signal from on-chip timers |
dac_inc_ch1_trg1 | TIM8_TRGO | Internal signal from on-chip timers |
dac_inc_ch1_trg2 | TIM7_TRGO | Internal signal from on-chip timers |
dac_inc_ch1_trg3 | TIM15_TRGO | Internal signal from on-chip timers |
dac_inc_ch1_trg4 | TIM2_TRGO | Internal signal from on-chip timers |
dac_inc_ch1_trg5 | TIM4_TRGO | Internal signal from on-chip timers |
dac_inc_ch1_trg6 | EXTI10 | External pin |
dac_inc_ch1_trg7 | TIM6_TRGO | Internal signal from on-chip timers |
dac_inc_ch1_trg8 | TIM3_TRGO | Internal signal from on-chip timers |
dac_inc_ch1_trg9 | hrtim_dac_step_trg1 | Internal signal from on-chip timers |
dac_inc_ch1_trg10 | hrtim_dac_step_trg2 | Internal signal from on-chip timers |
dac_inc_ch1_trg11 | hrtim_dac_step_trg3 | Internal signal from on-chip timers |
dac_inc_ch1_trg12 | hrtim_dac_step_trg4 | Internal signal from on-chip timers |
Signal name | Source | Source type |
---|---|---|
dac_inc_ch1_trg13 | hrtim_dac_step_trg5 | Internal signal from on-chip timers |
dac_inc_ch1_trg14 | hrtim_dac_step_trg6 | Internal signal from on-chip timers |
Signal name | Source | Source type |
---|---|---|
dac_hold_ck | ck_lsi or ck_lse (selected in the RCC) | LSI or LSE clock selected in the RCC |
dac_chx_trg1 (x = 1, 2) | TIM1_TRGO | Internal signal from on-chip timers |
dac_chx_trg2 (x = 1, 2) | TIM7_TRGO | Internal signal from on-chip timers |
dac_chx_trg3 (x = 1, 2) | TIM15_TRGO | Internal signal from on-chip timers |
dac_chx_trg4 (x = 1, 2) | TIM2_TRGO | Internal signal from on-chip timers |
dac_chx_trg5 (x = 1, 2) | TIM4_TRGO | Internal signal from on-chip timers |
dac_chx_trg6 (x = 1, 2) | EXTI9 | External pin |
dac_chx_trg7 (x = 1, 2) | TIM6_TRGO | Internal signal from on-chip timers |
dac_chx_trg8 (x = 1, 2) | TIM3_TRGO | Internal signal from on-chip timers |
dac_chx_trg9 (x = 1, 2) | hrtim_dac_reset_trg1 | Internal signal from on-chip timers |
dac_chx_trg10 (x = 1, 2) | hrtim_dac_reset_trg2 | Internal signal from on-chip timers |
dac_chx_trg11 (x = 1, 2) | hrtim_dac_reset_trg3 | Internal signal from on-chip timers |
dac_chx_trg12 (x = 1, 2) | hrtim_dac_reset_trg4 | Internal signal from on-chip timers |
dac_chx_trg13 (x = 1, 2) | hrtim_dac_reset_trg5 | Internal signal from on-chip timers |
dac_chx_trg14 (x = 1, 2) | hrtim_dac_reset_trg6 | Internal signal from on-chip timers |
dac_chx_trg15 (x = 1, 2) | hrtim_dac_trg3 | Internal signal from on-chip timers |
dac_inc_chx_trg1 (x = 1, 2) | TIM1_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg2 (x = 1, 2) | TIM7_TRGO | Internal signal from on-chip timers |
Signal name | Source | Source type |
---|---|---|
dac_inc_chx_trg3 (x = 1, 2) | TIM15_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg4 (x = 1, 2) | TIM2_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg5 (x = 1, 2) | TIM4_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg6 (x = 1, 2) | EXTI10 | External pin |
dac_inc_chx_trg7 (x = 1, 2) | TIM6_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg8 (x = 1, 2) | TIM3_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg9 (x = 1, 2) | hrtim_dac_step_trg1 | Internal signal from on-chip timers |
dac_inc_chx_trg10 (x = 1, 2) | hrtim_dac_step_trg2 | Internal signal from on-chip timers |
dac_inc_chx_trg11 (x = 1, 2) | hrtim_dac_step_trg3 | Internal signal from on-chip timers |
dac_inc_chx_trg12 (x = 1, 2) | hrtim_dac_step_trg4 | Internal signal from on-chip timers |
dac_inc_chx_trg13 (x = 1, 2) | hrtim_dac_step_trg5 | Internal signal from on-chip timers |
dac_inc_chx_trg14 (x = 1, 2) | hrtim_dac_step_trg6 | Internal signal from on-chip timers |
Signal name | Source | Source type |
---|---|---|
dac_hold_ck | ck_lsi or ck_lse (selected in RCC) | LSI or LSE clock selected in the RCC |
dac_chx_trg1 (x = 1, 2) | TIM8_TRGO | Internal signal from on-chip timers |
dac_chx_trg2 (x = 1, 2) | TIM7_TRGO | Internal signal from on-chip timers |
dac_chx_trg3 (x = 1, 2) | TIM15_TRGO | Internal signal from on-chip timers |
dac_chx_trg4 (x = 1, 2) | TIM2_TRGO | Internal signal from on-chip timers |
dac_chx_trg5 (x = 1, 2) | TIM4_TRGO | Internal signal from on-chip timers |
dac_chx_trg6 (x = 1, 2) | EXTI9 | External pin |
dac_chx_trg7 (x = 1, 2) | TIM6_TRGO | Internal signal from on-chip timers |
Signal name | Source | Source type |
---|---|---|
dac_chx_trg8 (x = 1, 2) | TIM3_TRGO | Internal signal from on-chip timers |
dac_chx_trg9 (x = 1, 2) | hrtim_dac_reset_trg1 | Internal signal from on-chip timers |
dac_chx_trg10 (x = 1, 2) | hrtim_dac_reset_trg2 | Internal signal from on-chip timers |
dac_chx_trg11 (x = 1, 2) | hrtim_dac_reset_trg3 | Internal signal from on-chip timers |
dac_chx_trg12 (x = 1, 2) | hrtim_dac_reset_trg4 | Internal signal from on-chip timers |
dac_chx_trg13 (x = 1, 2) | hrtim_dac_reset_trg5 | Internal signal from on-chip timers |
dac_chx_trg14 (x = 1, 2) | hrtim_dac_reset_trg6 | Internal signal from on-chip timers |
dac_chx_trg15 (x = 1, 2) | hrtim_dac_trg1 | Internal signal from on-chip timers |
dac_inc_chx_trg1 (x = 1, 2) | TIM8_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg2 (x = 1, 2) | TIM7_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg3 (x = 1, 2) | TIM15_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg4 (x = 1, 2) | TIM2_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg5 (x = 1, 2) | TIM4_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg6 (x = 1, 2) | EXTI10 | External pin |
dac_inc_chx_trg7 (x = 1, 2) | TIM6_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg8 (x = 1, 2) | TIM3_TRGO | Internal signal from on-chip timers |
dac_inc_chx_trg9 (x = 1, 2) | hrtim_dac_step_trg1 | Internal signal from on-chip timers |
dac_inc_chx_trg10 (x = 1, 2) | hrtim_dac_step_trg2 | Internal signal from on-chip timers |
dac_inc_chx_trg11 (x = 1, 2) | hrtim_dac_step_trg3 | Internal signal from on-chip timers |
dac_inc_chx_trg12 (x = 1, 2) | hrtim_dac_step_trg4 | Internal signal from on-chip timers |
Signal name | Source | Source type |
---|---|---|
dac_inc_chx_trg13 (x = 1, 2) | hrtim_dac_step_trg5 | Internal signal from on-chip timers |
dac_inc_chx_trg14 (x = 1, 2) | hrtim_dac_step_trg6 | Internal signal from on-chip timers |
SINFORMATx bit | DATA written to DHRx register | DATA transfered to DORx register |
---|---|---|
0 | 0x000 | 0x000 |
0 | 0xFFF | 0xFFF |
1 | 0x7FF | 0xFFF |
SINFORMATx bit | DATA written to DHRx register | DATA transfered to DORx register |
---|---|---|
1 | 0x000 | 0x800 |
1 | 0xFFF | 0x7FF |
1 | 0x800 | 0x000 |
HFSEL[1:0] | AHB frequency | Function |
---|---|---|
00 | < 80 MHz | DAC_DOR update rate up to 3 AHB clock cycles |
01 | 2.80 MHz(1) | DAC_DOR update rate up to 5 AHB clock cycles |
10 | ≥ 160 MHz | DAC_DOR update rate up to 7 AHB clock cycles |
11 | Reserved | - |
Buffer State | ||
---|---|---|
Enable | ||
Disable |
MODEX[2:0] | Mode | Buffer | Output connections | ||
---|---|---|---|---|---|
0 | 0 | 0 | Normal mode | Enabled | Connected to external pin |
0 | 0 | 1 | Connected to external pin and to on chip-peripherals (such as comparators) | ||
0 | 1 | 0 | Disabled | Connected to external pin | |
0 | 1 | 1 | Connected to on chip peripherals (such as comparators | ||
1 | 0 | 0 | Sample and hold mode | Enabled | Connected to external pin |
1 | 0 | 1 | Connected to external pin and to on chip peripherals (such as comparators) | ||
1 | 1 | 0 | Disabled | Connected to external pin and to on chip peripherals (such as comparators) | |
1 | 1 | 1 | Connected to on chip peripherals (such as comparators) |
Mode | Description |
---|---|
Sleep | No effect, DAC used with DMA. |
LPRun | No effect. |
LPSIeep | No effect. DAC used with DMA. |
Stop 0 / Stop 1 | the DAC remains active with a static value if the Sample and hold mode is selected using LSI/LSE clock. |
Standby | The DAC peripheral is powered down and must be reinitialized after exiting Standby or Shutdown mode. |
Shutdown |
Interrupt acronym | Interrupt event | Event flag | Enable control bit | Interrupt clear method | Exit Sleep mode | Exit Stop mode | ExitStandby mode |
---|---|---|---|---|---|---|---|
DAC | DMA underrun | DMAUDRX | DMAUDRI Ex | Write DMAUDRx = 1 | Yes | No | No |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | CEN2 | DMAU DRIE2 | DMAE N2 | MAMP2[3:0] | WAVE2[1:0] | TSEL2[3] | TSEL2[2] | TSEL2[1] | TSEL2[0] | TEN2 | EN2 | ||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | CEN1 | DMAU DRIE1 | DMAE N1 | MAMP1[3:0] | WAVE1[1:0] | TSEL1[3] | TSEL1[2] | TSEL1[1] | TSEL1[0] | TEN1 | EN1 | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SWTRIG2 | SWTRIG1 |
w | w |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | DACC1DHRB[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | DACC1DHR[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DACC1DHRB[11:0] | Res. | Res | Res. | Res. | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACC1DHR[11:0] | Res. | Res. | Res. | Res. | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | DACC2DHRB[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | DACC2DHR[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DACC2DHRB[11:0] | Res. | Res. | Res. | Res. | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACC2DHR[11:0] | Res. | Res. | Res. | Res. | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
DACC2DHRB[7:0] | DACC2DHR[7:0] | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | DACC2DHR[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res | Res. | Res. | Res. | DACC1DHR[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DACC2DHR[11:0] | Res. | Res. | Res. | Res. | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACC1DHR[11:0] | Res. | Res. | Res. | Res. | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | DACC1DORB[11:0] | |||||||||||
r | r | r | r | r | r | r | r | r | r | r | |||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | DACC1DOR[11:0] | |||||||||||
r | r | r | r | r | r | r | r | r | r |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | DACC2DORB[11:0] | |||||||||||
r | r | r | r | r | r | r | r | r | r | r | r | ||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res: | Res. | Res. | Res. | DACC2DOR[11:0] | |||||||||||
r | r | r | r | r | r | r | r | r | r | r | r |
BWST1 | CAL FLAG1 | DMAU DR1 | DORST AT1 | DAC1R DY | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res: | Res. | Res. | Res. |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
r | r | rc_w1 | r | r |
HFSEL [1] | HFSEL [0] | Res. | Res. | Res. | Res. | SINFO RMAT1 | DMA DOUBLE 1 | Res. | Res. | Res. | Res. | Res. | MODE1[2:0] | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw |
Res. | Res. | Res. | Res. | Res. | Res. | TSAMPLE2[9:0] | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | THOLD2[9:0] | |||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | Res. | Res. | THOLD1[9:0] | |||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TREFRESH2[7:0] | |||||||
rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TREFRESH1[7:0] | |||||||
rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
STINCDATA1[15:0] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | STDIR 1 | STRSTDATA1[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
STINCDATA2[15:0] | |||||||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | STDIR 2 | STRSTDATA2[11:0] | |||||||||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | STINCTRIGSEL2[3:0] | Res. | Res. | Res. | Res. | STRSTTRIGSEL2[3:0] | ||||||
rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Res. | Res. | Res. | Res. | STINCTRIGSEL1[3:0] | Res. | Res. | Res. | Res. | STRSTTRIGSEL1[3:0] | ||||||
rw | rw | rw | rw | rw | rw | rw | rw |
Offset | Register name reset value | 31 | 30 | 23 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 1.8 | 仍 | 伯 | 仍 | 件 | 13 | 12 | 11 | 10 | 9 | 00 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x00 | DAC_CR | 1 | CRE | 231.3 GNVWA | ZNEVWA | [0:8]8dWVW | [0:z] | TSEL2[3:1] | [0]Z73S1 | TEVER | Energy | CHF | LaiyanVWa | INEVWO | [0:8]1dWVW | TSEL1[3:1] | [0]173S1 | 千港元 | Eur | ||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||
0x04 | DAC SWTRGR | 3 | 号 | CAR | 3 | 1,000 | 第 | 营业中 | CARD | 股本 | Effect | S | BRATTER | 134 | S | Z851Y1MS | 185121MS | YU | 时间 | 3 | 3 | 3 | g | S | 3 | 1,000 | 33 | For | 新鲜 | 好 | MAL | ZONYLMS | LOIYLMS |
Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
0x08 | DAC DHR12R1 | 第 | S | 8 | DACC1DHRB[11:0] | CHIC | : “ | S | 鲜 | DACC1DHR[11:0] | |||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
0x0C | DAC DHR12L1 | DACC1DHRB[11:0] | 134 | 好 | 3 | 3 | DACC1DHR[11:0] | ![]() | ![]() | ![]() | g | ||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
0x10 | DAC DHR8R1 | 路 | 1,000 | Let | For | 路 | 1,000 | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 5,979 | million | DACC1DHRB[7:0] | DACC1DHR[7:0] | ||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
0x14 | DAC DHR12R2 | 鲜 | DACC2DHRB[11:0] | S | 3 | STE | 3 | DACC2DHR[11:0] | |||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
0x18 | DAC DHR12L2 | DACC2DHRB[11:0] | 千港元 | LUB | For | 1,010 | DACC2DHR[11:0] | 3 | S | 中心 | 199,979 | ||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Offset | Register name reset value | 31 | 30 | 23 | 28 | 27 | 26 | 25 | 2423 | 22 | 21 | 20 | 1.9 | 1.8 | 17 | 伯 | 1.5 | 14 | 13 | 12 | 11 | 1.0 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 21 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x1C | DAC DHR8R2 | ![]() | 34 | DACC2DHRB[7:0] | DACC2DHR[7:0] | ||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | ||||||||||||||||
0x20 | DAC DHR12RD | DACC2DHR[11:0] | 千港元 | 3 | 8DACC1DHR[11:0] | ||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | ||||||||||
0x24 | DAC DHR12LD | DACC2DHR[11:01 | CHE | 1.00 | B | DACC1DHR[11:0] | 13 | BUB1,000 | |||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||
0x28 | DAC DHR8RD | 3 | 华 | 留 | 8 | 8 | : | 华SHU | 新 | a | 3 | 33.00 | : | 8 | DACC2DHR[7:0] | DACC1DHR[7:0] | |||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | ||||||||||||||||
0x2C | DAC DOR1 | DACC1DORB[11:0] | 千港元 | 19 | CHE | 3 | DACC1DOR[11:0] | ||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | |||||||||
0x30 | DAC DOR2 | DACC2DORB[11:0] | For | PROS | DACC2DOR[11:0] | ||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | ||||||||||
0x34 | DAC_SR Reset value | ZISM8 0 | 2007年10 0 | zuanywa 0 | ZIVISYOA 0 | AGYZOVA 0 | 子 | Let1.00 | 1,672 | E | 1,010 | 1.0 | 1.00 | 3 | BYSTS 0 | 15V7.170 0 | laanywa 0 | LIVISYOA 0 | AddLOVO 0 | 3 | 超市 | 好 | 1.0 | 中心 | PAR | 3 | POLA1,010 | 好 | |||
0x38 | DAC_CCR | 3 | 3 | 3 | 3 | 3 | 8 | 3 | 3Rec | SHE | 3 | [t]zwidlo | [8] ZWIYLO | [Z] ZWIYLO | [1]ZWIYIO | [0]ZWIYLO | 8 | 3 | 3 | 3 | g | 第 | 3 | 招聘 | 3 | 串 | [t] [initio | [8] Initial | [Z] [WiYiLO[1]1WIVID | [0] [WIV] | |
Reset value | X | X | XXX | X | X | xX | X | ||||||||||||||||||||||||
0x3C | DAC_MCR | 3 | 3,399 | 3 | Proof. | a | ZIVWYOHNIS | zahanoavwa | 34 | 3 | RECT | 粉 | MODE2 [2:0] | [1]73SYH | [0]has JH | 3,659 | 33 | LIVWYOHNIS | 1379NOCVWA | 3 | 出 | 3 | : | MODE1 [2:0] | |||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | ||||||||||||||||||||||
0x40 | DAC SHSR1 | Suppose | 好 | 8 | 收益 | 83 | 3 | #路 | “ | 8 | 3 | 好 | 好 | 串 | SHE | 8 | 收益 | 13 | TSAMPLE1[9:0] | ||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | ||||||||||||||||||||||
0x44 | DAC SHSR2 | 路 | B | 3 | 千港元 | 品 | PAR | 8 | TSAMPLE2[9:0] | ||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | ||||||||||||||||||||||
0x48 | DAC SHHR | 时间 | Problem Controllection | THOLD2[9:0] | E | 13 | Proof. | THOLD1[9:0] | |||||||||||||||||||||||
Reset value | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | ||||||||||||||
0x4C | DAC SHRR | 3 | 33 | 3 | 3 | # | TREFRESH2[7:0] | 46 | 路 | 13 | 8 | 华 | 鸭 | TREFRESH1[7:0] | |||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 00 | 1 | ||||||||||||||||
0x50-0x54Reserved | Res. | ||||||||||||||||||||||||||||||
0x58 | DAC STR1 | STINCDATA1[15:0] | 8 | STRSTDATA1[11:0] | |||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 |
Offset | Register name reset value | 31 | 30 | 23 | 23 | 27 | 205 | 23 | 24 | 23 | 22 | 21 | 2023 | 1.9 | 1,8 | 17 | 1.6 | 1.5 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x5C | DAC_STR2 | STINCDATA2[15:0] | 新 | 千港元 | BUR | 8 | STRSTDATA2[11:0] | ||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||
0x60 | DAC STMODR | 3 | 3 | W | STRAND | [8]273SON1ONILS | [Z]Z73SON1ONILS | [1]Z73SON1ONILS | [0]Z73SON1ONILS | 33 | S | SHOR | 33 | [8]ZTHSONILLSHIS | [Z]Z13SON11SHIS | [1]Z13SON11SYIS | [0]273SONILLSHIS | 3 | 8 | 3 | [8]173SONIONILS | [Z]173SON1ONILS | [1]1735918101011 | 173SONILONILS | 8 | B | 9 | 13 | [8]173SON11SHIS | [Z]173SON11SHIS | 1]173SON11SHIS | [0]173SONLLSYIS | |
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
ENVR | HIZ | VREF buffer configuration |
---|---|---|
0 | 0 | VREFBUF buffer off mode: |
0 | 1 | External voltage reference mode (default value): – VREFBUF buffer off – VREF+ pin input mode |
1 | 0 | Internal voltage reference mode: – VREFBUF buffer on - |
1 | 1 | Hold mode: - VREF is enable without output buffer, VREF+ pin voltage is hold with the external capacitor – VRR detection disabled and VRR bit keeps last state |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VRS[1:0] | VRR | Res | HIZ | ENVR | |
rw | rw | r | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | TRIM[5:0] | |||||
rw | rw | rw | rw | rw | rw |
Offset | Register name | 31 | 30 | 23 | 23 | 27 | 26 | 23 | 24 | 23 | 22 | 21 | 20 | 1. | 1. | 17 | 16 | 16 | 4 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 65 | 4 | 3 | 2 | 1 | O |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x00 | VREFBUF_CSR | 好 | 3 | 8 | 股本 | 好的 | 千港元 | 3 | 3,373 | B | 3 | 好 | 3 | 股份 | 股本 | 3 | B | 3 | 路 | : | BUCK | BUR | S | 3 | HK$’000 | 8 | [0:1]SYA | VRR | HK$’000 | Elis | ||
Reset value | 0 | 0 | 0 | 0 | 1 | 0 | ||||||||||||||||||||||||||
0x04 | VREFBUF_CCR | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | 134,041 | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | TRIM[5:0] | |||||||||||||
Reset value | X | X | X | X | X |
INPSEL | COMP1_ INP | COMP2_ INP | COMP3_ INP | COMP4 INP | COMP5_ INP | COMP6 INP | COMP7_ INP |
---|---|---|---|---|---|---|---|
0 | PA1 | PA7 | PA0 | PB0 | PB13 | PB11 | PB14 |
1 | PB1 | PA3 | PC1 | PE7 | PD12 | PD11 | PD14 |
INMSEL [2:0] | COMP1_ INM | COMP2_ INM | COMP3_ INM | COMP4_ INM | COMP5_ INM | COMP6_ INM | COMP7_ INM |
---|---|---|---|---|---|---|---|
000 | 1/4 | ||||||
001 | 1/2 VREFINT | ||||||
010 | 3/4 VREFINT | ||||||
011 | VREFINT | ||||||
100 | DAC3_CH1 | DAC3_CH2 | DAC3_CH1 | DAC3_CH2 | DAC4_CH1 | DAC4_CH2 | DAC4_CH1 |
101 | DAC1_CH1 | DAC1_CH2 | DAC1_CH1 | DAC1_CH1 | DAC1_CH2 | DAC2_CH1 | DAC2_CH1 |
110 | PA4 | PA5 | PF1 | PE8 | PB10 | PD10 | PD15 |
111 | PA0 | PA2 | PC0 | PB2 | PD13 | PB15 | PB12 |
BLANKSEL [2:0] | COMP1 | COMP2 | COMP3 | COMP4 | COMP5 | COMP6 | COMP7 |
---|---|---|---|---|---|---|---|
001 | TIM1_OC5 | TIM1_OC5 | TIM1_OC5 | TIM3_OC4 | TIM2_OC3 | TIM8_OC5 | TIM1_OC5 |
010 | TIM2_OC3 | TIM2_OC3 | TIM3_OC3 | TIM8_OC5 | TIM8_OC5 | TIM2_OC4 | TIM8_OC5 |
011 | TIM3_OC3 | TIM3_OC3 | TIM2_OC4 | TIM15_OC1 | TIM3_OC3 | TIM15_OC2 | TIM3_OC3 |
100 | TIM8_OC5 | TIM8_OC5 | TIM8_OC5 | TIM1_OC5 | TIM1_OC5 | TIM1_OC5 | TIM15_OC2 |
101 | TIM20 OC5 | TIM20 OC5 | TIM20_OC5 | TIM20_OC5 | TIM20_OC5 | TIM20_OC5 | TIM20_OC5 |
110 | TIM15 OC1 | TIM15 OC1 | TIM15_OC1 | TIM15_OC1 | TIM15_OC1 | TIM15_OC1 | TIM15_OC1 |
111 | TIM4 OC3 | TIM4 OC3 | TIM4 OC3 | TIM4 OC3 | TIM4 OC3 | TIM4 OC3 | TIM4_OC3 |
Mode | Description |
---|---|
Sleep | No effect on the comparators. Comparator interrupts cause the device to exit the Sleep mode. |
Low-power run | No effect. |
Mode | Description |
---|---|
Low-power sleep | No effect. COMP interrupts cause the device to exit the Low-power sleep mode |
Stop | No effect on the comparators. Comparator interrupts cause the device to exit the Stop mode. |
Standby, Shutdown | The COMP registers are powered down and must be reinitialized after exiting Standby or Shutdown mode. |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOCK | VALUE | Res. | Res. | Res. | Res. | Res. | Res. | SCALEN | BRGEN | BLANKSEL[2:0] | HYST[2:0] | ||||
rw | r | rw | rw | rw | rw | rw | rw | rw | rw | ||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
POL | Res. | Res. | Res. | Res. | Res. | Res. | INPSEL | Res. | INMSEL[2:0] | Res. | Res. | Res. | EN | ||
rw | rw | rw | rw | rw | rw |
电- | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Offset | Register | 31 | 30 | 23 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 2120 | 1. | 1. | 17 | 1.6 | 16 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 65 | 4 | 3 | 2 | 1 | O |
0x00 | COMP_C1CSR | 0.00% | VALL | 3 | 3 | S | COUT | y | : | NETVOS | N3529 | [0:2]73SYNV79 | HYST[2:0] | PO | 13 | 3 | 3 | 特色 | S | 13SdNI | 3 | [0:z]haswni | 3 | y | 招 | EE | |||||
Reset value | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | |||||||||||||||||
0x04 | COMP_C2CSR | 0.00% | VALL | S | SUB | STA | PAR | S | : | NETVOS | N3528 | [OR]13SYNV78 | HYST[2:0] | PO | 8 | 串 | 8 | 好 | Let | 500 | "13SdNI | y | [0:z]73SWNI | 8 | S | Let | a | ||||
Reset value | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | |||||||||||||||||
0x08 | COMP C3CSR | 0.00% | VALL | 3 | 部 | a | SHIP | 3 | : 3 | NETVOS | N3528 | [0:zhasynvna | HYST[2:0] | PO | 13 | 串串 | 19 | : | S | "13SdNI | [0:z]73SWNI | : | 3 | 部 | 孟 | ||||||
Reset value | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | |||||||||||||||||
0x0C | COMP C4CSR | Jour | VALL | 3 | ELLA | gi | 移动 | gi | 部 | NETVOS | N3528 | [0:zhasynvna | HYST[2:0] | PO | 3 | : | 13 | 3 | 股份 | THSdNI | [0:z]73SWNI | 部 | gi | SHUD | ELL | ||||||
Reset value | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | |||||||||||||||||
0x10 | COMP C5CSR | 0.00% | VALL | 3 | 1,131 | S | For | COUT | LIMP | NETVOS | N3528 | [0:2]73SYNV78 | HYST[2:0] | PO | 0 | : | 3,373 | COND | SM | 时 | "13SdNI | 1,131 | [0:z]73SWNI | LUB | SM | E | m | ||||
Reset value | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 |
Offset | Register | 31 | 300 | 23 | 23 | 27 | 26 | 23 | 24 | 23 | 22 | 21 | 20 | 1. | 1. | 17 | 1.5 | 1.5 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | O |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x14 | COMP_C6CSR | 0.00% | VALL | S | SCON | S | For | Let | 好的 | NETVOS | N3549 | [0:zhasynvna | HYST[2:0] | Proof. | 13 | 苗 | COND | 3 | For | 13.5% | 133dNI | STRAND | [0:z]73SWNI | The | STRAND | COMP | 1.00 | ||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
0x18 | COMP C7CSR | Jour | VALL | 3 | 3 | SHIP | 3 | SHIP | 3 | NETVOS | N3549 | [0:zhasynvna | HYST[2:0] | PO | 3 | 3 | Proof. | S | 5 | 4,699 | 13SdNI | [0:zhaswni | 3 | For | 串 | 1.00 | |||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Signal | Pin | Internal | Comment |
---|---|---|---|
OPAMP1_VINM | PA3 (VINM0) PC5 (VINM1) | OPAMP1_VOUT or PGA | Controlled by bits PGA_GAIN and VM_SEL |
OPAMP1_VINP | PA1 (VINP0) PA3 (VINP1) PA7 (VINP2) | DAC3_CH1 | controlled by bit VP_SEL. |
OPAMP1_VOUT | PA2 | ADC1 IN3 ADC1 IN13(1) | The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled The ADC input is controlled by ADC |
OPAMP2 VINM | PA5 (VINM0) PC5 (VINM1) | OPAMP2 VOUT or PGA | controlled by bits PGA_GAIN and VM_SEL |
OPAMP2 VINP | PA7 (VINP0) PB14 (VINP1) PB0 (VINP2) PD14 (VINP3) | - | controlled by bit VP SEL |
Signal | Pin | Internal | Comment |
---|---|---|---|
OPAMP2_VOUT | PA6 | ADC2 IN3 ADC2_IN16(1) | The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled The ADC input is controlled by ADC |
OPAMP3_VINM | PB2 (VINM0) PB10 (VINM1) | OPAMP3_VOUT or PGA | Controlled by bits PGA_GAIN and VM_SEL |
OPAMP3_VINP | PB0 (VINP0) PB13 (VINP1) PA1 (VINP2) | DAC3_CH2(2)(3) | Controlled by bit VP_SEL |
OPAMP3_VOUT | PB1 | ADC3 IN1(2)(3)/ADC1 IN12 ADC2 IN18(1)/ ADC3_IN13(1)(2)(3) | The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC |
OPAMP4 VINM | PB10 (VINM0) | OPAMP4 VOUT or PGA | Controlled by bits PGA_GAIN and VM_SEL |
PD8 (VINM1) | |||
OPAMP4 VINP | PB13 (VINP0) PD11 (VINP1) PB11 (VINP2) | DAC4_CH1 | Controlled by bit VP_SEL |
OPAMP4_VOUT | PB12 | ADC4 IN3/ADC1 IN11 ADC5 IN5(1) | The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC. |
OPAMP5 VINM | PB15 (VINM0) PA3 (VINM1) | OPAMP5 VOUT or PGA | Controlled by bits PGA_GAIN and VM_SEL. |
OPAMP5_VINP | PB14 (VINP0) PD12 (VINP1) PC3 (VINP2) | DAC4_CH2 | Controlled by bit VP_SEL. |
OPAMP5 VOUT(4) | PA8 | ADC5_IN1 ADC5_IN3(1) | The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC. |
OPAMP6_VINM | PA1 (VINM0) PB1 (VINM1) | OPAMP6 VOUT or PGA | Controlled by bits PGA GAIN and VM SEL. |
OPAMP6 VINP(5) | PB12 (VINP0) PD9 (VINP1) PB13 (VINP2) | DAC3_CH1 | Controlled by bit VP_SEL. |
OPAMP6 VOUT | PB11 | ADC12 IN14 ADC4 IN17(1)(2) ADC3 IN17(1)(3) | The pin is connected when the OPAMP is enabled and OPAMP internal output is disabled. The ADC input is controlled by ADC. |
Mode | Control bits | Output | ||||
---|---|---|---|---|---|---|
OPAEN | OPAHSM | CALON | CALSEL | VOUT | CALOUT flag | |
Normal operating mode | 1 | 0 | 0 | analog | 0 | |
High-speed mode | 1 | 1 | 0 | X | analog | 0 |
Power down | 0 | X | X | X | Z | 0 |
Offset cal N | 1 | X | 1 | 11 | analog | X |
Offset cal P diff | 1 | X | 1 | 01 | analog | X |
Calibration procedure | |
Here are the steps to perform a full calibration of either one of the operational amplifiers: I. Set the OPAEN bit in OPAMPx_CSR to 1 to enable the operational amplifier. 2. Set the USERTRIM bit in the OPAMPx_CSR register to 1. | |
Choose a calibration mode (refer to Table 202: Operating modes and calibration). The steps 3 to 4 have to be repeated four times. For the first iteration select Normal mode and | |
4. Increment TRIMOFFSETN[4:0] in OPAMPx_OTR starting from 0b00000 until CALOUT changes to 0 in OPAMPx_CSR | |
Note: | Between the write to the TRIMOFFSETP and TRIMOFFSETN bits and the read of the CALOUT value, make sure to wait for the |
The commutation means that the is correctly compensated and that the corresponding trim code must be saved in the TRIMOFFSETP and TRIMOFFSETN bits. | |
Repeat steps 3 to 4 for: | |
- Normal mode and | |
- High-speed mode and | |
- High-speed mode and | |
If a mode is not used, it is not necessary to perform the corresponding calibration. | |
All operational amplifier can be calibrated at the same time. | |
Note: | During the whole calibration phase the external connection of the operational amplifier output must not pull up or down currents higher than 500 µA. |
If the OPAMP output is internally connected to an ADC channel and disconnected from the output pin (OPAINTOEN = 1 in the OPAMPx_CSR register), the offset trimming procedure differs from the case where the OPAMP output is connected to the output pi (OPAINTOEN = 0). The calibration procedure is the similar as above but the CALOUT bit change detection cannot be used as indicated in step 4. Instead, the ADC output data must be used as indicator to detect the OPAMP output change: a change of CALOUT from 1 to corresponds to the change of ADC output data from values close to the maximum ADC output to values close to the minimum ADC output (the ADC works as a comparator connected to the OPAMP output). Another solution is to perform the calibration with OPAINTOEN = 0, and then change OPAINTOEN to 1. In this case, the OPAMP output GPIC toggles during the calibration and care must be taken that there is no conflict on this GPIO. | |
25.3.8 | Timer controlled Multiplexer mode |
The selection of the OPAMP inverting and non inverting inputs can be done automatically. In this case, the switch from one input to another is done automatically. This automatic switch is triggered by the TIM1 CC6 or TIM8 CC6 or TIM20 CC6 output arriving on the OPAMP input multiplexers. | |
This is useful for dual motor control with a need to measure the currents on the 3 phase. simultaneously on a first motor and then on the second motor. | |
The automatic switch is enabled by setting the TxCMEN bit, |
Mode | Description |
---|---|
Sleep | No effect. |
Low-power run | No effect. |
Low-power sleep | No effect. |
Stop 0 / Stop 1 | No effect, OPAMP registers content is kept. |
Standby | The OPAMP registers are powered down and must be re-initialized after exiting Standby or Shutdown mode. |
Shutdown |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOCK | CAL OUT | Res. | TRIMOFFSETN[4:0] | TRIMOFFSETP[4:0] | PGA_GAIN[4:2] | ||||||||||
rw | r | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
PGA_GAIN[1:0] | CALSEL[1:0] | CALON | Res. | Res. | OPA INTOEN | OPA HSM | VM_SEL[1:0] | USER TRIM | VP_SEL[1:0] | FORCE VP | OPAEN | ||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOCK | CAL OUT | Res. | TRIMOFFSETN[4:0] | TRIMOFFSETP[4:0] | PGA_GAIN[4:2] | ||||||||||
rw | r | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
PGA_GAIN[1:0] | CALSEL[1:0] | CALON | Res. | Res. | OPA INTOEN | OPA HSM | VM_SEL[1:0] | USER TRIM | VP_SEL[1:0] | FORCE _VP | OPAEN | ||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOCK | CAL OUT | Res. | TRIMOFFSETN[4:0] | TRIMOFFSETP[4:0] | PGA_GAIN[4:2] | ||||||||||
rw | r | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
PGA_GAIN[1:0] | CALSEL[1:0] | CALON | Res. | Res. | OPA INTOEN | OPA HSM | VM_SEL[1:0] | USER TRIM | VP_SEL[1:0] | FORCE _VP | OPAEN | ||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOCK | CAL OUT | Res. | TRIMOFFSETN[4:0] | TRIMOFFSETP[4:0] | PGA_GAIN[4:2] | ||||||||||
rw | r | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
PGA_GAIN[1:0] | CALSEL[1:0] | CALON | Res. | Res. | OPA INTOEN | OPA HSM | VM_SEL[1:0] | USER TRIM | VP_SEL[1:0] | FORCE VP | OPAEN | ||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOCK | CAL OUT | Res. | TRIMOFFSETN[4:0] | TRIMOFFSETP[4:0] | PGA_GAIN[4:2] | ||||||||||
rw | r | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
PGA_GAIN[1:0] | CALSEL[1:0] | CALON | Res. | Res. | OPA INTOEN | OPA HSM | VM_SEL[1:0] | USER TRIM | VP_SEL[1:0] | FORCE _VP | OPAEN | ||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LOCK | CAL OUT | Res. | TRIMOFFSETN[4:0] | TRIMOFFSETP[4:0] | PGA_GAIN[4:2] | ||||||||||
rw | r | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
PGA_GAIN[1:0] | CALSEL[1:0] | CALON | Res. | Res. | OPA INTOEN | OPA HSM | VM_SEL[1:0] | USER TRIM | VP_SEL[1:0] | FORCE _VP | OPAEN | ||||
rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Offset | Register name | 31 | 30 | 23 | 2327 | 26 | 2524 | 2322 | 21201. | 1. | 17 | 伯16 | 14 | 1312 | 1 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x00 | OPAMP1_CSR | 0.00% | inotvo | TRIMOFFSETN | TRIMOFFSETP | PGA_GAIN | 13S TVO | NOTVO | E | N301N1Vd0 | WSHVdO | WST | WIYLLYJSN | VISTA | dA 30803 | N3Vd0 | ||||||||||
Reset value | 0 | 0 | 00000 | 00000 | 00000 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||
0x04 | OPAMP2_CSR | 0.00% | in O TVO | TRIMOFFSETN | TRIMOFFSETP | PGA_GAIN | CASTE | NOTVO | NO | N301NIVd0 | WSHVdO | VASS | WIYJIJASN | 7.3S dA | dA 30803 | N3Vd0 | ||||||||||
Reset value | 0 | 0 | 00000 | 00 | 000 | 00000 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
0x08 | OPAMP3 CSR | 0.00% | in O TVO | TRIMOFFSETN | TRIMOFFSETP | PGA_GAIN | 73S7V0 | NOTVO | 中 | N301NIVd0 | WSHVdO | 73s WA | WIYJIJASN | 7.3S dA | dA 30803 | N3Vd0 | ||||||||||
Reset value | 0 | 0 | 00 | 0 | 00 | 00000 | 00000 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||
0x0C | OPAMP4_CSR | 1Q20 | 100.7V0 | TRIMOFFSETN | TRIMOFFSETP | PGA_GAIN | CSS | NOTVO | Refs. | Revisite | N301NIVd0 | WSHVdO | WSTS | WIYLLY | 13S dA | dA 30803 | N3Vd0 | |||||||||
Reset value | 0 | 0 | 00000 | 00 | 000 | 00000 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||
0x10 | OPAMP5 CSR | 0.00% | in only on | TRIMOFFSETN | TRIMOFFSETP | PGA_GAIN | 73STVO | NO7VO | 名 | N301NIVd0 | WSHVdO | WSTS | WIYJIVESN | 73S dA | dA 30803 | N3Vd0 | ||||||||||
Reset value | 0 | 0 | 00000 | 00 | 000 | 00000 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
0x14 | OPAMP6_CSR | 0.00% | Inotwo | TRIMOFFSETN | TRIMOFFSETP | PGA_GAIN | 13STVO | NO7VO | 出色 | N301NIVd0 | WSHVdO | 135 WA | WIV.1.43SN | 73S dA | dA 30803 | N3Vd0 | ||||||||||
Reset value | 0 | 0 | 00 | 0 | 00 | 00 | 000 | 0 | 0 | 00 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||
0x18 | OPAMP1 TCMR | 0.00% | : | PUP | COMPLATE | (a) | 粉中PROS | :PROMP | 电子Proof.中心 | 新华 | 好 | Proof.1,010 | PUB | 3E | 1.5 | For | 3 | PRON | 3 | E | N3 W002 | N3 W081 | N3 W011 | 73$ SdA | 73S SWA | |
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||
0x1C | OPAMP2 TCMR | 0.04 | y | 33 | BULBUG | 38 | 33 | ForS | 323好的 | SHOR | 好的 | SHE3 | 1.00% | 时3 | 千港元 | S | 3 | 8 | 好 | 郎 | I3 WO0Z1 | N3 W081 | N3 W011 | 73S SdA | 73S SWA | |
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||
0x20 | OPAMP3 TCMR | 0.00% | si | : | 5,659S | 5,659 | 3品 | 3For | gB33 | 千港元 | : | 1.00%6,699 | 3 | :Let | 33 | 上市 | : | g | CHE | 千港元 | 孟 120,000 | N3_W08⊥ | N3 W011 | 7.3S SdA | 138 SWA | |
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||
0x24 | OPAMP4 TCMR | 0.00% | 5,939 | 8 | 8BUG | 5.00 | 粉BUS | SUS(a) | 8For3 | 8 | 3 | RECT3 | (a) | 1.003 | 1.0 | SU | 2,000 | 5 | 3 | 超市 | N3 WO0Z1 | N3_W081 | N3「W011 | 73S SdA | 73S SWA | |
Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Offset | Register name | 31 | 30 | 23 | 2Q3 | 27 | 26 | 26 | 24 | 23 | 22 | 21 | 2023 | 0 | 1.0 | 17 | 16 | 16 | 4 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 32 | 1 | O |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x28 | OPAMP5 TCMR | 0.00% | 3 | For | 1.00 | Let | 5.5 | 粉中 | S | 8 | 新疆 | PUL | gas | Let | Proof. | STO | 好的 | 3 | : | 好的 | SUB | BUR | gas | PUP | gas | : | For | N3_WO0Z⊥ | N3_W081 | N3「W011 | 73$ SdA | 73s SWA |
Reset value | 0 | 0 | 0 | 00 | 0 | 0 | ||||||||||||||||||||||||||
0x2C | OPAMP6 TCMR | Jonate | S | SHIP | For | 股份 | For | 鲜 | S | 3 | PROS | 3 | 3 | S | 3 | y | RAMP | S | 3 | 股份 | BUG | 3 | 3 | 3 | 特价 | y | 部平 | N3 | N3 W011 | 73s~SdA | 73S SWA | |
Reset value | 0 | 0 | 0 | 00 | 0 | 0 |
Signal name | Signal type | Description |
---|---|---|
rng_it | Digital output | RNG global interrupt request |
rng_hclk | Digital input | AHB clock |
rng_clk | Digital input | RNG dedicated clock, asynchronous to rng_hclk |
Interrupt acronym | Interrupt event | Event flag | Enable control bit | Interrupt clear method |
---|---|---|---|---|
RNG | Data ready flag | DRDY | IE | None (automatic) |
Seed error flag | SEIS | IE | Write 0 to SEIS | |
Clock error flag | CEIS | IE | Write 0 to CEIS |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | CED | Res. | IE | RNGEN | Res. | Res. |
rw | rw | rw |
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SEIS | CEIS | Res. | Res. | SECS | CECS | DRDY |
rc_w0 | rc_w0 | r | r | r |
RNDATA[15:0] | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Offset | Register name | 3,31 | 3.0 | 2Q | 2 | 2 | 215 | 4 | 3 | 2 | 2 | 20 | 1. | 1. | 门 | 16 | 5 | 4 | 1 | 12 | 1 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | O |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x000 | RNG_CR | 的 | 3 | si | mid | 中国的 | 3 | 中国 | si | 3 | 4 | 串 | 13 | 3 | si | 3 | 3 | 3 | 3 | 3 | 动 | : | CON | 旧 | N35NY | 坊 | ||||||
Reset value | 0 | 0 | 0 | |||||||||||||||||||||||||||||
0x004 | RNG_SR | STA | of | 3 | 新鲜 | 中国Let | ![]() | ![]() | Let | LATE | SCO | Let | g | of | COM | 新中 | 访 | g | SEL | CII | SEL | CEPT | Depth | |||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
0x008 | RNG DR | RNDATA[31:0] | ||||||||||||||||||||||||||||||
Reset value | 0 | 0 | 0 | 0 | 0 | 00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |