AT32WB415
Series Reference Manual
2022.04.13
Page 73
Ver 2.00
5.7 Flash memory registers
These peripheral registers must be accessed by words (32 bits).
Table 5-4
Flash memory interface
—
Register map and reset value
Register
Offset
Reset value
FLASH_PSR
0x00
0x0000 0030
FLASH_UNLOCK
0x04
0xXXXX XXXX
FLASH_USD_UNLOCK
0x08
0xXXXX XXXX
FLASH_STS
0x0C
0x0000 0000
FLASH_CTRL
0x10
0x0000 0080
FLASH_ADDR
0x14
0x0000 0000
FLASH_USD
0x1C
0x03FF FFFC
FLASH_EPPS
0x20
0xFFFF FFFF
SLIB_STS0
0x74
0x0000 0000
SLIB_STS1
0x78
0x0000 0000
SLIB_PWD_CLR
0x7C
0xFFFF FFFF
SLIB_MISC_STS
0x80
0x0000 0000
FLASH_CRC_ADDR
0x84
0x0000 0000
FLASH_CRC_CTRL
0x88
0x0000 0000
FLASH_CRC_CHKR
0x8C
0x0000 0000
SLIB_SET_PWD
0x160
0x0000 0000
SLIB_SET_RANGE
0x164
0x0000 0000
EM_SLIB_SET
0x168
0x0000 0000
BTM_MODE_SET
0x16C
0x0000 0000
SLIB_UNLOCK
0x170
0x0000 0000
5.7.1
Flash performance select register (FLASH_PSR)
Bit
Abbr.
Reset value
Type
Description
Bit 31: 6
Reserved
0x00000
resd
Kept at its default value.
Bit 5
PFT_ENF
0x1
ro
Prefetch enable flag
When this bit is set, it indicates that the Flash prefetch is
enabled
Bit 4
PFT_EN
0x1
rw
Prefetch enable
0: Prefetch is disabled
1: Prefetch is enabled.
Bit 3
HFCYC_EN
0x0
rw
Half cycle acceleration access enable
0: Disabled
1: Enabled
This bit is used to speed up access to Flash memory when
WTCYC=0.
Bit 2: 0
WTCYC
0x0
rw
Wait states
The wait states depends on the size of the system clock,
and they are in terms of system clocks.
0: Zero wait state
1: One wait state
2: Two wait states
3: Three wait states
4: Four wait states
The system clock sets the wait state on a 32-MHz basis:
Zero wait state for the first 32 MHz
One wait state for the second 32 MHz
Two wait states on the third 32 MHz
Three wait states on the fourth 32 MHz
Four wait states on the fifth 32 MHz.