数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ST10 数据表(PDF) 14 Page - STMicroelectronics

部件名 ST10
功能描述  16-BIT MCU WITH 128KBYTE FLASH MEMORY
PDF  58 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

ST10 数据表(HTML) 14 Page - STMicroelectronics

Back Button ST10 Datasheet HTML 10Page - STMicroelectronics ST10 Datasheet HTML 11Page - STMicroelectronics ST10 Datasheet HTML 12Page - STMicroelectronics ST10 Datasheet HTML 13Page - STMicroelectronics ST10 Datasheet HTML 14Page - STMicroelectronics ST10 Datasheet HTML 15Page - STMicroelectronics ST10 Datasheet HTML 16Page - STMicroelectronics ST10 Datasheet HTML 17Page - STMicroelectronics ST10 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 58 page
background image
ST10F163
14/58
V.2 - Flash memory configuration
The default memory configuration is determined
by the state of the EA pin at reset. This value is
stored in the Internal ROM enable bit: ROMEN of
the SYSCON Register.
When ROMEN=0, the internal ROM is disabled
and external ROM is used for start-up control. The
first 32KBytes of the flash memory area must be
re-mapped to segment 1, to enable their later use.
This is done by setting the ROMS1 bit of
SYSCON to 0. This is done by the externally sup-
plied program, before the execution of the EINIT
instruction.
If program execution starts from external memory,
but access to the flash memory (re-mapped to
Bank 1) is required later, one of the following val-
ues has to be written to the SYSCON register,
before the end of initialization:
– If flash is to be mapped to segment 1:
xxx100xxxxxxxxxxb
(ROMS1=1,SGTDIS=0)
– If flash is to be mapped to segment 0:
xxx000xxxxxxxxxxb
(ROMS1=0,SGTDIS=0)
All other parts of the flash memory (addresses
18000h - 1FFFFh) remain unaffected.
The SGTDIS Segmentation Disable/Enable must
be set to 0 so that the 64KBytes of on-chip mem-
ory can be used in addition to the external boot
memory. The correct procedure for changing the
segmentation registers must be observed, to pre-
vent unwanted trap conditions:
– Instructions that configure the internal memory
must only be executed
from external memory
or from the internal RAM.
– Whenever the internal memory is disabled, ena-
bled or re-mapped, the DPPs must be explicitly
(re)loaded to enable correct data accesses to
the internal memory and/or external memory.
V.3 - Flash protection
The flash protection mode, prevents the reading
of data operands in the flash memory by anything
but a program executed from the flash memory
itself. Flash protection mode permits program
branches from, or into the flash memory, but does
not permit erasing and programming of the flash
memory.
Flash protection is controlled by the Protection
UPROM Programming Bit (UPROG). UPROG is a
’hidden’ one-time programmable bit. It is only
accessible in a special mode, entered, for exam-
ple, via a flash EPROM programming board. If
UPROG is set to ‘1’, flash protection is active after
reset. By default flash protection is disabled
(UPROG=0).
For deactivation of flash protection, where the
flash memory has to be reprogrammed with
updated program/variables, a zero value must be
written at every even address in the active
address space of the flash memory. This write can
only be done by an instruction executed from the
internal
flash
memory
itself,
e.g.
MOV
FLASH,ZEROS.
MOV
R1, #09000h
; First Flash Segment Offset Address
MOV
R2, #09FFEh
; Last Flash Segment Offset Address
MOV
R3, #01000h
; Source data address: use DPP2 as
; data page pointer
SCXT
DPP2,#0Ch
; Source is in page 12 (0Ch): save previous
; DPP2 value and load it with source page
; number
MOV
R4, #050d
; 50ns is 20 MHz CPU clock frequency
MOV
R7, #08000h
; R7 used for Flash trigger sequence
#define FCR 08000h
EXTS
#1, #2
; flash can be mapped in segment 0 or 1
MOV
FCR, R7
; first part
MOV
[R7], R7
; second part
NOP
; WARNING: place 2 NOP operations after
NOP
; the Unlock sequence to avoid all possible
; pipeline conflict in STEAK programs
POP
DPP2
; restore DPP2



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com