Technical Reference Manual
002-29852 Rev. *B
14.2.27.2 FLASHC_FM_CODE_MARGIN
Description:
Flash Macro Margin Mode on Code Flash
Address:
0x4024F004
Offset:
0x4
Retention:
Not Retained
IsDeepSleep:
No
Comment:
This register shell be used when Margin read is applied to the s40ect Flash IP. One should set
the DCS trim that serves as the reference current to the area between 4-8uA (around the 6uA
normal static ref current) and set the enable. After that one should wait ~10uSec before
starting to read any data in the Code Flash. Once Finished the MARGIN_MODE_EN should
be reset. Again, user should wait ~10uSec before continue to work with the Flash normally.
Default:
0x3943
Bit-field Table
Bits
7
6
5
4
3
2
1
0
Name
MARGIN_DCS_TRIM [7:0]
Bits
15
14
13
12
11
10
9
8
Name
MARGIN_RDREG_TRIM [15:10]
MARGIN
_DCS
_TRIM_EN
[9:9]
MARGIN
_DCS
_TRIM [8:8]
Bits
23
22
21
20
19
18
17
16
Name
None [23:16]
Bits
31
30
29
28
27
26
25
24
Name
MARGIN
_MODE
_EN [31:31]
MARGIN
_MODE
_RDREG_C
HNG_EN
[30:30]
MARGIN
_PGM_ERS
_B [29:29]
None [28:24]
Bit-fields
Bits Name
SW
HW
Default or
Enum
Description
0:8
MARGIN_DCS_TRIM
RW
R
323
see above table to set the DCS reference current
value to be used during Margin mode. (default set to
5uS = 0x143) which gives a Margin to the Erase side.
7uA would probably be used for Margin to the PGM
side
9
MARGIN_DCS_TRIM_EN RW
R
0
0: internal device defaults used from Margin reads
reference current
1: MARGIN_DCS_TRIM configuration is used during
Margin read
10:15 MARGIN_RDREG_TRIM
RW
R
14
rdreg_c trim to be used in Margin mode if enabled by
MARGIN_MODE_RDREG_CHNG_EN
29
MARGIN_PGM_ERS_B
RW
R
0
0: ERS Margin is checked
1: PGM Margin is checked
30
MARGIN_MODE_RDREG
_CHNG_EN
RW
R
0
when set will also use the MARGIN_RDREG_TRIM
from above. Default is not to use
31
MARGIN_MODE_EN
RW
R
0
when set puts the s40ect Flash IP In Margin mode
966
2022-04-18
TRAVEO™ T2G Automotive MCU: TVII-B-E-4M body controller entry registers