![](http://datasheet.mmic.net.cn/120000/SH7017F_datasheet_3575229/SH7017F_15.png)
ix
15.2.1 Compare Match Timer Start Register (CMSTR) ................................................. 408
15.2.2 Compare Match Timer Control/Status Register (CMCSR).................................. 409
15.2.3 Compare Match Timer Counter (CMCNT).......................................................... 410
15.2.4 Compare Match Timer Constant Register (CMCOR).......................................... 411
15.3
Operation ........................................................................................................................... 411
15.3.1 Period Count Operation........................................................................................ 411
15.3.2 CMCNT Count Timing ........................................................................................ 412
15.4
Interrupts............................................................................................................................ 412
15.4.1 Interrupt Sources and DTC Activation................................................................. 412
15.4.2 Compare Match Flag Set Timing ......................................................................... 412
15.4.3 Compare Match Flag Clear Timing...................................................................... 413
15.5
Notes on Use...................................................................................................................... 414
15.5.1 Contention between CMCNT Write and Compare Match ................................... 414
15.5.2 Contention between CMCNT Word Write and Incrementation .......................... 415
15.5.3 Contention between CMCNT Byte Write and Incrementation ............................ 416
Section 16 Pin Function Controller ................................................................................ 417
16.1
Overview............................................................................................................................ 417
16.2
Register Configuration ...................................................................................................... 428
16.3
Register Descriptions......................................................................................................... 429
16.3.1 Port A I/O Register L (PAIORL) ......................................................................... 429
16.3.2 Port A Control Registers L1, L2 (PACRL1 and PACRL2) ................................. 430
16.3.3 Port B I/O Register (PBIOR)................................................................................ 435
16.3.4 Port B Control Registers (PBCR1 and PBCR2)................................................... 436
16.3.5 Port C I/O Register (PCIOR) –SH7016, SH7017– .............................................. 441
16.3.6 Port C Control Register (PCCR) –SH7016, SH7017– ......................................... 442
16.3.7 Port D I/O Register L (PDIORL) –SH7016, SH7017– ........................................ 445
16.3.8 Port D Control Register L (PDCRL) –SH7016, SH7017–................................... 446
16.3.9 Port E I/O Register (PEIOR) ................................................................................ 450
16.3.10 Port E Control Registers 1, 2 (PECR1 and PECR2) ............................................ 451
Section 17 I/O Ports (I/O).................................................................................................. 455
17.1
Overview............................................................................................................................ 455
17.2
Port A................................................................................................................................. 455
17.2.1 Register Configuration ......................................................................................... 456
17.2.2 Port A Data Register L (PADRL) ........................................................................ 457
17.3
Port B ................................................................................................................................. 458
17.3.1 Register Configuration ......................................................................................... 458
17.3.2 Port B Data Register (PBDR)............................................................................... 459
17.4
Port C –SH7016, SH7017–................................................................................................ 460
17.4.1 Register Configuration ......................................................................................... 460
17.4.2 Port C Data Register (PCDR)............................................................................... 461
17.5
Port D –SH7016, SH7017–................................................................................................ 462