mpc82x52a Megawin Technology, mpc82x52a Datasheet

no-image

mpc82x52a

Manufacturer Part Number
mpc82x52a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
Features .............................................................................................................................3
General Description ..........................................................................................................5
Order Information: ............................................................................................................5
Pin Description..................................................................................................................6
Block Diagram ................................................................................................................11
Special Function Register ...............................................................................................12
Memory...........................................................................................................................15
Functional Description....................................................................................................20
In System Programming and In Application Programming............................................60
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. 2005 All right reserved.
Pin Definition............................................................................................................6
Pin Configuration....................................................................................................10
Address Map ...........................................................................................................12
Bits Description ......................................................................................................13
Organization............................................................................................................15
RAM .......................................................................................................................16
Nonvolatile Registers:.............................................................................................16
Embedded Flash......................................................................................................19
I/O Port Configuration ............................................................................................20
Timer/Counter.........................................................................................................24
Interrupt...................................................................................................................29
Watch Dog Timer ....................................................................................................33
Universal Asynchronous Serial Port (UART).........................................................35
Programmable Counter Array (PCA)......................................................................38
Serial Peripheral Interface (SPI) .............................................................................47
Analog to Digital Converter....................................................................................54
Built-In Oscillator ...................................................................................................56
Power-Up and Low Voltage Detector and Reset.....................................................56
Power Management ................................................................................................57
Reset and Boot Entrance.........................................................................................59
In System Programming (ISP) ................................................................................60
In-Application Program (IAP) ................................................................................63
Avoid Inadvertent Data Lost from IAP/ISP............................................................64
8-bit micro-controller
MEGAWIN
MPC82x52A
2007/12 version A7

Related parts for mpc82x52a

mpc82x52a Summary of contents

Page 1

... In-Application Program (IAP) ................................................................................63 Avoid Inadvertent Data Lost from IAP/ISP............................................................64 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. 2005 All right reserved. MPC82x52A 8-bit micro-controller 2007/12 version A7 MEGAWIN ...

Page 2

... Instructions Set................................................................................................................65 Absolute Maximum Rating (MPC82E52A) ...................................................................68 DC Characteristics (MPC82E52A).................................................................................68 Absolute Maximum Rating (MPC82L52A) ...................................................................69 DC Characteristics (MPC82L52A).................................................................................69 Package Dimension.........................................................................................................70 Revision History .............................................................................................................72 2 MPC82x52A Data Sheet MEGAWIN ...

Page 3

... Greater than 100 years data rentention under room temperature Operating Voltage: - 4.5V~5.5V for MPC82E52A - 2.4V~3.6V for MPC82L52A, minimum 2.7V requirement in flash write operation (ISP/ICP/…...) - Built-in Low-Voltage Detector and Reset circuit. Operating Temperature - Industrial (-40°C to +85°C)* Maximum Operating Frequency 24MHz, Industrial range MEGAWIN MPC82x52A Data Sheet 3 ...

Page 4

... Package type: -PDIP-20: MPC82x52AE -SOP-20: MPC82E52AS -TSSOP-20: MPC82x52AT *: Tested by sampling 4 MPC82x52A Data Sheet MEGAWIN ...

Page 5

... The Pulse-Width-Modulator (PWM) and Programmable Counter Array (PCA) make the device to drive the peripheral step motor or LED in least cost. The MPC82x52A is really the most efficient MCU adapted for simple control: electronic scales, remote controller, security encoder/decoder, and user interface controller. Order Information: ...

Page 6

... Input to the inverting oscillator amplifier. BU P3.2: = General purpose 4-state I/O port with internal pull-up mechanism; can be configured as open-drain output. INT0: = External interrupt source BU P3.3: = General purpose 4-state I/O port with internal pull-up mechanism; can be configured as open-drain output. INT1: = External interrupt source MPC82x52A Data Sheet MEGAWIN ...

Page 7

... Array (PCA) module-0 or PWM output BU P1.0: = General purpose 4-state I/O port with internal pull-up mechanism; open-drain output. AIN0: = Alternative ADC input BU P1.1: = General purpose 4-state I/O port with internal pull-up mechanism; open-drain output. AIN1: = Alternative ADC input MPC82x52A Data Sheet can be configured as can be configured as can be configured as can be ...

Page 8

... Peripheral Interface (SPI) AIN5: = Alternative ADC input BU P1.6: = General purpose 4-state I/O port with internal pull-up mechanism; open-drain output. MISO: = Master data Input or Slave data Output for Serial Peripheral Interface (SPI) AIN6: = Alternative ADC input MPC82x52A Data Sheet can be configured as can be configured as can be configured as ...

Page 9

... P1.7 19 (SPICLK/AIN7) VCC 20 MEGAWIN BU P1.7: = General purpose 4-state I/O port with internal pull-up mechanism; can be configured as open-drain output. SPICLK: = Serial Clock for Serial Peripheral Interface (SPI) AIN7: = Alternative ADC input P Power supply MPC82x52A Data Sheet 9 ...

Page 10

... VSS 10 11 RST XTALI VSS 11 10 MPC82x52A Data Sheet VCC P1.7/SPICLK/AIN7 P1.6/MISO/AIN6 P1.5/MOSI/AIN5 P1.4/SS/AIN4 P1.3/AIN3 P1.2/AIN2 P1.1/AIN1 P1.0/AIN0 P3.7/CEX0 VCC P1.7/SPICLK/AIN7 P1.6/MISO/AIN6 P1.5/MOSI/AIN5 P1.4/SS/AIN4 P1.3/AIN3 P1.2/AIN2 P1.1/AIN1 P1.0/AIN0 P3.7/CEX0 MEGAWIN ...

Page 11

... Control Unit RESET XTAL1 XTAL2 MEGAWIN RAM256 Stack Pointer TMP2 TMP1 ALU PSW WDT Port1 Latch Port3 Latch ADC Port1 Driver Port3 Driver 8 P1.0 ~ P1.7 P1.0 ~ P1.7 P3.0~P3.5,P3.7 Block Diagram MPC82x52A Data Sheet Flash ROM ISP Timer0 Address Timer1 Generator UART Program Counter PCA & SPI 11 ...

Page 12

... SP * Write Only CCAP0H CCAP1H * * PCAPWM1 CCAP0L CCAP1L IFD IFADRH IFADRL CCAPM0 CCAPM1 P3M1 P1M1 TL0 TL1 TH0 DPL DPH SPISTAT MPC82x52A Data Sheet IFMT SCMD ISPCR * ADCTL ADCV PCON2 IPH reserved TH1 AUXR SPICTL SPIDAT PCON MEGAWIN ...

Page 13

... SPEED0 ADCI RS1 CIDL - - - - ECOM0 CAPP0 CAPN0 - ECOM1 CAPP1 CAPN1 WRF - ENW CLW MPC82x52A Data Sheet INITIAL VALUE 00000111B 00000000B 00000000B 00xxxxxxB 00000000B CPOL CPHA SPR1 SPR0 00000000B 00110000B GF1 GF0 PD IDL 00000000B IE1 IT1 IE0 IT0 00000000B GATE C//T ...

Page 14

... PCA Counter High Byte CCAP0H High byte of PCA module0 Compare/Capture register CCAP1H High byte of PCA module1 Compare/Capture register ACC Accumulator SWRST CFAIL MPC82x52A Data Sheet 00000000B - - MS1 MS0 xxxxxx00B xxxxxxxxB - WAIT 00001000B 00000000B 00000000B 00000000B 00000000B xxxxxx00B EPC0H EPC0L xxxxxx00B ...

Page 15

... Memory Organization Address Space for MPC82x52A RAM AP Memory Address Space for MPC82x52A embedded Flash memory 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 ISP IAP Memory Memory MPC82x52A Data Sheet 0000 – xxxx: = User’ ...

Page 16

... Nonvolatile Registers: There are four Nonvolatile Registers named OR0, OR1, OR2, and OR3 individually. They are designed to configure the MPC82x52A, i.e., to decide to use internal RC oscillator or use crystal oscillator as oscillating source allocate the built-in flash for application program, application data and In-System-Program code. ...

Page 17

... The bit is reserved for afterward user, and should be left at set. MEGAWIN . (ISP code could take 3K bytes (ISP code could take 2K bytes (ISP code could take 1K bytes) H Bit-5 Bit-4 Bit-3 Bit-5 Bit-4 Bit-3 - reserved1 - MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 - means no IAP memory. B Bit-2 Bit-1 Bit-0 reserved1 ENROSC reserved1 17 ...

Page 18

... The frequency of the clock source for the watch-dog-timer is divided by 8. {0,1,1}: = The frequency of the clock source for the watch-dog-timer is divided by 16 {1,0,0}: = The frequency of the clock source for the watch-dog-timer is divided by 32 {1,0,1 Bit-5 Bit-4 Bit-3 - HWWIDL MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 HWPS2 HWPS1 HWPS0 MEGAWIN ...

Page 19

... The frequency of the clock source for the watch-dog-timer is divided by 256 Embedded Flash There is totally 8 Kbyte flash embedded in the MPC82x52A. The user can configure the whole flash to store his application program, can configure the flash for both storage of application (AP) program and In-System-Program (ISP) code, or even can configure the flash for storage of AP, ISP, and In-Application-Program (IAP) memory ...

Page 20

... Functional Description I/O Port Configuration All 15 port pins on MPC82x52A may be independently configured to one of four modes: quasi-bidirectional (standard 8051 port output), push-pull output, open-drain output or input-only. All port pins default to quasi-bidirectional after reset. Each port pin has a Schmitt-triggered input for improved input noise rejection. During power-down, all the schmitt-triggered inputs are disabled with the exception of P3 ...

Page 21

... When this occurs, the strong pull-up turns on for two CPU clocks, quickly pulling the port pin high. MEGAWIN Port Mode Quasi-bidirectional(default) Push-Pull output Input Only (High-impedance) Open-Drain Output MPC82x52A Data Sheet 21 ...

Page 22

... Port latch data 22 VDD 2 clocks delay Strong Very weak Input data MPC82x52A Data Sheet VDD VDD Weak Port pin MEGAWIN ...

Page 23

... The push-pull mode may be used when more source current is needed from a port output. Port latch data Input data MEGAWIN Input data Port pin VDD MPC82x52A Data Sheet Port pin Port pin 23 ...

Page 24

... Timer/Counter MPC82x52A has two 16-bit timers, and they are named T0 and T1. Each of them can also be used as a general event counter which counts the transition from Since the MPC82x52A is a RISC-like MCU which executes faster than traditional 80C51 MCU from other providers. Based on consideration of compatibility with traditional 80C51 MCUs, the frequency of the clock source for T0 and T1 is designed to be selectable between oscillator frequency divided-by-12 (default) or oscillator frequency ...

Page 25

... IT0: = Interrupt-0 type control bit (default) Set the interrupt-0 triggered by low duty from pin EX1 1: = Set the interrupt-0 triggered by negative falling edge from pin EX1 MEGAWIN Bit-4 Bit-3 TR0 IE1 MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 IT1 IE0 IT0 25 ...

Page 26

... Enable the SPI functional block to generate interrupt to the MCU ENLVFI: = Enable/Disable interrupt from low-voltage sensor 0: = (default) Inhibit the low-voltage sensor functional block to generate interrupt to the MCU 1: = Enable the low-voltage sensor functional block to generate interrupt to the MCU 26 Bit-4 Bit-3 EADCI ESPI ENLVFI MPC82x52A Data Sheet Bit-2 Bit-1 Bit MEGAWIN ...

Page 27

... The reload leaves THx unchanged. Mode 2 operation is the same for Timer0 and Timer1. OSC/12 0 OSC pin AUXR.x (sampled) C//T GATE /INTx MEGAWIN 0 0 TLx[4:0] THx[7: TRx 0 0 TLx[7:0] THx[7: TRx 0 TLx [7: TRx MPC82x52A Data Sheet Interrupt TFx Interrupt TFx TFx Interrupt Reload THx [7:0] 27 ...

Page 28

... TR1, TF1 from Timer1. TH0 now controls the Timer1 interrupt. OSC/12 0 OSC 1 Sampled T0 pin AUXR.x C//T GATE /INT0 OSC/ OSC TR1 AUXR TL0 [7: TR0 0 TH0 [7:0] 1 MPC82x52A Data Sheet Interrupt TF0 Interrupt TF1 MEGAWIN ...

Page 29

... Interrupt There are seven interrupt sources available in MPC82x52A. 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 be cleared to disable all interrupts at once. Each interrupt source has two corresponding bits to represent its priority. One is located in SFR named IPH and the other register ...

Page 30

... Disable 1: = Enable ES: =Interrupt controller of Universal Asynchronous Receiver/Transmitter (UART (default) Disable 1: = Enable ET1: =Interrupt controller of Timer-1 interrupt (default) Disable 1: = Enable EX1: =Interrupt controller of external interrupt- (default) Disable 1: = Enable 30 Bit-4 Bit-3 ES ET1 MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 EX1 ET0 EX0 MEGAWIN ...

Page 31

... IP and IPH are combined to form 4-level priority interrupt as the following table. {IPH.x, IP. MEGAWIN Bit-4 Bit-3 PS PT1 Bit-5 Bit-4 Bit-3 PSH PT1H Priority Level 1 (highest MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 PX1 PT0 PX0 Bit-2 Bit-1 Bit-0 PX1H PT0H PX0H 31 ...

Page 32

... TF1 RI TI SPI ESPI ADCI EADCI CF ECF CCF0 Individual Enable ECCF0 CCF1 ECCF1 LVF ENLVFI 32 IE Register IPH and IP Registers Global Enable Interrupt Control Block MPC82x52A Data Sheet Highest Priority Level Interrupt Interrupt Polling Sequence Lowest Priority Level Interrupt MEGAWIN ...

Page 33

... Watch Dog Timer The watch dog timer in MPC82x52A consists of an 8-bit pre-scalar timer and a 15-bit timer. The timer is one-time enabled by setting ENW. Clearing ENW can not stop WDT counting. When the WDT is enabled, software should always reset the timer by writing 1 to CLRW bit before the WDT overflows. If MPC82x52A is out of control by any disturbance, that means the CPU can not run the software normally then WDT may miss the “ ...

Page 34

... MPC82x52A Data Sheet MEGAWIN ...

Page 35

... Universal Asynchronous Serial Port (UART) The serial port of MPC82x52A is duplex. It can transmit and receive simultaneously. The receiving and transmitting of the serial port share the same SFR SBUF, but actually there are two SBUF registers implemented in the chip. One is for transmitting and the other is for receiving ...

Page 36

... Transmitting done flag. After a transmitting has been finished, the hardware will set this bit Receive done flag. After reception has been finished, the hardware will set this bit. 36 SMOD (Timer-1 overflow rate) 32 Bit-4 Bit-3 REN TB8 MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 RB8 TI RI MEGAWIN ...

Page 37

... RI in SFR SCON. Normally, an UART will set bit RI whenever it has done a byte reception; but for the UART in the MPC82x52A, if the bit SM2 is set, it will set RI according to the following formula (SM2 == 1) && (SBUF == Compared Byte) && (RB8 == 1) 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’ ...

Page 38

... CF bit (CCON.7) will be set when the PCA timer overflows, and an interrupt will be generated if the ECF (CMOD.0) is set. The CF bit can only be cleared by software. There are two bits 38 Module-0 Capture/Compare Register Module-1 Capture/Compare Register Programmable Counter Array MPC82x52A Data Sheet P3.7/CEX0 P3.5/CEX1 MEGAWIN ...

Page 39

... Bit-7 Bit-6 Bit MEGAWIN CIDL - - - - PCA Timer/Counter Bit-4 Bit Bit-4 Bit MPC82x52A Data Sheet To PCA module CH CL PCA interrupt 16-bit counter CMOD CPS1 CPS0 ECF CCON - CCF1 CCF0 Bit-2 Bit-1 Bit-0 CPS1 CPS0 ECF Bit-2 Bit-1 Bit-0 - CCF1 CCF0 39 ...

Page 40

... The CAPNn bit enables the negative edge, and the CAPPn bit enables the positive edge. If both bits are set, both edges will be enabled and a capture will occur for either transition. The bit ECOMn when set enables the comparator function. 40 MPC82x52A Data Sheet MEGAWIN ...

Page 41

... Bit-3 Bit-4 Bit-3 Bit-4 Bit-3 Bit-4 Bit-3 Bit-4 Bit-3 Bit-4 Bit-3 CAPN0 MAT0 TOG0 Bit-4 Bit-3 CAPN1 MAT1 TOG1 MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 Bit-2 Bit-1 Bit-0 Bit-2 Bit-1 Bit-0 Bit-2 Bit-1 Bit-0 Bit-2 Bit-1 Bit-0 Bit-2 Bit-1 Bit-0 Bit-2 ...

Page 42

... Inhibit the PWM functionality from module-n output to pin CEXn 1:= Enable the pin CEXn as the output of the PWM functionality from module-n ECCFn: = Enable the CCFn flag in the CCON SFR to generate an interrupt. 0:= (default) Inhibit the interrupt(CCFn) from module-n to the MCU 1:= Permit the interrupt(CCFn) from module-n to the MCU 42 MPC82x52A Data Sheet MEGAWIN ...

Page 43

... CEXn 16-bit Software Timer 16-bit High Speed Output 8-bit PWM CCON CCF1 CCF0 - CAPTURE MDnCON ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn PCA Capture Mode MPC82x52A Data Sheet Module function PCA interrupt CH CL CCAPnH CCAPnL 43 ...

Page 44

... PCA counter low byte CL determine the duty of the module-n’s PWM output. If {CL[7:0]} < { EPCnL, CCAPnL[7:0]} , PWM output LOW else EPCnH: = Reloaded value of EPCnL while CL [7:0] counts from FF 44 Bit-4 Bit Bit-4 Bit MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 - EPC0H EPC0L Bit-2 Bit-1 Bit-0 - EPC1H EPC1L PWM output HIGH ...

Page 45

... PCA Software Timer Mode CCF1 CCF0 - CCAPnH CCAPnL 16-bit MATCH comparator ECOMn CAPPn CAPNn MATn TOGn PCA High-Speed Ouput Mode MPC82x52A Data Sheet CCON CCF1 CCF0 PCA interrupt To CCFn CCAPMn PWMn ECCFn 0 CCON PCA interrupt To CCFn Toggle CCAPMn PWMn ECCFn 0 CEXn 45 ...

Page 46

... { [7:0 ]} >= { nL[7 9 ode MPC82x52A Data Sheet MEGAWIN ...

Page 47

... Permuting those states from polarity and phase, there could be four modes formed, and they are SPI-MODE-0, SPI-MODE-1, SPI-MODE-2, and MEGAWIN MPC82x52A Data Sheet 47 ...

Page 48

... SPI-MODE-3. Many device declares that they meet SPI mechanism, but few of them are adaptive to all four modes. The MPC82x52A is flexible enough to be configured to communicate to another device with MODE-0, MODE-1, MODE-2 or MODE-3 SPI, and play part of Master and Slave. There is a SFR named SPICTL designed to configure the SPI behavior of the device. ...

Page 49

... InActive Slave Hi-Z input input output input input Master input output output Slave output input input Master input output output MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 Bit-2 Bit-1 Bit Remark SPI is disabled. Selected as slave Not selected. Convert from Master to Slave ...

Page 50

... SPI single master multiple slaves configurartion 50 MISO MISO MOSI MOSI SPICLK SPICLK Port Pin SS MISO MISO MOSI MOSI SPICLK SPICLK SS SS MISO MISO MOSI MOSI SPICLK SPICLK Port Pin 1 SS MISO MOSI SPICLK Port Pin 2 SS MPC82x52A Data Sheet Slave Slave/Master Slave #1 Slave #2 MEGAWIN ...

Page 51

... However, the received byte must be read from the data register (SPIDAT) before the next byte has been completely transferred. Otherwise the previous byte is lost. WCOL can be cleared in software by “writing 1 to the bit”. MEGAWIN MPC82x52A Data Sheet 51 ...

Page 52

... MISO turns to output MSB LSB MOV SPDAT,#data in software MPC82x52A Data Sheet LSB 5 6 MSB 2 1 LSB 5 6 MSB LSB 5 6 MSB 2 1 LSB 5 6 MSB 7 ...

Page 53

... LSB MOV SPDAT,#data in software DORD=0 MSB DORD=1 LSB MPC82x52A Data Sheet 7 8 SPEN=0 or MSTR=0, MOSI switched not to output data of SPI communication, also SPICLK is released from SPI control 2 1 LSB 5 6 MSB 2 1 LSB 5 6 MSB ...

Page 54

... A/D converter. V internal voltage-scaling DAC use, and the typical sink current 600uA ~ 1mA. For MPC82x52A, these two references are internally tied to VDD and GND, separately. Conversion is invoked since ADCS bit is set. Prior to ADC conversion, the desired I/O ports for analog inputs should be configured as input-only or open-drain mode first. The conversion takes around a fourth cycles to sample analog input data and other three fourths cycles in successive-approximation steps. Total conversion time is controlled by two register bits – ...

Page 55

... Set P1.7 as the A/D channel input SFR: ADCV (ADC Value register): Bit-7 Bit-6 Bit-5 The ADCV is the final result from the A/D conversion. MEGAWIN Bit-4 Bit-3 ADCI ADCS CHS2 Bit-4 Bit-3 Achieved Conversion Value MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 CHS1 CHS0 Bit-2 Bit-1 Bit-0 55 ...

Page 56

... Built-In Oscillator There is an oscillator built in the MPC82x52A which can be used as the oscillating source in replacing the external crystal oscillator in some specific applications. To enable the built-in oscillator, an user must configure the device by clearing (enable) the bit ENROSC in NVM register OR2 via a general writer. ...

Page 57

... In idle mode, clock is divided idle mode, clock is divided idle mode, clock is divided idle mode, clock is divided idle mode, clock is divided idle mode, clock is divided idle mode, clock is divided by 128 MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 CKS2 CKS1 CKS0 ...

Page 58

... It must be cleared by the user’s software. PD: = Power-Down switch Set this bit to drive the device enter POWER-DOWN mode. IDL: = Idle flag Set this bit to drive the device enter IDLE mode. 58 Bit-4 Bit-3 POF GF1 MPC82x52A Data Sheet Bit-2 Bit-1 Bit-0 GF0 PD IDL MEGAWIN ...

Page 59

... The RST pin is used to reset this device connected into the device to a Schmitt Trigger buffer to get excellent noise immunity. Any positive pulse from RST pin must be kept at least 10us plus 36 oscillation cycles, or the device cannot be reset. MEGAWIN MPC82x52A Data Sheet 59 ...

Page 60

... Furthermore quite complex timing procedure to erase/program flash. Fortunately, the MPC82x52A 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 ISP automation, the user can easily erase, read, and program the embedded flash. ...

Page 61

... Bit-6 Bit-5 SCMD is the command port for triggering ISP activity. If SCMD is filled with sequential 46 ISPCR ISP activity will be triggered. When this register is read, the device ID of MPC82x52A will be returned (2 bytes). The MSB byte of this device and LSB byte 02 H SFR: ISPCR (ISP Control register) ...

Page 62

... ISP activity */ Program a byte into flash /* choice byte-read command */ /* set ISPEN=1 to enable flash change. B set WAIT=010, 11 MC; assumed 10M X’s*/ /* specify the address to be read */ /* trig ISP activity */ Read a byte from flash MPC82x52A Data Sheet MEGAWIN ...

Page 63

... 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. MEGAWIN B x11xxxxx ISPCR ← B MPC82x52A Data Sheet 63 ...

Page 64

... Low-Voltage-Reset function by clearing bit ENLVR(OR0.6) to makes this device never work under Low-Voltage. Also the user should make great use of LVF(PCON.5) and ENLVFI(AUXR.2) to detect the voltage dropping. 64 MPC82x52A Data Sheet MEGAWIN ...

Page 65

... DEC direct DECREMENT DIRECT BYTE DEC @Ri DECREMENT INDIRECT RAM INC DPTR INCREMENT DPTR MUL AB MULTIPLY A AND B DIV AB DIVIDE DECIMAL ADJUST ACC MEGAWIN DATA TRASFER DESCRIPTION ARITHEMATIC OPERATIONS DESCRIPTION MPC82x52A Data Sheet BYT CYC ...

Page 66

... JB bit, rel JUMP IF DIRECT BIT IS SET JNB bit, rel JUMP IF DIRECT BIT NOT SET JBC bit, rel JUMP IF DIRECT BIT IS SET AND THEN CLEAR BIT 66 LOGIC OPERATION DESCRIPTION DESCRIPTION BOOLEAN VARIABLE BRANCH DESCRIPTION MPC82x52A Data Sheet BYT CYC ...

Page 67

... Move external RAM(8-bit address) to Acc MOVX A, @DPTR MOVE EXTERNAL RAM(16-BIT ADDRESS) TO ACC MOVX @Ri, A MOVE ACC TO EXTERNAL RAM(8-BIT ADDRESS) MOVX @DPTR, A MOVE ACC TO EXTERNAL RAM(16-BIT ADDRESS) MEGAWIN PROAGRAM BRACHING DESCRIPTION DESCRIPTION MPC82x52A Data Sheet BYT CYC ...

Page 68

... V =0.45V PIN V =2.4V PIN V =2.4V PIN V =0.45V PIN V =0.45V PIN PIN CC V =1.8V PIN F = 12MHz OSC F = 12MHz OSC V =5. =5.0V CC MPC82x52A Data Sheet Rating Unit °C ° 400 Limits Unit min typ max 2.0 V 3 220 ...

Page 69

... V =0.45V PIN V =2.4V PIN V =2.4V PIN V =0.45V PIN V =0.45V PIN PIN CC V =1.4V PIN F = 12MHz OSC F = 12MHz OSC V =3. =3.3V CC MPC82x52A Data Sheet Rating Unit °C ° 400 Limits Unit min typ max 2.0 V 2 ...

Page 70

... Package Dimension 20-pin PDIP (MPC82x52AE) 20-pin SOP (MPC82x52AS) 70 MPC82x52A Data Sheet MEGAWIN ...

Page 71

... TSSOP-20(MPC82x52AT) MEGAWIN MPC82x52A Data Sheet 71 ...

Page 72

... Operation Temperature 40,42,63 - Correct CCAPPn to CAPPn - Correct SFR PWMMSBn to PCAPWMn - Correct PWM diagram - Revises the possible operating temperature - Add special note on low voltage detector - Operation frequency range MHz - Add 2.7V requirement in flash write operation. - Modify Absolute Maximum Rating. P68, 69 MPC82x52A Data Sheet MEGAWIN ...

Related keywords