T89C5115 ATMEL Corporation, T89C5115 Datasheet - Page 31

no-image

T89C5115

Manufacturer Part Number
T89C5115
Description
Low Pin Count 8-bit MCU with A/D Converter and 16-Kbytes of Flash Memory
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
T89C5115-RATIM
Manufacturer:
TI
Quantity:
1 474
Part Number:
T89C5115-RATIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C5115-SISIM
Manufacturer:
Atmel
Quantity:
10 000
Overview of FM0
Operations
Mapping of the Memory Space By default, the user space is accessed by MOVC instruction for read only. The column
Launching Programming
4128A–8051–04/02
The CPU interfaces to the Flash memory through the FCON register and AUXR1
register.
These registers are used to:
latches space is made accessible by setting the FPS bit in FCON register. Writing is
possible from 0000h to 3FFFh, address bits 6 to 0 are used to select an address within a
page while bits 14 to 7 are used to select the programming address of the page.
Setting FPS bit takes precedence on the EEE bit in EECON register.
The other memory spaces (user, extra row, hardware security) are made accessible in
the code segment by programming bits FMOD0 and FMOD1 in FCON register in accor-
dance with Table 20. A MOVC instruction is then used for reading these spaces.
Table 20. FM0 Blocks Select Bits
FPL3:0 bits in FCON register are used to secure the launch of programming. A specific
sequence must be written in these bits to unlock the write protection and to launch the
programming. This sequence is 5xh followed by Axh. Table 21 summarizes the memory
spaces to program according to FMOD1:0 bits.
Table 21. Programming Spaces
Note:
Extra Row
Hardware
Reserved
Security
Map the memory spaces in the adressable space
Launch the programming of the memory spaces
Get the status of the flash memory (busy/not busy)
User
Byte
FMOD1
The sequence 5xh and Axh must be executing without instructions between them other-
wise the programming is aborted.
0
0
1
1
FPL3:0
A
A
A
A
5
5
5
5
FMOD0
FPS
0
1
0
1
Write to FCON
X
X
X
X
X
X
X
X
FMOD1
FM0 Adressable space
User (0000h-3FFFh)
Extra Row(FF80h-FFFFh)
Hardware Security Byte (0000h)
reserved
0
0
0
0
1
1
1
1
FMOD0
0
0
1
1
0
0
1
1
Operation
No action
Write the column latches in user
space
No action
Write the column latches in extra row
space
No action
Write the fuse bits space
No action
No action
T89C5115
31

Related parts for T89C5115