beautypg.com

NEC PD78058FY(A) User Manual

Page 17

background image

17

5.2.1

Control registers ........................................................................................................................... 103

5.2.2

General registers .......................................................................................................................... 106

5.2.3

Special Function Register (SFR) .................................................................................................. 108

5.3

Instruction Address Addressing .......................................................................................... 112

5.3.1

Relative addressing ...................................................................................................................... 112

5.3.2

Immediate addressing .................................................................................................................. 113

5.3.3

Table indirect addressing ............................................................................................................. 114

5.3.4

Register addressing ..................................................................................................................... 115

5.4

Operand Address Addressing .............................................................................................. 116

5.4.1

Implied addressing ....................................................................................................................... 116

5.4.2

Register addressing ..................................................................................................................... 117

5.4.3

Direct addressing ......................................................................................................................... 118

5.4.4

Short direct addressing ................................................................................................................ 119

5.4.5

Special-Function Register (SFR) addressing ............................................................................... 121

5.4.6

Register indirect addressing ......................................................................................................... 122

5.4.7

Based addressing ........................................................................................................................ 123

5.4.8

Based indexed addressing ........................................................................................................... 124

5.4.9

Stack addressing .......................................................................................................................... 124

CHAPTER 6 PORT FUNCTIONS .......................................................................................................... 125

6.1

Port Functions ........................................................................................................................ 125

6.2

Port Configuration ................................................................................................................. 130

6.2.1

Port 0 ............................................................................................................................................ 130

6.2.2

Port 1 ............................................................................................................................................ 132

6.2.3

Port 2 (

µ

PD78058F Subseries) .................................................................................................... 133

6.2.4

Port 2 (

µ

PD78058FY Subseries) .................................................................................................. 135

6.2.5

Port 3 ............................................................................................................................................ 137

6.2.6

Port 4 ............................................................................................................................................ 138

6.2.7

Port 5 ............................................................................................................................................ 139

6.2.8

Port 6 ............................................................................................................................................ 140

6.2.9

Port 7 ............................................................................................................................................ 142

6.2.10 Port 12 .......................................................................................................................................... 144

6.2.11 Port 13 .......................................................................................................................................... 145

6.3

Port Function Control Registers .......................................................................................... 146

6.4

Port Function Operations ...................................................................................................... 152

6.4.1

Writing to input/output port ........................................................................................................... 152

6.4.2

Reading from input/output port ..................................................................................................... 152

6.4.3

Operations on input/output port .................................................................................................... 153

6.5

Selection of Mask Option ...................................................................................................... 153

CHAPTER 7 CLOCK GENERATOR ..................................................................................................... 155

7.1

Clock Generator Functions ................................................................................................... 155

7.2

Clock Generator Configuration ............................................................................................ 155

7.3

Clock Generator Control Register ........................................................................................ 157

7.4

System Clock Oscillator ........................................................................................................ 161

7.4.1

Main system clock oscillator ......................................................................................................... 161

This manual is related to the following products: