W78E58BP-40 Nuvoton Technology Corporation of America, W78E58BP-40 Datasheet

no-image

W78E58BP-40

Manufacturer Part Number
W78E58BP-40
Description
Manufacturer
Nuvoton Technology Corporation of America
Datasheet

Specifications of W78E58BP-40

Lead Free Status / Rohs Status
Supplier Unconfirmed

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
W78E58BP-40
Manufacturer:
WINBOND
Quantity:
5 530
Part Number:
W78E58BP-40
Manufacturer:
WINBOND
Quantity:
5 120
Part Number:
W78E58BP-40
Manufacturer:
RAMTRON
Quantity:
48
Part Number:
W78E58BP-40
Quantity:
2 781
Part Number:
W78E58BP-40
Manufacturer:
WINBOND
Quantity:
195
Table of Contents-
1. GENERAL DESCRIPTION ............................................................................................................... 3
2. FEATURES ....................................................................................................................................... 3
3. PIN CONFIGURATIONS .................................................................................................................. 4
4. PIN DESCRIPTION .......................................................................................................................... 5
5. FUNCTIONAL DESCRIPTION ......................................................................................................... 6
6. SECURITY ...................................................................................................................................... 20
7. ELECTRICAL CHARACTERISTICS............................................................................................... 22
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
5.10
5.11
5.12
5.13
5.14
6.1
6.2
6.3
6.4
7.1
7.2
7.3
7.3.1
7.3.2
7.3.3
7.3.4
7.3.5
RAM ....................................................................................................................................... 6
Timers 0, 1 and 2................................................................................................................... 6
Clock ...................................................................................................................................... 7
Crystal Oscillator.................................................................................................................... 7
External Clock........................................................................................................................ 7
Power Management............................................................................................................... 7
Reduce EMI Emission ........................................................................................................... 7
Reset...................................................................................................................................... 7
Port 4 ................................................................................................................................... 10
Port 4 Base Address Registers ........................................................................................... 12
In-System Programming (ISP) Mode................................................................................... 14
In-System Programming Control Register (CHPCON) ....................................................... 16
F04KBOOT Mode (Boot From LDROM) ............................................................................. 16
Lock Bit ................................................................................................................................ 20
MOVC Inhibit ....................................................................................................................... 20
Encryption ............................................................................................................................ 21
Oscillator Control ................................................................................................................. 21
Absolute Maximum Ratings................................................................................................. 22
D.C. Characteristics............................................................................................................. 22
A.C. Characteristics ............................................................................................................. 24
INT2 / NT3
I
Clock Input Waveform...........................................................................................................24
Program Fetch Cycle ............................................................................................................24
Data Read Cycle...................................................................................................................25
Data Write Cycle ...................................................................................................................25
Port Access Cycle.................................................................................................................25
.......................................................................................................................... 10
W78E58B/W78E058B Data Sheet
8-BIT MICROCONTROLLER
- 1 -
Publication Release Date: April 22, 2008
Revision A9

W78E58BP-40 Summary of contents

Page 1

Table of Contents- 1. GENERAL DESCRIPTION ............................................................................................................... 3 2. FEATURES ....................................................................................................................................... 3 3. PIN CONFIGURATIONS .................................................................................................................. 4 4. PIN DESCRIPTION .......................................................................................................................... 5 5. FUNCTIONAL DESCRIPTION ......................................................................................................... 6 5.1 RAM ....................................................................................................................................... 6 5.2 Timers 0, 1 and 2................................................................................................................... 6 5.3 Clock ...

Page 2

TIMING WAVEFORMS................................................................................................................... 26 8.1 Program Fetch Cycle ........................................................................................................... 26 8.2 Data Read Cycle.................................................................................................................. 26 8.3 Data Write Cycle.................................................................................................................. 27 8.4 Port Access Cycle................................................................................................................ 27 9. TYPICAL APPLICATION CIRCUITS .............................................................................................. 28 9.1 Expanded External Program Memory and Crystal .............................................................. 28 ...

Page 3

GENERAL DESCRIPTION The W78E058B is an 8-bit microcontroller which has an in-system programmable Flash EPROM for firmware updating. The instruction set of the W78E058B is fully compatible with the standard 8052. The W78E058B contains a 32K bytes of main ...

Page 4

PIN CONFIGURATIONS 40-Pin DIP 44-Pin PLCC / ...

Page 5

PIN DESCRIPTION SYMBOL TYPE EXTERNAL ACCESS ENABLE: This pin forces the processor to execute the external ROM. The ROM address and data will not be presented on the bus the EA pin is high. PROGRAM STORE ...

Page 6

FUNCTIONAL DESCRIPTION The W78E058B architecture consists of a core controller surrounded by various registers, four general purpose I/O ports, one special purpose programmable 4-bits I/O port, 512 bytes of RAM, three timer/counters, a serial port. The processor supports 111 ...

Page 7

The clock speed at capture or auto-reload mode is the same as that of Timers 0 and 1. 5.3 Clock The W78E058B is designed with either a crystal oscillator or an external clock. ...

Page 8

FFH, the stack pointer to 07H, PCON (with the exception of bit 4) to 00H, and all of the other SFR registers except SBUF to 00H. SBUF is not reset. W78E58B/W78E058B Publication Release Date: April 22, 2008 - ...

Page 9

W78E058B Special Function Registers (SFRs) and Reset Values 00000000 E8 +ACC E0 00000000 +P4 D8 xxxx1111 +PSW D0 00000000 +T2CON RCAP2L C8 00000000 00000000 XICON P4CONA C0 00000000 00000000 +IP B8 00000000 +P3 B0 11111111 +IE A8 ...

Page 10

Port 4 Port 4, address D8H 4-bit multipurpose programmable I/O port. Each bit can be configured individually by software. The Port 4 has four different operation modes. Mode 0: P4.0 − P4 bi-directional I/O port ...

Page 11

Eight-source interrupt information INTERRUPT VECTOR SOURCE ADDRESS External Interrupt 0 03H Timer/Counter 0 0BH External Interrupt 1 13H Timer/Counter 1 1BH Serial Port 23H Timer/Counter 2 2BH External Interrupt 2 33H External Interrupt 3 3BH P4CONB (C3H) BIT NAME 00: ...

Page 12

P4CONA (C2H) BIT NAME P41FUN1 The P4.1 function control bits which are the similar definition as P43FUN1 P43FUN0. P41FUN0 P41CMP1 The P4.1 address comparator length control bits which are the similar definition P43CMP1, P43CMP0. P41CMP0 ...

Page 13

P42AH, P42AL The Base address register for comparator of P4.2. P42AH contains the high-order byte of address, P42AL contains the low-order byte of address. P43AH, P43AL The Base address register for comparator of P4.3. P43AH contains the high-order byte of ...

Page 14

P4 REGISTER P4.x READ WRITE ADDRESS BUS EQUAL REGISTER P4xAL Bit Length P4xAH Selectable comparator REGISTER P4xCMP0 P4xCMP1 5.12 In-System Programming (ISP) Mode The W78E058B equips one 32K byte of main ROM bank for application program (called APROM) and one ...

Page 15

SFRAH, SFRAL: The objective address of on-chip ROM in the in-system programming mode. SFRAH contains the high-order byte of address, SFRAL contains the low-order byte of address. SFRFD: The programming data for on-chip ROM in programming mode. SFRCN: The control ...

Page 16

In-System Programming Control Register (CHPCON) CHPCON (BFH) BIT NAME When this bit is set to 1, and both FBOOTSL and FPROGEN are set will SWRESET enforce microcontroller reset to initial condition just like power on reset. ...

Page 17

F04KBOOT Mode P4.3 P2 The Reset Timing For Entering F04KBOOT Mode P2.7 P2.6 RST 30 mS W78E58B/W78E058B P2.6 MODE L FO4KBOOT X FO4KBOOT Hi-Z Hi Publication Release Date: April 22, 2008 - 17 - ...

Page 18

The Algorithm of In-System Programming START Enter In-System No Programming Mode ? (conditions depend on user's application) Yes Setting control registers MOV CHPENR,#87H MOV CHPENR,#59H MOV CHPCON,#03H Setting Timer (about 1.5 us) and enable timer interrupt Start Timer and enter ...

Page 19

Go Timer Interrupt Service Routine: Stop Timer & disable interrupt Yes Is F04KBOOT Mode? (CHPCON.7=1) No Reset the CHPCON Register: MOV CHPENR,#87H MOV CHPENR,#59H MOV CHPCON,#03H Setting Timer and enable Timer interrupt for wake-up . (15 ms for erasing operation) ...

Page 20

SECURITY During the on-chip ROM programming mode, the ROM can be programmed and verified repeatedly. Until the code inside the ROM is confirmed OK, the code can be protected. The protection of ROM and those operations on it are ...

Page 21

Encryption This bit is used to enable/disable the encryption logic for code protection. Once encryption feature is enabled, the data presented on port 0 will be encoded via encryption logic. Only whole chip erase will reset this bit. 6.4 ...

Page 22

ELECTRICAL CHARACTERISTICS 7.1 Absolute Maximum Ratings PARAMETER DC Power Supply Input Voltage Operating Temperature Storage Temperature Note: Exposure to conditions beyond those listed under Absolute Maximum Ratings may adversely affect the life and reliability of the device. 7.2 D.C. ...

Page 23

D.C. Characteristics, continued PARAMETER SYM. Input Low Voltage V IL3 [*4] XTAL1 Input High Voltage V IH1 P0, P1, P2, P3, P4, EA Input High Voltage V IH2 RST Input High Voltage V IH3 [*4] XTAL1 Output Low Voltage V ...

Page 24

A.C. Characteristics The AC specifications are a function of the particular process used to manufacture the part, the ratings of the I/O buffers, the capacitive load, and the internal routing capacitance. Most of the specifications can be expressed in ...

Page 25

Data Read Cycle PARAMETER ALE Low to RD Low RD Low to Data Valid Data Hold from RD High Data Float from RD High RD Pulse Width Notes: 1. Data memory access time ...

Page 26

TIMING WAVEFORMS 8.1 Program Fetch Cycle S1 S2 XTAL1 ALE T PSEN T AAS PORT AAH PORT 0 A0-A7 Code 8.2 Data Read Cycle XTAL1 ALE PSEN PORT 2 A0-A7 PORT 0 T ...

Page 27

Data Write Cycle XTAL1 ALE PSEN PORT 2 PORT 0 A0- DAW 8.4 Port Access Cycle XTAL1 ALE T PDS PORT INPUT SAMPLE W78E58B/W78E058B A8-A15 DATA OUT T ...

Page 28

TYPICAL APPLICATION CIRCUITS 9.1 Expanded External Program Memory and Crystal XTAL1 XTAL2 CRYSTAL 8 RST C1 C2 INT0 12 13 INT1 P1.0 P1.1 ...

Page 29

Expanded External Data Memory and Oscillator XTAL1 OSCILLATOR XTAL2 8 RST INT0 12 13 INT1 P1.0 2 P1.1 3 P1.2 4 P1.3 ...

Page 30

PACKAGE DIMENSIONS 10.1 40-pin DIP 10.2 44-pin PLCC ...

Page 31

PQFP See Detail F y Seating Plane W78E58B/W78E058B Dimension in inch Symbol Min. Nom. Max. A --- --- ...

Page 32

APPLICATION NOTES 11.1 In-system Programming Software Examples This application note illustrates the in-system programmability of the Nuvoton W78E058B ROM microcontroller. In this example, microcontroller will boot from 32KB APROM bank and waiting for a key to enter in-system programming ...

Page 33

MOV TCON, #00H ; TIMER0 STOP MOV IP, #00H ; IP = 00H MOV IE, #82H ; TIMER0 INTERRUPT ENABLE FOR WAKE-UP FROM IDLE MODE MOV R6, #F0H ; TL0 = F0H MOV R7, #FFH ; TH0 ...

Page 34

ORG 100H MAIN_4K: MOV SP, #C0H MOV CHPENR, #87H ; CHPENR = 87H, CHPCON WRITE ENABLE. MOV CHPENR, #59H ; CHPENR = 59H, CHPCON WRITE ENABLE. MOV A, CHPCON ANL A, #80H CJNE A, #80H, UPDATE_32K ; CHECK F04KBOOT MODE ...

Page 35

CJNE A, #FFH, BLANK_CHECK_ERROR INC SFRAL ; NEXT ADDRESS MOV A, SFRAL JNZ BLANK_CHECK_LOOP INC SFRAH MOV A, SFRAH CJNE A, #80H, BLANK_CHECK_LOOP ; END ADDRESS = 7FFFH JMP PROGRAM_32KROM BLANK_CHECK_ERROR: MOV P1, #F0H MOV P3, #F0H JMP $ ;******************************************************************************* ...

Page 36

MOV SFRCN, #00H ; SFRCN = 00 (Read ROM CODE) READ_VERIFY_32K: MOV SFRAL SFRAL(C4H) = LOW ADDRESS MOV TCON, #10H ; TCON = 10H, TR0 = 1,GO MOV PCON, #01H INC R2 MOVX A, @DPTR INC DPTR CJNE ...

Page 37

REVISION HISTORY VERSION DATE A3 March, 2002 A4 June, 2004 A5 April 20, 2005 A6 June 7, 2005 A7 October 3, 2006 A8 December 4, 2006 A9 April 22, 2008 Nuvoton products are not designed, intended, authorized or warranted ...

Related keywords