參數(shù)資料
型號(hào): S1C6P366D0A0100
元件分類(lèi): 微控制器/微處理器
英文描述: 4-BIT, FLASH, 4.1 MHz, MICROCONTROLLER, UUC102
封裝: DIE-102
文件頁(yè)數(shù): 37/84頁(yè)
文件大?。?/td> 1740K
代理商: S1C6P366D0A0100
32
EPSON
S1C6P366 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Input Ports)
IK0: K0 input interrupt factor flag (FFF4HD0)
IK1: K1 input interrupt factor flag (FFF5HD0)
IK2: K20 input interrupt factor flag (FFF5HD1)
These flags indicate the occurrence of input interrupt.
When "1" is read: Interrupt has occurred
When "0" is read: Interrupt has not occurred
When "1" is written: Flag is reset
When "0" is written: Invalid
The interrupt factor flags IK0, IK1 and IK2 are associated with K00–K03, K10–K13 and K20, respectively.
From the status of these flags, the software can decide whether an input interrupt has occurred.
The interrupt factor flag is set to "1" when the interrupt condition is established regardless of the inter-
rupt mask register setting. However, the interrupt does not occur to the CPU when the interrupt is
masked.
These flags are reset to "0" by writing "1" to them.
After an interrupt occurs, the same interrupt will occur again if the interrupt enabled state (I flag = "1") is
set or the RETI instruction is executed unless the interrupt factor flag is reset. Therefore, be sure to reset
(write "1" to) the interrupt factor flag in the interrupt service routine before shifting to the interrupt
enabled state.
At initial reset, these flags are set to "0".
SENON: K20 port key sense ON/OFF control (FF2BHD0)
Controls the key sense function.
When "1" is written: On
When "0" is written: Off
Reading: Valid
When using K20 as a general purpose input port, fix this register at "1" (On).
When K20 is used for the key sense function, set SENON on during the key sense stage. If any key is
pressed (see Figure 4.4.4.1), the K20 port generates an interrupt to the CPU. Then set SENON to off (K20
port key sense OFF), turn the outside N-P-N transistor on using an output port and start the A/D con-
verter. The A/D converter converts the input voltage that varies according to the pressed key into a
digital value. The software can discriminates which key was pressed from the conversion result. After
that, turn SENON off to reduce current consumption.
VDD
R1
R
R2
R3
A/D IN
K20
Output
SENON
register
Generate
an interrupt
Key set
MCU
Fig. 4.4.4.1 Key position sensing circuit
相關(guān)PDF資料
PDF描述
S1C6P466D0A0A00 MICROCONTROLLER, UUC140
S1C6S2L7D 4-BIT, MROM, 0.032 MHz, MICROCONTROLLER, UUC58
S1C6S2A7F 4-BIT, MROM, 0.08 MHz, MICROCONTROLLER, PQFP60
S1C6S2B7F 4-BIT, MROM, 0.08 MHz, MICROCONTROLLER, PQFP60
S1C6S2N7D 4-BIT, MROM, 0.08 MHz, MICROCONTROLLER, UUC58
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
S1C-6-S 制造商:GRIPCO 功能描述:
S1C7309X 制造商:SAMSUNG 制造商全稱(chēng):Samsung semiconductor 功能描述:B/W CCD PROCESSOR
S1C7309X01 制造商:SAMSUNG 制造商全稱(chēng):Samsung semiconductor 功能描述:B/W CCD PROCESSOR
S1C88349 制造商:EPSON 制造商全稱(chēng):EPSON 功能描述:8-bit Single Chip Microcomputer
S1C88649 制造商:EPSON 制造商全稱(chēng):EPSON 功能描述:8-bit Single Chip Microcomputer