W78E858 Data Sheet
8-BIT MICROCONTROLLER
Table of Contents-
1.
2.
3.
4.
5.
6.
GENERAL DESCRIPTION ......................................................................................................... 3
FEATURES................................................................................................................................. 3
PIN CONFIGURATIONS ............................................................................................................ 4
PIN DESCRIPTION..................................................................................................................... 5
BLOCK DIAGRAM ...................................................................................................................... 6
FUNCTIONAL DESCRIPTION ................................................................................................... 6
6.1
6.2
RAM................................................................................................................................ 6
EEPROM ........................................................................................................................ 7
6.2.1 Byte Write Mode...............................................................................................................7
6.2.2 Page Write Mode..............................................................................................................7
6.2.3 Software Protected Data Write .........................................................................................7
6.2.4 Command Codes for Software Data Protection Enable/Disable and Software Erase.......7
Demo Code:.................................................................................................................... 8
On-chip Flash EPROM ................................................................................................. 11
Timers 0, 1, and 2......................................................................................................... 11
Clock............................................................................................................................. 11
Crystal Oscillator........................................................................................................... 11
External Clock............................................................................................................... 11
Power Management...................................................................................................... 11
6.9.1 Idle Mode........................................................................................................................11
6.9.2 Power-down Mode..........................................................................................................12
6.9.3 Wake-up Via External Interrupts INT0 to INT9 ...............................................................12
6.3
6.4
6.5
6.6
6.7
6.8
6.9
6.10 Reset............................................................................................................................. 13
6.11 Pulse Width Modulator System .................................................................................... 14
6.11.1 PWMCON (91H)...........................................................................................................14
6.11.2 PWMP (92H) ................................................................................................................14
6.12 In-system Programming System .................................................................................. 15
6.12.1 SFRAL (C4H) ...............................................................................................................16
6.12.2 SFRAH (C5H)...............................................................................................................16
6.12.3 SFRFD (C6H)...............................................................................................................16
6.12.4 SFRCN (C7H) ..............................................................................................................16
6.13 In-system Programming Mode Operating Table .......................................................... 16
6.13.1 CHPCON (BFH) ...........................................................................................................17
6.14 MXPSR (A2H)............................................................................................................... 17
6.15 Interrupt System ........................................................................................................... 17
6.16 External Interrupts INT2 to INT9................................................................................... 18
Publication Release Date: May 5, 2004
- 1 -
Revision A4