
User
’s Manual U14186EJ6V0UD
14
5.4.3
Special-function register (SFR) addressing .................................................................................. 81
5.4.4
Register addressing...................................................................................................................... 82
5.4.5
Register indirect addressing ......................................................................................................... 83
5.4.6
Based addressing ......................................................................................................................... 84
5.4.7
Stack addressing .......................................................................................................................... 84
CHAPTER 6 PORT FUNCTIONS ...........................................................................................................85
6.1
Port Functions............................................................................................................................85
6.2
Port Configuration .....................................................................................................................87
6.2.1
Port 0 ............................................................................................................................................ 87
6.2.2
Port 1 ............................................................................................................................................ 88
6.2.3
Port 2 ............................................................................................................................................ 89
6.2.4
Port 3 ............................................................................................................................................ 94
6.2.5
Port 5 ............................................................................................................................................ 97
6.2.6
Port 6 ............................................................................................................................................ 98
6.3
Port Function Control Registers ..............................................................................................99
6.4
Operation of Port Functions ...................................................................................................102
6.4.1
Writing to I/O port ....................................................................................................................... 102
6.4.2
Reading from I/O port ................................................................................................................. 102
6.4.3
Arithmetic operation of I/O port................................................................................................... 102
CHAPTER 7 CLOCK GENERATOR ....................................................................................................103
7.1
Clock Generator Functions.....................................................................................................103
7.2
Clock Generator Configuration ..............................................................................................103
7.3
Registers Controlling Clock Generator .................................................................................105
7.4
System Clock Oscillators ........................................................................................................108
7.4.1
Main system clock oscillator ....................................................................................................... 108
7.4.2
Subsystem clock oscillator.......................................................................................................... 109
7.4.3
Examples of incorrect oscillator connection................................................................................ 110
7.4.4
Scaler ......................................................................................................................................... 111
7.4.5
When no subsystem clocks are used ......................................................................................... 111
7.5
Clock Generator Operation .....................................................................................................112
7.6
Changing Setting of System Clock and CPU Clock .............................................................113
7.6.1
Time required for switching between system clock and CPU clock ............................................ 113
7.6.2
Switching between system clock and CPU clock........................................................................ 114
CHAPTER 8 16-BIT TIMER 90............................................................................................................115
8.1
16-Bit Timer 90 Functions .......................................................................................................115
8.2
16-Bit Timer 90 Configuration.................................................................................................116
8.3
Registers Controlling 16-Bit Timer 90....................................................................................119
8.4
Operation of 16-Bit Timer 90...................................................................................................123
8.4.1
Operation as timer interrupt ........................................................................................................ 123
8.4.2
Operation as timer output ........................................................................................................... 125
8.4.3
Capture operation ....................................................................................................................... 126
8.4.4
16-bit timer counter 90 readout................................................................................................... 127