6 watchdog timer, 7 i/o ports, 8 reset – Rainbow Electronics AT89LP214 User Manual

Page 7: Memory organization, 1 program memory

Advertising
background image

7

3538A–MICRO–7/06

AT89LP213/214 [Preliminary]

5.6

Watchdog Timer

The Watchdog Timer in AT89LP213/214 counts at a rate of once per clock cycle. This compares
to once every 12 clocks in the standard 8051. A common prescaler is available to divide the time
base for all timers and reduce the counting rate.

5.7

I/O Ports

The I/O ports of the AT89LP213/214 may be configured in four different modes. By default all
the I/O ports revert to input-only (tristated) mode at power-up or reset. In the standard 8051, all
ports are weakly pulled high during power-up or reset. To enable 8051-like ports, the ports must
be put into quasi-bidirectional mode by clearing the P1M0 and P3M0 SFRs. The user can also
configure the ports to start in quasi-bidirectional mode by disabling the Tristate-Port User Fuse.
When this fuse is disabled, P1M0 and P3M0 will reset to 00h instead of FFh and the ports will be
weakly pulled high.

5.8

Reset

The RST pin of the AT89LP213/214 is active-low as compared with the active high reset in the
standard 8051. In addition, the RST pin is sampled every clock cycle and must be held low for a
minimum of two clock cycles, instead of 24 clock cycles, to be recognized as a valid reset.

6.

Memory Organization

The AT89LP213/214 uses a Harvard Architecture with separate address spaces for program
and data memory. The program memory has a regular linear address space with support for up
to 64K bytes of directly addressable application code. The data memory has 128 bytes of inter-
nal RAM and 128 bytes of Special Function Register I/O space. The AT89LP213/214 does not
support external data memory or external program memory.

6.1

Program Memory

The AT89LP213/214 contains 2K bytes of on-chip In-System Programmable Flash memory for
program storage. The Flash memory has an endurance of at least 10,000 write/erase cycles and
a minimum data retention time of 10 years. The reset and interrupt vectors are located within the
first 59 bytes of program memory (refer to

Table 12-1 on page 19

). Constant tables can be allo-

cated within the entire 2K program memory address space for access by the MOVC instruction.
The AT89LP213/214 does not support external program memory.

Figure 6-1.

Program Memory Map

Program Memory

0000

07FF

0000

001F

Atmel Signature Array

0040

007F

User Signature Array

Advertising