Datenblatt-pdf.com


W78ERD2 Schematic ( PDF Datasheet ) - nuvoton

Teilenummer W78ERD2
Beschreibung 8-BIT MICROCONTROLLER
Hersteller nuvoton
Logo nuvoton Logo 




Gesamt 30 Seiten
W78ERD2 Datasheet, Funktion
W78ERD2/W78ERD2A Data Sheet
8-BIT MICROCONTROLLER
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/Counters ............................................................................................................. 6
5.3 Clock ............................................................................................................................... 7
5.4 Power Management........................................................................................................ 7
5.5 Reduce EMI Emission..................................................................................................... 7
5.6 Reset............................................................................................................................... 7
6. SPECIAL FUNCTION REGISTER .............................................................................................. 8
7. PORT 4 AND BASE ADDRESS REGISTERS .......................................................................... 30
8. INTERRUPTS ........................................................................................................................... 32
8.1 External Interrupts 2 and 3............................................................................................ 32
8.2 Interrupt Priority............................................................................................................. 32
9. PROGRAMMABLE TIMERS/COUNTERS................................................................................ 33
9.1 Timer 0 and Timer 1 ..................................................................................................... 33
9.2 Timer/Counter 2 ............................................................................................................ 35
10. ENHANCED FULL DUPLEX SERIAL PORT ............................................................................ 38
10.1 MODE 0 ........................................................................................................................ 38
10.2 MODE 1 ........................................................................................................................ 39
10.3 MODE 2 ........................................................................................................................ 40
10.4 MODE 3 ........................................................................................................................ 41
10.5 Framing Error Detection................................................................................................ 42
10.6 Multi-Processor Communications ................................................................................. 42
11. PROGRAMMABLE COUNTER ARRAY (PCA)......................................................................... 44
11.1 PCA Capture Mode ....................................................................................................... 47
11.2 16-bit Software Timer Comparator Mode ..................................................................... 47
11.3 High Speed Output Mode.............................................................................................. 48
11.4 Pulse Width Modulator Mode........................................................................................ 49
11.5 Watchdog Timer ........................................................................................................... 49
12. HARDWARE WATCHDOG TIMER (ONE-TIME ENABLED WITH RESET-OUT) ................... 50
Publication Release Date: March 2, 2009
- 1 - Revision A12






W78ERD2 Datasheet, Funktion
W78ERD2/W78ERD2A
5. FUNCTIONAL DESCRIPTION
The W78ERD2 architecture consists of a core processor that supports 111 different op-codes and
references 64 KB of program space and 64 KB of data space. It is surrounded by various registers;
four general-purpose I/O ports; one special-purpose, programmable, 4-bit I/O port; 256 bytes of RAM;
1 KB of auxiliary RAM (AUX-RAM); three timer/counters; a serial port; and an internal 74373 latch and
74244 buffer which can be switched to port 2.
This section introduces the RAM, Timers/Counters, Clock, Power Management, Reduce EMI
Emission, and Reset.
5.1 RAM
The W78ERD2 has two banks of RAM: 256 bytes of RAM and 1 KB of AUX-RAM. AUX-RAM is
enabled by clearing bit 1 in the AUXR register, and it is enabled after reset. Different addresses in
RAM are addressed in different ways.
RAM 00H 7FH can be addressed directly or indirectly, as in the 8051. The address pointers are R0
and R1 of the selected bank.
RAM 80H FFH can only be addressed indirectly, as in the 8051. The address pointers are R0 and
R1 of the selected bank.
AUX-RAM 00H 3FFH is addressed indirectly in the same way external data memory is accessed
with the MOVX instruction. The address pointers are R0 and R1 of the selected bank and the DPTR
register.
Addresses higher than 3FFH are stored in external memory and are accessed indirectly with the
MOVX instruction, as in the 8051.
When AUX-RAM is enabled, the instruction "MOVX @Ri" always accesses AUX-RAM. When the
W78ERD2 is executing instructions from internal program memory, accessing AUX-RAM does not
affect ports P0, P2, WR or RD .
For example,
ANL
MOV
MOV
MOVX
AUXR,#11111101B
DPTR,#1234H
A,#56H
@DPTR,A
; Enable AUX-RAM
; Write 56h to address 1234H in external memory
MOV XRAMAH,#02H
; Only 2 LSB effective
MOV R0,#34H
MOV A,@R0
; Read AUX-RAM data at address 0234H
5.2 Timers/Counters
The W78ERD2 has three timers/counters called Timer 0, Timer 1, and Timer 2. Each timer/counter
consists of two 8-bit data registers: TL0 and TH0 for Timer 0, TL1 and TH1 for Timer 1, and TL2 and
TH2 for Timer 2.
The operations of Timer 0 and Timer 1 are similar to those in the W78C52, and these timers are
controlled by the TCON and TMOD registers.
Publication Release Date: March 2, 2009
- 6 - Revision A12

6 Page









W78ERD2 pdf, datenblatt
W78ERD2/W78ERD2A
Continued
BIT NAME
3 GATE
2 C/T
1 M1
0 M0
FUNCTION
Gating control: When this bit is set, Timer/Counter 0 is enabled only while the INT0
pin is high and the TR0 control bit is set. When cleared, the INT0 pin has no effect,
and Timer 0 is enabled whenever TR0 is set.
Timer or Counter Select: When cleared, Timer 0 is incremented by the internal
clock. When set, Timer 0 counts falling edges on the T0 pin.
Timer 0 Mode Select bits: See below.
Timer 0 Mode Select bits: See below.
M1, M0: Mode Select bits:
M1 M0 Mode
0 0 Mode 0: 8048 timer, TLx serves as 5-bit pre-scale.
0 1 Mode 1: 16-bit timer/counter, no pre-scale.
1 0 Mode 2: 8-bit timer/counter with auto-reload from THx
1 1 Mode 3:
(Timer 0) TL0 is an 8-bit timer/counter controlled by the standard Timer-0 control
bits. TH0 is an 8-bit timer only controlled by Timer-1 control bits.
(Timer 1) Timer/Counter 1 is stopped.
Timer 0 LSB
Bit:
7
TL0.7
6543210
TL0.6 TL0.5 TL0.4 TL0.3 TL0.2 TL0.1 TL0.0
Mnemonic: TL0
Address: 8Ah
TL0.7-0: Timer 0 Low byte
Timer 1 LSB
Bit:
7
TL1.7
6543210
TL1.6 TL1.5 TL1.4 TL1.3 TL1.2 TL1.1 TL1.0
Mnemonic: TL1
Address: 8Bh
TL1.7-0: Timer 1 Low byte
Timer 0 MSB
Bit:
7
TH0.7
6
TH0.6
5
TH0.5
4
TH0.4
3
TH0.3
2
TH0.2
1
TH0.1
0
TH0.0
Mnemonic: TH0
Address: 8Ch
TH0.7-0: Timer 0 High byte
- 12 -
Publication Release Date: March 2, 2009
Revision A12

12 Page





SeitenGesamt 30 Seiten
PDF Download[ W78ERD2 Schematic.PDF ]

Link teilen




Besondere Datenblatt

TeilenummerBeschreibungHersteller
W78ERD28-BIT MICROCONTROLLERWinbond
Winbond
W78ERD28-BIT MICROCONTROLLERnuvoton
nuvoton
W78ERD2A8-BIT MICROCONTROLLERWinbond
Winbond
W78ERD2A8-BIT MICROCONTROLLERnuvoton
nuvoton

TeilenummerBeschreibungHersteller
CD40175BC

Hex D-Type Flip-Flop / Quad D-Type Flip-Flop.

Fairchild Semiconductor
Fairchild Semiconductor
KTD1146

EPITAXIAL PLANAR NPN TRANSISTOR.

KEC
KEC


www.Datenblatt-PDF.com       |      2020       |      Kontakt     |      Suche