AT89C5130A-M Atmel Corporation, AT89C5130A-M Datasheet - Page 32

no-image

AT89C5130A-M

Manufacturer Part Number
AT89C5130A-M
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C5130A-M

Flash (kbytes)
16 Kbytes
Max. Operating Frequency
48 MHz
Cpu
8051-12C
Max I/o Pins
34
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
1
Twi (i2c)
1
Uart
1
Sram (kbytes)
1.25
Eeprom (bytes)
1024
Self Program Memory
API
Operating Voltage (vcc)
2.7 to 5.5
Timers
4
Isp
UART/USB
Watchdog
Yes
8.2.1.4
8.3
8.3.1
8.3.2
32
Overview of FM0 Operations
AT89C5130A/31A-M
Mapping of the Memory Space
Launching Programming
Column Latches
The column latches, also part of FM0, have a size of full page (128 bytes).
The column latches are the entrance buffers of the three previous memory locations (user array,
XRow and Hardware security byte).
The CPU interfaces to the Flash memory through the FCON register and AUXR1 register.
These registers are used to:
By default, the user space is accessed by MOVC instruction for read only. The column latches
space is made accessible by setting the FPS bit in FCON register. Writing is possible from
0000h to 3FFFH/7FFFh, 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 this bit takes precedence on the EXTRAM bit in AUXR 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 accordance with
Table 8-2. A MOVC instruction is then used for reading these spaces.
Table 8-2.
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 program-
ming. This sequence is 5 followed by A. Table 8-3 summarizes the memory spaces to program
according to FMOD1:0 bits.
• 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)
• Select the Flash memory FM0/FM1.
FMOD1
FM0 Blocks Select Bits
0
0
1
1
FMOD0
0
1
0
1
FM0 Adressable Space
User (0000h-FFFFh)
Extra Row(FF80h-FFFFh)
Hardware Security (0000h)
reserved
4337K–USB–04/08

Related parts for AT89C5130A-M