AT89C5131A-M Atmel Corporation, AT89C5131A-M Datasheet - Page 33

no-image

AT89C5131A-M

Manufacturer Part Number
AT89C5131A-M
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C5131A-M

Flash (kbytes)
32 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.3.3
8.3.4
8.3.5
4337K–USB–04/08
Status of the Flash Memory
Selecting FM0/FM1
Loading the Column Latches
Table 8-3.
The Flash memory enters a busy state as soon as programming is launched. In this state, the
memory is not available for fetching code. Thus to avoid any erratic execution during program-
ming, the CPU enters Idle mode. Exit is automatically performed at the end of programming.
Note:
The bit FBUSY in FCON register is used to indicate the status of programming.
FBUSY is set when programming is in progress.
The bit ENBOOT in AUXR1 register is used to choose between FM0 and FM1 mapped up to
F800h.
Any number of data from 1 byte to 128 bytes can be loaded in the column latches. This provides
the capability to program the whole memory by byte, by page or by any number of bytes in a
page.
When programming is launched, an automatic erase of the locations loaded in the column
latches is first performed, then programming is effectively done. Thus, no page or block erase is
needed and only the loaded data are programmed in the corresponding page.
The following procedure is used to load the column latches and is summarized in Figure 8-5:
• Map the column latch space by setting FPS bit.
• Load the DPTR with the address to load.
• Load Accumulator register with the data to load.
• Execute the MOVX @DPTR, A instruction.
• If needed loop the three last instructions until the page is completely loaded.
Interrupts that may occur during programming time must be disabled to avoid any spurious exit of
the idle mode.
Extra Row
Reserved
Security
Space
User
Programming Spaces
FPL3:0
A
A
A
A
5
5
5
5
FPS
X
X
X
X
X
X
X
X
Write to FCON
FMOD1
0
0
0
0
1
1
1
1
FMOD0
AT89C5130A/31A-M
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
33

Related parts for AT89C5131A-M