– ii –
CHAPTER 4 INTERNAL CPU FUNCTION ....................................................................................
4.1
Function to Select MkI and MkII Modes .......................................................................
4.1.1
Difference between MkI and MkII modes..........................................................................
4.1.2
Setting stack bank select register (SBS)...........................................................................
4.2
Program Counter (PC) ....................................................................................................
4.3
Program Memory (ROM).................................................................................................
4.4
Data Memory (RAM) ... 512 words
¥
4 bits ..................................................................
4.4.1
Configuration of data memory ...........................................................................................
4.4.2
Specifying bank of data memory .......................................................................................
4.5
General-Purpose Register ... 8
¥
4 bits
¥
4 banks......................................................
4.6
Accumulator.....................................................................................................................
4.7
Stack Pointer (SP) and Stack Bank Select Register (SBS) .......................................
4.8
Program Status Word (PSW) ... 8 bits ..........................................................................
4.9
Bank Select Register (BS)..............................................................................................
49
49
49
50
51
53
57
57
58
60
61
61
65
69
CHAPTER 5 PERIPHERAL HARDWARE FUNCTION .................................................................
5.1
Digital I/O Port .................................................................................................................
5.1.1
Types, features, and configurations 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 resistor ................................................................................................
5.1.6
I/O timing of digital I/O port................................................................................................
5.2
Clock Generation Circuit................................................................................................
5.2.1
Configuration of clock generation circuit ...........................................................................
5.2.2
Function and operation of clock generation circuit...........................................................
5.2.3
Setting system clock and CPU clock.................................................................................
5.2.4
Clock output circuit .............................................................................................................
5.3
Basic Interval Timer/Watchdog Timer ..........................................................................
5.3.1
Configuration of basic interval timer/watchdog timer........................................................
5.3.2
Basic interval timer mode register (BTM)..........................................................................
5.3.3
Watchdog timer enable flag (WDTM) ................................................................................
5.3.4
Operation as basic interval timer .......................................................................................
5.3.5
Operation as watchdog timer .............................................................................................
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
Operation in 8-bit timer/even counter mode .....................................................................
5.5.3
Operation in 16-bit timer/event counter mode ..................................................................
5.5.4
Notes on using timer/event counter...................................................................................
5.6
Serial Interface.................................................................................................................
5.6.1
Function of serial interface.................................................................................................
5.6.2
Configuration of serial interface .........................................................................................
5.6.3
Register functions ...............................................................................................................
5.6.4
Operation stop mode ..........................................................................................................
71
71
72
77
79
82
84
85
87
87
88
98
100
103
103
104
106
107
108
110
112
113
114
116
116
124
131
140
145
145
145
148
153