20uA at VDD=5.5V 5uA at VDD=3.6V. 1T up to 20 (1T~8T can change on fly) RC ( 24MHz) Program Flash ( byte) 4K 4K RAM( byte)

Similar documents
8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

SM39R16A2/SM39R12A2/SM39R08A2 8-Bit Micro-controller 16KB/12KB/8KB with ISP Flash & 256B RAM embedded

SM39R16A3 8-Bit Micro-controller with 16KB ISP Flash & 512B RAM embedded

SM59R16G6/SM59R09G6/SM59R05G6 8-Bit Micro-controller 64KB/36KB/20KB with ISP Flash & 1KB RAM embedded

8051 Microcontroller

SyncMOS Technologies International, Inc. SM Bits Micro-controller 64KB ISP flash & 1KB RAM embedded Product List. Features

MEGAWIN MPC89L516X2. 8-bit micro-controller. Features

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

SM5964B 8-Bit Micro-controller 64KB with ISP Flash & 1KB RAM embedded

ISSI. IS89C51 CMOS SINGLE CHIP 8-BIT MICROCONTROLLER with 4-Kbytes of FLASH ISSI IS89C51 NOVEMBER 1998 FEATURES GENERAL DESCRIPTION

SM59R16A5/SM59R09A5/SM59R05A5 8-Bit Micro-controller 64KB/36KB/20KB with ISP Flash & 2KB RAM embedded

7.2.1 Timer 2 Capture LSB... 24

8051 Microcontroller

Preliminary W77E58 8 BIT MICROCONTROLLER. Table of Contents-- Publication Release Date: March Revision A1

Rev. No. History Issue Date Remark

Preliminary W77C32 8 BIT MICROCONTROLLER GENERAL DESCRIPTION FEATURES

W77IE58 8-BIT MICROCONTROLLER. Table of Contents-- Publication Release Date: December Revision A2

PGT302 Embedded Software Technology. PGT302 Embedded Software Technology

W77E058A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

HD C51-based microcontroller

W77LE58/W77L058A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents- Publication Release Date: April 17, Revision A7

SM59R16A2/SM59R08A2 8-Bit Micro-controller 64KB/32KB ISP Flash & 2KB RAM embedded. Product List

Handshake Solutions. HT80C51 User Manual

FlashFlex MCU SST89E52RC / SST89E54RC

Three criteria in Choosing a Microcontroller

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

W77E532/W77E532A DATA SHEET 8-BIT MICROCONTROLLER. Table of Contents-

MPC89E515A. 8-bit micro-controller

W77L516A DATA SHEET 8-BIT MICROCONTROLLER. Table of Contents-

8-BIT MICROCONTROLLER

High-Speed Microcontroller User s Guide

8-Bit Microcontroller with 8K Bytes Flash AT89S8252. Features. Description

8051 Embedded Microcontroller HD 8002

CPEG300 Embedded System Design. Lecture 6 Interrupt System

8051 Microcontrollers

SM59R09A5 與 W77E58 應用差異說明一 適用產品 :SM59R09A5

VRS540-4kB Flash, 128B RAM, 25~40MHz, 8-Bit MCU


8.1.1 External Data Memory Access Timing...32

8-Bit CMOS Microcontorller

8051 MICROCONTROLLER WITH 64K FLASH AND ISP. Latch PSW ALU. Latch. Instruction Decoder & Sequencer. Bus&Clock Controller. Port 4. Latch.

MSM80C154S MSM83C154S MSM85C154HVS USER'S MANUAL

P89V52X2. 1. General description. 2. Features. 8-bit 80C51 low power 8 kb flash microcontroller with 256 B RAM, 192 B data EEPROM

VRS550-8kB Flash, 256B RAM, 25~40MHz, 8-Bit MCU VRS560-16kB Flash, 256B RAM, 40MHz, 8-Bit MCU

FlashFlex51 MCU SST89E564 / SST89V564 / SST89E554 / SST89V554

VRS570 32K Flash, 1kB RAM, 25~40MHz, 8-Bit MCU VRS580 64K Flash, 1kB RAM, 25~40MHz, 8-Bit MCU

Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4199

Introduction To MCS-51

MPC89x58A. 8-bit micro-controller

SH57K12. High Performance 8031 Microcontroller. Preliminary. Features. General Description

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

8051 MICROCONTROLLER

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253. Preliminary

CS 320. Computer Architecture Core Architecture

UNIT IV MICROCONTROLLER

FlashFlex51 MCU SST89E52RD2 / SST89E54RD2 / SST89E58RD2 / SST89E516RD2 SST89V52RD2 / SST89V54RD2 / SST89V58RD2 / SST89V516RD2

INTEGRATED CIRCUITS DATA SHEET. P89C738; P89C739 8-bit microcontrollers Dec 15. Product specification File under Integrated Circuits, IC20

8051 Microcontroller Interrupts

Chapter 09. Programming in Assembly

The Timers/Counters The Serial Interface The Interrupt System Reset P0.0-P0.7 P2.0-P2.7. Port 2 Drivers. Port 2 Latch

TDA General description. 2. Features. Low power single card reader

High-Speed Microcontroller User s Guide

8-bit Microcontroller with 12K Bytes Flash and 2K Bytes EEPROM AT89S8253

C51 Family. C51 Family Programmer s Guide and Instruction Set. Summary

DC6388EMT User Manual

TS80C52X2. 8-bit CMOS Microcontroller 0-60 MHz. Preliminary. 1. Description. 2. Features

W77E532 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

8XC51RA RB RC Hardware Description

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan

DATA SHEET. P80CL31; P80CL51 Low voltage 8-bit microcontrollers with UART INTEGRATED CIRCUITS Apr 15

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

8-bit Microcontroller 8 Kbytes ROM/OTP, ROMless TS80C32X2 TS87C52X2 TS80C52X2 AT80C32X2 AT80C52X2 AT87C52X2. Features. Description

W78ERD2/W78ERD2A Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

Serial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07)


W78ERD2 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

8051 Microcontroller memory Organization and its Applications

W79E201 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

TK89C668 Microcontroller 64K Flash, 8K RAM, TWI

Vidyalankar T.E. Sem. V [EXTC] Microprocessors and Microcontrollers I Prelim Question Paper Solution V SS (GND)

EE6502- MICROPROCESSOR AND MICROCONTROLLER

W78ERD2 Data Sheet 8-BIT MICROCONTROLLER. Table of Contents-

8051 Core Specification

8051 RISC Microcontroller High-Speed, 8051-Compatible, With SRAM and Extended Functions

AT Bit Spread- Spectrum Microcontroller. Preliminary. Features. Description. Pin Configuration

8-bit Microcontroller with 2/4-Kbyte Flash AT89LP2052 AT89LP4052

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation

8051 Serial Communication

Chapter C2051 Architecture and Serial Communication Link

Lecture 1. Course Overview and The 8051 Architecture

8XC151SA and 8XC151SB Hardware Description

8-bit Microcontroller with 2K Bytes Flash AT89LP216

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT- IV

8051 Interrupt Organization

ELEG3923 Microprocessor Ch.9 Timer Programming

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations

Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports.

DS89C420 Ultra High-Speed Microcontroller User s Guide

The Final Word on 8051 Microcontroller

Transcription:

SM894051 SM39R4051 SM39R4051 SM39R4051 SM894051 SM894051 SM39R4051 MCU ( 1) Feature SM894051 SM39R4051 (V) 3.0~5.5 2.7~5.5 I DD (Power Down) 20uA at VDD=5.5V 5uA at VDD=3.6V 3.5uA at VDD=5.0V System clock(mhz) 12T up to 25 1T up to 20 (1T~8T can change on fly) RC ( 24MHz) Program Flash ( byte) 4K 4K RAM( byte) 128 256 GPIO 15 18 (When Use internal RC and Internal Reset) Interrupt 5 7 WDT (max 262.14 msec) (max 33.5 sec) 16-bit Dual DPTR Timer 2 2 UART 1 1 EEPROM ICP/ISP/IAP IIC interface ( ) ISSFA-0xxx 1 Ver. A 2010/07

SM894051 SM39R4051 SyncMOS SM39R4051ihhNP yymmv (20L PDIP Top View) RESET 1 20 VDD RXD/P3.0 2 19 P1.7 TXD/P3.1 3 18 P1.6 XTAL2 4 17 P1.5 XTAL1 5 16 P1.4 INT0/P3.2 6 15 P1.3 INT1/P3.3 7 14 P1.2 T0/P3.4 8 13 P1.1/AIN1 T1/P3.5 9 12 P1.0/AIN0 VSS 10 11 P3.7 ISSFA-0xxx 2 Ver. A 2010/07

SM894051() Hex\Bin X000 X001 X010 X011 X100 X101 X110 X111 Bin/Hex F8 FF F0 B F7 E8 EF E0 ACC E7 D8 DF D0 PSW D7 C8 CF C0 C7 B8 IP SCONF BF B0 P3 B7 A8 IE AF A0 A7 98 SCON SBUF WDTC 9F 90 P1 LEDENP1 LEDENP3 WDTKEY 97 88 TCON TMOD TL0 TL1 TH0 TH1 8F 80 SP DPL DPH PCON 87 SM39R4051( 3) Hex\Bin X000 X001 X010 X011 X100 X101 X110 X111 Bin/Hex F8 IICS IICCTL IICA1 IICA2 IICRWD IICEBT FF F0 B TAKEY F7 E8 P4 EF E0 ACC ISPFAH ISPFAL ISPFD ISPFC LVC SWRES E7 D8 P3M0 P3M1 P4M0 P4M1 DF D0 PSW P1M0 P1M1 D7 C8 CF C0 IRCON C7 B8 IEN1 IP1 S0RELH BF B0 P3 WDTC WDTK B7 A8 IEN0 IP0 S0RELL AF A0 P1WE P31WE REV REV REV A7 98 S0CON S0BUF 9F 90 P1 AUX 97 88 TCON TMOD TL0 TL1 TH0 TH1 CKCON IFCON 8F 80 SP DPL DPH DPL1 DPH1 PCON 87 ISSFA-0xxx 3 Ver. A 2010/07

SM894051 Addr. SM39R4051 Addr. - WDTKEY 97H TAKEY F7H 1. 2. WDTC 1. WDTC[2:0] 8 Period = 2.048 m sec ~ 262.14 m sec 9FH WDTC WDTK 3. 250KHz 4. WDTC[3:0] B6H B7H 2. WDTKEY 1~32768 16 WDTC Period = 1.02 m sec ~ 33.55 sec 5. KEY(TAKEY) WDTCWDT WDTK0x55 52 84 IE A8H IEN0 A8H IP B8H IEN1 B8H IP A9H IP1 B9H ISSFA-0xxx 4 Ver. A 2010/07

1. SM39R4051 SM894051 SM39R4051 SM894051 16 8 1.02 m sec ~ 33.55 sec 2.048 m sec~262.14 m sec 2. SM39R4051 W77E58 SM39R4051 SM894051 WDTC (0xB6H) WDTC (0x9FH) WDTK (0xB7H) WDTC (0x9FH) TAKEY (0xF7H) 0x55H 0xAAH 0x5AH WDTKEY (0x97H) 0x1EH 0xE1H WDTC 0xE1H 0x1EH WDTC 3. SM39R4051 SM894051 a. SM39R4051 Mnemonic: WDTC Address: B6h WDTF - WDTE - WDTM [3:0] 04H WDTF: Watchdog timer reset flag. When MCU is reset by watchdog, WDTF flag will be set to one by hardware. This flag clear by software or external reset or power on reset. WDTE: Control bit used to enable Watchdog timer. The WDTE bit can be used only if WDTEN is 0. If the WDTEN bit is 0, then WDT can be disabled / enabled by the WDTE bit. 0: Disable WDT. 1: Enable WDT. The WDTE bit is not used if WDTEN is 1. That is, if the WDTEN bit is 1, WDT is always disabled no matter what the WDTE bit status is. The WDTE bit can be read and written. WDTM [3:0]: WDT clock source divider bit. Please see below table to reference the WDT time-out period. ISSFA-0xxx 5 Ver. A 2010/07

Mnemonic: WDTK Address: B7h WDTK[7:0] 00h WDTK: Watchdog timer refresh key. A programmer must write 0x55 into WDTK register, and then the watchdog timer will be cleared to zero. Mnemonic: TAKEY Address: F7h TAKEY [7:0] 00H ISP ICP MOV TAKEY, #55h MOV TAKEY, #0AAh MOV TAKEY, #5Ah ; WDTC. MOV WDTC, #28h ; 262.14... MOV WDTK, #55h ;. WDTM [3:0] Divider (250 KHz RC oscillator in) Time period @ 250KHz 0000 1 1.02ms 0001 2 2.05ms 0010 4 4.10ms 0011 8 8.19ms 0100 16 16.38ms (default) 0101 32 32.77ms 0110 64 65.54ms 0111 128 131.07ms 1000 256 262.14ms 1001 512 524.29ms 1010 1024 1.05s 1011 2048 2.10s 1100 4096 4.19s 1101 8192 8.39s 1110 16384 16.78s 1111 32768 33.55s ISSFA-0xxx 6 Ver. A 2010/07

b. SM894051 Mnemonic: WDTKEY Address: 97h WDT KEY7 WDT KEY6 WDT KEY5 WDT KEY4 WDT KEY3 WDT KEY2 WDT KEY1 WDT KEY0 00H By default, the WDTC is read only. User needs to write values 1EH, 0E1H sequentially to the WDTKEY (97H) register to enable the WDTC write attribute, which is MOV WDTKEY, # 01EH MOV WDTKEY, # 0E1H When WDTC is set, user need to write another values E1H, 1EH sequentially to the WDTKEY (97H) register to disable the WDTC write attribute, That is MOV WDTKEY, # 0E1H MOV WDTKEY, # 01EH Mnemonic: WDTC Address: 9Fh WDTE CLEAR PS2 PS1 PS0 04H WDTE: Watch Dog Timer enable bit CLEAR: Watch Dog Timer reset bit If CLEAR bit set to1, Watch Dog Timer will be reset. User don t reset value to 0 PS[2:0]: Overflow period select bits PS [2:0] Overflow Period (ms) 000 2.048 001 4.096 010 8.192 011 16.384 100 32.768 101 65.536 110 131.072 111 262.14 ISSFA-0xxx 7 Ver. A 2010/07

1. SM39R4051 SM894051 SM39R4051 7SM894051 5 4SM894051 2 SM39R4051 SM894051 IE0 External interrupt 0 0x03H 0x03H TF0 Timer 0 interrupt 0x0BH 0x0BH IE1 External interrupt 1 0x13H 0x13H TF1 Timer 1 interrupt 0x1BH 0x1BH RI0/TI0 Serial channel 0 interrupt 0x23H 0x23H LVIIF Low Voltage Interrupt 0x63H IICIF IIC interrupt 0x6BH 2. SM39R4051 SM894051 SM39R4051 SM894051 0 IEN0 (0xA8H) IE (0xA8H) 1 IEN1 (0xB8H) 0 IP0 (0xA9H) IP (0xB8H) 1 IP1 (0xB9H) 3. SM39R4051 SM894051 a. SM39R4051 Mnemonic: IEN0 Address: A8h EA - - ES0 ET1 EX1 ET0 EX0 00h EA: EA=0 Disable all interrupt. EA=1 Enable all interrupt. ES0: ES0=0 Disable Serial channel 0 interrupt. ES0=1 Enable Serial channel 0 interrupt. ET1: ET1=0 Disable Timer 1 overflow interrupt. ET1=1 Enable Timer 1 overflow interrupt. EX1: EX1=0 Disable external interrupt 1. EX1=1 Enable external interrupt 1. ET0: ET0=0 Disable Timer 0 overflow interrupt. ET0=1 Enable Timer 0 overflow interrupt. EX0: EX0=0 Disable external interrupt 0. ISSFA-0xxx 8 Ver. A 2010/07

EX0=1 Enable external interrupt 0. Mnemonic: IEN1 Address: B8h EXEN2 - IEIIC IELVI - - - - 00h EXEN2: Timer 2 reload interrupt enable. EXEN2 = 0 Disable Timer 2 external reload interrupt. EXEN2 = 1 Enable Timer 2 external reload interrupt. IEIIC: IIC interrupt enable. IEIICS = 0 Disable IIC interrupt. IEIICS = 1 Enable IIC interrupt. IELVI: LVI interrupt enable. IELVI = 0 Disable LVI interrupt. IELVI = 1 Enable LVI interrupt. Mnemonic: IP0 Address: A9h - - IP0.5 IP0.4 IP0.3 IP0.2 IP0.1 IP0.0 00h Mnemonic: IP1 Address: B9h - - IP1.5 IP1.4 IP1.3 IP1.2 IP1.1 IP1.0 00h SM39R4051 Priority levels IP1.x IP0.x Priority Level 0 0 Level0 (lowest) 0 1 Level1 1 0 Level2 1 1 Level3 (highest) SM39R4051 Groups of priority Bit Group IP1.0, IP0.0 External interrupt 0 IP1.1, IP0.1 Timer 0 interrupt IP1.2, IP0.2 External interrupt 1 IP1.3, IP0.3 Timer 1 interrupt IP1.4, IP0.4 Serial channel 0 interrupt LVI interrupt IP1.5, IP0.5 IIC interrupt ISSFA-0xxx 9 Ver. A 2010/07

SM39R4051 Polling sequence Interrupt source External interrupt 0 Timer 0 interrupt External interrupt 1 Timer 1 interrupt Serial channel 0 interrupt LVI interrupt IIC interrupt Sequence sequence Polling b. SM894051 Mnemonic: IE Address: A8h EA - - ES0 ET1 EX1 ET0 EX0 00h EA: EA=0 Disable all interrupt. EA=1 Enable all interrupt. ES0: ES0=0 Disable Serial channel 0 interrupt. ES0=1 Enable Serial channel 0 interrupt. ET1: ET1=0 Disable Timer 1 overflow interrupt. ET1=1 Enable Timer 1 overflow interrupt. EX1: EX1=0 Disable external interrupt 1. EX1=1 Enable external interrupt 1. ET0: ET0=0 Disable Timer 0 overflow interrupt. ET0=1 Enable Timer 0 overflow interrupt. EX0: EX0=0 Disable external interrupt 0. EX0=1 Enable external interrupt 0. Mnemonic: IP Address: B8h - - - PS0 PT1 PX1 PT0 PX0 00h PS0: This bit defines the Serial port 0 interrupt priority. PS = 1 sets it to higher priority level. PT1: This bit defines the Timer 1 interrupt priority. PT1 = 1 sets it to higher priority level. PX1: This bit defines the External interrupt 1 priority. PX1 = 1 sets it to higher priority level. PT0: This bit defines the Timer 0 interrupt priority. PT0 = 1 sets it to higher priority level. PX0: This bit defines the External interrupt 0 priority. PX0 = 1 sets it to higher priority level. ISSFA-0xxx 10 Ver. A 2010/07

SM894051 Priority structure of interrupts Source Flag Priority Level External Interrupt 0 IE0 1(Highest) Timer 0 Overflow TF0 2 External Interrupt 1 IE1 3 Timer 1 Overflow TF1 4 Serial Port RI+TI 5 ISSFA-0xxx 11 Ver. A 2010/07

SM39R4051 1. GPIO Mnemonic: AUX Address: 91h BRS - - PTS[1:0] PINTS[1:0] DPS 00H SM39R4051 INT0 and INT1 pins PINTS [1:0] INT0 INT1 0x00 P3.2 P3.3 0x01 P3.0 P3.1 0x10 P1.4 P1.5 0x11 P3.2 P3.3 SM39R4051 T0 and T1 pins PTS [1:0] T0 T1 0x00 P3.4 P3.5 0x01 P3.0 P3.1 0x10 P1.4 P1.5 0x11 P1.2 P1.3 ResetRESET Pin P3.6 RC XTAL2 XTAL1 pin P4.0 P4.1 GPIO 4quasi-bidirectional (standard 8051 port outputs) push-pull open drain and input-only 2. Reset a. Reset on-chip hardware RESET duration 25ms (default) 200ms 100ms 50ms 16ms 8ms 4ms 2ms ISSFA-0xxx 12 Ver. A 2010/07

b. Reset Mnemonic: TAKEY Address: F7H TAKEY [7:0] 00H Software reset register (SWRES) is read-only by default; software must write three specific values 55h, AAh and 5Ah sequentially to the TAKEY register to enable the SWRES register write attribute. That is: MOV TAKEY, #55h MOV TAKEY, #0AAh MOV TAKEY, #5Ah Mnemonic: SWRES Address: E7H SWRES [7:0] 00H SWRES [7:0]: Software reset register bit. These 8-bit is self-reset at the end of the reset procedure. SWRES [7:0] = FFh, software reset. SWRES [7:0] = 00h ~ FEh, MCU no action. 3. Crystal RC Clock source external crystal (use XTAL1 and XTAL2 pins ) external crystal (only use XTAL1, the XTAL2 define as I/O) 24MHz from on-chip RC-Oscillator 20MHz from on-chip RC-Oscillator 16MHz from on-chip RC-Oscillator 12MHz from on-chip RC-Oscillator 8MHz from on-chip RC-Oscillator 4MHz from on-chip RC-Oscillator 2MHz from on-chip RC-Oscillator 1MHz from on-chip RC-Oscillator 4. Mnemonic: DPL1 Address: 84h DPL1 [7:0] 00h DPL1[7:0]: Data pointer Low 1 Mnemonic: DPH1 Address: 85h DPH1 [7:0] 00h ISSFA-0xxx 13 Ver. A 2010/07

DPH1[7:0]: Data pointer High 1 Mnemonic: AUX Address: 91h BRS - - PTS[1:0] PINTS[1:0] DPS 00H DPS: Data Pointer selects register. DPS = 1 is selected DPTR1. 5. ISP/IAP/ICP EEPROM Mnemonic: IFCON Address: 8FH - CDPR - F2K - - - ISPE 00H Software must be set ISPE bit to 1 to enable Below 4 registers write attribute. Mnemonic: ISPFAH Address: E1H - - - - ISPFAH3 ISPFAH2 ISPFAH1 ISPFAH0 FFH Mnemonic: ISPFAL Address: E2H ISPFAL7 ISPFAL6 ISPFAL5 ISPFAL4 ISPFAL3 ISPFAL2 ISPFAL1 ISPFAL0 FFH Mnemonic: ISPFD Address: E3H ISPFD7 ISPFD6 ISPFD5 ISPFD4 ISPFD3 ISPFD2 ISPFD1 ISPFD0 FFH Mnemonic: ISPFC Address: E4H EMF1 EMF2 EMF3 EMF4 - ISPF[2] ISPF[1] ISPF[0] 00H 6. IIC ISSFA-0xxx 14 Ver. A 2010/07