04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

3.4.4 Short direct addressing .................................................................................................................. 136<br />

3.4.5 SFR addressing.............................................................................................................................. 137<br />

3.4.6 Register indirect addressing........................................................................................................... 138<br />

3.4.7 Based addressing........................................................................................................................... 139<br />

3.4.8 Based indexed addressing ............................................................................................................. 142<br />

3.4.9 Stack addressing............................................................................................................................ 143<br />

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

4.1 Port Functions .................................................................................................................................. 144<br />

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

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

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

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

4.2.4 Port 3.............................................................................................................................................. 161<br />

4.2.5 Port 4.............................................................................................................................................. 166<br />

4.2.6 Port 5.............................................................................................................................................. 167<br />

4.2.7 Port 6.............................................................................................................................................. 173<br />

4.2.8 Port 7.............................................................................................................................................. 180<br />

4.2.9 Port 8.............................................................................................................................................. 186<br />

4.2.10 Port 9............................................................................................................................................ 189<br />

4.2.11 Port 12.......................................................................................................................................... 194<br />

4.2.12 Port 13.......................................................................................................................................... 196<br />

4.2.13 Port 14 (100-pin products only) .................................................................................................... 205<br />

4.2.14 Port 15 (100-pin products only) .................................................................................................... 207<br />

4.3 Registers Controlling Port Function............................................................................................... 208<br />

4.4 Port Function Operations ................................................................................................................ 234<br />

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

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

4.4.3 Operations on I/O port.................................................................................................................... 234<br />

4.5 Settings of Registers, and Output Latch When Using Alternate Function................................. 235<br />

4.5.1 The relationship of alternate function and port ............................................................................... 235<br />

4.5.2 Expanded Control Register of Port Function .................................................................................. 240<br />

4.5.3 The setting to use alternate function .............................................................................................. 253<br />

4.6 Cautions on 1-Bit Manipulation Instruction for Port Register n (Pn) .......................................... 266<br />

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

5.1 Functions of Clock Generator ......................................................................................................... 267<br />

5.2 Configuration of Clock Generator................................................................................................... 269<br />

5.3 Registers Controlling Clock Generator.......................................................................................... 272<br />

5.4 Clock monitor (CLM) ........................................................................................................................ 290<br />

5.5 System Clock Oscillator .................................................................................................................. 291<br />

Index-3

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

Saved successfully!

Ooh no, something went wrong!