4.1 I/O Port Configurations........................................................................44
4.1.1 Quasi-bidirectional I/O.........................................................................................44
4.1.2 Push-pull Output...................................................................................................45
4.1.3 Input-only Mode...................................................................................................45
4.1.4 Open-drain Output................................................................................................45
4.2 I/O Port Registers ................................................................................46
4.3 I/O port application notes.....................................................................47
4.4 I/O port application ..............................................................................47
4.4.1 Typical transistor control circuit..........................................................................47
4.4.2 Typical diode control circuit................................................................................47
4.4.3 3V/5V hybrid system...........................................................................................48
4.4.4 How to make I/O port low after MCU reset........................................................48
4.4.5 I/O drive LED application circuit........................................................................49
4.4.6 I/O immediately drive LCD application circuit...................................................50
Chapter 5 Instruction System........................................................51
5.1 Special Function Registers ...................................................................51
5.2 Notes on Compatibility to Standard 80C51 MCU ...............................54
5.3 Addressing Modes ................................................................................55
5.4 Instruction Set Summary......................................................................56
5.5 Instruction Definitions for Standard 8051 MCU..................................61
Chapter 6 Interrupts .....................................................................98
6.1 Interrupt Structure ................................................................................99
6.2 Interrupt Register................................................................................101
6.3 Interrupt Priorities ..............................................................................104
6.4 How Interrupts Are Handled ..............................................................105
6.5 External Interrupts.............................................................................107
Chapter 7 Timer/Counter 0 and 1................................................ 117
7.1 Timer/Counter 0 Mode of Operation..................................................120
7.2 Timer/Counter 1 Mode of Operation..................................................127
7.3 Generic Programmable Clock Output ...............................................132
7.4 Changes of STC15xx series Timers compared with standard 8051 ..139
Chapter 8 Simulate Serial Port Program....................................141
8.1 Programs using Timer 0 to realize Simulate Serial Port ....................141
8.2 Programs using Timer 1 to realize Simulate Serial Port ....................150
3