st2064b Sitronix Technology Corporation, st2064b Datasheet - Page 14
st2064b
Manufacturer Part Number
st2064b
Description
8 Bit Microcontroller With 64k Bytes Rom
Manufacturer
Sitronix Technology Corporation
Datasheet
1.ST2064B.pdf
(57 pages)
- Current page: 14 of 57
- Download datasheet (895Kb)
10.2.5 Port-A Interrupt
Port-A is suitable for the return line inputs of keyboard scan
because of the port transition interrupt function. Difference
between current value and the data kept previously of Port-A
will generate an interrupt request. The last state of Port-A must
be latched before transition, and this can be done by one read
Operate Port-A interrupt steps:
Ver. 3.0
1. Set input mode.
2. Read Port-A.
3. Clear interrupt request flag (IRPT).
4. Set interrupt enable flag (IEPT).
5. Clear CPU interrupt disable flag (I).
6. Read Port-A before ‘ RTI’ instruction in ISR.
PCA[0]
PCA[1]
PCA[2]
PCA[3]
RDPA
PA[1]
PA[2]
PA[3]
PA[0]
D
CK
D
CK
D
CK
D
CK
DFF
DFF
DFF
DFF
Q
Q
Q
Q
FIGURE 10-2 Port Interrupt Logic Diagram
XNOR2
XNOR2
XNOR2
XNOR2
OR2
OR2
OR2
OR2
14/57
PCA[4]
PCA[5]
PCA[6]
PCA[7]
PA[4]
PA[5]
PA[6]
PA[7]
instruction to Port-A. If both INTX and PT interrupts are enabled,
signal edge of PA0 may trigger PT interrupt as well as INTX.
Steps and program example are shown below. Also refer to
FIGURE 10-2 for the block diagram.
Example:
Interrupt subroutine
STZ
LDA
STA
LDA
RMB4
SMB4
CLI
LDA
RTI
.
.
.
.
.
.
D
CK
D
CK
D
CK
CK
D
DFF
DFF
DFF
DFF
NAND8
Q
Q
Q
Q
<PCA
#$FF
<PA
<PA
<IENA
<PA
<IREQ
XNOR2
XNOR2
XNOR2
XNOR2
PTIR
High Level Interrupt
OR2
OR2
OR2
OR2
; Set input mode.
; PA be PULL-UP.
; Keep last state.
; Keep last state.
; Clear IRQ flag.
; Enable INT.
ST2064B
5/8/09
Related parts for st2064b
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
THYRISTORS
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
ADJUSTABLE INVERTING NEGATIVE OUTPUT CURRENT MODE PWM REGULATORS
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
0.25A SCRs
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
0.8A SCRs
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
Smartcard MCU With 4 additional I/0
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
SERIAL 2K (256 x 8) EEPROM
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
Search -----> STP10NB50FP
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
Search ---> STP12NB30
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
Search -----> STP13NK50Z
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
(MSS40 / MSS50) BACK TO BACK SCR MODULE
Manufacturer:
ST Microelectronics
Datasheet:
Part Number:
Description:
Dmos Programmable High Speed Unipolar Stepper Motor Driver
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
Part Number:
Description:
LOW Votage Telephone Speech Circuit
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
Part Number:
Description:
Technical Article
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
Part Number:
Description:
Thyristormodule
Manufacturer:
ST Microelectronics, Inc.
Datasheet:
Part Number:
Description:
SCR
Manufacturer:
ST Microelectronics
Datasheet: