
12
CHAPTER 4 INTERNAL CPU FUNCTIONS ...............................................................................
4.1
Switching Function between Mk I Mode and Mk II Mode ............................................................
4.1.1
Difference between Mk I and Mk II modes ..........................................................................
4.1.2
Setting method of stack bank selection register (SBS).......................................................
4.2
Program Counter (PC) .......................................................................................................................
4.3
Program Memory (ROM) ....................................................................................................................
4.4
Data Memory (RAM) ...........................................................................................................................
4.4.1
Configuration of data memory ...............................................................................................
4.4.2
Specifying bank of data memory...........................................................................................
4.5
General-Purpose Registers...............................................................................................................
4.6
Accumulators ......................................................................................................................................
4.7
Stack Pointer (SP) and Stack Bank Selection Register (SBS) ...................................................
4.8
Program Status Word (PSW) ............................................................................................................
4.9
Bank Selection Register (BS) ...........................................................................................................
71
71
71
72
73
74
79
79
80
84
85
85
89
93
CHAPTER 5 PERIPHERAL HARDWARE FUNCTION ..............................................................
5.1
Digital I/O Port.....................................................................................................................................
5.1.1
Types, features, configuration of digital I/O ports ...............................................................
5.1.2
Setting I/O mode ....................................................................................................................
5.1.3
Digital I/O port manipulation instruction ...............................................................................
5.1.4
Operation of digital I/O port ...................................................................................................
5.1.5
Connecting pull-up resistors ..................................................................................................
5.1.6
I/O timing of digital I/O port ...................................................................................................
5.2
Clock Generator ..................................................................................................................................
5.2.1
Clock generator configuration ...............................................................................................
5.2.2
Clock generator function and operation ...............................................................................
5.2.3
Setting of system clock and CPU clock................................................................................
5.2.4
Clock output circuit.................................................................................................................
5.3
Basic Interval Timer/Watchdog Timer.............................................................................................
5.3.1
Basic interval timer/watchdog timer configuration ...............................................................
5.3.2
Basic interval timer mode register (BTM).............................................................................
5.3.3
Watchdog timer enable flag (WDTM) ...................................................................................
5.3.4
Basic interval timer operations ..............................................................................................
5.3.5
Watchdog timer operations....................................................................................................
5.3.6
Other functions .......................................................................................................................
5.4
Watch Timer.........................................................................................................................................
5.4.1
Configuration of watch timer..................................................................................................
5.4.2
Watch mode register ..............................................................................................................
5.5
Timer/Event Counter ..........................................................................................................................
5.5.1
Configuration of timer/event counter ....................................................................................
5.5.2
8-bit timer/event counter mode operation ............................................................................
5.5.3
PWM pulse generator mode (PWM mode) operation..........................................................
5.5.4
16-bit timer/event counter mode operation ..........................................................................
5.5.5
Carrier generator mode (CG mode) operation.....................................................................
5.5.6
Notes on using timer/event counter ......................................................................................
95
95
96
101
103
106
108
110
112
112
113
124
126
129
129
130
132
133
134
136
138
138
139
141
141
151
165
171
184
196