6.3.70 TCM — Test Complement Under Mask ....................................................................................... 6-82
6.3.71 TM — Test Under Mask
............................................................................................................... 6-83
6.3.72 WFI — Wait for Interrupt
............................................................................................................... 6-84
6.3.73 XOR — Logical Exclusive OR
...................................................................................................... 6-85
7 CLOCK CIRCUIT.........................................................................................7-1
7.1 Overview of Clock
Circuit......................................................................................................................... 7-1
7.1.1 Clock Status During Power-Down Modes
........................................................................................ 7-2
7.1.2 System Clock Control Regis
ter (CLKCON) ...................................................................................... 7-2
8 RESET AND POWER-DOWN .....................................................................8-1
8.1 Overview of Sys
tem Reset....................................................................................................................... 8-1
8.1.1 MCU Initialization Sequence
............................................................................................................ 8-3
8.2 Power-down Modes
................................................................................................................................. 8-4
8.2.1 Stop Mode
........................................................................................................................................ 8-4
8.2.1.1 Using RESET to Releas
e Stop Mode ..................................................................................... 8-4
8.2.1.2 Using an External Interrupt to Release Stop Mode
................................................................ 8-4
8.2.1.3 Idle Mode
................................................................................................................................ 8-5
8.2.2 Hardware Res
et Values.................................................................................................................... 8-6
9 I/O PORTS ...................................................................................................9-1
9.1 Overview of I/O Ports
............................................................................................................................... 9-1
9.1.1 Port Data Regis
ters .......................................................................................................................... 9-1
9.1.1.1 Port 0
....................................................................................................................................... 9-2
9.1.1.2 Port 1
....................................................................................................................................... 9-7
9.1.1.3 Port 2
....................................................................................................................................... 9-9
10 BASIC TIMER............................................................................................10-1
10.1 Overview of Bas
ic Timer ...................................................................................................................... 10-1
10.2 Basic Timer Control Regis
ter (BTCON)............................................................................................... 10-2
10.2.1 Basic Timer Function Des
cription................................................................................................. 10-3
10.2.1.1 Watchdog Timer Func
tion................................................................................................... 10-3
10.2.1.2 Oscillation Stabilization Interval Timer Function
................................................................. 10-3
11 8-BIT TIMER A...........................................................................................11-1
11.1 Overview of 8-bit Timer A
.................................................................................................................... 11-1
11.1.1 Functional Descri
ption .................................................................................................................. 11-2
11.1.1.1 Timer A Interrupt
s ............................................................................................................... 11-2
11.1.1.2 Interval Timer Func
tion ....................................................................................................... 11-2
11.1.1.3 Pulse Width Modulation Mode
............................................................................................ 11-2
11.1.1.4 Capture Mode
..................................................................................................................... 11-2
11.1.2 Timer A Control Regis
ter (TACON).............................................................................................. 11-3
11.1.3 Block Diagram of Timer A
............................................................................................................. 11-6
12 TIMER 0.....................................................................................................12-1
12.1 One 16-bit Timer Mode (Timer 0)
........................................................................................................ 12-1
12.1.1 Overview of One 16-bit Timer Mode (Timer 0)
............................................................................. 12-1
12.1.2 Functional Description of One 16-bit Timer Mode (Timer 0)
........................................................ 12-2
12.1.2.1 Interval Timer Func
tion ....................................................................................................... 12-2