W742C818
4-BIT MICROCONTROLLER
1.
2.
3.
4.
5.
GENERAL DESCRIPTION ...................................................................................................... 3
FEATURES ............................................................................................................................. 3
PIN CONFIGURATION............................................................................................................ 5
W742C818 PIN DESCRIPTION............................................................................................... 6
FUNCTIONAL DESCRIPTION................................................................................................. 7
Program Counter (PC) ......................................................................................................... 7
Stack Register (STACK)....................................................................................................... 7
Program Memory (ROM)...................................................................................................... 8
5.1
5.2
5.3
5.3.1
5.3.2
5.4
5.4.1
5.4.2
5.4.3
5.4.4
5.4.5
ROM Page Register (ROMPR)...................................................................................... 8
ROM Addressing Mode ................................................................................................. 9
Data Memory (RAM) .......................................................................................................... 10
Architecture................................................................................................................. 10
RAM Page Register (PAGE)........................................................................................ 11
WR Page Register (WRP)........................................................................................... 12
Data Bank Register (DBKRH, DBKRL)........................................................................ 12
RAM Addressing Mode................................................................................................ 13
5.5
5.6
5.7
5.8
Accumulator (ACC) ............................................................................................................ 14
Arithmetic and Logic Unit (ALU) ......................................................................................... 14
Main Oscillator................................................................................................................... 15
Sub-Oscillator .................................................................................................................... 15
Dividers.............................................................................................................................. 15
Dual-clock operation....................................................................................................... 16
Watchdog Timer (WDT) ................................................................................................. 17
Timer/Counter ................................................................................................................ 18
5.9
5.10
5.11
5.12
5.12.1 Timer 0 (TM0)............................................................................................................. 18
5.12.2 Timer 1 (TM1)............................................................................................................. 19
5.12.3 Mode Register 0 (MR0) ............................................................................................... 21
5.12.4 Mode Register 1 (MR1) ............................................................................................... 21
5.13
5.14
Interrupts ........................................................................................................................ 21
Stop Mode Operation...................................................................................................... 23
5.14.1 Stop Mode Wake-up Enable Flag for RC and RD Port (SEF) ...................................... 23
5.15
Hold Mode Operation...................................................................................................... 23
5.15.1 Hold Mode Release Enable Flag (HEF,HEFD) ............................................................ 24
5.15.2 Interrupt Enable Flag (IEF).......................................................................................... 25
5.15.3 Port Enable Flag (PEF,P1EF) ..................................................................................... 25
5.15.4 Hold Mode Release Condition Flag (HCF,HCFD)........................................................ 26
5.15.5 Event Flag (EVF,EVFD).............................................................................................. 27
5.16
Reset Function ............................................................................................................... 27
5.17
Input/Output Ports RA, RB & P0 ..................................................................................... 28
5.17.1 Port Mode 0 Register (PM0)........................................................................................ 29
5.17.2 Port Mode 1 Register (PM1)........................................................................................ 29
5.17.3 Port Mode 2 Register (PM2)........................................................................................ 30
5.17.4 Port Mode 6 Register (PM6)........................................................................................ 30
5.18
5.19
Serial I/O interface.......................................................................................................... 30
Input Ports RC................................................................................................................ 33
Publication Release Date:October 2000
- 1 -
Revision A2