![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_7.png)
MB90560 series
v
7.3
Mode Data ..........................................................................................................................................170
CHAPTER 8
8.1
8.2
8.3
8.3.1
8.3.2
8.4
8.4.1
8.4.2
8.5
8.5.1
8.5.2
8.6
8.6.1
8.6.2
8.7
8.7.1
8.7.2
8.8
8.8.1
8.8.2
8.9
8.9.1
8.9.2
8.10
I/O PORTS ..................................................................................................173
Overview of I/O Ports ..........................................................................................................................174
Port Register .......................................................................................................................................175
Port 0 .................................................................................................................................................176
Port 0 Registers (PDR0, DDR0, and RDR0) .................................................................................178
Operation of Port 0 ........................................................................................................................180
Port 1 ..................................................................................................................................................182
Port 1 Registers (PDR1, DDR1, and RDR1) .................................................................................184
Operation of Port 1 ........................................................................................................................186
Port 2 ..................................................................................................................................................188
Port 2 Registers (PDR2 and DDR2) ..............................................................................................190
Operation of Port 2 ........................................................................................................................192
Port 3 ..................................................................................................................................................194
Port 3 Registers (PDR3 and DDR3) ..............................................................................................196
Operation of Port 3 ........................................................................................................................198
Port 4 ..................................................................................................................................................200
Port 4 Registers (PDR4 and DDR4) ..............................................................................................202
Operation of Port 4 ........................................................................................................................204
Port 5 ..................................................................................................................................................206
Port 5 Registers (PDR5, DDR5, and ADER) .................................................................................208
Operation of Port 5 ........................................................................................................................210
Port 6 ..................................................................................................................................................212
Port 6 Registers (PDR6 and DDR6) ..............................................................................................214
Operation of Port 6 ........................................................................................................................216
Sample I/O Port Program ...................................................................................................................218
CHAPTER 9
9.1
9.2
9.3
9.4
9.5
9.6
9.7
TIMEBASE TIMER ....................................................................................221
Overview of the Timebase Timer ........................................................................................................222
Configuration of the Timebase Timer .................................................................................................224
Timebase Timer Control Register (TBTC) ..........................................................................................226
Timebase Timer Interrupts ..................................................................................................................228
Operation of the Timebase Timer .......................................................................................................230
Usage Notes on the Timebase Timer .................................................................................................232
Sample Program for the Timebase Timer Program ............................................................................234
CHAPTER 10 WATCHDOG TIMER ..................................................................................237
10.1
Overview of the Watchdog Timer .......................................................................................................238
10.2
Configuration of the Watchdog Timer .................................................................................................239
10.3
Watchdog Timer Control Register (WDTC) ........................................................................................240
10.4
Operation of the Watchdog Timer .......................................................................................................242
10.5
Usage Notes on the Watchdog Timer .................................................................................................244
10.6
Sample Program for the Watchdog Timer ..........................................................................................245
CHAPTER 11 16-BIT RELOAD TIMER ............................................................................247
11.1
Overview of the 16-Bit Reload Timer ..................................................................................................248