29.01.2013 Views

uPD789871 Subseries 8-Bit Single-Chip Microcontrollers PUM

uPD789871 Subseries 8-Bit Single-Chip Microcontrollers PUM

uPD789871 Subseries 8-Bit Single-Chip Microcontrollers PUM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10<br />

3.4.1 Direct addressing ..................................................................................................................... 48<br />

3.4.2 Short direct addressing ............................................................................................................ 49<br />

3.4.3 Special function register (SFR) addressing ............................................................................ 50<br />

3.4.4 Register addressing ................................................................................................................. 51<br />

3.4.5 Register indirect addressing .................................................................................................... 52<br />

3.4.6 Based addressing ..................................................................................................................... 53<br />

3.4.7 Stack addressing ...................................................................................................................... 53<br />

CHAPTER 4 PORT FUNCTIONS ..................................................................................................... 54<br />

4.1 Functions of Ports ............................................................................................................. 54<br />

4.2 Port Configuration ............................................................................................................. 56<br />

4.2.1 Port 0 ........................................................................................................................................ 56<br />

4.2.2 Port 1 ........................................................................................................................................ 57<br />

4.2.3 Port 2 ........................................................................................................................................ 58<br />

4.2.4 Port 8 ........................................................................................................................................ 61<br />

4.2.5 Port 9 ........................................................................................................................................ 62<br />

4.3 Port Function Control Registers...................................................................................... 63<br />

4.4 Operation of Port Functions ............................................................................................. 65<br />

4.4.1 Writing to I/O port ..................................................................................................................... 65<br />

4.4.2 Reading from I/O port .............................................................................................................. 65<br />

4.4.3 Arithmetic operation of I/O port................................................................................................ 65<br />

CHAPTER 5 CLOCK GENERATOR ................................................................................................ 66<br />

5.1 Clock Generator Functions .............................................................................................. 66<br />

5.2 Clock Generator Configuration ........................................................................................ 66<br />

5.3 Register Controlling Clock Generator ............................................................................ 68<br />

5.4 System Clock Oscillators ................................................................................................. 70<br />

5.4.1 Main system clock oscillator .................................................................................................... 70<br />

5.4.2 Subsystem clock oscillator ........................................................................................................ 70<br />

5.4.3 Frequency divider ..................................................................................................................... 72<br />

5.4.4 When no subsystem clock is used .......................................................................................... 72<br />

5.5 Clock Generator Operation ............................................................................................... 73<br />

5.6 Changing Setting of System Clock and CPU Clock...................................................... 74<br />

5.6.1 Time required for switching between system clock and CPU clock ...................................... 74<br />

5.6.2 Switching between system clock and CPU clock ................................................................... 75<br />

CHAPTER 6 8-BIT REMOTE CONTROL TIMER ............................................................................. 76<br />

6.1 8-<strong>Bit</strong> Remote Control Timer Functions ........................................................................... 76<br />

6.2 8-<strong>Bit</strong> Remote Control Timer Configuration .................................................................... 76<br />

6.3 Registers Controlling 8-<strong>Bit</strong> Remote Control Timer ....................................................... 77<br />

6.4 Operation of 8-<strong>Bit</strong> Remote Control Timer....................................................................... 78<br />

CHAPTER 7 8-BIT TIMER ................................................................................................................ 80<br />

7.1 8-<strong>Bit</strong> Timer Functions ........................................................................................................ 80<br />

7.2 8-<strong>Bit</strong> Timer Configuration ................................................................................................. 81<br />

7.3 Registers Controlling 8-<strong>Bit</strong> Timer .................................................................................... 83<br />

7.4 8-<strong>Bit</strong> Timer Operation ........................................................................................................ 85<br />

7.4.1 Operation as interval timer....................................................................................................... 85<br />

Preliminary User’s Manual U14938EJ1V0UM

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!