
Contents - 3
Chapter 6
Port Functions ............................................................................................ 6-1
6.1
Port Hardware Configurations ................................................................................... 6-3
6.1.1
Type A (P0_0-P0_7) Configuration ..................................................................... 6-3
6.1.2
Type B (P1_0-P1_7, P4_0, P9_0-P9_3) Configuration ....................................... 6-4
6.1.3
Type C (P2_4, P2_5, P5_4, P5_5, P6_0-P6-5, P7_0-P7_4, P12_2, P12_3)
Configuration ...................................................................................................... 6-5
6.1.4
Type D (P4_1-P4_7, P9_4-P9_7, P10_0-P10_7) Configuration ......................... 6-6
6.1.5
Type E (P2_0-P2_3, P2_6, P2_7, P7_5-P7_7,
P8_0-P8_7, P12_0, P12_1, P12_4-P12_7) Configuration .................................. 6-6
6.2
Port Control Registers ............................................................................................... 6-7
6.2.1
Port Data Registers (Pn: n = 0-2, 4-10,12) ......................................................... 6-7
6.2.2
Port Mode Registers (PnIO: n = 0-2, 4-10,12) ................................................... 6-7
6.2.3
Port Secondary Function Control Registers (PnSF: n = 1, 2, 4-7, 9, 12) ........... 6-7
6.2.4
Port Pull-Up Control Registers (PnPUP: n = 0, 1, 4, 9, 10) ................................ 6-8
6.3
Port 0 (P0) ................................................................................................................ 6-10
6.4
Port 1 (P1) ................................................................................................................ 6-11
6.5
Port 2 (P2) ................................................................................................................ 6-12
6.6
Port 4 (P4) ................................................................................................................ 6-14
6.7
Port 5 (P5) ................................................................................................................ 6-16
6.8
Port 6 (P6) ................................................................................................................ 6-17
6.9
Port 7 (P7) ................................................................................................................ 6-19
6.10 Port 8 (P8) ................................................................................................................ 6-21
6.11 Port 9 (P9) ................................................................................................................ 6-22
6.12 Port 10 (P10) ............................................................................................................ 6-24
6.13 Port 12 (P12) ............................................................................................................ 6-25
Chapter 7
Clock Generator Circuit ............................................................................. 7-1
Chapter 8
Time-Base Counter (TBC) .......................................................................... 8-1
8.1
1/n Counter ................................................................................................................ 8-2
Chapter 9
16-Bit RTO/PWM Timer .............................................................................. 9-1
9.1
Counter Configuration ............................................................................................... 9-2
9.2
TM Select Register .................................................................................................... 9-3
9.3
Register Modules (TMR8, TMR9) ............................................................................... 9-4
9.3.1
Register Module (TMR8, TMR9) Configuration .................................................. 9-4
(1) Timer Registers (TMR8, TMR9) ........................................................................ 9-5
(2) Realtime Output Control Registers (RTOCON4, RTOCON5) ........................... 9-5
(3) TMR Mode Register (TMRMODE) .................................................................... 9-6
9.3.2
Register Module (TMR8, TMR9) Operation ........................................................ 9-7
(1) Realtime Output Mode (RTO) Operation .......................................................... 9-7
(2) Toggle Output Realtime Output Mode (Toggle RTO) Operation ...................... 9-7
(3) PWM Mode Operation ...................................................................................... 9-7