●Description
Key Encoder IC can monitor up to 8x8 matrix (64 keys), which means to be adaptable to Qwerty keyboard. We adopt the
architecture that the information of the only key which status is changed, like push or release, is encoded into the 8 bits
data. This can greatly reduce the CPU load which tends to become heavier as the number of keys increase.
(Previously, all key's status is stored in the registers.)
Furthermore, auto sleep function contribute to low power consumption, when no keys are pressed. It is also equipped with
the various functions such as ghost key rejection, N-key Rollover, Built-in power on reset and oscillator.
●Features
1) Monitor up to 64-matrix keys
2) Under 5A Stand-by Current
3) Built-in Power On Reset
4) Ghost key rejection
●Absolute maximum ratings
(Ta=25℃)
Item Symbol Value Unit comment
Supply Voltage*1 VDD -0.3 ~ +4.5 V
Input voltage VI -0.3 ~ VDD +0.3*1 V
Storage temperature range Tstg -55 ~ +125
℃
Package power PD 272*2 mW
This IC is not designed to be X-ray proof.
*1
It is prohibited to exceed the absolute maximum ratings even including +0.3 V.
*2
Package dissipation will be reduced each 2.72mW/ oC when the ambient temperature increases beyond 25 oC.
●Operating Conditions
Limit
Item Symbol
Unit Condition
Min Typ Max
Supply voltage range(VDD)VDD 2.20 3.30 3.60 V
Input voltage range VIN -0.2 - VDD+0.2V
1. Power mode
The device enters the state of Power Down when XRST=”Low”. When XRST=High after powered, the d evice enters th e standby
state.
Power On Reset
A Power On Reset logic is implemented in this device. Therefore, it will operate correctly even if the XRST port is not used.
In this case, the XRST port must be connected to high (VDD), and the PORENB port must be connected to low (VSS). If
you don’t want to use Power On reset, you must connect PORENB port to high (VDD).
Power Down State
The device enters Power Down state by XRST=”Low”. An internal circuit is initialize d, and ke y enc oding a nd 3 wire interf ace
are invalid. Power On Reset becomes inactive during this state.
Stand-by State
The device enters the stand-by state by setting XRST to "High". In this state, the device is waiting for keys pressed.
When a key is pressed, the state will change to operation. Power On Reset is active in this state if PORENB = low.
Operating State
The device enters the operating state by pressing keys. The device will scan the key m atrix a nd enco de the ke y code,
and then the 3wire interface tries to start communication by driving KINT “Low”. See sec.2 for the details. After
communicating with host device, when no keys are pressed, the device returns to the stand-by state. Power On
Reset is active in this state if PORENB=low.
2. 3wire Interface
KINT
KSCL
KSDA
Start bit
Bit7Bit6Bit5Bit0invalid
sent by BU1851 sent by host device
Fig.5 Protocol
Figure 5 shows the protocol of BU1851. BU1851 protocol basically consists of 3 wire configuration (KINT, KSCL, and
KSDA) as shown above. Note that this 3wire interface is completely different from I2C and other standard bus interface.
Procedure
1. When BU1851 detects key events, KINT interrupt is generated to host with driving Low.
2. After the host detects KINT interrupt, the host is supposed to send start bit.
3. After BU1851 detects start bit, the 8bit data (key code) transmission on KSDA will start synchronized with the rising
edge of KSCL clock signal, which is sent from the host.
4. 8 bit data are followed by “0” (9
th
bit is always “0”), and then BU1851 drives High on KINT line.
timeout
Fig.6 shows the 3wire timeout sequence. It is suppose to happen when Host doesn’t response anything in a certain time.
1. bu1851 generates KINT interrupt.
2. But Host doesn’t response within 500ms.
3. BU1851 stops KINT, and tries to communicate again by generating KINT.
4. BU1851 will go into the stand-by state when the communication fails five times.
3. Key code Assignment
Table 1 shows the key code assignment. These key c odes are sent t hroug h KSDA line corresponding to the pus hed or r elease d
keys as indicated in section 2.
Table.1 Key code
ROW0ROW1ROW2ROW3ROW4ROW5ROW6ROW7
COL0
0x010x110x210x310x410x510x610x71M
0x810x910xA10xB10xC10xD10xE10xF1B
COL1
M
B
0x020x120x220x320x420x520x620x72
0x820x920xA20xB20xC20xD20xE20xF2
M
COL2
B
0x030x130x230x330x430x530x630x73
0x830x930xA30xB30xC30xD30xE30xF3
M
COL3
B
0x040x140x240x340x440x540x640x74
0x840x940xA40xB40xC40xD40xE40xF4
M
COL4
B
0x050x150x250x350x450x550x650x75
0x850x950xA50xB50xC50xD50xE50xF5
M
COL5
B
0x060x160x260x360x460x560x660x76
0x860x960xA60xB60xC60xD60xE60xF6
M
COL6
B
0x070x170x270x370x470x570x670x77
0x870x970xA70xB70xC70xD70xE70xF7
COL7
M
B
0x080x180x280x380x480x580x680x78
0x880x980xA80xB80xC80xD80xE80xF8
M: Make Key (the code when the key is pressed)
B: Break Key (the code when the key is released)
4. Ghost Key Rejection
Ghost key is an inevitable phenomenon as long as key-switch matrices are used. When three switches located at the corners of
a certain matrix rectangle are pressed simultaneously, the switch that is located at the last corner of the rectangle (the ghost
key) also appears to be pressed, even though the last key is not pressed. This occurs because the ghost key switch is
electrically shorted by the combination of the other three switc hes (Fig.7). Because the key appears to be pressed elect rically, it
is impossible to distinguish which key is the ghost key and which key is pressed. The BU185 1 solves the ghost key problem to
use the simple method. If BU1851 detects any three-key combination that generat es a fourth ghost key, and BU1851 does not
report anything, indicating the ghost ke ys are ignored. T his means that many combination s of three keys are also ignor ed when
pressed at the same time. Applications requiring three-key combin ations (such as <Ctrl>< Alt><Del>) must ensure t hat the three
keys are not wired in positions that define the vertices of a rectangle (Fig. 8). There is no limit on the n u mber of keys t hat can b e
pressed simultaneously as long as the keys do not generate ghost key events.
No copying or reproduction of this document, in part or in whole, is permitted without the
consent of ROHM Co.,Ltd.
The content specied herein is subject to change for improvement without notice.
The content specied herein is for the purpose of introducing ROHM's products (hereinafter
"Products"). If you wish to use any such Product, please be sure to refer to the specications,
which can be obtained from ROHM upon request.
Examples of application circuits, circuit constants and any other information contained herein
illustrate the standard usage and operations of the Products. The peripheral conditions must
be taken into account when designing circuits for mass production.
Great care was taken in ensuring the accuracy of the information specied in this document.
However, should you incur any damage arising from any inaccuracy or misprint of such
information, ROHM shall bear no responsibility for such damage.
The technical information specied herein is intended only to show the typical functions of and
examples of application circuits for the Products. ROHM does not grant you, explicitly or
implicitly, any license to use or exercise intellectual property or other rights held by ROHM and
other par ties. ROHM shall bear no responsibility whatsoever for any dispute arising from the
use of such technical information.
Notice
The Products specied in this document are intended to be used with general-use electronic
equipment or devices (such as audio visual equipment, ofce-automation equipment, communication devices, electronic appliances and amusement devices).
The Products specied in this document are not designed to be radiation tolerant.
While ROHM always makes efforts to enhance the quality and reliability of its Products, a
Product may fail or malfunction for a variety of reasons.
Please be sure to implement in your equipment using the Products safety measures to guard
against the possibility of physical injury, re or any other damage caused in the event of the
failure of any Product, such as derating, redundancy, re control and fail-safe designs. ROHM
shall bear no responsibility whatsoever for your use of any Product outside of the prescribed
scope or not in accordance with the instruction manual.
The Products are not designed or manufactured to be used with any equipment, device or
system which requires an extremely high level of reliability the failure or malfunction of which
may result in a direct threat to human life or create a risk of human injury (such as a medical
instrument, transpor tation equipment, aerospace machinery, nuclear-reactor controller,
fuel-controller or other safety device). ROHM shall bear no responsibility in any way for use of
any of the Products for the above special purposes. If a Product is intended to be used for any
such special purpose, please contact a ROHM sales representative before purchasing.
If you intend to export or ship overseas any Product or technology specied herein that may
be controlled under the Foreign Exchange and the Foreign Trade Law, you will be required to
obtain a license or permit under the Law.
Thank you for your accessing to ROHM product informations.
More detail product informations and catalogs are available, please contact us.