w78le58 Winbond Electronics Corp America, w78le58 Datasheet

no-image

w78le58

Manufacturer Part Number
w78le58
Description
8-bit Microcontroller
Manufacturer
Winbond Electronics Corp America
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
w78le58F-24
Manufacturer:
WINBOND
Quantity:
664
Part Number:
w78le58P-24
Quantity:
20
GENERAL DESCRIPTION
The W78LE58 is an 8-bit microcontroller which has an in-system programmable MTP-ROM for
firmware updating. The instruction set of the W78LE58 is fully compatible with the standard 8052.
The W78LE58 contains a 32K bytes of main MTP-ROM and a 4K bytes of auxiliary MTP-ROM which
allows the contents of the 32KB main MTP-ROM to be updated by the loader program located at the
4KB auxiliary MTP-ROM; 512 bytes of on-chip RAM; four 8-bit bi-directional and bit-addressable I/O
ports; an additional 4-bit port P4; three 16-bit timer/counters; a serial port. These peripherals are
supported by a eight sources two-level interrupt capability. To facilitate programming and verification,
the MTP-ROM inside the W78LE58 allows the program memory to be programmed and read
electronically. Once the code is confirmed, the user can protect the code for security.
The W78LE58 microcontroller has two power reduction modes, idle mode and power-down mode,
both of which are software selectable. The idle mode turns off the processor clock but allows for
continued peripheral operation. The power-down mode stops the crystal oscillator for minimum power
consumption. The external clock can be stopped at any time and in any state without affecting the
processor.
FEATURES
Fully static design 8-bit CMOS microcontroller
32K bytes of in-system programmable MTP-ROM for Application Program (APROM)
4K bytes of auxiliary MTP-ROM for Loader Program (LDROM)
512 bytes of on-chip RAM. (including 256 bytes of AUX-RAM, software selectable)
64K bytes program memory address space and 64K bytes data memory address space
Four 8-bit bi-directional ports
One 4-bit multipurpose programmable port
Three 16-bit timer/counters
One full duplex serial port
Eight-sources, two-level interrupt capability
Built-in power management
Code protection
Packaged in
DIP
PLCC 44: W78LE58P-24
QFP 44: W78LE58F-24
40: W78LE58-24
8-BIT MICROCONTROLLER
- 1 -
Preliminary W78LE58
Publication Release Date: June 2000
Revision A1

Related parts for w78le58

w78le58 Summary of contents

Page 1

... The W78LE58 is an 8-bit microcontroller which has an in-system programmable MTP-ROM for firmware updating. The instruction set of the W78LE58 is fully compatible with the standard 8052. The W78LE58 contains a 32K bytes of main MTP-ROM and a 4K bytes of auxiliary MTP-ROM which allows the contents of the 32KB main MTP-ROM to be updated by the loader program located at the 4KB auxiliary MTP-ROM ...

Page 2

... PSEN 13 28 P2.7, A15 INT1, P3.3 T0, P3 P2.6, A14 15 T1, P3.5 26 P2.5, A13 16 WR, P3.6 25 P2.4, A12 17 24 P2.3, A11 RD, P3.7 18 XTAL2 23 P2.2, A10 XTAL1 19 22 P2. VSS 21 P2.0, A8 44-Pin QFP (W78LE58F) 1 P1.5 P0.4, AD4 2 P1.6 P0.5, AD5 3 P1.7 P0.6, AD6 4 RST P0.7, AD7 5 RXD, P3 INT2, P4.3 P4.1 7 TXD, P3.1 ALE 8 INT0, P3.2 PSEN 9 INT1, P3.3 P2.7, A15 10 T0, P3.4 P2.6, A14 11 T1, P3.5 P2.5, A13 ...

Page 3

... I/O H PORT 3: Function is the same as that of the standard 8052. P3.0 P3.7 I/O H PORT 4: A bi-directional I/O. See details below. P4.0 P4.3 * Note: TYPE I: input, O: output, I/O: bi-directional, H: pull-high, L: pull-low, D: open drain Preliminary W78LE58 DESCRIPTIONS Publication Release Date: June 2000 - 3 - Revision A1 ...

Page 4

... RAM The internal data RAM in the W78LE58 is 512 bytes divided into two banks: 256 bytes of scratchpad RAM and 256 bytes of AUX-RAM. These RAMs are addressed by different ways. RAM 0H 7FH can be addressed directly and indirectly as the same as in 8051. Address pointers are R0 and R1 of the selected register bank ...

Page 5

... The clock speed at capture or auto-reload mode is the same as that of Timers 0 and 1. Clock The W78LE58 is designed with either a crystal oscillator or an external clock. Internally, the clock is divided by two before it is used by default. This makes the W78LE58 relatively insensitive to duty cycle variations in the clock. ...

Page 6

... An internal trigger circuit in the reset line is used to deglitch the reset line when the W78LE58 is used with an external RC network. The reset logic also has a special glitch removal circuit that ignores glitches on the reset line. During reset, the ports are initialized to 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 ...

Page 7

... XICON (External Interrupt Control) register. The XICON register is bit-addressable but is not a standard register in the standard 80C52. Its address is at 0C0H. To set/clear bits in the XICON register, one can use the "SETB ( CLR ) bit" instruction. For example, "SETB 0C2H" sets the EX2 bit of XICON. Preliminary W78LE58 P42AL P42AH 00000000 ...

Page 8

... Mode 2. P4 Write Strobe signal for chip select purpose. The address range depends on the SFR P43AH, P43AL, P43CMP1 and P43CMP0. 11: Mode 3. P4 Read/Write Strobe signal for chip select purpose. The address range depends on the SFR P43AH, P43AL, P43CMP1, and P43CMP0. Preliminary W78LE58 IT3 PX2 EX2 POLLING ...

Page 9

... P4.3 is active low when pin P4.3 is defined as read and/or write strobe signal. 6 P42CSINV The similarity definition as P43SINV. 5 P41CSINV The similarity definition as P43SINV. 4 P40CSINV The similarity definition as P43SINV Reserve 2 - Reserve Preliminary W78LE58 FUNCTION FUNCTION FUNCTION Publication Release Date: June 2000 - 9 - Revision A1 ...

Page 10

... Then any instruction MOVX @DPTR,A (with DPTR = 1234H 1237H) will generate the positive polarity write strobe signal at pin P4.0. And the instruction MOV P4,#XX will output the bit3 to bit1 of data #XX to pin P4.3 P4.1. Preliminary W78LE58 FUNCTION ; Base I/O address 1234H for P4.0 ; P4.0 a write strobe signal and address line A0 and A1 are masked. ...

Page 11

... P4xCMP1 In-System Programming (ISP) Mode The W78LE58 equips one 32K byte of main MTP-ROM bank for application program (called APROM) and one 4K byte of auxiliary MTP-ROM bank for loader program (called LDROM). In the normal operation, the microcontroller executes the code in the APROM. If the content of APROM needs to be modified, the W78LE58 allows user to activate the In-System Programming (ISP) mode by setting the CHPCON register ...

Page 12

... CTRL[3:0] The flash control signals MODE WFWIN Erase 32KB APROM 0 Program 32KB APROM 0 Read 32KB APROM 0 Erase 4KB LDROM 1 Program 4KB LDROM 1 Read 4KB LDROM 1 Preliminary W78LE58 FUNCTION CTRL<3:0> OEN CEN SFRAH, SFRAL 0010 1 0 0001 1 0 0000 0 0 0010 ...

Page 13

... User can press both two buttons at the same time and then turn on the power of the personal computer to force the W78LE58 to enter the F04KBOOT mode. After power on of personal computer, you can release both buttons and finish the in-system programming procedure to update the APROM code ...

Page 14

... F04KBOOT MODE P4.3 P2.7 P2.6 MODE FO4KBOOT FO4KBOOT The Reset Timing For Entering P2.7 P2.6 RST Preliminary W78LE58 F04KBOOT Mode Hi-Z Hi ...

Page 15

... In-System Programming mode) CPU will be wakened by interrupt and re-boot from 4KB LDROM to execute the loader program Preliminary W78LE58 Part 1:32KB APROM procedure of entering In-System Programming Mode Execute the normal application program END Publication Release Date: June 2000 ...

Page 16

... MOV SFRCN,#22H (Erase 32KB APROM) Start Timer and enter IDLE Mode. (Erasing...) End of erase operation. CPU will be wakened by Timer interrupt. PGM Preliminary W78LE58 Part 2: 4KB LDROM Procedure of Updating the 32KB APROM PGM Yes End of Programming ? No Setting Timer and enable Timer Is currently in the interrupt for wake-up ...

Page 17

... Reserved bits must be kept in logic 1. Lock bit This bit is used to protect the customer's program code in the W78LE58. It may be set after the programmer finishes the programming and verifies sequence. Once this bit is set to logic 0, both the MTP ROM data and Special Setting Registers can not be accessed again. ...

Page 18

... Oscillator Control W78LE58/E516 allow user to diminish the gain of on-chip oscillator amplifier by using programmer to set the bit B7 of security register. Once B7 is set half of gain will be decreased. Care must be taken if user attempts to diminish the gain of oscillator amplifier, reducing a half of gain may improperly affect the external crystal operation at high frequency above 24 MHz ...

Page 19

... RST pin is a Schmitt trigger input. *2. P0, ALE and PSEN are tested in the external access mode. *3. XTAL1 is a CMOS input. *4. Pins of P1, P2, P3, P4 can source a transition current when they are being externally driven from Preliminary W78LE58 SPECIFICATION UNIT MIN. MAX. ...

Page 20

... ALE Pulse Width PSEN Pulse Width Notes: 1. P0.0 P0.7, P2.0 P2.7 remain stable throughout entire memory cycle. 2. Memory access time Data have been latched internally prior to PSEN going high. 4. " " (due to buffer driving delay and wire loading nS. Preliminary W78LE58 OP, CP SYMBOL MIN ...

Page 21

... Port Input Setup to ALE Low Port Input Hold from ALE Low Port Output to ALE Note: Ports are read during S5P2, and output data becomes available at the end of S6P2. The timing data are referenced to ALE, since it provides a convenient reference. Preliminary W78LE58 SYMBOL MIN. TYP. T ...

Page 22

... TIMING WAVEFORMS Program Fetch Cycle S1 S2 XTAL1 ALE PSEN PORT 2 T AAH PORT 0 A0-A7 Code Data Read Cycle S4 S5 XTAL1 ALE PSEN PORT 2 A0-A7 PORT 0 RD Preliminary W78LE58 ALW T APL T PSW T AAS T PDA T T PDH, PDZ A0-A7 Code A0-A7 Data ...

Page 23

... Timing Waveforms, continued Data Write Cycle S4 S5 XTAL1 ALE PSEN PORT 2 PORT 0 A0- Port Access Cycle XTAL1 ALE T PDS PORT INPUT SAMPLE Preliminary W78LE58 A8-A15 DATA OUT T T DWD DAD T DWR DAW PDH - PDA ...

Page 24

... P1.7 W78LE58 CRYSTAL 6 MHz 16 MHz 24 MHz Above table shows the reference values for crystal applications. Notes: 1. C1, C2, R components refer to Figure A 2. Crystal layout must get close to XTAL1 and XTAL2 pins on user's application board. Preliminary W78LE58 39 AD0 AD0 P0.0 38 AD1 ...

Page 25

... INT1 P1.0 2 P1.1 3 P1.2 4 P1.3 5 P1.4 6 P1.5 7 P1.6 8 P1.7 W78LE58 PACKAGE DIMENSIONS 40-pin DIP Preliminary W78LE58 AD0 39 AD0 AD1 AD1 P0.2 37 AD2 AD2 P0.3 AD3 AD3 P0.4 35 ...

Page 26

... Seating Plane 44-pin PQFP See Detail F y Seating Plane Preliminary W78LE58 Detail Dimension in inch Dimension in mm Symbol Min ...

Page 27

... Application Note: In-system Programming Software Examples This application note illustrates the in-system programmability of the Winbond W78LE58 MTP-ROM microcontroller. In this example, microcontroller will boot from 32KB APROM bank and waiting for a key to enter in-system programming mode for re-programming the contents of 32KB APROM. While entering in-system programming mode, microcontroller executes the loader program in 4KB LDROM bank ...

Page 28

... SFRAH EQU C5H SFRFD EQU C6H SFRCN EQU C7H ORG 000H LJMP 100H ; JUMP TO MAIN PROGRAM ;************************************************************************ ;* 1. TIMER0 SERVICE VECTOR ORG = 0BH ;************************************************************************ ORG 000BH CLR TR0 ; TR0 = 0, STOP TIMER0 MOV TL0,R6 MOV TH0,R7 RETI ;************************************************************************ ;* 4KB LDROM MAIN PROGRAM ;************************************************************************ ORG 100H Preliminary W78LE58 - 28 - ...

Page 29

... START ADDRESS = 0H MOV SFRAL,#0H MOV R6,#FEH ; SET TIMER FOR READ OPERATION, ABOUT 1.5 S. MOV R7,#FFH MOV TL0,R6 MOV TH0,R7 BLANK_CHECK_LOOP: SETB TR0 ; ENABLE TIMER 0 MOV PCON,#01H ; ENTER IDLE MODE MOV A,SFRFD ; READ ONE BYTE Preliminary W78LE58 Publication Release Date: June 2000 - 29 - Revision A1 ...

Page 30

... VERIFY 32KB APROM BANK ;***************************************************************************** MOV R4,#03H ; ERROR COUNTER MOV R6,#FEH ; SET TIMER FOR READ VERIFY, ABOUT 1.5 S. MOV R7,#FFH MOV TL0,R6 MOV TH0,R7 MOV DPTR,#0H ; The start address of sample code MOV R2,#0H ; Target low byte address MOV R1,#0H ; Target high byte address Preliminary W78LE58 - 30 - ...

Page 31

... FAX: 886 -2-27197502 FAX: 886 -2-27197502 Note: All data and specifications are subject to change withou t notice. Note: All data and specifications are subject to change withou t notice. Preliminary W78LE58 Winbond Electronics (H.K.) Ltd. Winbond Electronics (H.K.) Ltd. Winbond Electronics North America Corp. Winbond Electronics North America Corp. ...

Related keywords