W78E858 Data Sheet
8-BIT MICROCONTROLLER
Table of Contents-
1.
2.
3.
4.
5.
GENERAL DESCRIPTION..........................................................................................................3
FEATURES..................................................................................................................................3
PIN CONFIGURATIONS.............................................................................................................4
PIN DESCRIPTION.....................................................................................................................5
FUNCTIONAL DESCRIPTION....................................................................................................6
5.1
5.2
RAM.................................................................................................................................6
EEPROM.........................................................................................................................6
5.2.1 Byte Write Mode................................................................................................................6
5.2.2 Page Write Mode ..............................................................................................................6
5.2.3 Software Protected Data Write..........................................................................................7
5.2.4 Command Codes for Software Data Protection Enable/Disable and Software Erase .......7
Demo Code: ....................................................................................................................7
On-chip Flash EPROM..................................................................................................10
Timers 0, 1, and 2 .........................................................................................................11
Clock .............................................................................................................................11
Crystal Oscillator ...........................................................................................................11
External Clock ...............................................................................................................11
Power Management......................................................................................................11
5.9.1 Idle Mode ........................................................................................................................11
5.9.2 Power-down Mode ..........................................................................................................11
5.9.3 Wake-up Via External Interrupts INT0 to INT9................................................................12
5.3
5.4
5.5
5.6
5.7
5.8
5.9
5.10 Reset.............................................................................................................................14
5.11 Pulse Width Modulator System.....................................................................................15
5.11.1 PWMCON (91H) ...........................................................................................................15
5.11.2 PWMP (92H).................................................................................................................15
5.12 In-system Programming System...................................................................................16
5.12.1 SFRAL (C4H)................................................................................................................16
5.12.2 SFRAH (C5H) ...............................................................................................................16
5.12.3 SFRFD (C6H) ...............................................................................................................16
5.12.4 SFRCN (C7H) ...............................................................................................................17
5.13 In-system Programming Mode Operating Table...........................................................17
5.13.1 CHPCON (BFH)............................................................................................................18
5.14 MXPSR (A2H) ...............................................................................................................18
5.15 Interrupt System............................................................................................................18
5.16 External Interrupts INT2 to INT9 ...................................................................................19
5.16.1 IE_1 (E8H) ....................................................................................................................19
Publication Release Date: April 22, 2008
- 1 -
Revision A8