4.2 I/O Port Registers .................................................................................. 42
4.3 I/O port application notes....................................................................... 44
4.4 I/O port application ................................................................................ 44
4.4.1 Typical transistor control circuit.................................................................44
4.4.2 Typical diode control circuit.......................................................................44
4.4.3 3V/5V hybrid system..................................................................................45
4.4.4 How to make I/O port low after MCU reset...............................................45
4.4.5 I/O drive LED application circuit...............................................................46
4.4.6 I/O immediately drive LCD application circuit..........................................47
4.4.7 Using A/D Conversion to scan key application circuit...............................48
Chapter 5 Instruction System.........................................................49
5.1 Special Function Registers..................................................................... 49
5.2 Notes on Compatibility to Standard 80C51 MCU................................. 53
5.3 Addressing Modes.................................................................................. 54
5.4 Instruction Set Summary........................................................................ 55
5.5 Instruction Definitions for Standard 8051 MCU ................................... 60
Chapter 6 Interrupts ......................................................................97
6.1 Interrupt Structure.................................................................................. 98
6.2 Interrupt Register ................................................................................. 100
6.3 Interrupt Priorities................................................................................ 103
6.4 How Interrupts Are Handled................................................................ 104
6.5 External Interrupts............................................................................... 106
Chapter 7 Timer/Counter 0 and 1.................................................116
7.1 Timer/Counter 0 Mode of Operation.................................................... 119
7.2 Timer/Counter 1 Mode of Operation.................................................... 126
7.3 Generic Programmable Clock Output ................................................. 131
7.4 Changes of STC15F204EA series Timers compared with standard 8051 138
Chapter 8 Simulate Serial Port Program.....................................140
8.1 Programs using Timer 0 to realize Simulate Serial Port ...................... 140
8.2 Programs using Timer 1 to realize Simulate Serial Port ...................... 149