Preliminary User’s Manual U16846EJ1V0UD
10
3.4 Operand
Address
Addressing .................................................................................................. 55
3.4.1 Implied addressing .......................................................................................................................... 55
3.4.2 Register addressing ........................................................................................................................ 56
3.4.3 Direct
addressing ............................................................................................................................ 57
3.4.4 Short
direct addressing ................................................................................................................... 58
3.4.5 Special function register (SFR) addressing ..................................................................................... 59
3.4.6 Register
indirect addressing ............................................................................................................ 60
3.4.7 Based
addressing............................................................................................................................ 61
3.4.8 Based
indexed addressing .............................................................................................................. 62
3.4.9 Stack
addressing............................................................................................................................. 63
CHAPTER 4 PORT FUNCTIONS ........................................................................................................... 64
4.1 Port
Functions ............................................................................................................................ 64
4.2 Port
Configuration...................................................................................................................... 65
4.2.1 Port
0............................................................................................................................................... 66
4.2.2 Port
1............................................................................................................................................... 69
4.2.3 Port
2............................................................................................................................................... 74
4.2.4 Port
3............................................................................................................................................... 75
4.2.5 Port 12............................................................................................................................................. 76
4.2.6 Port 13............................................................................................................................................. 77
4.3 Registers Controlling Port Function ........................................................................................ 77
4.4 Port Function Operations .......................................................................................................... 81
4.4.1 Writing
to I/O port ............................................................................................................................ 81
4.4.2 Reading
from I/O port...................................................................................................................... 81
4.4.3 Operations on I/O port..................................................................................................................... 81
CHAPTER 5 CLOCK GENERATOR ...................................................................................................... 82
5.1 Functions of Clock Generator................................................................................................... 82
5.2 Configuration of Clock Generator ............................................................................................ 82
5.3 Registers Controlling Clock Generator.................................................................................... 84
5.4 System
Clock
Oscillator ............................................................................................................ 91
5.4.1 High-speed
system clock oscillator ................................................................................................. 91
5.4.2 Ring-OSC
oscillator ......................................................................................................................... 95
5.4.3 Prescaler ......................................................................................................................................... 95
5.5 Clock Generator Operation ....................................................................................................... 95
5.6 Time Required to Switch Between Ring-OSC Clock and High-Speed System Clock ....... 100
5.7 Time Required for CPU Clock Switchover............................................................................. 100
5.8 Clock Switching Flowchart and Register Setting ................................................................. 101
5.8.1 Switching from Ring-OSC clock to high-speed system clock .........................................................101
5.8.2 Switching from high-speed system clock to Ring-OSC clock .........................................................102
5.8.3 Register settings.............................................................................................................................103
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00 ........................................................................... 104
6.1 Functions of 16-Bit Timer/Event Counter 00 ......................................................................... 104
6.2 Configuration of 16-Bit Timer/Event Counter 00................................................................... 105
6.3 Registers Controlling 16-Bit Timer/Event Counter 00 .......................................................... 109
6.4 Operation of 16-Bit Timer/Event Counter 00 ......................................................................... 115
6.4.1 Interval
timer operation...................................................................................................................115