MPC89L515A Megawin Technology, MPC89L515A Datasheet
![no-image](/images/no-image-200.jpg)
MPC89L515A
Related parts for MPC89L515A
MPC89L515A Summary of contents
Page 1
... In System Programming (ISP) ..................................................................................... 27 Note for Other SFR...................................................................................................... 32 Absolute Maximum Rating (MPC89E515A) ...................................................................... 33 DC Characteristics (MPC89E515A).................................................................................... 33 Absolute Maximum Rating (MPC89L515A) ...................................................................... 34 DC Characteristics (MPC89L515A).................................................................................... 34 Package Dimension.............................................................................................................. 35 Revision History .................................................................................................................. 38 This document contains information on a new product under development by Megawin. Megawin reserves the right to change or discontinue this product without notice. © ...
Page 2
... On-Chip flash program/data memory: - The data endurance of the embedded flash gets over 20,000 times - Greater than 100 years data rentention under room temperature Operating Voltage: - 4.5V~5.5V for MPC89E515A. - 2.4V~3.6V for MPC89L515A, minimum 2.7V requirement in flash write operation www.DataSheet4U.com (ISP/ICP/..). - Built-in Low-Voltage-Reset circuit. Operating Temperature - Industrial (-40° ...
Page 3
General Description MPC89x515A is a single-chip 8-bit microcontroller with the instruction sets fully compatible with industrial-standard 80C51 series microcontroller. There is 63 Kbytes flash memory embedded for application program, which is shared with In-System Programming code. In-System-Programming allows the users ...
Page 4
Pin Description Pin Definition Pin Name DIP-40 P0.0 (AD0) 39 P0.1 (AD1) 38 P0.2 (AD2) 37 P0.3 (AD3) 36 P0.4 (AD4) 35 P0.5 (AD5) 34 P0.6 (AD6) 33 P0.7 (AD7) 32 P1.0 (T2) 1 P1.1 (T2EX) 2 P1.2 3 P1.3 ...
Page 5
P4.0 P4.1 P4.2 (/INT3) P4.3 (/INT2) RESET 9 ALE 30 /PSEN 29 /EA 31 XTAL1 19 XTAL2 18 www.DataSheet4U.com VDD 40 VSS 20 MEGAWIN P3.2 and P3.3 also act as external interrupt sources, alias INT0 and INT1. P3.4 and P3.5 ...
Page 6
Pin Configuration 1 (T2) P1.0 (T2EX) P1.1 2 P1.2 3 P1.3 4 P1.4 5 P1 P1.7 RESET 9 (RXD) P3.0 10 (TXD) P3.1 11 (INT0) P3.2 12 (INT1) P3.3 13 (T0) P3.4 14 (T1) P3.5 15 ...
Page 7
RAM ADDR Register B Register ACC PSEN Control ALE Unit EA RESET www.DataSheet4U.com XTAL 1 MEGAWIN P2.0 ~ P2.7 P0.0 ~ P0.7 Port2 Driver Port0 Driver Port2 Latch Port0 Latch RAM 256 Stack Pointer TMP2 TMP1 Timer 0/1 Timer 2 ...
Page 8
Special Function Register ACC WDTCR D8 D0 PSW C8 T2CON T2MOD C0 XICON B8 IP SADEN SADDR SCON SBUF TCON TMOD ...
Page 9
Organization www.DataSheet4U.com Address Space for MPC89x515A embedded Flash memory Bit-7 Bit FZWDTCR MEGAWIN 00-7F RAM, Access it via direct addressing 80-FF SFR, Access it via direct addressing 80-FF indirect on-chip RAM, Access it via indirect addressing 0000-03FF on-chip ...
Page 10
Nonvolatile Registers: There are two Nonvolatile Registers named OR0 and OR1 individually. They are designed to configure the MPC89x515A options. Generally these two nonvolatile registers will be written via a popular NVM writer, say Hi-Lo System All-11, Labtool-48 and Megawin-Provided ...
Page 11
NVM register: OR1 (Option Register 1): Bit-7 Bit-6 FZWDTCR FZWDTCR: Used to freeze the WDT-controlling register Configure the SFR WDTCR to be reset only via power-up action, not by software reset nor reset from the Watch Dog Timer. ...
Page 12
Embedded Flash There is totally 63 K byte flash embedded in the MPC89x515A. The embedded flash is shared by the user application program code and the ISP program code. While the program counter of MPC89x515A is spanning over EBFFh/F3FFh/F7FFh/FBFFh, the ...
Page 13
Functional Description TIMERS/COUNTERS MPC89x515A has three 16-bit timers, and they are named T0, T1 and T2. Each of them can also be used as a general event counter, which counts the transition from While T0/T1/T2 is used ...
Page 14
SFR: TCON Bit-7 Bit-6 Bit-5 TF1 TR1 TF0 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. TR1: = Timer1 run ...
Page 15
EXEN2=1. When whether TCLK or RCLK is 1, this bit is ignored and the timer is forced to auto-reload on Timer2 overflow. TIMER0 (T0) AND TIMER1 (T1) Mode 0 The timer register is configured as a 13-bit register. As ...
Page 16
OSC/ pin 1 (Sampled) C//T TRx GATE /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 ...
Page 17
C//T2 bit is cleared, Timer2 overflow pulse will generate a 50% duty clock and output that to P1.0. The frequency of clock-out is calculated according to the following formula. In the clock-out mode, Timer2 rollovers will not generate an ...
Page 18
Auto-Reload Up-Only Mode (ARUO) In ARUO mode, Timer2 can be configured to count up with a software-defined value to be reloaded. When reset is applied to the DCEN =0 and CP/RL2=0, Timer2 is at ARUO mode. An overflow on Timer2 ...
Page 19
Baud-Rate Generator Mode (BRG) Timer2 can be configured to generate various baud-rates. Bit TCLK and/or RCLK in T2CON allow the serial port transmit and receive baud rates to be derived from either Timer1 or Timer2. When TCLK=0, Timer1 is used ...
Page 20
Interrupt There are eight interrupt sources available in MPC89x515A. Each interrupt source can be individually enabled or disabled by setting or clearing a bit in the SFR named IE. This register also contains a global disable bit (EA), which can ...
Page 21
In other words, interrupts or pending interrupts can be generated or canceled in software. The following content describes several SFR related to interrupt mechanism. SFR: IE (Interrupt Enabling): Bit-7 Bit-6 EA EA: Global disables ...
Page 22
IP (or XICON) and IPH are combined to form 4-level priority interrupt as the following table. {IPH.x , IP. SFR: XICON (External Interrupt Control): Bit-7 Bit-6 PX3 EX3 PX3 : If set, Set priority for external ...
Page 23
SFR: WDTCR (Watchdog Timer Control): Bit-7 Bit ENW: Enable WDT while it is set. ENW cannot be cleared by firmware enable watchdog timer does not use watchdog timer CLRW: Clear WDT to recount while ...
Page 24
Mode2 An 11-bit data is serially transmitted through TXD or received through RXD. The frame data includes a start bit (0), 8 data bits, a programmable 9th bit and a stop bit (1). On transmit, the 9th data bit comes ...
Page 25
SM2: Enable the automatic address recognition feature in mode 2 and 3. If SM2=1, RI will not be set unless the received 9th data bit is 1, indicating an address, and the received byte is a Given or Broadcast address. ...
Page 26
In other words, not all data reception will respond to RI, while specific data does. By setting the SADDR and the SADEN, the user can filter out those data byte that doesn’t like to care. This feature brings great help ...
Page 27
The user can set the bit PCON.1 to drive this chip entering POWER-DOWN mode. In the POWER-DOWN mode, the on-chip oscillator is stopped. The contents of on-chip RAM and SFRs are maintained. The power-down mode can be woken-up by either ...
Page 28
Furthermore quite complex timing procedure to erase/program flash. Fortunately, the MPC89x515A carried with convenient mechanism to help the user read/change the flash content. Just filling the target address and data into several SFR, and triggering the built-in ...
Page 29
SCMD is the command port for triggering ISP activity. If SCMD is filled with sequential 46h, B9h and if ISPCR ISP activity will be triggered. When this register is read, the device ID of MPC89x515A will be returned ...
Page 30
IFMT ← xxxxx010 ISPCR ← 100xx010 IFADRH ← (Address high byte) IFADRL ← (Address low byte) IFD ← (byte date to be written into flash) SCMD ← 46h SCMD ← B9h (CPU progressing will be hold here) (CPU continues) IFMT ...
Page 31
SWBS 0, and trigger a software reset. After that, the system will be reset (not powered-up), and the system will refer to SWBS to startup from AP program entrance. For power-up procedure, the HWBS will ...
Page 32
Note for Other SFR SFR: AUXR Bit-7 Bit ERAM: Define if hide the expanded RAM access to the external RAM 0: = The internal auxiliary RAM access is enabled 1: = The internal auxiliary RAM access ...
Page 33
Absolute Maximum Rating Parameter Ambient temperature under bias Storage temperature Voltage on any Port I/O Pin or RST with respect to Ground Voltage on VCC with respect to Ground Maximum total current through VCC and Ground Maximum output current sunk ...
Page 34
... IL I Logic transition current (P1,2,3, Operating current @20MHz CC I Idle mode current @ 20MHz IDLE I Power down current PD Rrst Internal pull-down resistance in RESET 34 (MPC89L515A) -0.3 ~ VCC + 0.3 (MPC89L515A) Parameter (RESET) (RESET) MPC89x515A Data Sheet Rating Unit °C -55 ~ +125 °C - 150 V -0.3 ~ +4.2 V 500 ...
Page 35
Package Dimension 40-pin PDIP (MPC89x515AE) www.DataSheet4U.com MEGAWIN MPC89x515A Data Sheet 35 ...
Page 36
PLCC (MPC89x515AP) www.DataSheet4U.com 36 MPC89x515A Data Sheet MEGAWIN ...
Page 37
PQFP (MPC89x515AF) www.DataSheet4U.com MEGAWIN MPC89x515A Data Sheet 37 ...
Page 38
Revision History Version Date A3 2004/10 A4 2004/11 P27 A5 2005/01 A6 2005/01 A8 2005/6/14 P5 2005/08 P9 A10 2006/08 P33, 34 A11 2007/03 P33 A12 2007/12 P2 A13 2008/12 www.DataSheet4U.com 38 Page - reorganized - Added ...