W78E516BP-40 Winbond, W78E516BP-40 Datasheet

no-image

W78E516BP-40

Manufacturer Part Number
W78E516BP-40
Description
8 bit microcontroller
Manufacturer
Winbond
Datasheet

Specifications of W78E516BP-40

Dc
0347

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
W78E516BP-40
Manufacturer:
WIN
Quantity:
5 300
Part Number:
W78E516BP-40
Manufacturer:
WIN
Quantity:
5 300
Part Number:
W78E516BP-40
Manufacturer:
WINBOND
Quantity:
10
GENERAL DESCRIPTION
The W78E516B is an 8-bit microcontroller which has an in-system programmable MTP-ROM for
firmware updating. The instruction set of the W78E516B is fully compatible with the standard 8052.
The W78E516B contains a 64K bytes of main MTP-ROM and a 4K bytes of auxiliary MTP-ROM
which allows the contents of the 64KB 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 W78E516B allows the program memory to be programmed
and read electronically. Once the code is confirmed, the user can protect the code for security.
The W78E516B 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 up to 40 MHz.
64K 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
Six-sources, two-level interrupt capability
Built-in power management
Code protection
Packaged in
DIP
PLCC 44: W78E516BP-24/40
40: W78E516B-24/40
8-BIT MICROCONTROLLER
- 1 -
Publication Release Date: February 2000
W78E516B
Revision A3

Related parts for W78E516BP-40

W78E516BP-40 Summary of contents

Page 1

... Four 8-bit bi-directional ports. One 4-bit multipurpose programmable port. Three 16-bit timer/counters One full duplex serial port Six-sources, two-level interrupt capability Built-in power management Code protection Packaged in DIP 40: W78E516B-24/40 PLCC 44: W78E516BP-24/40 8-BIT MICROCONTROLLER Publication Release Date: February 2000 - 1 - W78E516B Revision A3 ...

Page 2

... ALE 12 29 INT0, P3.2 PSEN 13 28 P2.7, A15 INT1, P3.3 T0, P3.4 14 P2.6, A14 27 T1, P3 P2.5, A13 16 WR, P3.6 25 P2.4, A12 17 24 P2.3, A11 RD, P3 P2.2, A10 XTAL2 XTAL1 19 22 P2. P2.0, A8 VSS 21 44-pin PLCC (W78E516BP ...

Page 3

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

Page 4

BLOCK DIAGRAM P1.0 Port 1 Port 1 Latch P1.7 Interrupt Timer 2 Timer 0 Timer 1 UART P3.0 Port 3 Port 3 Latch P3.7 Port 4 P4.0 Latch Port 4 P4.3 XTAL1 FUNCTIONAL DESCRIPTION The W78E516B architecture consists of a ...

Page 5

AUX-RAM 0H 255H is addressed indirectly as the same way to access external data memory with the MOVX instruction. Address pointer are R0 and R1 of the selected register bank and DPTR register. An access to external data memory locations ...

Page 6

B7 bit 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 ...

Page 7

Port 4 (D8H) BIT NAME 7 - Reserve 6 - Reserve 5 - Reserve 4 - Reserve 3 P43 Port 4 Data bit which outputs to pin P4.3. 2 P42 Port 4 Data bit. which outputs to pin P4.2. 1 ...

Page 8

SFRCN (C7) BIT NAME 7 - Reserve. 6 WFWIN On-chip MTP-ROM bank select for in-system programming 64K bytes MTP-ROM bank is selected as destination for re-programming bytes MTP-ROM bank is selected as destination for re-programming. ...

Page 9

CHPCON (BFH), continued BIT NAME 0 FPROGEN MTP-ROM Programming Enable enable. The microcontroller enter the in-system programming mode after entering the idle mode and wake-up from interrupt. During in-system programming mode, the operation of erase, program and read ...

Page 10

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 11

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 12

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

Page 13

Oscillator Control W78E516B/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 ...

Page 14

D.C. Electrical Characteristics, continued PARAMETER Input Low Voltage RST Input Low Voltage [*4] XTAL1 Input High Voltage P0, P1, P2, P3, P4, EA Input High Voltage RST Input High Voltage [*4] XTAL1 Output Low Voltage P1, P2, P3, P4 Output ...

Page 15

AC 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 terms ...

Page 16

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 17

TIMING WAVEFORMS Program Fetch Cycle S1 XTAL1 ALE PSEN PORT 2 T AAH PORT 0 Code Data Read Cycle S4 S5 XTAL1 ALE PSEN PORT 2 A0-A7 PORT ALW T APL ...

Page 18

Timing Waveforms, continued Data Write Cycle S4 S5 XTAL1 ALE PSEN PORT 2 PORT 0 A0-A7 WR Port Access Cycle XTAL1 ALE T PDS PORT INPUT SAMPLE A8-A15 DATA OUT T DAD T T DAW ...

Page 19

TYPICAL APPLICATION CIRCUIT Expanded External Program Memory and Crystal CRYSTAL 8 W78E516B CRYSTAL 6 MHz 16 ...

Page 20

Tipical Application Circuit, continued Expanded External Data Memory and Oscillator OSCILLATOR 8 W78E516B AD0 AD0 3 P0 ...

Page 21

PACKAGE DIMENSIONS 40-pin DIP 44-pin PLCC Seating Plane ...

Page 22

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

Page 23

MOV R7,#FFH MOV TL0,R6 MOV TH0,R7 MOV TMOD,#01H MOV TCON,#10H MOV PCON,#01H ;******************************************************************************** ;* Normal mode 64KB APROM program: depending user's application ;******************************************************************************** NORMAL_MODE EXAMPLE 2: ;***************************************************************************************************************************** ;* Example of 4KB LDROM program: This lorder program ...

Page 24

MAIN_4K: 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_64K ; CHECK F04KBOOT MODE ? MOV CHPCON,#03H ; CHPCON = 03H, ENABLE IN-SYSTEM PROGRAMMING. MOV ...

Page 25

INC SFRAL MOV A,SFRAL JNZ BLANK_CHECK_LOOP INC SFRAH MOV A,SFRAH CJNE A,#0H,BLANK_CHECK_LOOP ; END ADDRESS = FFFFH JMP PROGRAM_64KROM BLANK_CHECK_ERROR: MOV P1,#F0H MOV P3,#F0H JMP $ ;******************************************************************************* ;* RE-PROGRAMMING 64KB APROM BANK ;******************************************************************************* PROGRAM_64KROM: MOV DPTR,#0H ; THE ADDRESS OF ...

Page 26

... Taipei, Taiwan TEL: 886-2-27190505 FAX: 886-2-27197502 Note: All data and specifications are subject to change without notice. Winbond Electronics (H.K.) Ltd. Winbond Electronics North America Corp. Winbond Memory Lab. Rm. 803, World Trade Square, Tower II, 123 Hoi Bun Rd., Kwun Tong, Winbond Microelectronics Corp. ...

Related keywords