Headquarters
4F-1, No.9, Prosperity Rd.,
Science-based Industrial Park,
Hsinchu City, Taiwan, R.O.C
TEL: 886-3-6662888
Copyright© 2011, ENE Technology Inc. All rights reserved.
ENE RESERVES THE RIGHT TO AMEND THIS DOCUMENT WITHOUT NOTICE AT ANY TIME. ENE
ASSUMES NO RESPONSIBILITY FOR ANY ERRORS APPEAR IN THE DOCUMENT, AND ENE DISCLAIMS
ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF ENE PRODUCTS
INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, OR
INFRINGEMENT OF ANY PATENTS, COPYRIGHTS OR OTHER INTELLECTUAL PROPERTY RIGHTS.
Taipei Office
4F, No.88, Bauchiau Rd.
Shindian City, Taipei,
Taiwan, R.O.C.
TEL: 886-2-89111525
FAX: 886-2-89111523
KB9012
Keyboard Controller
Data Sheet
Revision 0.9
June 2010
KB9012 Keyboard Controller Datasheet
ENE Technology Inc.
Confidential Document
Restricted Circulation
- This document is issued for only. Please do not transfer it to other companies.
- This document is the property of ENE Technology Corp. It should be returned once unused.
- Please do not make any copy of this document and deliver to others.
THIS DOCUMENT CONTAINS CONFIDEMTIAL
INFORMATION OF ENE PRODUCTS. ANY
UNAUTHORIZED USE OR DISCLOSURE COULD
IMPACT ENE’S COMPETITIVE ADVANTAGE.
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
1. Draft with only pin-assignment and IO cells
1. Re-organize contents,
2. Update IO cell name / structure
3. Update Memory Map
4. Reserved all electronic character for design characteristic only
1. Update Block Diagram with GWG
2. Correct IO cells typo, remove BQCZT04HIV
3. Update power-fail flag in application appendix
4. Update Register files as following :
5. Update IKB HW command brief
6. Update Open-Drain PWM register
7. Modify SHDI registers for fixed clock source, SHI modes
8. Update WDT registers breathe LED flexible configuration
9. Update LPC MEM cycle map to XRAM illustration
10. Update XBI for e-flash operation and remove SHC description
11. Update GWG register as new-added functions
12. Update EC section registers for VC/PLC/ADC
13. Update SMB, extend previously banked-REGs, slave address
14. Update power-latch&voltage comparator in application appendix
1. Update STOP mode power consumption
2. Add KBC POR and ECRST# timing
1. Fix register typo, TCON W0C
2. Update PCON2 description
3. Update GPIO_MISC for SHDI pin-out enable for each ports
4. Fix WDTCFG description of WDT disable password
5. Update SHDI clock setting
6. Update XBIMISC IC trimming status
1. Update PS/2 Timing
2. Remove external SPI flashing timing
3. Update BQCZT04IV cell character
4. Update ESD information
5. Update thermal information
6. Update 9012A2 into P/N list and VC related setting. Please refer
ECN for details.
1. Update 9012A3 into P/N list and related changes. Please refer
ECN for details.
2. Remove 4.13.3 & 4.13.4 LPC/FWH Memory decode range ;
remove Bank0 0xFE90[3], 0xFE94[7:0], 0xFE95[2],[7]
Bank1 0xFE92[5:0], 0xFE93[5:0]
3. Refine WDT breath LED similar to non-embedded-flash product
4. Refine ECMISC , IOSCCR for power consumption control
5. Refine function select control of tables
SDI host two ports select is by GPIO_MISC[2:1]
GPIO5D/5E (Crystal) is by CLK32CR[5:4]
VCouts are by GPIOFSx
Vcins are by VCCR[1:0]
6. Revise application appendix to correspond latest setting
1. Refine hardware trap section, recover FDA trap in A3 version
Revision
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
CONTENT
CONTENT ................................................................................................................... II
1. GENERAL DESCRIPTION..................................................................................... 0
1.1 OVERVIEW ........................................................................................................... 0
1.2 FEATURES ........................................................................................................... 1
1.3 COMPARISON (KB930 VS . KB9012) .................................................................... 6
1.4 BLOCK DIAGRAM ................................................................................................. 7
2. PIN ASSIGNMENT AND DESCRIPTION .............................................................. 8
2.1 KB9012 128-PIN LQFP DIAGRAM TOP VIEW ....................................................... 8
2.2 KB9012 128 LFBGA BALL MAP ........................................................................ 9
2.3 KB9012 PIN ASSIGNMENT SIDE A ..................................................................... 10
2.4 KB9012 PIN ASSIGNMENT SIDE B ......................................................................11
2.5 KB9012 PIN ASSIGNMENT SIDE C ..................................................................... 12
2.6 KB9012 PIN ASSIGNMENT SIDE D ..................................................................... 13
2.7 I/O CELL DESCRIPTIONS .................................................................................... 14
2.7.1 I/O Buffer Table ....................................................................................... 14
2.7.2 I/O Buffer Characteristic Table.............................................................. 14
3. PIN DESCRIPTIONS ............................................................................................ 15
3.1 HARDWARE TRAP .............................................................................................. 15
3.2 PIN DESCRIPTIONS BY FUNCTIONS ..................................................................... 16
3.2.1 Low Pin Count I/F Descriptions. ........................................................... 16
3.2.2 PS/2 I/F Descriptions .............................................................................. 16
3.2.3 Internal Keyboard Encoder (IKB) Descriptions .................................. 16
3.2.4 SMBus Descriptions ............................................................................... 16
3.2.5 FAN Descriptions .................................................................................... 17
3.2.6 Pulse Width Modulation (PWM) Descriptions ..................................... 17
3.2.7 Analog-to-Digital Converter Descriptions ........................................... 17
3.2.8 Digital-to-Analog Converter Descriptions ........................................... 17
3.2.9 8051 External I/F Descriptions .............................................................. 17
3.2.10 External Clock Descriptions ............................................................... 18
3.2.11 Miscellaneous Signals Descriptions .................................................. 18
3.2.12 Voltage Comparator Pins Descriptions ............................................. 18
3.2.13 Power Pins Descriptions ..................................................................... 18
3.2.14 51ON Power Pins Descriptions .......................................................... 19
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
4. MODULE DESCRIPTIONS .................................................................................. 20
4.1 CHIP ARCHITECTURE ......................................................................................... 20
4.1.1 Power Planes........................................................................................... 20
4.1.2 Clock Domains ........................................................................................ 21
4.1.3 PCICLK and CLKRUN#........................................................................... 23
4.1.4 Internal Memory Map.............................................................................. 24
4.2 GPIO ................................................................................................................ 25
4.2.1 GPIO Function Description ................................................................... 25
4.2.2 GPIO Structures ...................................................................................... 29
4.2.3 GPIO Attribution Table ........................................................................... 30
4.2.4 GPIO Registers Descriptions (0xFC00~0xFC7F) ................................ 33
4.2.5 GPIO Programming Sample .................................................................. 48
4.3 KEYBOARD AND MOUSE CONTROL INTERFACE (KBC) ........................................ 49
4.3.1 KBC I/F Function Description ............................................................... 49
4.3.2 KBC Registers Description (0xFC80~0xFC8F) ................................... 50
4.4 ENE SERIAL BUS CONTROLLER (ESB).............................................................. 54
4.4.1 ESB Function Description ..................................................................... 54
4.4.2 ESB Registers Description (0xFC90~0xFC9F) ................................... 55
4.4.3 ESB Programming Sample .................................................................... 60
4.5 INTERNAL KEY BOARD (IKB) ENCODER .............................................................. 61
4.5.1 IKB Function Description ...................................................................... 61
4.5.2 IKB Registers Description (0xFCA0~0xFCAF).................................... 63
4.5.3 IKB Matrix Value Mapping Table ........................................................... 69
4.6 PECI ................................................................................................................. 72
4.6.1 PECI Functional Description ................................................................. 72
4.6.2 PECI Timing Setting ............................................................................... 73
4.6.3 PECI Register Description (0xFCD0~0xFCDF) ................................... 74
4.7 OWM ................................................................................................................ 78
4.7.1 OWM Functional Description ................................................................ 78
4.7.2 OWM Timing Setting Illustration .......................................................... 79
4.7.3 OWM Register Description (0xFCF0~0xFCFF) ................................... 80
4.8 PULSE WIDTH MODULATION (PWM) .................................................................. 83
4.8.1 PWM Function Description.................................................................... 83
4.8.2 PWM Duty Cycle Setting Illustration .................................................... 84
4.8.3 PWM Registers Description (0xFE00~0xFE1F) .................................. 87
4.9 FAN C ONTROLLER ............................................................................................. 90
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
4.9.1 Fan Function Description ...................................................................... 90
4.9.1.1 Fan Tachometer Monitor & Auto-FAN mode .................................... 91
4.9.1.2 FANPWM Setting & Fixed-FAN Mode ................................................ 92
4.9.2 Fan Registers Description (0xFE20~0xFE4F) ..................................... 93
4.9.3 Fan Programming Sample ..................................................................... 99
4.10 GENERAL PURPOSE TIMER (GPT) ................................................................. 100
4.10.1 GPT Function Description ................................................................. 100
4.10.2 GPT Registers Description (0xFE50~0xFE6F) ................................ 101
4.10.3 GPT Programming Sample ................................................................ 103
4.11 SDI HOST /DEVICE INTERFACE CONTROLLER .................................................. 104
4.11.1 SDI Host/Device Interface Description............................................. 104
4.11.2 SDI Host Interface Register Description (0xFE70~0xFE7F) .......... 106
4.11.3 SDI Device Interface Register Description (0xFE70~0xFE7F) ...... 108
4.11.4 SDI Programming Sample .................................................................. 111
4.12 WATCHDOG T IMER (WDT) ............................................................................. 112
4.12.1 WDT Function Description ................................................................ 112
4.12.2 Setting for WDT Breathing LED ........................................................ 113
4.12.3 WDT Registers Description (0xFE80~0xFE8F) ............................... 114
4.12.4 WDT Programming Sample ............................................................... 118
4.13 LOW PIN COUNT INTERFACE (LPC) ................................................................ 119
4.13.1 LPC Function Description ................................................................. 119
4.13.2 LPC I/O Decode Range ...................................................................... 119
4.13.3 Index-I/O Port ...................................................................................... 120
4.13.4 LPC to MEM cycle XRAM ................................................................... 121
4.13.5 Extended I/O Port (Debug Port, Port80) .......................................... 123
4.13.6 LPC Registers Description (0xFE90~0xFE9F for bank selection) 124
4.14 X-BUS INTERFACE (XBI) ................................................................................ 132
4.14.1 XBI Function Description .................................................................. 132
4.14.2 XBI Registers Description (0xFEA0~0xFEBF) ................................ 133
4.15 CONSUMER IR CONTROLLER (CIR) ................................................................ 138
4.15.1 CIR Function Description .................................................................. 138
4.15.2 CIR Block Diagram ............................................................................. 140
4.15.3 CIR Remote Protocol.......................................................................... 141
4.15.3.1 Philips RC5 Protocol ........................................................................................ 141
4.15.3.2 Philips RC6 Protocol ........................................................................................ 142
4.15.3.3 NEC Protocol .................................................................................................... 142
4.15.4 CIR Automatic Carrier Frequency Detection and Modulation ...... 143
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
4.15.5 CIR Registers Description (0xFEC0~0xFECF) ................................ 145
4.15.6 CIR Programming Sample ................................................................. 149
4.16 GENERAL WAVEFORM G ENERATOR (GWG) ................................................... 150
4.16.1 GWG Function Description ............................................................... 150
4.16.2 GWG Register Description (0xFED0~0xFEDF) ............................... 151
4.17 PS/2 INTERFACE (PS/2) ................................................................................ 153
4.17.1 PS/2 Interface Function Description ................................................ 153
4.17.2 PS/2 Interface Registers Description (0xFEE0~0xFEFF) .............. 153
4.18 EMBEDDED CONTROLLER (EC) ...................................................................... 157
4.18.1 EC Function Description ................................................................... 157
4.18.2 EC Command Program Sequence.................................................... 158
4.18.3 EC SCI Generation .............................................................................. 159
4.18.4 EC/KBC Clock Configuration ............................................................ 160
4.18.5.1 A/D Converter Control..................................................................... 161
4.18.5.2 A/D Panel Drive Mode ..................................................................... 162
4.18.6 D/A Converter Control........................................................................ 163
4.18.7 Power Management Control.............................................................. 164
4.18.8 EC Registers Description (0xFF00~0xFF2F) ................................... 165
4.19 GENERAL PURPOSE WAKE- UP C ONTROLLER (GPWU) ................................... 177
4.19.1 GPWU Function Description ............................................................. 177
4.19.2 GPWU Registers Description (0xFF30~0xFF7F) ............................ 178
4.19.3 GPWU Programming Sample ............................................................ 187
4.20 SYSTEM MANAGEMENT BUS CONTROLLER (SMBUS ) ..................................... 188
4.20.1 SMBus Function Description ............................................................ 188
4.20.2 SMBus Controller 0 Register Description (0xFF90~0xFFBF) ....... 192
4.20.3 SMBus Controller 1 Register Description (0xFFD0~0xFFFF) ....... 196
4.21 8051 MICROPROCESSOR ............................................................................... 201
4.21.1 8051 Microprocessor Function Description ................................... 201
4.21.2 8051 Microprocessor Instruction ..................................................... 202
4.21.3 8051 Interrupt Controller ................................................................... 207
4.21.4 Interrupt Enable/Flag Table ............................................................... 208
4.21.5 8051 Special Function Register (SFR) ............................................. 210
4.21.6 8051 Microprocessor Register Description .................................... 211
APPLICATION APPENDIX : .................................................................................. 218
A.1 ENE DEBUG INTERFACE , EDI .......................................................................... 218
A.1.1 Enable EDI ............................................................................................. 219
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
A.1.2 EDI Instructions .................................................................................... 219
A.1.3 Read Command .................................................................................... 220
A.1.4 Write Command .................................................................................... 220
A.1.5 Disable EDI Command......................................................................... 221
A.2 POWER -LATCH ................................................................................................ 222
A.3 VOLTAGE C OMPARATOR .................................................................................. 223
A.4 POWER FAIL FLAG BRIEF DESCRIPTION ........................................................... 225
A.5 EMBEDDED FLASH BRIEF DESCRIPTION ........................................................... 226
5. ELECTRICAL CHARACTERISTICS ................................................................. 227
5.1 ABSOLUTE MAXIMUM RATING ........................................................................... 227
5.2 DC ELECTRICAL CHARACTERISTICS ................................................................. 227
BQCZ16HIV ..................................................................................................... 227
BQC04HIV ....................................................................................................... 227
BQCW16HIV .................................................................................................... 228
BQC04HI .......................................................................................................... 228
BQC08HIV ....................................................................................................... 228
BQC04HIVPECI ............................................................................................... 229
BQCZT04IV (XCLKI, XCLKO, ADC/DAC) ..................................................... 230
5.3 A/D & D/A CHARACTERISTICS ......................................................................... 231
5.4 RECOMMEND OPERATION CONDITION ............................................................... 232
5.5 OPERATING CURRENT ...................................................................................... 232
5.6 PACKAGE T HERMAL I NFORMATION ................................................................... 232
5.7 AC ELECTRICAL CHARACTERISTICS ................................................................. 233
5.7.1 KBC POR and ECRST# ........................................................................ 233
5.7.2 LPC interface Timing ............................................................................ 234
5.7.3 PS/2 interface Timing ........................................................................... 236
5.7.4 SMBus interface Timing....................................................................... 237
6. PACKAGE INFORMATION ................................................................................ 238
6.1 LQFP 128-PIN OUTLINE DIAGRAM .................................................................. 238
6.1.1 Top View ................................................................................................. 238
6.1.2 Side View ............................................................................................... 239
6.1.3 Lead View............................................................................................... 240
6.1.4 LQFP Outline Dimensions ................................................................... 241
6.2 LFBGA 128-PIN OUTLINE DIAGRAM ............................................................... 242
6.2.1 Top View ................................................................................................. 242
6.2.2 Side View ............................................................................................... 243
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
6.2.3 Bottom View .......................................................................................... 244
6.2.4 LFBGA Outline Dimensions ................................................................ 245
6.3 PART N UMBER D ESCRIPTION............................................................................ 246
Copyright© 2011, ENE Technology Inc.
1. General Description
1.1 Overview
The ENE KB9012 is a customized IC based on KB9010 for specific application of minimizing
power-consumption. Several pins are provided for external power-latch to save power-consumption.
IO characteristic and cells are also improved.
The ENE KB901x series is embedded controller (EC) with embedded-Flash for notebook
platforms. In KB9012, the e-Flash is 128KB. The embedded controller contains industrial standard
8051 microprocessor and provides function of i8042 keyboard controller basically. KB9012 is
embedded LPC interface used to communicate with Host. The embedded controller also features
rich interfaces for general applications, such as PS/2 interface, Keyboard matrix encoder, PWM
controller, A/D converter, D/A converter, Fan controller, SMBus controller, GPIO controller, PECI
controller, one wire master, SPI controller, and extended interface (ENE Serial Bus) for more
applications, like capacitive touch button application and GPIO extender.
Compared with last generation of KB3926 series, KB9012 added PECI/OWM, another 2 SMBus,
another 2 Fan tachometers, enhanced SPI host/slave controller, internal oscillator for newest
application. KB9012 also improves structure of other modules including 8051, XBI, LPC, IKB, FAN,
WDT, GPIO, ESB, EDI. For detail improvement, please refer the related section.
KB9012 Keyboard Controller Datasheet
1.2 Features
LPC Low Pin Count Interface
SIRQ supporting IRQ1, IRQ12, SCI or SMI# interrupt and one programmable
IRQ provided.
I/O Address Decoding:
Legacy KBC I/O port 60h/64h
Programmable EC I/O port, 62h/66h(recommend)
I/O port 68h/6Ch (sideband)
2 Programmable 4-byte Index-I/O ports to access internal EC registers.
Memory Decoding:
Firmware Hub decode
LPC memory decode
Compatible with LPC specification v1.1
Support LPC interface re-direction to IKB for debugging
X-bus Bus Interface (XBI) : Flash Interface
Embedded 128KB flash support
The 64KB code memory can be mapped into system memory by one 16KB and
one 48KB programmable pages independently.
Enhanced pre-fetch mechanism.
8051 Microprocessor
Compatible with industrial 8051 instructions with 3 cycles.
8051 runs at 8/16/22 MHz, programmable.
256 bytes internal RAM. (special design) and 4KB tight-coupled SRAM
24 extended interrupt sources.
Two 16-bit timers.
Supports idle and stop mode.
Enhanced embedded debug interface.
Support Tx/Rx and support re-direction to IKB for debugging
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
8042 Keyboard Controller
8 standard 8042 commands processed by hardware.
Each hardware command can be optionally processed by firmware.
Pointing device multiplex mode support.
Fast GA20 and KB reset support.
PS/2 Controller
Support at most 3 external PS/2 devices.
External PS/2 device operation in firmware mode.
Internal Keyboard Matrix (IKB)
18x8 keyboard scan matrix.
Support W2K Internet and multimedia keys.
Support hotkey events defined.
Ghost key cancellation mechanism provided.
Enhanced de-bounce feature added
Embedded Controller (EC)
ACPI Spec 2.0 compliant.
5 standard EC commands supported directly by hardware.
Each hardware command can be processed by firmware optionally.
Programmable EC I/O ports, 62h/66h by default.
SMBus Host Controller
4 SMBus Interfaces with 2 SMBus Controllers
SMBus Spec 2.0 compliant.
Byte mode support.
Slave function support.
Digital-to-Analog Converter (DAC)
4 DAC channels with 8-bit resolution.
All pins of DAC can be alternatively configured as GPIO.
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
Analog-to-Digital Converter (ADC)
8 ADC channels with 10-bit resolution.
All pins of ADC can be alternatively configured as GPIO.
Pulse Width Modulator (PWM)
6 PWM channels are provided. (8-bit *2, 14-bit *2 and FANPWM(12-bit) *2)
Clock source selectable:.
1MHz/64KHz/4KHz/256Hz (for 8-bit PWM)
Peripheral clock or 1MHz (for 14-bit PWM)
Peripheral clock (for FANPWM)
Duty cycle programmable and cycle time up to 1 sec(for 8-bit PWM)
WatchDog Timer (WDT)
32.768KHz input clock.
10-bit counter with 32ms unit for watchdog reset.
Three watchdog reset mechanism.
Reset 8051
Reset whole chip, except GPIO.
Re set whole chip including GPIO.
WDT breathing LED
Real Time Clock
32.768KHz input clock.
24-bit timer support.
General Purpose Timer (GPT)
Two 16-bit and two 8-bit general purpose timer with 32.768KHz clock source.
General Purpose Wakeup (GPWU)
Those I/O with GPI (general purpose input) configuration can generate
interrupts or wakeup events, including pins named in GPXIOAxx.
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
General Purpose Input/Output (GPIO)
All general purpose I/O can be programmed as input or output.
All output pins can be configured to be tri-state optionally.
All input pins are equipped with pull-up, high/low active and edge/level trigger
selection.
All pins of DAC can be configured as GPIO.
All pins of ADC can be configured as GPIO.
A specific pair of GPIO pins with signal pass-through feature.
GPIO50 for external lock signal set by firmware, un-locked by PCIRST# falling
FAN Controller
Two fan controllers with tachometer inputs.
Automatic fan control support.
12-bit FANPWM support.
Consumer IR (CIR)
Several protocols decoded/encoded by hardware.
Interrupt for CIR application.
Support wide/narrow band receiver.
Transmit/Receive simultaneously.
Remote power-on support.
ENE Serial Bus Interface (ESB)
A proprietary and flexible interface for extension with ENE KBC.
Firmware accesses ESB devices via internal memory address directly.
Interrupt capability.
ENE Debug Interface (EDI)
Flexible debug interface with IKB pins.
Keil-C development tool compatible
EDI detect frequency support 1M~8M
SPI Device Interface (SHDI)
A enhanced SPI host/device controller is embedded in the KBC.
Flexible design for SPI applications.
One Wire Master (OWM)
Embedded One Wire controller used to control one wire devices.
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
PECI Interface
Support Intel PECI.
Support wide speed range from 2Kbps to 2Mbps.
Power Management
Sleep mode: 8051 program counter (PC) stops and enters idle mode.
Deep sleep mode: All clocks stop except external 32.768KHz OSC. 8051 enters
stop mode.
51ON power management function
MISC
Support General Waveform Generator to easily and accurately generate
us-scale to ms-scale specific waveform.
Support two voltage comparators. Two voltage input sources to compare with
internal DAC voltage value, and response the comparison result on two digital
outputs, used to detect abnormal situation (like over temperature and etc.).
Package
128-pin LQFP package, Lead Free (RoHS).
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
Eight 10-bit ADC channels
32ms timer unit with 10bits control
32ms timer unit with 10bits control
6 sets
PWM0/1 – 8 bit
PWM2/3 – 14 bit
FANPWM0/1 – 12 bit
6 sets
PWM0/1 – 8 bit
PWM2/3 – 14 bit
FANPWM0/1 – 12 bit
Programmable Bi-direction I/O
GPIO pass through : 1 pair
Max 100 pins I/O
Programmable Bi-direction I/O
GPIO pass through : 1 pair
Max 106 pins I/O
All GPIO are bi-directional
All GPIO are wake-up enable
2 (Enhanced precision and 2
additional Tachometer Monitors)
2 (Enhanced precision and 2
additional Tachometer Monitors)
4 Interfaces with 2 controllers
Byte mode support
4 (F/W updated)
Byte mode support
Hardware encode/decode
IRQ and I/O port support
Carrier frequency calculation
TX with carrier modulation
Learning mode support
TX/RX simultaneously
Hardware encode/decode
IRQ and I/O port support
Carrier frequency calculation
TX with carrier modulation
Learning mode support
TX/RX simultaneously
Voltage Comparator (Different pin-out
compared with KB930)
General Waveform Generator
51ON Power Management
1.3 Comparison (KB930 vs. KB9012)
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
LPC I/F
8051
build-in with
2 16-bit timers
1 UART
24 extended interrupt channels
ENE Host BUS
XBI/XIO
ENE
2nd
BUS
4KB
SRAM
GPT
x 4
GPIO
x 106
EC
hardware
command
x 5
KBC
hardware
command
x 8
FAN
X 2
WDT
IKB
18 x 8
hardware
command
x 10
PS2
x 3
LPC/FWH
MEM cycles
EC
Port 80
Index
IO Cycles
KBC
IO Cycles
code
Fetching
Bus
Data
Bus
EC Index mode can accessing
full register space by this path
clock
control
DAC
x 4
16.384 Mhz
32.768 Khz
PMU
ADC
X 8
CIR
SPI I/F
ESB
PECI
OWM
SHDI
PWM
X 6
SMBx2
4 ports
PCI clock
32.768 Mhz
GWG
EDI
1.4 Block Diagram
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
2143658
7109
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
KSI1
KSI0
KSO15
KSO14
KSO13
KSO12
KSO11
KSO10
KSO9
KSO8
KSO7
KSO6
KSO5
KSO4
KSO3
KSO2
KSO1
KSO0
CLKRUN#
ECRST#
GPIO1A
GND
GPIO19
VCC
1112131415161718192021222324252627
28
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
293031
32
64
63
62
61
KSI5
KSI4
KSI3
KSI2
101
102
103
104
97
98
99
100
KB9012
128-LQFP
9695949392
91
90
8981888786
83
82
85
84
75
80
77
76
79
78
69
74
71
70
73
72
65
676668
KSI6
KSI7
AD0
AD1
GA20
KBRST#
SERIRQ
LFRAME#
LAD3
GPIO04
GPIO0A
LAD0
GPIO08
VCC
GPIO07
LAD1
PCIRST#
LAD2
PCICLK
GND
GPIO0D
GPIO0C
GPIO0B
SCI#
PWM0
VCC
PWM1
GND
PWM2
FANPWM0
FANPWM1
FANFB0
FANFB1
GPIO16
GPIO18
GPIO17
AD2
AD3
AVCC
DA0
DA3
DA2
DA1
AGND
AD4
AD5
SCL1
SDA1
KSO17
KSO16
SCL0
SDA0
PSDAT1
PSCLK1
PSDAT2
PSCLK2
PSDAT3
PSCLK3
GPIO50
GPIO52
GPIO53
GPIO54
GPIO55
GND
GPIO56
VCC
GPXIOA00
GPXIOA01
GPXIOA02
GPXIOA03
GPXIOA04
GPXIOA05
GPXIOA06
GPXIOA07
GPXIOA08
GPXIOA09
GPXIOA10
GPXIOA11
GPXIOD00
GPXIOD01
GPXIOD02
GPXIOD03
GPXIOD04
GPXIOD05
GPXIOD06
GPXIOD07
GND_0
VCC_0
GPIO5B
GPIO5C
GPIO57
V18R
VCC
GPIO58
GPIO5A
GPIO59
AD6
AD7
GPIO5D
GPIO5E
2. Pin Assignment and Description
2.1 KB9012 128-pin LQFP Diagram Top View
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
A1 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A12 A13
B1 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B12 B13
C1 C2 C12 C13
D1 D10 D9 D8 D7 D6 D5 D4 D2 D12 D13
E1 E10 E9 E8 E7 E6 E5 E4 E2 E12 E13
F1 F10 F9 F5 F4 F2 F12 F13
G1 G10 G9 G5 G4 G2 G12 G13
H1 H10 H9 H5 H4 H2 H12 H13
J1 J10 J9 J8 J7 J6 J5 J4 J2 J12 J13
K1 K10 K9 K8 K7 K6 K5 K4 K2 K12 K13
L1 L2 L12 L13
M1
M11 M10
M9 M8 M7 M6 M5 M4 M3 M2
M12 M13
N1 N11 N10 N9 N8 N7 N6 N5 N4 N3 N2 N12 N13
GPXIOA01 GPIO55 GPIO54 GPIO52 PSCLK3 SDA1 SDA0 SCL0 DA1 DA2 AGND
AD3 AD1
GPXIOA00 GPIO56 GPIO53 GPIO50 PSDAT3 GPIO40(AD6) GPIO41(AD7) SCL1 DA3 DA0 AVCC
AD2 AD0
GPXIOA02
GPXIOD00
GPXIOA04 GPXIOA05
GPXIOA08 GPXIOA06
GPXIOA11 GPXIOA10
GPXIOD02 GND
GPXIOD04GPXIOD07(PECI)
XCLKI (MOSI)
XCLKO (MISO)
V18R KBRST#
KSI5 KSI6
KSI3 KSI4
KSI1 KSI2
VCC ECRST#
KSO1 KSO0
KSO2 KSO3
KSO9 KSO8
KSO11 KSO10
GPIO1A GPIO08
VCC GPIO19
GPIO18
GND
GPXIOA03 PSDAT2 PSCLK1 AD5 KSO17 KSI0
KSI7
GPXIOA07 PSCLK2 PSDAT1 AD4 KSO16 KSO15
KSO14
GPXIOA09 GPXIOD01
GPXIOD05 GPXIOD03
GPXIOD06 GPIO57
KSO13
KSO12
KSO6
KSO7
KSO5
KSO4
VCC GPIO04 VCC VCC GND GND
GND
LFRAME# LAD1 GPIO0A VCC GPIO11 GPIO17
GPIO16
LAD2 PCIRST# CLKRUN# GPIO0C PWM1 PWM0
FANPWM0
FANFB0
LAD0 PCICLK SCI# GPIO0B GPIO0D GPIO07
FANPWM1
FANFB1
(SPICLK) GA20 SERIRQ
GPIO59 (SPICS#) LAD3
2.2 KB9012 128 LFBGA Ball Map
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
2.3 KB9012 Pin Assignment Side A
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
2.4 KB9012 Pin Assignment Side B
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
2.5 KB9012 Pin Assignment Side C
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
2.6 KB9012 Pin Assignment Side D
* Please note, crystal pad signal frequency should be lower than 1MHz.
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
Schmitt trigger, 16mA Output / Sink Current, Input / Output / Pull Up
Enable(40KΩ ) , 5 V Tolerance.
Schmitt trigger, 4mA Output / Sink Current, Input / Output / Pull Up
Enable(40KΩ ) , 5 V Tolerance
Schmitt trigger, 16mA Output / Sink Current, 5 V Tolerance, Input / Output / Pull
Up Enable
Schmitt trigger, 4mA Output / Sink Current, 5 V Tolerance, Input / Output
Enable
Schmitt trigger, 8mA Output / Sink Current, 5V Tolerance, Input / Output / Pull
Up Enable
Mixed Mode IO, PECI enable, with GPIO
GPIO: Schmitt trigger, 4mA Output / Sink Current,
PECI: 0.9V~1.2V
Mixed Mode IO, AE enable, with GPIO
GPIO: Schmitt trigger, 4mA Output / Sink Current, Input / Output / Pull Up
Enable
2.7 I/O Cell Descriptions
2.7.1 I/O Buffer Table
** Please note, the total current in each side on VCC or VSS of chip can not exceed over 48mA .
*** Please note, As BQCZT04IV with shared crystal pad, signal frequency should be lower than 1MHz.
2.7.2 I/O Buffer Characteristic Table
* 5V Tolerance, only if pull-high disable and output disable.
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
While this trap is asserted to be low, the internal DPLL circuit uses other clock source
for reference, instead of 32KHz oscillator.
Low: test clock mode enable
High: normal mode using 32KHz oscillator.
While this trap is asserted to be low, some DPLL related signals can be output for
test.
Low: DPLL test mode enable.
High: DPLL test mode disable
TestMux Mode Trap
Low: Test mode
High: Normal operation
TP_PLL_Lock
(GPIO23,KSO3)
This trap is used for eFlash & EDI operation, , the 8051 will be held at reset state
LOW: Test Mode
HIGH: Normal operation
* Please note while TP_TMUX and TP_PLL_Lock keep low at the same time, a mechanism called FlashDirectAccess will
enable. That is, users can flush and program a SPI flash via specific IKB pins with external tool.
FlashDirectAccess:
The KBC provides a new interface to program SPI flash via IKB interface. With this feature, users can easily utilize 4 pins
from keyboard matrix (IKB) without disassembly whole machine. These 4 pins are connected directly to external SPI-Flash
interface. The following table shows the mapped pins while entering FlashDirectAccess mode.
EDI : For detail ENE Debug Interface, please refer the EDI section for enabling, instruction, and application.
(Input) EDI_CS, Transfer signal from terminal into KBC and though SPICS# to SPI_Flash
(Input) EDI_CLK, Transfer signal from terminal into KBC and though SPICLK to SPI_Flash
(Input) EDI_DIN, Transfer signal from terminal into KBC and though MOSI to SPI_Flash
(Output) EDI_DO, Transfer signal from terminal into KBC and though MISO to SPI_Flash
ENE
KBC
Terminal
SPI-Flash
P128, SPICS#
P120, MOSI
P119, MISO
P126, SPICLK
P59, KSI4
P60, KSI5
P61, KSI6
P62, KSI7
EDI_CS
EDI_CLK
EDI_DIN
EDI_DO
3. Pin Descriptions
3.1 Hardware Trap
Hardware trap pins are used to latch external signal at rising edge of ECRST# . The hardware
trap pins are for some special purpose which should be defined while boot-up. The following table
gives the collection of hardware trap pins. Please note, all the following hardware trap pins are
pull-high internally after reset.
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
LPC frame control signal.
LPC module reset by this signal.
PS/2 port 1 clock
Muxed with SMBus port 2 clock
PS/2 port 1 data
Muxed with SMBus port 2 data
PS/2 port 2 clock
Muxed with SMBus port 3 clock
PS/2 port 2 data
Muxed with SMBus port 3 data
SMBus clock (interface 0)
SMBus clock (interface 1)
SMBus clock (interface 2)
Muxed with PS/2 port 1 clock
SMBus data (interface 2)
Muxed with PS/2 port 1 data
SMBus clock (interface 3)
Muxed with PS/2 port 2 clock
SMBus data (interface 3)
Muxed with PS/2 port 2 data
3.2 Pin Descriptions by Functions
3.2.1 Low Pin Count I/F Descriptions.
3.2.2 PS/2 I/F Descriptions
3.2.3 Internal Keyboard Encoder (IKB) Descriptions
3.2.4 SMBus Descriptions
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
10bit A/D converter input
10bit A/D converter input
10bit A/D converter input
10bit A/D converter input
8bit D/A converter output
8051 serial port, transmit port.
8051 serial port, receive port.
For different serial scheme, E51CLK will shift out clock.
3.2.5 FAN Descriptions
3.2.6 Pulse Width Modulation (PWM) Descriptions
3.2.7 Analog-to-Digital Converter Descriptions
3.2.8 Digital-to-Analog Converter Descriptions
3.2.9 8051 External I/F Descriptions
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
KBC will gate A20 address line
KBRST# is used to generate system reset.
SCI# asserts to the system for requesting service while
related events occur.
While ECRST# asserted, the KBC will reset globally.
One Wire Master input and output signal
PECI input and output signal
General Waveform Generator for 3D application
Used to indicate the power fail under Power Fail Voltage.
Used to indicate the power fail under Power Fail Voltage.
Voltage comparator input port0
Voltage comparator output port0
Voltage comparator input port1
Voltage comparator output port1
Power supply for digital plane.
Power ground for digital plane.
Power supply for analog plane.
Power ground for analog plane.
Connected to external Capacitor for internal 1.8V
Power supply for 51ON power management
Power ground for 51ON power management
3.2.10 External Clock Descriptions
(These pins are reserved for external CLK design structure, also could be set as GPIO function)
3.2.11 Miscellaneous Signals Descriptions
3.2.12 Voltage Comparator Pins Descriptions
3.2.13 Power Pins Descriptions
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
3.2.14 51ON Power Pins Descriptions
(The 51ON power management are with different power domain from main IC power)
Copyright© 2011, ENE Technology Inc.
KB9012 Keyboard Controller Datasheet
This power provides power for all digital logic no matter what
power mode is.
This power provides power for all analog logic, such as A/D
and D/A converter.
The system inputs 3.3V power and the internal regulator
outputs 1.8V voltage. The 1.8V output should connect a
capacitor for stable purpose.
This power provides power for the power-latch circuit. It could
help to provide power saving management.
4. Module Descriptions
4.1 Chip Architecture
4.1.1 Power Planes
Power planes are ± 10% tolerance for recommend operation condition, The KBC provides
V1.8 power plane for different generation.
Copyright© 2011, ENE Technology Inc.