Download Print this page

STC micro STC8A8K64D4 Series Reference Manual page 5

Advertisement

STC8A8K64D4 Series Manual
9.1.6 Drive Current Control Registers (PxDR) ....................................................................................166
9.1.7 Port digital signal input enable control register (PxIE) ...............................................................167
9.2 Configure I/O Ports ...............................................................................................................................168
9.3 I/O Ports Structure ................................................................................................................................168
9.3.1 Quasi-Bidirectional I/O (weak pull-up) .......................................................................................168
9.3.2 Push-Pull Output .........................................................................................................................169
9.3.3 High Impedance Input .................................................................................................................169
9.3.4 Open-Drain Output ......................................................................................................................169
9.3.5 4.1K Pull-up Resistor ..................................................................................................................170
9.3.6 How to set the external output speed of the I/O port ...................................................................170
9.3.7 How to set I/O port current drive capability ...................................................................................171
9.3.8 How to reduce the external radiation of I/O ports .......................................................................171
9.4 Example Routines .................................................................................................................................172
9.4.1 Port Mode Setting ........................................................................................................................172
9.4.2 Reading and Writing Operation of Bidirection Port ....................................................................173
9.5 A Typical Circuit Controlled by Triode ................................................................................................176
9.6 Typical Control Circuit of LED ............................................................................................................176
9.8 Make I/O Port Output Low When Power on Reset ...............................................................................177
9.9 Circuit Diagram of Driving 8 Digital LEDs using 74HC595 ...............................................................178
9.10 Digital LEDs Driven Directly by I/O Port Circuit ..............................................................................179
9.11 LCD Segment LCD Driven Directly by I/O Port Circuit....................................................................179
10 Instruction Set ............................................................................................................................................199
11 Interrupt System .........................................................................................................................................202
11.1 Interrupt sources of STC8A8K64D4 series ........................................................................................202
11.2 Structure of STC8A8K64D4 Interrupt ................................................................................................204
11.3 Interrupt List of STC8A8K64D4 Series..............................................................................................205
11.4 Registers Related to Interrupt..............................................................................................................207
11.4.1 Interrupt Enable Registers (Interrupt Enable bits) .....................................................................208
11.4.2 Interrupt Request Registers (Interrupt flags) .............................................................................212
11.4.3 Interrupt Priority Registers ........................................................................................................215
11.5 Example Routines ...............................................................................................................................220
11.5.1 INT0 Interrupt (Rising and Falling Edges) ................................................................................220
11.5.2 INT0 Interrupt (Falling Edge)....................................................................................................221
11.5.3 INT1 Interrupt (Rising and Falling Edges) ................................................................................223
11.5.4 INT1 Interrupt (Falling Edge)....................................................................................................225
11.5.5 INT2 Interrupt (Falling Edge only) ...........................................................................................227
11.5.6 INT3 Interrupt (Falling Edge only) ...........................................................................................228
11.5.7 INT4 Interrupt (Falling Edge only) ...........................................................................................230
11.5.8 Timer0 Interrupt .........................................................................................................................232
11.5.9 Timer1 Interrupt .........................................................................................................................234
11.5.10 Timer2 Interrupt .......................................................................................................................235
11.5.11 Timer3 Interrupt .......................................................................................................................237
11.5.12 Timer4 Interrupt .......................................................................................................................239
- iv -

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin