
ML66517 Family User’s Manual
Contents
Contents – 2
(3)
Program code addressing ...............................................................................................................2-39
(4)
ROM window addressing...............................................................................................................2-40
Chapter 3 CPU Control Functions
3.1
Overview .....................................................................................................................................................3-1
3.2
Standby Functions .......................................................................................................................................3-1
3.2.1
Standby Function Registers ...................................................................................................................3-3
3.2.2
Description of Standby Function Registers ...........................................................................................3-3
(1)
Stop code acceptor (STPACP) .........................................................................................................3-3
(2)
Standby control register (SBYCON) ...............................................................................................3-4
3.2.3
Examples of Standby Function Register Settings..................................................................................3-6
HALT mode setting .........................................................................................................................3-6
STOP mode setting ..........................................................................................................................3-6
3.2.4
Operation of Each Standby Mode..........................................................................................................3-6
(1)
HALT mode .....................................................................................................................................3-6
(2)
STOP mode......................................................................................................................................3-7
3.3
Reset Function.............................................................................................................................................3-8
Chapter 4 Memory Control Functions
4.1
Overview .....................................................................................................................................................4-1
4.2
Memory Control Function Registers ...........................................................................................................4-1
4.3
ROM Window Function..............................................................................................................................4-2
4.4
READY Function........................................................................................................................................4-4
4.4.1
ROM Ready Control Register (ROMRDY) ..........................................................................................4-4
4.4.2
RAM Ready Control Register (RAMRDY) ..........................................................................................4-5
Chapter 5 Port Functions
5.1
Overview .....................................................................................................................................................5-1
5.2
Hardware Configuration of Each Port.........................................................................................................5-3
5.2.1
Type A (P0) ...........................................................................................................................................5-3
5.2.2
Type B (P1, P2, P3_0, P3_1).................................................................................................................5-4
5.2.3
Type C (P3_2, P3_3) .............................................................................................................................5-5
5.2.4
Type D (P5, P6, P7, P8, P10, P11, P15, P16, P17)................................................................................5-6
5.2.5
Type E (P12) .........................................................................................................................................5-7
5.3
Port Registers ..............................................................................................................................................5-8
5.3.1
Port Data Registers (Pn : n = 0 to 3, 5 to 8, 10 to 12, 15 to 17)...........................................................5-10
5.3.2
Port Mode Registers (PnIO : n = 0 to 3, 5 to 8, 10, 11, 15 to 17) ........................................................5-10
5.3.3
Port Secondary Function Control Registers (PnSF : n = 0 to 3, 5 to 8, 10, 11, 15 to 17) ....................5-11
5.4
Port 0 (P0) .................................................................................................................................................5-12
5.5
Port 1 (P1) .................................................................................................................................................5-14
5.6
Port 2 (P2) .................................................................................................................................................5-16
5.7
Port 3 (P3) .................................................................................................................................................5-18
5.8
Port 5 (P5) .................................................................................................................................................5-20
5.9
Port 6 (P6) .................................................................................................................................................5-22
5.10 Port 7 (P7) .................................................................................................................................................5-24
5.11 Port 8 (P8) .................................................................................................................................................5-26
5.12 Port 10 (P10) .............................................................................................................................................5-28
5.13 Port 11 (P11) .............................................................................................................................................5-30
5.14 Port 12 (P12) .............................................................................................................................................5-32
5.15 Port 15 (P15) .............................................................................................................................................5-33
5.16 Port 16 (P16) .............................................................................................................................................5-35
5.17 Port 17 (P17) .............................................................................................................................................5-37