tmp89fm82t TOSHIBA Semiconductor CORPORATION, tmp89fm82t Datasheet - Page 30

no-image

tmp89fm82t

Manufacturer Part Number
tmp89fm82t
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
2.2
Memory space
RA000
Flash memory control register 1
Flash memory control register 2
(0x0FD0)
(0x0FD1)
FLSCR1
FLSCR2
2.2.2.3
Note:The flash memory control register 1 has a double-buffer structure comprised of the register FLSCR1 and a shift
CLR_RAM:
register. Writing "0xD5" to the register FLSCR2 allows a register setting to be reflected and take effect in the shift
register. This means that a register setting value does not take effect until "0xD5" is written to the register FLSCR2.
The value of the shift register can be checked by reading the register FLSCRM.
Example: RAM initialization program
0x17FF in the code area and to 0x1000 to 0x17FF in the data area. Flash memory can be easily programmed
by using the API (Application Programming Interface) contained in the BOOTROM.
Read/Write
BAREA
Read/Write
CR1EN
Bit Symbol
Bit Symbol
After reset
After reset
The BOOTROM is not mapped in the code area or the data area after reset release.
BOOTROM
Setting FLSCR1<BAREA> to "1" and writing 0xD5 to FLSCR2 maps the BOOTROM to 0x1000 to
Note 1: When the BOOTROM is not mapped in the data area, 0xFF is read from 0x1000 to 0x17FF.
Note2: Only the first 2 Kbytes of the BOOTROM are mapped in the memory map, except in the serial PROM
LD
LD
LD
LD
INC
DEC
J
Specifies mapping of the BOOT-
ROM in the code and data areas
FLSCR1 register
enable/disable control
mode.
HL, RAM_TOP_ADDRESS
A, 0x00
BC, BYTE_OF_CLEAR_BYTES
(HL), A
HL
BC
F, CLR_RAM
7
0
7
*
(FLSMD)
R/W
6
1
6
*
5
0
5
Others
*
Page 14
0 :
1 :
0xD5
The BOOTROM is not mapped to 0x1000 to 0x17FF in the code area and
to 0x1000 to 0x17FF in the data area.
The BOOTROM is mapped to 0x1000 to 0x17FF in the code area and to
0x1000 to 0x17FF in the data area.
Enable a change in the FLSCR1 setting
Reserved
BAREA
R/W
;Head of address of the RAM to be initialized
;Initialization data
;Number of bytes of RAM to be initialized -1
;Initialization of the RAM
;Initialization address increment
;Have all the RAMs been initialized?
4
0
4
*
CR1EN
W
3
0
3
*
(FAREA)
R/W
2
0
2
*
1
0
1
*
TMP89FM82T
(ROMSEL)
R/W
0
0
0
*

Related parts for tmp89fm82t