EasyManua.ls Logo

Renesas RL78/G10 - Page 7

Renesas RL78/G10
637 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Index-2
3.3.1 Relative addressing .......................................................................................................................... 42
3.3.2 Immediate addressing ...................................................................................................................... 42
3.3.3 Table indirect addressing ................................................................................................................. 43
3.3.4 Register direct addressing ................................................................................................................ 43
3.4 Addressing for Processing Data Addresses ............................................................................. 44
3.4.1 Implied addressing ........................................................................................................................... 44
3.4.2 Register addressing ......................................................................................................................... 44
3.4.3 Direct addressing ............................................................................................................................. 45
3.4.4 Short direct addressing .................................................................................................................... 46
3.4.5 SFR addressing ................................................................................................................................ 47
3.4.6 Register indirect addressing ............................................................................................................. 48
3.4.7 Based addressing ............................................................................................................................. 49
3.4.8 Based indexed addressing ............................................................................................................... 53
3.4.9 Stack addressing .............................................................................................................................. 54
CHAPTER 4 PORT FUNCTIONS ........................................................................................................... 58
4.1 Port Functions .............................................................................................................................. 58
4.2 Port Configuration ........................................................................................................................ 58
4.2.1 Port 0 ................................................................................................................................................ 59
4.2.2 Port 4 ................................................................................................................................................ 59
4.2.3 Port 12 .............................................................................................................................................. 59
4.2.4 Port 13 .............................................................................................................................................. 59
4.3 Registers Controlling Port Function .......................................................................................... 60
4.3.1 Port mode registers 0, 4 (PM0, PM4) ............................................................................................... 61
4.3.2 Port registers 0, 4, 12, 13 (P0, P4, P12, P13) .................................................................................. 62
4.3.3 Pull-up resistor option registers 0, 4, 12 (PU0, PU4, PU12) ............................................................. 63
4.3.4 Port output mode register 0 (POM0) ................................................................................................ 64
4.3.5 Port mode control register 0 (PMC0) ................................................................................................ 65
4.3.6 Peripheral I/O redirection register (PIOR)......................................................................................... 66
4.4 Port Function Operations ............................................................................................................ 67
4.4.1 Writing to I/O port ............................................................................................................................. 67
4.4.2 Reading from I/O port ....................................................................................................................... 67
4.4.3 Operations on I/O port ...................................................................................................................... 67
4.5 Register Settings When an Alternate Function Is Used ........................................................... 68
4.5.1 Basic concepts on using an alternate function ................................................................................. 68
4.5.2 Register settings for alternate functions that do not use an output function ..................................... 69
4.5.3 Example of register settings for port and alternate functions used ................................................... 69
4.6 Cautions When Using Port Function .......................................................................................... 73
4.6.1 Cautions on 1-bit manipulation instruction for port register n (Pn) .................................................... 73
4.6.2 Notes on specifying the pin settings ................................................................................................. 74

Table of Contents

Related product manuals