User's Manual

Table Of Contents
20.3.1 Relation between Interrupt Handling and Event Linking .........................................................430
20.3.2 Event Linkage ...........................................................................................................................431
20.3.3 Operation of Peripheral Timer Modules When Event Signal is Input .....................................432
20.3.4 Operation of CTSU When Event Signal is Input .....................................................................432
20.3.5 Operation of A/D and D/A Converters When Event Signal is Input ........................................432
20.3.6 I/O Port Operation When Event Signal is Input and Event Generation ...................................432
20.3.7 Example of Procedure for Linking Events ...............................................................................436
20.4 Usage Notes .......................................................................................................................................437
20.4.1 Setting ELSRn Register ............................................................................................................437
20.4.2 Setting Bit-Rotating Operation of Output Port Groups ............................................................437
20.4.3 Linking DMA/DTC Transfer End Signal as Event ..................................................................437
20.4.4 Clock Settings ...........................................................................................................................437
20.4.5 Module Stop Function Setting ..................................................................................................437
21. I/O Ports ....................................................................................................................................... 438
21.1 Overview ...........................................................................................................................................438
21.2 I/O Port Configuration .......................................................................................................................440
21.3 Register Descriptions .........................................................................................................................449
21.3.1 Port Direction Register (PDR) ..................................................................................................449
21.3.2 Port Output Data Register (PODR) ..........................................................................................450
21.3.3 Port Input Data Register (PIDR) ..............................................................................................451
21.3.4 Port Mode Register (PMR) .......................................................................................................452
21.3.5 Open Drain Control Register 0 (ODR0) ...................................................................................453
21.3.6 Open Drain Control Register 1 (ODR1) ...................................................................................454
21.3.7 Pull-Up Control Register (PCR) ...............................................................................................455
21.3.8 Drive Capacity Control Register (DSCR) ................................................................................456
21.4 Initialization of the Port Direction Register (PDR) ...........................................................................457
21.5 Handling of Unused Pins ...................................................................................................................458
22. Multi-Function Pin Controller (MPC) ............................................................................................ 459
22.1 Overview ...........................................................................................................................................459
22.2 Register Descriptions .........................................................................................................................465
22.2.1 Write-Protect Register (PWPR) ................................................................................................465
22.2.2 P0n Pin Function Control Register (P0nPFS) (n = 3, 5, 7) ......................................................466
22.2.3 P1n Pin Function Control Registers (P1nPFS) (n = 4 to 7) ......................................................467
22.2.4 P2n Pin Function Control Register (P2nPFS) (n = 1, 2, 5 to 7) ...............................................468
22.2.5 P3n Pin Function Control Registers (P3nPFS) (n = 0, 1) .........................................................469
22.2.6 P4n Pin Function Control Registers (P4nPFS) (n = 0 to 7) ......................................................470
22.2.7 PBn Pin Function Control Registers (PBnPFS) (n = 0, 1, 3, 5, 7) ...........................................471
22.2.8 PCn Pin Function Control Registers (PCnPFS) (n = 0, 2 to 7) ................................................472
22.2.9 PDn Pin Function Control Registers (PDnPFS) (n = 3) ...........................................................473
22.2.10 PEn Pin Function Control Registers (PEnPFS) (n = 0 to 4) .....................................................474
22.2.11 PJn Pin Function Control Registers (PJnPFS) (n = 3) ..............................................................476