Ene KB9012BF, KB9012QF Schematics

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
ii
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
This document issued to:
Recipient
Company
Serial Number
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.
i
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
Revision
Description
Date
0.1
1. Draft with only pin-assignment and IO cells
2010/5
0.2
1. Re-organize contents,
2. Update IO cell name / structure
3. Update Memory Map
4. Reserved all electronic character for design characteristic only
2010/6
0.3
1. Update IO cell drive
2010/6
0.4
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
2010/10
0.5
1. Update STOP mode power consumption
2. Add KBC POR and ECRST# timing
2010/10
0.6
1. Update KB9012 A1 P/N
2010/12
0.7
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
2011/01
0.8
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.
2011/03
0.9
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
2011/06
1.0
1. Refine hardware trap section, recover FDA trap in A3 version
2011/06
Revision
Copyright© 2011, ENE Technology Inc.
ii
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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.
iii
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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 KEYBOARD (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 CONTROLLER ............................................................................................. 90
Copyright© 2011, ENE Technology Inc.
iv
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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 TIMER (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.
v
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
4.15.5 CIR Registers Description (0xFEC0~0xFECF) ................................ 145
4.15.6 CIR Programming Sample ................................................................. 149
4.16 GENERAL WAVEFORM GENERATOR (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 CONTROLLER (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.
vi
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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 COMPARATOR .................................................................................. 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 THERMAL INFORMATION ................................................................... 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.
vii
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
6.2.3 Bottom View .......................................................................................... 244
6.2.4 LFBGA Outline Dimensions ................................................................ 245
6.3 PART NUMBER DESCRIPTION............................................................................ 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.
1
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL

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.
2
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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.
3
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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.
4
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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.
5
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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.
6
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
KB930A
KB9012
Microprocessor
8051 (256byte IRAM)
8051 (256byte IRAM)
Built-in SRAM
4KB
4KB
LPC
2 index-I/O sets
2 index-I/O sets
Flash
None
Embedded flash 128KB
Real Time Clock
support
Support
ADC
Six 10-bit ADC channels
Eight 10-bit ADC channels
DAC
Four 8-bit DAC channels
Four 8-bit DAC channels
WDT
32ms timer unit with 10bits control
32ms timer unit with 10bits control
OWM
Support
Support
PWM
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
External PS/2 I/F
3
3
GPIO
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
IKB Matrix
18x8
18x8
FAN controller
2 (Enhanced precision and 2 additional Tachometer Monitors)
2 (Enhanced precision and 2 additional Tachometer Monitors)
GPT
4
4
SMBus
4 Interfaces with 2 controllers Byte mode support
4 (F/W updated) Byte mode support
CIR
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
PECI
Support PECI 3.0
Support PECI 3.0
EDI
Support
Support
ESB
Support
Support
SDI/SHDI
SDI Host/Slave support
SDI Host/Slave support
MISC
Voltage Comparator
Voltage Comparator (Different pin-out compared with KB930) General Waveform Generator 51ON Power Management
Package
128 LQFP
128 LQFP
Dimension
14mmx14mm
14mmx14mm

1.3 Comparison (KB930 vs. KB9012)

Copyright© 2011, ENE Technology Inc.
7
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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.
8
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
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.
9
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
A1 A11A10A9A8A7A6A5A4A3A2 A12 A13
B1 B11B10B9B8B7B6B5B4B3B2 B12 B13
C1 C2 C12 C13
D1 D10D9D8D7D6D5D4D2 D12 D13
E1 E10E9E8E7E6E5E4E2 E12 E13
F1 F10F9F5F4F2 F12 F13
G1 G10G9G5G4G2 G12 G13
H1 H10H9H5H4H2 H12 H13
J1 J10J9J8J7J6J5J4J2 J12 J13
K1 K10K9K8K7K6K5K4K2 K12 K13
L1 L2 L12 L13
M1
M11M10
M9M8M7M6M5M4M3M2
M12 M13
N1 N11N10N9N8N7N6N5N4N3N2 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.
10
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
KB9012 Pin No.
KB9012
BGA
Name
GPIO
Alt
Output
Alt.
Input
Default
ECRST#
L/H
IO CELL
1
M2
GA20
GPIO00
GA20
GPIO00
HiZ / HiZ
BQC04HIV
2
L2
KBRST#
GPIO01
KBRST#
GPIO01
HiZ / HiZ
BQC04HIV
3
M3
SERIRQ
HiZ / HiZ
BQCZ16HIV
4
K4
LFRAME#
HiZ / HiZ
BQCZ16HIV
5
N3
LAD3
HiZ / HiZ
BQCZ16HIV
6
J5
GPIO04
GPIO04
GPIO04
HiZ / HiZ
BQC04HIV
7
M4
LAD2
HiZ / HiZ
BQCZ16HIV
8
K5
LAD1
HiZ / HiZ
BQCZ16HIV
9
--
VCC VCC
10
N4
LAD0
HiZ / HiZ
BQCZ16HIV
11
--
GND GND
12
N5
PCICLK
HiZ / HiZ
BQCZ16HIV
13
M5
PCIRST#
GPIO05
PCIRST#
GPIO05
IE / IE
BQCZ16HIV
14
N9
GPIO07
GPIO07
i_clk_8051
GPIO07
HiZ / HiZ
BQC04HIV
15
L13
GPIO08
GPIO08
i_clk_peri
GPIO08
HiZ / HiZ
BQC04HIV
16
K6
GPIO0A
GPIO0A
OWM
RLC_RX2
OWM
GPIO0A
HiZ / HiZ
BQC04HIV
17
N7
GPIO0B
GPIO0B
ESB_CLK
GPIO0B
HiZ / HiZ
BQCW16HIV
18
M7
GPIO0C
GPIO0C
ESB_DAT
ESB_DAT
GPIO0C
HiZ / HiZ
BQC08HIV
19
N8
GPIO0D
GPIO0D
RLC_TX2
GPIO0D
HiZ / HiZ
BQC04HIV
20
N6
SCI#
GPIO0E
SCI#
GPIO0E
HiZ / HiZ
BQC04HIV
21
M9
PWM0
GPIO0F
PWM0
GPIO0F
HiZ / HiZ
BQCZ16HIV
22
K7/J7
VCC
VCC
VCC
23
M8
PWM1
GPIO10
PWM1
GPIO10
HiZ / HiZ
BQC04HIV
24
J8/J9/J10
GND
GND
GND
25
K8
GPIO11
GPIO11
PWM2
GPIO11
HiZ / HiZ
BQC04HIV
26
M10
FANPWM0
GPIO12
FANPWM0
GPIO12
HiZ / HiZ
BQC04HIV
27
N10
FANPWM1
GPIO13
FANPWM1
GPIO13
HiZ / HiZ
BQC04HIV
28
M11
FANFB0
GPIO14
FANFB0
GPIO14
HiZ / HiZ
BQC04HIV
29
N11
FANFB1
GPIO15
FANFB1
GPIO15
HiZ / HiZ
BQC04HIV
30
K10
GPIO16
GPIO16
E51TXD
GPIO16
HiZ / HiZ
BQC04HIV
31
K9
GPIO17
GPIO17
E51CLK
E51RXD
GPIO17
HiZ / HiZ
BQC04HIV
32
N12
GPIO18
GPIO18
POWER_FAIL1
GPIO18
HiZ / HiZ
BQC04HIV

2.3 KB9012 Pin Assignment Side A

Copyright© 2011, ENE Technology Inc.
11
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
KB9012
Pin No.
KB9012
BGA
Name
GPIO
Alt
Output
Alt.
Input
Default
ECRST#
L/H
IO CELL
33
--
VCC VCC
34
M13
GPIO19
GPIO19
PWM3
GPIO19
HiZ / HiZ
BQCZ16HIV
35
--
GND GND
36
L12
GPIO1A
GPIO1A
NUMLED#
GPIO1A
HiZ / HiZ
BQC20HIV
37
K13
ECRST#
IE / IE
BQC04HIV
38
M6
CLKRUN#
GPIO1D
CLKRUN#
CLKRUN#
GPIO1D
HiZ / HiZ
BQCZ16HIV
39
J13
KSO0
GPIO20
KSO0
TP_TEST
GPIO20
IE(PU)/IE(PU)
BQC04HIV
40
J12
KSO1
GPIO21
KSO1
TP_PLL
GPIO21
IE(PU)/IE(PU)
BQC04HIV
41
H12
KSO2
GPIO22
KSO2
TP_TMUX
GPIO22
IE(PU)/IE(PU)
BQC04HIV
42
H13
KSO3
GPIO23
KSO3
TP_PLL_LOCK
GPIO23
IE(PU)/IE(PU)
BQC04HIV
43
H10
KSO4
GPIO24
KSO4
GPIO24
HiZ / HiZ
BQC04HIV
44
H9
KSO5
GPIO25
KSO5
PCICLK
(LPC)
GPIO25
HiZ / HiZ
BQCZ16HIV
45
G9
KSO6
GPIO26
KSO6
PCIRST#
(LPC)
GPIO26
HiZ / HiZ
BQC04HIV
46
G10
KSO7
GPIO27
KSO7
SERIRQ(LPC)
SERIRQ(LPC)
GPIO27
HiZ / HiZ
BQC04HIV
47
G13
KSO8
GPIO28
KSO8
LFRAME#
(LPC)
GPIO28
HiZ / HiZ
BQC04HIV
48
G12
KSO9
GPIO29
KSO9
GPIO29
HiZ / HiZ
BQC04HIV
49
F13
KSO10
GPIO2A
KSO10
GPIO2A
HiZ / HiZ
BQC04HIV
50
F12
KSO11
GPIO2B
KSO11
LAD3(LPC)
LAD3(LPC)
GPIO2B
HiZ / HiZ
BQC04HIV
51
F10
KSO12
GPIO2C
KSO12
LAD2(LPC)
LAD2(LPC)
GPIO2C
HiZ / HiZ
BQC04HIV
52
F9
KSO13
GPIO2D
KSO13
LAD1(LPC)
LAD1(LPC)
GPIO2D
HiZ / HiZ
BQC04HIV
53
E10
KSO14
GPIO2E
KSO14
LAD0(LPC)
LAD0(LPC)
GPIO2E
HiZ / HiZ
BQC04HIV
54
E9
KSO15
GPIO2F
KSO15
(E51_RXD)
GPIO2F
HiZ / HiZ
BQC04HIV
55
D9
KSI0
GPIO30
(E51_TXD)
KSI0
GPIO30
IE(PU)/IE(PU)
BQC04HIV
56
E12
KSI1
GPIO31 KSI1
GPIO31
IE(PU)/IE(PU)
BQC04HIV
57
E13
KSI2
GPIO32 KSI2
GPIO32
IE(PU)/IE(PU)
BQC04HIV
58
D12
KSI3
GPIO33 KSI3
GPIO33
IE(PU)/IE(PU)
BQC04HIV
59
D13
KSI4
GPIO34
KSI4/EDI_CS
GPIO34
IE(PU)/IE(PU)
BQC04HIV
60
C12
KSI5
GPIO35
KSI5/EDI_CLK
GPIO35
IE(PU)/IE(PU)
BQC04HIV
61
C13
KSI6
GPIO36
KSI6/EDI_DIN
GPIO36
IE(PU)/IE(PU)
BQC04HIV
62
D10
KSI7
GPIO37
EDI_DO
KSI7
GPIO37
IE(PU)/IE(PU)
BQC04HIV
63
B13
AD0
GPIO38 AD0
GPIO38
HiZ / HiZ
BQCZT04IV
64
A13
AD1
GPIO39 AD1
GPIO39
HiZ / HiZ
BQCZT04IV

2.4 KB9012 Pin Assignment Side B

Copyright© 2011, ENE Technology Inc.
12
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
KB9012 Pin No.
KB9012
BGA
Name
GPIO
Alt
Output
Alt.
Input
Default
ECRST#
L/H
IO CELL
65
B12
AD2
GPIO3A
AD2
GPIO3A
HiZ / HiZ
BQCZT04IV
66
A12
AD3
GPIO3B
AD3
GPIO3B
HiZ / HiZ
BQCZT04IV
67
B11
AVCC AVCC
68
B10
DA0
GPIO3C
DA0
GPIO3C
HiZ / HiZ
BQCZT04IV
69
A11
AGND AGND
70
A9
DA1
GPIO3D
DA1
GPIO3D
HiZ / HiZ
BQCZT04IV
71
A10
DA2
GPIO3E
DA2
GPIO3E
HiZ / HiZ
BQCZT04IV
72
B9
DA3
GPIO3F
DA3
GPIO3F
HiZ / HiZ
BQCZT04IV
73
B6
AD6
GPIO40
CIR_RX
/ AD6
GPIO40
HiZ / HiZ
BQCZT04IV
74
B7
AD7
GPIO41
CIR_RLC_TX
AD7
GPIO41
HiZ / HiZ
BQCZT04IV
75
E7
AD4
GPIO42
AD4
GPIO42
HiZ / HiZ
BQCZT04IV
76
D7
AD5
GPIO43
AD5
GPIO43
HiZ / HiZ
BQCZT04IV
77
A8
SCL0
GPIO44
SCL0
GPIO44
HiZ / HiZ
BQC04HI
78
A7
SDA0
GPIO45
SDA0
GPIO45
HiZ / HiZ
BQC04HI
79
B8
SCL1
GPIO46
SCL1
GPIO46
HiZ / HiZ
BQC04HI
80
A6
SDA1
GPIO47
SDA1
GPIO47
HiZ / HiZ
BQC04HI
81
E8
KSO16
GPIO48
KSO16
GPIO48
HiZ / HiZ
BQC04HIV
82
D8
KSO17
GPIO49
KSO17
GPIO49
HiZ / HiZ
BQC04HIV
83
D6
PSCLK1
GPIO4A
PSCLK1 / SCL2
GPIO4A
HiZ / HiZ
BQC04HI
84
E6
PSDAT1
GPIO4B
PSDAT1 / SDA2
GPIO4B
HiZ / HiZ
BQC04HI
85
E5
PSCLK2
GPIO4C
PSCLK2
/ SCL3
GPIO4C
HiZ / HiZ
BQCZ16HIV
86
D5
PSDAT2
GPIO4D
PSDAT2
/ SDA3
GPIO4D
HiZ / HiZ
BQC20HIV
87
A5
PSCLK3
GPIO4E
PSCLK3
GPIO4E
HiZ / HiZ
BQC04HI
88
B5
PSDAT3
GPIO4F
PSDAT3
GPIO4F
HiZ / HiZ
BQC04HI
89
B4
GPIO50
GPIO50
GPIO50
HiZ / HiZ
BQC04HI
90
A4
GPIO52
GPIO52
E51CS#
GPIO52
HiZ / HiZ
BQC20HIV
91
B3
GPIO53
GPIO53
CAPSLED#
E51TMR1
GPIO53
HiZ / HiZ
BQC20HIV
92
A3
GPIO54
GPIO54
WDT_LED#
E51TMR0
GPIO54
HiZ / HiZ
BQC20HIV
93
A2
GPIO55
GPIO55
SCROLED#
E51INT0
GPIO55
HiZ / HiZ
BQC20HIV
94
--
GND GND
95
B2
GPIO56
GPIO56
E51INT1
GPIO56
HiZ / HiZ
BQC04HIV
96
--
VCC VCC

2.5 KB9012 Pin Assignment Side C

Copyright© 2011, ENE Technology Inc.
13
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
KB9012
Pin No.
KB9012
BGA
Name
GPIO
Alt
Output
Alt.
Input
Default
ECRST#
L/H
IO CELL
97
B1
GPXIOA00
GPXIOA00
SHICS#
SDICS#
HiZ / HiZ
BQC04HIV
98
A1
GPXIOA01
GPXIOA01
SHICLK
SDICLK
HiZ / HiZ
BQC04HIV
99
C1
GPXIOA02
GPXIOA02
SHIDO
SDIDI
HiZ / HiZ
BQC04HIV
100
D4
GPXIOA03
GPXIOA03
POWER_FAIL0
FANFB2
HiZ / HiZ
BQC04HIV
101
D1
GPXIOA04
GPXIOA04
FANFB3
HiZ / HiZ
BQC04HIV
102
D2
GPXIOA05
GPXIOA05
VCIN1
HiZ / HiZ
BQC04HIV
103
E2
GPXIOA06
GPXIOA06
VCOUT1
HiZ / HiZ
BQC04HIV
104
E4
GPXIOA07
GPXIOA07
VCOUT0
HiZ / HiZ
BQC04HIV
105
E1
GPXIOA08
GPXIOA08
HiZ / HiZ
BQCZ16HIV
106
F4
GPXIOA09
GPXIOA09
HiZ / HiZ
BQCZ16HIV
107
F2
GPXIOA10
GPXIOA10
HiZ / HiZ
BQCZ16HIV
108
F1
GPXIOA11
GPXIOA11
GWG
HiZ / HiZ
BQCZ16HIV
109
C2
GPXIOD00
GPXIOD00
SDIDO
SHIDI /
VCIN0
HiZ / HiZ
BQC04HIV
110
F5
GPXIOD01
GPXIOD01
AC_IN
HiZ / HiZ
BQC04HIV
111
J6
VCC_0
HiZ / HiZ
VCC_0
112
G1
GPXIOD02
GPXIOD02
ALW_PWR_EN
HiZ / HiZ
BQC04HIV
113
G2
GND_0
HiZ / HiZ
GND_0
114
G5
GPXIOD03
GPXIOD03
ON/OFFBTN#
HiZ / HiZ
BQC04HIV
115
H1
GPXIOD04
GPXIOD04
HiZ / HiZ
BQC04HIV
116
G4
GPXIOD05
GPXIOD05
HiZ / HiZ
BQC04HIV
117
H4
GPXIOD06
GPXIOD06
HiZ / HiZ
BQC04HIV
118
H2
GPXIOD07
GPXIOD07
PECI
PECI
HiZ / HiZ
BQC04HIVPECI
119
K2
GPIO5B
GPIO5B
(MISO)
GPIO5B
HiZ / HiZ
BQCZ16HIV
120
J2
GPIO5C
GPIO5C
(MOSI)
GPIO5C
HiZ / HiZ
BQCZ16HIV
121
H5
GPIO57
GPIO57
XCLK32K
GPIO57
HiZ / HiZ
BQC04HIV
122
J1
GPIO5D
GPIO5D
(XCLKI)
GPIO5D
HiZ / HiZ
BQCZT04IV
123
K1
GPIO5E
GPIO5E
(XCLKO)
GPIO5E
HiZ / HiZ
BQCZT04IV
124
L1
V18R
125
J4
VCC VCC
126
M1
GPIO58
GPIO58
(SPICLK)
GPIO58
HiZ / HiZ
BQCW16HIV
127
N1
GPIO59
GPIO59
GPIO59
IE / IE
BQC04HIV
128
N2
GPIO5A
GPIO5A
(SPICS#)
GPIO5A
HiZ / HiZ
BQCZ16HIV

2.6 KB9012 Pin Assignment Side D

* Please note, crystal pad signal frequency should be lower than 1MHz.
Copyright© 2011, ENE Technology Inc.
14
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
Cell
Description
Application
BQCZ16HIV
Schmitt trigger, 16mA Output / Sink Current, Input / Output / Pull Up Enable(40KΩ ), 5 V Tolerance.
GPIO, LPC
I/F
BQC04HIV
Schmitt trigger, 4mA Output / Sink Current, Input / Output / Pull Up Enable(40KΩ ), 5 V Tolerance
GPIO
BQCW16HIV
Schmitt trigger, 16mA Output / Sink Current, 5 V Tolerance, Input / Output / Pull Up Enable
ESB_CLK/ SPI_CLK
BQC04HI
Schmitt trigger, 4mA Output / Sink Current, 5 V Tolerance, Input / Output Enable
GPIO
BQC08HIV
Schmitt trigger, 8mA Output / Sink Current, 5V Tolerance, Input / Output / Pull Up Enable
ESB_DAT
BQC04HIVPECI
Mixed Mode IO, PECI enable, with GPIO GPIO: Schmitt trigger, 4mA Output / Sink Current, PECI: 0.9V~1.2V
PECI, GPIO
BQCZT04IV ***
Mixed Mode IO, AE enable, with GPIO GPIO: Schmitt trigger, 4mA Output / Sink Current, Input / Output / Pull Up
Enable
ADC/DAC, XCLKI,
XCLKO
Cell
Output
Input
Analog
Signal
Pull-High
Enable(40k)
5V
Tolerance
Current
(mA)
Application
BQCZ16HIV
ˇ ˇ ˇ ˇ
8~16
GPIO, LPC
I/F
BQC04HIV
ˇ ˇ ˇ ˇ
2~4
GPIO
BQCW16HIV
ˇ ˇ ˇ ˇ
8~16
ESB_CLK/ SPI_CLK
BQC04HI
ˇ ˇ ˇ
2~4
GPIO
BQC08HIV
ˇ ˇ ˇ ˇ
4~8
ESB_DAT
BQC04HIVPECI
ˇ ˇ ˇ ˇ
2~4
PECI, GPIO
BQCZT04IV
ˇ
ˇ ˇ ˇ
2~4
ADC/DAC, XCLKI,
XCLKO

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.
15
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
Trap Name
Pin No.
Description
TP_TEST
(GPIO20,KSO0)
39
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.
TP_PLL
(GPIO21,KSO1)
40
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
TP_TMUX
(GPIO22,KSO2)
41
TestMux Mode Trap
Low: Test mode High: Normal operation
TP_PLL_Lock
(GPIO23,KSO3)
42
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.
Pin No.
Normal Mode
FlashDirectAccess Mode
59
KSI4 (I)
(Input) EDI_CS, Transfer signal from terminal into KBC and though SPICS# to SPI_Flash
60
KSI5 (I)
(Input) EDI_CLK, Transfer signal from terminal into KBC and though SPICLK to SPI_Flash
61
KSI6 (I)
(Input) EDI_DIN, Transfer signal from terminal into KBC and though MOSI to SPI_Flash
62
KSI7 (I)
(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.
16
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
Pin Name
Pin No.
Direction
Description
LAD[3:0]
5, 7,8,10
I/O
LPC address bus.
LFARAME#
4
I
LPC frame control signal.
PCIRST#
13
I
LPC module reset by this signal.
PCICLK
12
I
33MHz PCI clock input.
SERIRQ
3
I/O
Serial IRQ
CLKRUN#
38
I/OD
Clock run control
Pin Name
Pin No.
Direction
Description
PSCLK1
83
I/OD
PS/2 port 1 clock Muxed with SMBus port 2 clock
PSDAT1
84
I/OD
PS/2 port 1 data Muxed with SMBus port 2 data
PSCLK2
85
I/OD
PS/2 port 2 clock Muxed with SMBus port 3 clock
PSDAT2
86
I/OD
PS/2 port 2 data Muxed with SMBus port 3 data
PSCLK3
87
I/OD
PS/2 port 3 clock
PSDAT3
88
I/OD
PS/2 port 3 data
Pin Name
Pin No.
Direction
Description
KSO[17:0]
82,81,54-39
O
Keyboard Scan Out
KSI[7:0]
62-55
I
Keyboard Scan In
Pin Name
Pin No.
Direction
Description
SCL0
77
I/OD
SMBus clock (interface 0)
SDA0
78
I/OD
SMBus data (interface 0)
SCL1
79
I/OD
SMBus clock (interface 1)
SDA1
80
I/OD
SMBus data (interface 1)
SCL2
83
I/OD
SMBus clock (interface 2) Muxed with PS/2 port 1 clock
SDA2
84
I/OD
SMBus data (interface 2) Muxed with PS/2 port 1 data
SCL3
85
I/OD
SMBus clock (interface 3) Muxed with PS/2 port 2 clock
SDA3
86
I/OD
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.
17
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
Pin Name
Pin No.
Direction
Description
FANPWM0
26
O
FANPWM0 output
FANPWM1
27
O
FANPWM1 output
FANFB0
28
I
FAN0 tachometer input
FANFB1
29
I
FAN1 tachometer input
FANFB2
100
I
FAN2 tachometer input
FANFB3
101
I
FAN3 tachometer input
Pin Name
Pin No.
Direction
Description
PWM0
21
O
PWM pulse output
PWM1
23
O
PWM pulse output
PWM2
25
O
PWM pulse output
PWM3
34
O
PWM pulse output
Pin Name
Pin No.
Direction
Description
AD[3:0]
66-63
I
10bit A/D converter input
AD[5:4]
76,75
I
10bit A/D converter input
AD6
73
I
10bit A/D converter input
AD7
74
I
10bit A/D converter input
Pin Name
Pin No.
Direction
Description
DA[3:0]
72-70,68
O
8bit D/A converter output
Pin Name
Pin No.
Direction
Description
E51TXD
30
O
8051 serial port, transmit port.
E51RXD
31
I
8051 serial port, receive port.
E51CLK
31
O
For different serial scheme, E51CLK will shift out clock.
E51CS#
90
O
E51TMR0
92
I
E51INT0
93
I
E51TMR1
91
I
E51INT1
95
I

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.
18
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
Pin Name
Pin No.
Direction
Description
XCLKI
122
I
32.768KHz input
XCLKO
123
O
32.768KHz output
Pin Name
Pin No.
Direction
Description
GA20 1 O
KBC will gate A20 address line
KBRST#
2
O
KBRST# is used to generate system reset.
SCI#
20
O
SCI# asserts to the system for requesting service while related events occur.
ECRST#
37
I
While ECRST# asserted, the KBC will reset globally.
OWM
16
I/O
One Wire Master input and output signal
PECI
118
I/O
PECI input and output signal
GWG
108
O
General Waveform Generator for 3D application
POWER_FAIL0
100
O
Used to indicate the power fail under Power Fail Voltage.
POWER_FAIL1
32
O
Used to indicate the power fail under Power Fail Voltage.
Pin Name
Pin No.
Direction
Description
VCIN0
109
I
Voltage comparator input port0
VCOUT0
104
O
Voltage comparator output port0
VCIN1
102
I
Voltage comparator input port1
VCOUT1
103
O
Voltage comparator output port1
Pin Name
Pin No.
Direction
Description
VCC
9,22,33,96,111,125
Power supply for digital plane.
GND
11,24,35,94,113
Power ground for digital plane.
AVCC
67
Power supply for analog plane.
AGND
69
Power ground for analog plane.
V18R
124
Connected to external Capacitor for internal 1.8V
VCC_0
111
Power supply for 51ON power management
GND_0
113
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.
19
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
Pin Name
Pin No.
Direction
Description
GPXIOD01
110
I/O
AC_IN
GPXIOD02
112
I/O
ALW_PWR_EN
GPXIOD03
114
I/O
ON/OFFBTN#

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.
20
KB9012 Keyboard Controller Datasheet
CONFIDENTIAL
Power Plane
Description
Power
Ground
Digital Plane
This power provides power for all digital logic no matter what power mode is.
VCC
GND
Analog Plane
This power provides power for all analog logic, such as A/D and D/A converter.
AVCC
AGND
Digital V1.8
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.
V1.8
GND
Power Latch
Plane
This power provides power for the power-latch circuit. It could help to provide power saving management.
VCC_0
GND_0

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.
Loading...
+ 227 hidden pages