版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、ITEEC架构介绍,Speaker: WY,ITE 8512,ITEEC架构介绍,Whats the EC ?,Embedded Controller comes form ACPI structure Host is communicated EC by LPC interface. The I/O port are 60/64 and 62/66 EC integrated ps2 device, keyboard matrix, battery charger, fan control, power sequence, hot key function, backlight, CPU t
2、hermal sensor, system power consumption,etc.,ITEEC架构介绍,System Structure,NB,SB,EC,LPC,ITEEC架构介绍,Keyboard Controller Overview,ITEEC架构介绍,EC Feature,ITE EC,PS/2 KB/MS,MATRIX,ACPI,Power management,SMBus,KBS Monitor,UART / CIR,PWM,ADC/DAC,Share BIOS,ITEEC架构介绍,EC Position,ITEEC架构介绍,Share BIOS Architecture,
3、64K16M Byte,BIOS ROM Zone,KBC ROM Zone,0,64K,Max : 16M,64K Byte,Max :16M-64K Byte,Full space 16M Byte,KBC ROM Zone,ITEEC架构介绍,BIOS&EC Code Position,ITEEC架构介绍,Features,IBM AT & PS/2 8042-Compitable Host Interfaces Support all standard Host Commands ACPI Embedded Controller Interface ACPI System Manage
4、ment Bus Interface PS/2 Devices Scan Matrix Keyboard OEM Customization,ITEEC架构介绍,Features Host Interface,Host Interfaces Primary Host Interface (0 x60, 0 x64) HIF1 8042 Command Interface Secondary Host Interface (0 x62, 0 x66) HIF2 Logical HIF ACPI Command Interface HIF3 Logical HIF SMI Access Third
5、 Host Interface (0 x68,0 x6C) IBM AT & PS/2 8042-Compatible Standard KBC Commands 0 x64 port Standard KBD Commands - 0 x60 port Standard AUX Commands 0 x64 port D4 command,ITEEC架构介绍,Command Handler,ITEEC架构介绍,Keyboard Controller Status Register 64h,ITEEC架构介绍,Features Standard KBC Commands,Standard 64
6、 command list Write / Read Keyboard Controller Command Byte (60h / 20h) The KCCB resides in 8042 RAM location 20h, Address 20h defined in the IBM 8042 programming specification. IBM standard command set, use command 20h to read the KCCB and command 60h to write KCCB. Default: 0 x65 PS/2 Mouse Not Pr
7、esent 0 x47 PS/2 Mouse Present Controller Command Byte: Bit7 - Reserved Bit6 - Keyboard Translate Bit5 - Disable Auxiliary Device Bit4 - Disable Keyboard Bit3 - Reserved Bit2 - System Flag Bit1 - Enable Auxiliary Interrupt Bit0 - Enable Keyboard Interrupt,ITEEC架构介绍,Features Standard KBC Commands,Out
8、put Buffer Write Commands: Write Keyboard Output Buffer (D2h) Write Auxiliary Device Output Buffer (D3h) Write to Auxiliary Device Command (D4h) Write to PS2 Device Pulse Output Port Commands: Pulse Both Reset and Gate A20 (FCh) Pulse Gate A20 (FDh) Pulse System Reset (FEh),ITEEC架构介绍,Features Standa
9、rd KBD Commands,Standard KBD 60 command list Set / Reset Status Indicators Command (EDh) Echo Command (EEh) Select Alternate Scan Codes Command (F0h) Read Id Command (F2h) Set Typematic Rate/Delay Command (F3h) Enable Command (F4h) Default Disable Command (F5h) Set Default Command (F6h) Set Keys Com
10、mands (F7h-FDh) Resend Command (FEh) Reset Command (FFh),ITEEC架构介绍,Features Standard AUX Commands,Standard PS2 64_D4 command list Reset Scaling (E6h) Set Scaling to 2:1 (E7h) Set Resolution (E8h) Status Request (E9h) Set Stream Mode (EAh) Read Data (EBh) Read / Set Wrap Mode (ECh /EEh) Set Remote Mo
11、de (F0h) Read Device Type (F2h) Set Sampling Rate (F3h) Enable / Disable Auxiliary Device (F4h / F5h) Set Default (F6h) Reset Auxiliary Device (FFh),ITEEC架构介绍,Features Commands,Extended Controller Commands Specific Functionalities Access Legacy EC Space Sample A/D Channel Turn On/Off LEDs Access Con
12、figuration Table Etc.,ITEEC架构介绍,Features ACPI Interface,Embedded Controller Interface(0 x62/0 x66) ACPI fully support Command Set 0 x80-Read EC space 0 x81-Write EC space 0 x82-Burst Enable 0 x83-Burst Disable 0 x84-Query SCI event,ITEEC架构介绍,Features PS/2 Devices,Three PS/2 Ports One internal ps2 mo
13、use & two external ps2 device(one keyboard +one mouse) Port 1 & Port 2 Keyboard & Pointing Devices Port 3 Touchpad Devices (Internal) Active PS/2 Multiplexing Hot-plug if Ext.aux device is also attached, send command to it but do not pass Ext. response to the system.,ITEEC架构介绍,Features Scan Matrix,A
14、ll Standard Notebook PC Keys Easy Customization Download OEM Scan Table in RAM Update Scan Table in ROM,ITEEC架构介绍,Features OEM Customization,OEM-Definable Hotkeys -Hotkey, Quick button OEM-Definable SMI / SCI Events -Battery event, System Beep, Thermel throttle event, etc,ITEEC架构介绍,Firmware Architec
15、ture,ITEEC架构介绍,Firmware ROM Image,KBC.ROM-64K,0 x1000,ITEEC架构介绍,EC Flowchart,Top-Level Flow Diagram,ITEEC架构介绍,Firmware - Initialization,ITEEC架构介绍,Firmware - Idle,Standby Setup,Enable Interrupts,Yes,No,Idle (SLEEP),ITEEC架构介绍,Firmware Runtime Service,ITEEC架构介绍,How To Enter Power Down Mode,1. Check con
16、dition for enter power-down mode 2. Disable module (reduce leak current) 3. Change all gpio pin function ( if need ) (reduce leak current) 4. Set wake-up pin function 5. Set wake-up source 6. Set interrupt source 7. Enter power-down modeDeep sleepIRQ event 8. Set gpio pin to original funtion 9 .Enab
17、le module 10. Restore all gpio pin function ( if need ) 11. Return to main_loop,ITEEC架构介绍,Upper Loop,KBC-centric:1 byte output buffer, wait forever for the System to read kbd/mouse. Poll all other interrupts expect ps/2(KBC/EC Host commands, External pin, Smbus, etc) PS2 device inactive,ITEEC架构介绍,Lo
18、wer Loop,Wait for interrupt (sleep, Idle, wait) Ps2 devices active. 1ms Timer-periodic switch to Upper Loop Each Interrupt switch to Upper Loop,ITEEC架构介绍,Interrupts Sources,Internal: 1.Timer interrupt (for 1ms timer.) External: 1.IRQ pin(WUxx) 2.SMBus interrupt(for receive data) 3.Peripheral interru
19、pt(for PS2 device data in) 4.Data buffer interrupt (for IBF,IBF1 and IBF2) 5.Keyboard interrupt(for internal keypressed),ITEEC架构介绍,ITE8512 Memory Introduction,ITE8512 Memory Mapping There are different commands for these memory area.,Ram,Internal,00FF,ITEEC架构介绍,Code Structure,Build Environment Sourc
20、e Code Directories Source Code Overview,ITEEC架构介绍,Code Structure Build Environment,Windows XP DOS Command prompt Tools Keil C51 Tools Assembler - ax51.exe (v2.13) Compiler c51.exe (v7.20) Linker - lx51.exe (v3.64) Misc. Tools h2b.exe replace.exe,ITEEC架构介绍,Code Structure Directories,CORE CORE_ACPI.C
21、CORE_HOSTIF.C CORE_INIT.C CORE_DATA.C CORE_FLASH.C CORE_IRQ.C CORE_MAIN.C CORE_PS2.C CORE_SCAN.C CORE_PORT6064.C CORE_TIMERS.C CORE_CIR.C CORE_CHIPREGS.C OEM Default OEM Project OEM_BATTERY.C OEM_LED.C OEM_FAN.C OEM_SCANTABS.C OEM_GPIO.C OEM_MAIN.C TOOLS Nmaker15.exe hex2bin.exe,ITEEC架构介绍,Code Struc
22、ture Build,Set Environment KeilC51 Customize Build EC code Iteec.mak iteec.bin Iteec_bb.mak iteec_bb.bin bb_iteec.bin = iteec_bb.bin + iteec.bin Set Build EC Firmware MAKEAll.bat,ITEEC架构介绍,Source Code CORE,Reset Entry Point Startup.a51 Crisis Recovery CORECore_bblock.c Hardware Dependant Chip Regist
23、ers Interrupt Handlers Hardware Control Routines Variable Data Types CORE TYPES.H,ITEEC架构介绍,Source Code Core_IRQ.C,On-CHIP peripherals System interrupt table Interrupt Handler Timers (1mS & 150S) Host Interfaces PS/2 Ports I2C Etc.,ITEEC架构介绍,Source Code Core_BBlock.C,CORE Crisis Command Handler Stan
24、dard KBC/KBD/AUX Commands Crisis Mode Flash Commands GPIO setting,ITEEC架构介绍,CORE Initialization Registers Timers (1mS Timer & 150S Timer) Host Interface Devices Hook to OEM,Source Code Core_ini.C,ITEEC架构介绍,Source Code Core_MAIN.C,CORE Normal Code Entry Main Routine Idle Loop Service Routines Service
25、 Flags,ITEEC架构介绍,(Source Code Core_MAIN.C),16 Service Routines: service_unlock - Unlock device transmission service_pci Primary Host Interface (0 x60, 0 x64) service_aux_port - Send byte from auxiliary port to Host service_1mS 1 millisecond service service_scan Scan Matrix service_send - Send byte f
26、rom scanner keyboard service_pci2 - Secondary Host Interface (0 x62, 0 x66) service_pci3 - Third Host Interface service_core_7 Reserved service_ext_irq - External IRQ service_core_10, service_core_11 Reserved service_chk_aux - Check External mouse existence service_OEM_0, service_OEM_1, service_OEM_
27、2 - Reserved,ITEEC架构介绍,Source Code Core_port6064.C,CORE Standard 8042 Commands IBM AT & PS/2 8042-Compitable Standard KBC Commands Standard KBD Commands Standard AUX Commands,ITEEC架构介绍,Source Code Core_ps2.C,CORE PS/2 Devices Lock/unlock PS/2 device Suspend/Resume PS/2 device Send/Get data to/From P
28、S/2 device,ITEEC架构介绍,Source Code Core_scan.C,CORE Scan Matrix Keyboard 8x16 Matrix (Row: 8, Column: 16) Ghost Key Key Press / Release Debounce,ITEEC架构介绍,Keyboard Drawing,ITEEC架构介绍,Standard Matrix,ITEEC架构介绍,(Source Code PURSCN.C),Scan Matrix Keyboard,ITEEC架构介绍,(Source Code PURSCN.SRC),Ghost Key 2 (or
29、 more) keys pressed on the same ROW,ITEEC架构介绍,(Source Code PURSCN.C),Key Press / Release Debounce,ITEEC架构介绍,Source Code Core_XLT.C,CORE Scan Code Translation R/C Input Translate to Scan Code Store into internal key buffer Hotkey,ITEEC架构介绍,Source Code Core_ACPI.C,CORE ACPI Command Handler SCI Generat
30、ion SMBus Protocol Handler ACPI EC Space Access,ITEEC架构介绍,Source Code Core_SMBus,Core_SMB.C CORE SMBus Protocol Read/Write Smbus byte Read/Write Smbus Word Read/Write Smbus Block,ITEEC架构介绍,Source Code Core_DAT.C,CORE Internal Variables BIT DATA External Variables IDATA XDATA CHIP TYPE.H,ITEEC架构介绍,BUILD A PROJECT WITH EC CODE,IT
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 基坑开挖施工方案
- 2025水电十二局浙江中水数建科技有限公司招聘3人笔试历年常考点试题专练附带答案详解
- 2025恒丰银行重庆分行社会招聘(522截止)笔试历年典型考题及考点剖析附带答案详解
- 2025广西龙州津通投资有限公司污水处理厂招聘4人笔试历年典型考点题库附带答案详解
- 2025广西河池天峨现代高科实业有限公司公开招聘天峨县现代网络科技有限公司人员1人笔试历年常考点试题专练附带答案详解
- 市政道路开挖施工方案
- 宇宙飞船维修站施工方案
- 塑胶运动场铺设施工技术方案
- 地下管线探伤修复施工方案
- 梁粘钢加固施工工艺流程方案
- 2025年高级经济师知识产权考试历年模拟试题及答案
- 2025年中国电力电子散热器市场调查研究报告
- 局中层干部考核管理办法
- 夏季养生健康知识讲座
- 2025年中国电源散热器配件市场调查研究报告
- 人教版六年级数学下册第四单元比例质量提升卷及答案
- 处方流转与电子处方管理制度
- 国家安全教育大学生读本-第一章完全准确领会总体国家安全观
- 《建筑施工土石方工程安全技术规范》JGJ180
- GB/T 19822-2024铝及铝合金硬质阳极氧化膜规范
- 重点传染病防治学习通超星课后章节答案期末考试题库2023年
评论
0/150
提交评论