PDF Mpc89e52a
PDF Mpc89e52a
PDF Mpc89e52a
8-bit micro-controller
Features .................................................................................................................................. 2
General Description ............................................................................................................... 3
Pin Description....................................................................................................................... 4
Pin Definition................................................................................................................. 4
Pin Configuration........................................................................................................... 6
Block Diagram ....................................................................................................................... 7
Special Function Register ...................................................................................................... 8
Memory.................................................................................................................................. 9
Organization................................................................................................................... 9
Nonvolatile Registers:.................................................................................................. 10
RAM .............................................................................................................................11
Embedded Flash........................................................................................................... 12
Functional Description......................................................................................................... 13
TIMERS/COUNTERS................................................................................................. 13
TIMER0 (T0) AND TIMER1 (T2) ...................................................................... 15
TIMER2 ............................................................................................................... 16
Interrupt........................................................................................................................ 20
Watchdog Timer........................................................................................................... 22
Serial IO Port (UART) ................................................................................................. 23
Reset............................................................................................................................. 26
Power Saving Mode and POF...................................................................................... 26
In System Programming (ISP) ..................................................................................... 27
In-Application Program ............................................................................................... 31
Note for Other SFR ...................................................................................................... 32
Absolute Maximum Rating.................................................................................................. 33
DC Characteristics ............................................................................................................... 33
Package Dimension.............................................................................................................. 34
This document contains information on a new product under development by Megawin. Megawin reserves the right to change or discontinue
this product without notice.
Megawin Technology Co., Ltd. 2004 All right reserved. 2005/06 version A7
MEGAWIN
Features
! 80C51 Central Processing Unit
! Operation voltage range: 4.5V ~ 5.5V
! Optional 12T or 6T mode
! Max operation frequency up to 48MHz@12T or 24MHz@6T
! 8KB on-chip program memory
! ISP capability; optional 1KB/2KB/4KB ISP memory shared with data flash memory.
! IAP capability; up to 7K byte programmable data flash available shared with ISP memory.
! On-chip 256 byte scratch-pad RAM and 256 byte auxiliary RAM; Be capable of addressing up to
64K bytes external memory
! MOVC-disabling, encrypting, and locking flash memory realize security mechanism.
! Three 16-bit timer/counter, Timer2 is an up/down counter with programmable clock output on
P1.0
! Eight sources, four-level-priority interrupt capability
! Enhanced UART, provides frame-error detection and hardware address-recognition
! Dual DPTR for fast-accessing of data memory
! 15 bits Watch-Dog-Timer with 8-bit pre-scalar, one-time enabled
! Power control: idle mode and power-down mode; Power-down can be woken-up by
P3.2/P3.3/P4.2/P4.3
! Low EMI: inhibit ALE emission
! Four 8-bit bi-directional ports; extra four-bit additional P4 are available for PLCC-44 and
PQPF-44
! Three package types:
- PDIP 40: MPC89E52AE
- PLCC 44: MPC89E52AP
- PQFP 44: MPC89E52AF
P4.3 (/INT2) 12 6
RESET 9 10 4 IS A high on this pin for at least two
machine cycles will reset the device.
ALE 30 33 27 O Output pulse for latching the low byte of
address during accesses to external
memory.
/PSEN 29 32 26 O The read strobe to external program
memory, low active.
/EA 31 35 29 I EA must be kept at low to enable the
device to fetch program code from
external flash memory.
An internal pull-up resistance has been
embedded in this pin.
XTAL1 19 21 15 I Input to the inverting oscillator amplifier.
XTAL2 18 20 14 O Output from the inverting amplifier.
VDD 40 44 38 P Power Supply
VSS 20 22 16 G Ground
(T2EX) P1.1
(INT3) P4.2
(AD0) P0.0
(AD1) P0.1
(AD2) P0.2
(AD3) P0.3
(T2) P1.0
VDD
P1.4
P1.3
P1.2
(T2) P1.0 1 40 VDD
(T2EX) P1.1 2 39 P0.0 (AD0)
P1.2 3 38 P0.1 (AD1)
P1.3 4 37 P0.2 (AD2)
P1.4 5 36 P0.3 (AD3) 6 5 4 3 2 1 44 43 42 41 40
P1.5 6 35 P0.4 (AD4) P1.5 7 39 P0.4 (AD4)
MPC89E52AE
P3.6 (/WR)
P3.7 (/RD)
XTAL2
XTAL1
VSS
P4.0
P2.0 (A8)
P2.1 (A9)
P2.2 (A10)
P2.3 (A11)
P2.4 (A12)
(T2EX) P1.1
(INT3) P4.2
(AD0) P0.0
(AD1) P0.1
(AD2) P0.2
(AD3) P0.3
(T2) P1.0
VDD
P1.4
P1.3
P1.2
44 43 42 41 40 39 38 37 36 35 34
P1.5 1 33 P0.4 (AD4)
P1.6 2 32 P0.5 (AD5)
P1.7 3 31 P0.6 (AD6)
RESET 4 30 P0.7 (AD7)
(RXD) P3.0 5 29 /EA
(/INT2) P4.3 6 MPC89E52AF 28 P4.1
(TXD) P3.1 7 27 ALE
(INT0) P3.2 8
(PQFP-44) 26 /PSEN
(INT1) P3.3 9 25 P2.7 (A15)
(T0) P3.4 10 24 P2.6 (A14)
(T1) P3.5 11 23 P2.5 (A13)
12 13 1415 16171819202122
P3.6 (/WR)
P3.7 (/RD)
XTAL2
XTAL1
VSS
P4.0
P2.0 (A8)
P2.1 (A9)
P2.2 (A10)
P2.3 (A11)
P2.4 (A12)
Flash ROM
B Register ACC Stack Pointer
ISP
TMP2 TMP1
Timer0/1
Address
ALU Timer2 Generator
UART
PSW WDT Program
Counter
DPTR
XTAL1 XTAL2
7F
FF
80
7 6 5 4 3 2 1 0
FZWDTCR OSCDN HWBS EN6T
Non-volatile register OR1
Generally these two nonvolatile registers will be written via a popular NVM writer, say Hi-Lo
System All-11, Leaper-48 and Megawin-Provided MCU writer. Furthermore, the user can
change the NVM register OR1 by his ISP program in a manner as same as he does in writing
the data flash, but OR0 can be written only via an off-line popular NVM writer.
{ISPAS1, ISPAS0}: Used to identify the start address for ISP program
{0, 0} := The ISP space is from 0x2C00 to 0x3BFF (4K size).
{0, 1} := The ISP space is from 0x3400 to 0x3BFF (2K size).
{1, 0} := The ISP space is from 0x3800 to 0x3BFF (1K size)
{1, 1} := No ISP space.
These two bits decide where the ISP program locates, and how the ISP program and the data flash
shares the 11K embedded flash.
SB: Used to decide if the program code will be scrambled while it is dumped.
0 := Code dump from Writer is scrambled.
1 := Code dump from Writer is transparent.
LOCK: Used to decide if the program code will be locked against the popular writer.
0 := lock code.
1 := does not lock code
If the code is locked, all the data dumped from a popular will always show FFh.
HWBS: Used to configure the MPC89E52A boot from ISP program or normal application program after
the power-on sequence.
0 := The MPC89E52A will boot from ISP start address after power-on.
1 := No operation. The MPC89E52A will boot from normal application program.
RAM
There are 512 bytes RAM built in MPC89E52A.
The user can visit the leading 128-byte RAM via direct addressing instructions, we name those
RAM as direct RAM that occupies address space 00h to 7Fh.
Followed 128-byte RAM can be visited via indirect addressing instructions, we name those
RAM as indirect RAM that occupied address space 80h to FFh.
The other 256-byte RAM is named expanded RAM that still occupied address space 00h to
FFh. An user can access it via general register Ri, or via data pointers DPTR associated with
MOVX instructions, say MOVX A, @R1 or MOVX A, @DPTR. To reserve the natural character of
instruction MOVX that is designed to access external memory, the user can set the bit ERAM
in SFR AUXR as 1, so to hide the expanded RAM and visit the external memory.
The leading 8K byte flash memory is designed for storage of the user program, followed 7K
byte flash memory is shared with nonvolatile data flash and ISP program.
While the program counter of MPC89E52A is spanning over 1FFFh, the device will fetch its
program code from the external memory at once ignoring the /EA pin status. In that case, it will
never fetch the program code from the following embedded flash.
The user can develop his ISP program and put it into the embedded flash that addressed from
2C00h, 3400h, or 3800h by configuring OR0[5:4]. Excluding the ISP program, the remained
flash can be taken as data flash which can be read, even written by the application program or
the ISP program from the user.
While T0/T1/T2 is used as “timer” function, the time unit that used to trig the timer is machine
cycle. A machine cycle equals 12 or 6 oscillator periods, and it depends on 12T mode or 6T
mode that the user configured this device.
While T0/T1/T2 is used as “1-0 event counter” function, the counting event is the “high-to-low
transition” of primitive pin T0/T1/T2. In this mode, the device periodically samples the status of
pin T0/T1/T2 once for each machine cycle. Whenever the sampled result turns from 1 to 0, the
device will count once the counter. Be carefully, the kind of implementation for the counter
requires that the high-duty or low-duty from pin T0/T1/T2 must be not too short compared to a
machine cycle.
There are two SFR designed to configure timers T0 and T1. They are TMOD, TCON.
There are extra two SFR designed to configure timer T2. They are T2MOD, T2CON.
SFR: TMOD
Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
GATE: Gating control when set. If GATE=1, Timer/Counter x is enabled only while “/INTx” pin is high and
“TRx” control bit is set. When cleared Timer x is enabled whenever “TRx” control bit is set.
{1, 0}: = 8-bit timer/counter with automatic reload for Timer0 and Timer1
{1, 1}: = for Timer0: = TL0 is 8-bit timer/counter, TH0 is locked into 8-bit timer
TF1: = Timer1 overflow flag. Set by hardware on Timer/Counter overflow. Cleared by hardware when the
processor vectors to the interrupt routine, or clearing the bit in software.
TF0: = Timer0 overflow flag. Set by hardware on Timer/Counter overflow. Cleared by hardware when the
processor vectors to the interrupt routine, or clearing the bit in software.
IE1: = Interrupt 1 Edge flag. Set by hardware when external interrupt edge detected. Cleared when
interrupt processed.
IT1: = Interrupt 1 type control bit. Set/Cleared by software to specified falling edge/low level triggered
interrupt.
IE0: = Interrupt 0 Edge flag. Set by hardware when external interrupt edge detected. Cleared when
interrupt processed.
IT0: = Interrupt 0 type control bit. Set/Cleared by software to specified falling edge/low level triggered
interrupt.
SFR: T2MOD
Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
T2OE DCEN
T2OE: Timer 2 Output Enable bit. It enables Timer2 overflow rate to toggle P1.0.
DCEN: Down Count Enable bit. When set, this allows Timer2 to be configured as a down counter.
SFR: T2CON
Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
TF2 EXF2 RCLK TCLK EXEN2 TR2 C//T2 CP/RL2
TF2: Timer2 overflow flag. It will be set by a Timer2 overflow and must be cleared by software.
TF2 will not be set when either TCLK or RCLK =1.
EXF2: Timer2 external flag. It will be set when either a capture or reload is caused by a negative transition
on pin T2EX and EXEN2=1. When Timer2 interrupt is enabled, EXF2=1 will cause the CPU to
vector to he timer2 interrupt routine. EXF2 must be cleared by software. EXF2 does not cause an
interrupt in Auto-Reload Up-Down mode (ARUD).
RCLK: When set causes the serial port to use Timer2 overflow pulse for its receive clock in mode and
mode 3. RCLK=0 causes Timer1 overflow pulse to be used.
TCLK: When set causes the serial port to use Timer2 overflow pulse for its transmit clock in mode 1 and
mode 3. RCLK=0 causes Timer1 overflow pulse to be used.
EXEN2: Timer-2 external enable flag. When set, allows a capture or reload to occur. As a result of a
negative transition on T2EX if Timer2 is not being used to clock the serial port.
EXEN2=0 causes Timer2 to ignore events at T2EX.
CP/RL2: Capture/Reload flag. When set, captures will occurs on a negative transition at T2EX if
EXEN2=1. When cleared, auto-reloads will occur either with Timer2 overflows or a negative
transition at T2EX when EXEN2=1. When wither TCLK or RCLK is 1, this bit is ignored and the
timer is forced to auto-reload on Timer2 overflow.
Mode 0
The timer register is configured as a 13-bit register. As the count rolls over from all 1s to all 0s,
it sets the timer interrupt flag TFx. The counted input is enabled to the timer when TRx = 1 and
either GATE=0 or INTx = 1. Mode 0 operation is the same for Timer0 and Timer1.
0 TFx Interrupt
OSC/12 0 TLx[4:0] THx[7:0]
1
T0 or T1 pin 1
(sampled)
C//T
TRx
GATE
/INTx
Mode 1
Mode1 is the same as Mode0, except that the timer register is being run with all 16 bits.
0 TFx Interrupt
OSC/12 0 TLx[7:0] THx[7:0]
1
T0 or T1 pin 1
(sampled)
C//T
TRx
GATE
/INTx
Mode 2
Mode 2 configures the timer register as an 8-bit counter (TLx) with automatic reload. Overflow
from TLx does not only set TFx, but also reloads TLx with the content of THx, which is
determined by user’s program. The reload leaves THx unchanged. Mode 2 operation is the
same for Timer0 and Timer1.
/INTx
Mode 3
Timer1 in Mode3 simply holds its count, the effect is the same as setting TR1 = 1. Timer0 in
Mode 3 enables TL0 and TH0 as two separate 8-bit counters. TL0 uses the Timer0 control bits
such like C/T, GATE, TR0, INT0 and TF0. TH0 is locked into a timer function (can not be
external event counter) and take over the use of TR1, TF1 from Timer1. TH0 now controls the
Timer1 interrupt.
C//T
TR0
GATE
/INT0
TR1
TIMER2
Timer2 is a 16-bit timer/counter which can operate as either an event timer or an event
counter as selected by C//T2 in the special function register T2CON. Timer2 has four
operation modes: Capture Mode (CP), Auto-Reload Up/Down Mode (ARUD), Auto-Reload
Up-Only mode (ARUO) and Baud-Rate Generator Mode (BRG).
LogicalOR CP/RL2 TR2 DCEN Mode
(RCLK, TCLK)
x x 0 x OFF
1 x 1 0 Baud-Rate Generation
0 1 1 0 Capture
0 0 1 0 Auto-Reload Up-only
0 0 1 1 Auto-Reload Up/Down
Timer2 Mode Table
Oscillator frequency
0
OSC/12 0 TL2 [7:0] TH2[7:0] TF2
1
T2 pin 1
C//T2
TR2
0
OSC/12 0 TL2 [7:0] TH2[7:0] TF2
1
T2 pin 1
C//T2
TR2
Interrupt
EXF2
T2EX pin
EXEN2
FFH FFH
EXF2
0
OSC/12 0 TL2 [7:0] TH2[7:0] TF2
1
T2 pin 1 Interrupt
C//T2
In BRG mode, Timers is operated very like auto-reload up-only mode except that the T2EX pin
cannot control reload. An overflow on Timer2 will load RCAP2H, RCAP2L contents onto
Timer2, but TF2 will not be set. A 1-to-0 transition on P2EX pin can set EXF2 to request
interrupt service if EXEN2=1.
The baud rate in UART Mode1 and Mode3 are determined by Timer2’s overflow rate given
below:
Oscillator Frequency
Baud Rate = (as a timer)
[32 x [65536 – (RCAP2H, RCAP2L) ] ]
Timer1 overflow
2
“0” “1”
SMOD
0 “1” “0”
OSC/12 0 TL2[7:0] TH2[7:0]
1 RCLK
T2 pin 1
16
C//T2
TR2
“1” “0”
TCLK RX Clock
RCAP2L[7:0] RCAP2H[7:0]
16
TX Clock
EXEN2
Each interrupt source has two corresponding bits to represent its priority. One is located in
SFR named IPH and the other in IP/XICON register. Higher-priority interrupt will be not
interrupted by lower-priority interrupt request. If two interrupt requests of different priority levels
are received simultaneously, the request of higher priority is serviced. If interrupt requests of
the same priority level are received simultaneously, an internal polling sequence determine
which request is serviced. The following table shows the internal polling sequence in the same
priority level and the interrupt vector address.
The external interrupt /INT0, /INT1, /INT2 and /INT3 can each be either level-activated or
transition-activated, depending on bits IT0 and IT1 in SFR TCON, IT2 and IT3 and XICON.
The flags that actually generate these interrupts are bits IE0 and IE1 in TCON, IE2 and IE3 in
XICON. When an external interrupt is generated, the flag that generated it is cleared by the
hardware when the service routine is vectored to only if the interrupt was transition –activated,
then the external requesting source is what controls the request flag, rather than the on-chip
hardware.
The Timer0 and Timer1 interrupts are generated by TF0 and TF1, which are set by a rollover
in their respective Timer/Counter registers in most cases. When a timer interrupt is generated,
the flag that generated it is cleared by the on-chip hardware when the service routine is
vectored to.
The serial port interrupt is generated by the logical OR of RI and TI. Neither of these flags is
cleared by hardware when the service routine is vectored to. The service routine should poll RI
and TI to determine which one to request service and it will be cleared by software.
The timer2 interrupt is generated by the logical OR of TF2 and EXF2. Just the same as serial
port, neither of these flags is cleared by hardware when the service routine is vectored to.
Watchdog Timer
CLK/12 8
ENW 8-bit pre-scalar timer 15-bit WDT
RESET
PS0
IDLE
WIDL PS1
PS2
CLRW
CLRW: Clear WDT to recount while it is set. Hardware will automatically clear this bit.
WIDL: Set this bit to disable WDT generating reset even though the μC is in idle mode.
Mode 0
Generally, this mode purely is used to extend the I/O features of this device.
Operating under this mode, the device receives the serial data or transmits the serial data via
pin RXD, while there is a clock stream shifted via pin TXD which makes convenient for
external synchronization. An 8-bit data is serially transmitted/received with LSB first. The baud
rate is fixed at 1/12 the oscillator frequency.
Mode1
A 10-bits data is serially transmitted through TXD or received through RXD. The frame data
includes a start bit (0), 8 data bits and a stop bit (1). After finishing a receiving, the device will
keep the stop bit in RB8 which from SRF SCON.
2 SMOD
Baud Rate (for Mode 1) X (Timer-1 overflow rate)
32
(Timer-2 overflow rate)
or =
16
2 SMOD
Baud Rate (for Mode 2) = X Fosc
64
Mode3
Mode 3 is the same as mode 2 except the baud rate is variable.
2 SMOD
Baud Rate (for Mode 3) X (Timer-1 overflow rate)
32
(Timer-2 overflow rate)
or =
16
In all four modes, transmission is initiated by any instruction that uses SBUF as a destination
register. Reception is initiated in mode 0 by the condition RI = 0 and REN = 1. Reception is
initiated in the other modes by the incoming start bit with 1-to-0 transition if REN=1.
There are several SFR related to serial port configuration described as following.
SFR: SCON (Serial Port Control):
Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
SM0/FE SM1 SM2 REN TB8 RB8 TI RI
FE: Frame Error bit. This bit is set by the receiver when an invalid stop bit is detected. The FE bit is not
cleared by valid frames, but should be cleared by software. The SMOD0 (PCON.6) bit must be set to
enable access to the FE bit.
{ SM0, SM1 }: Used to set operating mode of the serial port. It is enabled to access by clearing SMOD0.
{ 0, 0 } := set the serial port operate under Mode 0
{ 0, 1 } := set the serial port operate under Mode 1
{ 1, 0 } := set the serial port operate under Mode 2
{ 1, 1 } := set the serial port operate under Mode 3
TB8: The 9th data bit, which will be transmitted in Mode 2 and Mode 3.
RB8: In mode 2 and 3, the received 9th data bit will go into this bit.
TI: Transmit interrupt flag. After a transmit has been finished, the hardware will set this bit.
RI: Receive interrupt flag. After reception has been finished, the hardware will set this bit.
There are two SFR SADDR and SADEN implemented in the device. The user can read or
write both of them. Finally, the hardware will make use of these two SFR to “generate” a
“compared byte”. The formula specifies as following.
For example:
Set SADDR = 11000000b
Set SADEN = 11111101b
# The achieved “Compared Byte” will be “110000x0” (x means don’t care)
After the generic “Compared Byte” has been worked out, the MPC89E52A will make use of this byte
to determine how to set the bit RI in SFR SCON.
Normally, an UART will set bit RI whenever it has done a byte reception; but for the UART in the
MPC89E52A, if the bit SM2 is set, it will set RI according to the following formula.
The above feature adapts to the serial port when operated in Mode1, Mode2, and Mode3.
Dealing with Mode 0, the user can ignore it.
Reset
The RESET pin is used to reset this device. It is connected into the device to a Schmitt Trigger
buffer, so to get excellent noise immunity.
Any positive pulse from RESET pin must be kept at least two-machine cycle, or the device
cannot be reset.
There are two ways to terminate the idle. Activation of any enabled interrupt will cause
PCON.0 to be cleared by hardware, terminating the idle mode. The interrupt will be serviced,
and following RETI, the next instruction to be executed will be the one following the instruction
that put the device into idle. Another way to wake-up from idle is to pull RESET pin high to
generate internal hardware reset.
In the POWER-DOWN mode, the on-chip oscillator is stopped. The contents of on-chip RAM
and SFRs are maintained. The only way to wake-up from power-down mode is hardware reset.
Be carefully to keep RESET pin active for at least 10ms in order for a stable clock while to
wakeup this chip from POWER-DOWN mode.
The power-down mode can be woken-up by either hardware reset or /INT0, /INT1, /INT2 and
/INT3 external interrupts. When it is woken-up by RESET pin, the program will execute from
the address 0x0000, and be carefully to keep RESET pin active for at least 10ms in order to
get a stable clock while to wakeup this chip from POWER-DOWN mode. If it is woken-up from
I/O, the program will jump to related interrupt service routine. To use I/O wake-up,
interrupt-related registers have to be programmed accurately before power-down is entered.
Pay attention to add at least one “NOP” instruction subsequent to the power-down
instruction if I/O waken-up is used.
The embedded flash consists of 30 pages. Each page contains 512 bytes.
Dealing with flash, the user must erase it in page unit before writing (programming) data into it.
Erasing flash means setting the content of that flash as FFh. Two erase modes are available in
this chip. One is mass mode and the other is page mode. The mass mode gets more
performance, but it erases the entire flash. The page mode is something performance less,
but it is flexible since it erases flash in page unit.
There are several SFR designed to help the user implement the ISP functionality.
IFD is the data port register for ISP operation. The data in IFD will be written into the desired address in
operating ISP write and it is the data window of readout in operating ISP read.
Note: OR0 cannot be changed by ISP operation. It can be accessed only by Writer. Only OR1 can be
changed by ISP program.
SCMD is the command port for triggering ISP activity. If SCMD is filled with sequential 46h, B9h and if
ISPCR.7 = 1, ISP activity will be triggered.
When this register is read, the device ID of MPC89E52A will be returned (2 bytes). The MSB byte of DID
is F0h and LSB byte 02h. IFADRL[0] is used to select HIGH/LOW byte of DID.
Notice: Software reset actions could reset other SFR, but it never influences bits ISPEN and
SWBS. The ISPEN and SWBS only will be reset by power-up action, while not software
reset.
else
Above rule is adaptive only for power-up procedure, while not software reset.
ISPCR ← 001xxxxxb
ISPCR ← x11xxxxxb
which sets SWBS 1 to direct the device boot from AP program, and trigger a software reset.
After that, the system will be reset (not powered-up), and the system will refer to SWBS so to
startup from ISP program entrance.
In-Application Program
The In-Application Program feature is designed for user to Read/Write nonvolatile data flash. It
may bring great help to store parameters those should be independent of power-up and
power-done action. In other words, the user can store data in data flash memory, and after he
shutting down the MCU and rebooting the MCU, he can get the original value, which he had
stored in.
The user can program the data flash according to the same way as ISP program, so he should
get deeper understanding related to SFR IFD, IFADRL, IFADRH, IFMT, SCMD, and ISPCR.
The data flash can be programmed by the AP program as well as the ISP program.
The ISP program may program the AP memory and data flash, while the AP program may
program the data flash but not the ISP memory. If the AP program desires to change the ISP
memory associated with specific address space, the hardware will ignore it.
Note : Even the users do not need ISP space, the OR0[5:4] still needs to be programmed with
{10} if IAP data flash is desired. In other words, the maximum available size in data flash for
IAP operation is 6K bytes.
ERAM: Define if hide the expanded RAM, so to access to the external RAM
0: = The internal auxiliary RAM access is enabled
1: = The internal auxiliary RAM access is disabled. The MOVX instructions always direct to
external RAM.
AO: 0: = ALE is emitted at a constant rate of 1/6 the oscillator frequency for 12T mode, and at a constant rate of 1/3
the oscillator frequency for 6T mode
1: = ALE is active only during access to external memory for both MOVC and MOVX
SFR: AUXR1
Bit-7 Bit-6 Bit-5 Bit-4 Bit-3 Bit-2 Bit-1 Bit-0
- - - - GF2 - - DPS
DC Characteristics
VSS = 0V, TA = 25 ℃ and 12 clocks per machine cycle ,unless otherwise specified
A3 2004/10 reorganized
A5 2005/01 - Re-Format
- Mark the reset pin resistance
- Remove the read-only limitation on SFR AUXR
- Document on option register OR1.7
- Fix the Baud-Rate-Computing formula for Timer-1
A7 2005/6/14 5, 8, 33 - Modify pin /EA location for PDIP and PLCC package
- Modify bits definition for SFR PCON
- Absolute Maximum Rating