![ITE-EC-架構(gòu)的介紹課件_第1頁(yè)](http://file4.renrendoc.com/view/aa7edc2098b6f43595cb1b57307db401/aa7edc2098b6f43595cb1b57307db4011.gif)
![ITE-EC-架構(gòu)的介紹課件_第2頁(yè)](http://file4.renrendoc.com/view/aa7edc2098b6f43595cb1b57307db401/aa7edc2098b6f43595cb1b57307db4012.gif)
![ITE-EC-架構(gòu)的介紹課件_第3頁(yè)](http://file4.renrendoc.com/view/aa7edc2098b6f43595cb1b57307db401/aa7edc2098b6f43595cb1b57307db4013.gif)
![ITE-EC-架構(gòu)的介紹課件_第4頁(yè)](http://file4.renrendoc.com/view/aa7edc2098b6f43595cb1b57307db401/aa7edc2098b6f43595cb1b57307db4014.gif)
![ITE-EC-架構(gòu)的介紹課件_第5頁(yè)](http://file4.renrendoc.com/view/aa7edc2098b6f43595cb1b57307db401/aa7edc2098b6f43595cb1b57307db4015.gif)
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Speaker: WYITE 8512 Speaker: WYITE 8512 Whats the EC ?Embedded Controller comes form ACPI structureHost 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 ther
2、mal sensor, system power consumption,etc. Whats the EC ?Embedded ControSystem StructurePS/2 KB/MSMATRIXFAN ControlChargerFlash ROM Power Sequence. NB SB ECLPCSystem StructurePS/2 KB/MSMATRKeyboard Controller Overview18 Scan Out (Column)Scan MatrixKeyboard 3 PS/2 DevicesHost SystemLPC/Firmware HubSMB
3、usITE KBCPS/2ScanI2CHIF3 SMBus Devices8 Scan In (Row)Keyboard Controller Overview18EC Feature ITE ECPS/2 KB/MSMATRIXACPIPower managementSMBusKBS MonitorUART / CIRPWM ADC/DACShare BIOSEC Feature ITE ECPS/2 KB/MSMATEC PositionEC PositionShare BIOS Architecture 64K16M ByteBIOS ROM ZoneKBC ROM Zone064KM
4、ax : 16M64K ByteMax :16M-64K ByteFull space 16M ByteKBC ROM ZoneShare BIOS Architecture 064KMaBIOS&EC Code PositionBIOS&EC Code PositionFeaturesIBM AT & PS/2 8042-Compitable Host InterfacesSupport all standard Host CommandsACPI Embedded Controller InterfaceACPI System Management Bus InterfacePS/2 De
5、vicesScan Matrix KeyboardOEM CustomizationFeaturesIBM AT & PS/2 8042-ComFeatures Host InterfaceHost InterfacesPrimary Host Interface (0 x60, 0 x64)HIF1 8042 Command InterfaceSecondary Host Interface (0 x62, 0 x66)HIF2 Logical HIF ACPI Command InterfaceHIF3 Logical HIF SMI AccessThird Host Interface
6、(0 x68,0 x6C)IBM AT & PS/2 8042-CompatibleStandard KBC Commands 0 x64 port Standard KBD Commands - 0 x60 port Standard AUX Commands 0 x64 port D4 commandFeatures Host InterfaceHost Command HandlerCommand HandlerBitDescription7 Parity Error6 Timeout Error5 Auxiliary Output Buffer Full4 Inhibit Switch
7、3 Command/Data2 System Flag1 Input Buffer Full ( IBF )0 Output Buffer Full (OBF) Keyboard Controller Status Register 64hBitDescription7 Parity Error6 Features Standard KBC CommandsStandard 64 command listWrite / Read Keyboard Controller Command Byte (60h / 20h)The KCCB resides in 8042 RAM location 2
8、0h, 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 Present0 x47 PS/2 Mouse PresentController Command Byte:Bit7 - ReservedBit6 - Keyboard TranslateBit5 - Disable Auxil
9、iary DeviceBit4 - Disable KeyboardBit3 - ReservedBit2 - System FlagBit1 - Enable Auxiliary InterruptBit0 - Enable Keyboard InterruptFeatures Standard KBC CommanFeatures Standard KBC CommandsOutput Buffer Write Commands:Write Keyboard Output Buffer (D2h)Write Auxiliary Device Output Buffer (D3h)Write
10、 to Auxiliary Device Command (D4h)Write to PS2 DevicePulse Output Port Commands:Pulse Both Reset and Gate A20 (FCh)Pulse Gate A20 (FDh)Pulse System Reset (FEh)Features Standard KBC CommanFeatures Standard KBD CommandsStandard KBD 60 command listSet / Reset Status Indicators Command (EDh)Echo Command
11、 (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 Commands (F7h-FDh)Resend Command (FEh)Reset Command (FFh)Features Standard KBD CommanFeatures Standard AUX Comm
12、andsStandard PS2 64_D4 command listReset 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 Mode (F0h)Read Device Type (F2h)Set Sampling Rate (F3h)Enable / Disable Auxiliary Device (F4h / F5h)Set
13、Default (F6h)Reset Auxiliary Device (FFh)Features Standard AUX CommanFeatures CommandsExtended Controller CommandsSpecific FunctionalitiesAccess Legacy EC SpaceSample A/D ChannelTurn On/Off LEDsAccess Configuration TableEtc.Features CommandsExtended CoFeatures ACPI InterfaceEmbedded Controller Inter
14、face(0 x62/0 x66)ACPI fully supportCommand Set0 x80-Read EC space0 x81-Write EC space0 x82-Burst Enable0 x83-Burst Disable0 x84-Query SCI eventFeatures ACPI InterfaceEmbedFeatures PS/2 DevicesThree PS/2 Ports One internal ps2 mouse & two external ps2 device(one keyboard +one mouse)Port 1 & Port 2 Ke
15、yboard & Pointing DevicesPort 3 Touchpad Devices (Internal)Active PS/2 MultiplexingHot-plugif Ext.aux device is also attached, send command to it but do not pass Ext. response to the system. Features PS/2 DevicesThree PFeatures Scan MatrixAll Standard Notebook PC KeysEasy CustomizationDownload OEM S
16、can Table in RAMUpdate Scan Table in ROMFeatures Scan MatrixAll StanFeatures OEM CustomizationOEM-Definable Hotkeys -Hotkey, Quick button OEM-Definable SMI / SCI Events -Battery event, System Beep, Thermel throttle event, etc Features OEM CustomizationOEFirmware ArchitectureFirmware ArchitectureFirm
17、ware ROM ImageKBC.ROM-64KCrisisRecoveryConfigurationTablesScanTablesMainCore0 x0000OEM function0 xFFFF0 x1000Firmware ROM ImageKBC.ROM-Power UpInitializationIdleInterruptRuntime ServiceEC FlowchartTop-Level Flow DiagramPower UpInitializationIdleIntePower UpInitializationIdleFirmware - Initialization
18、Crisis?CrisisInitializationCrisisRecoveryPower UpIdleNormalInitializationYesNoPower UpInitializationIdleFirmInitializationIdleFirmware - IdleStandbyStandbySetupDisable InterruptsEnableInterruptsYesNoIdle(SLEEP)InitializationIdleFirmware - IIdleRuntime ServiceInterruptFirmware Runtime ServiceInterrup
19、tCheck ServiceDo ServiceNoYesMore ServiceIdleIdleRuntime ServiceInterruptFiHow To Enter Power Down Mode 1. Check condition 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 so
20、urce 6. Set interrupt source 7. Enter power-down modeDeep sleepIRQ event 8. Set gpio pin to original funtion 9 .Enable module10. Restore all gpio pin function ( if need )11. Return to main_loopHow To Enter Power Down Mode 1Upper LoopKBC-centric:1 byte output buffer, wait forever for the System to re
21、ad kbd/mouse.Poll all other interrupts expect ps/2(KBC/EC Host commands, External pin, Smbus, etc)PS2 device inactiveUpper LoopKBC-centric:1 byte oLower LoopWait for interrupt (sleep, Idle, wait)Ps2 devices active.1ms Timer-periodic switch to Upper LoopEach Interrupt switch to Upper LoopLower LoopWa
22、it for interrupt (Interrupts SourcesInternal:1.Timer interrupt (for 1ms timer.)External:1.IRQ pin(WUxx)2.SMBus interrupt(for receive data) 3.Peripheral interrupt(for PS2 device data in)4.Data buffer interrupt (for IBF,IBF1 and IBF2)5.Keyboard interrupt(for internal keypressed)Interrupts SourcesInter
23、nal:ITE8512 Memory IntroductionITE8512 Memory MappingThere are different commands for these memory area.RamInternalROMRAMFFFF0000FFF000External External 00FFITE8512 Memory IntroductionITECode StructureBuild EnvironmentSource Code DirectoriesSource Code OverviewCode StructureBuild EnvironmenCode Stru
24、cture Build EnvironmentWindows XP DOS Command promptToolsKeil C51 ToolsAssembler - ax51.exe (v2.13)Compiler c51.exe (v7.20)Linker - lx51.exe (v3.64)Misc. Toolsh2b.exereplace.exeCode Structure Build EnvironCode Structure DirectoriesCORECORE_ACPI.CCORE_HOSTIF.CCORE_INIT.CCORE_DATA.CCORE_FLASH.CCORE_IR
25、Q.CCORE_MAIN.CCORE_PS2.CCORE_SCAN.CCORE_PORT6064.CCORE_TIMERS.CCORE_CIR.CCORE_CHIPREGS.COEM Default OEM ProjectOEM_BATTERY.C OEM_LED.COEM_FAN.COEM_SCANTABS.COEM_GPIO.COEM_MAIN.CTOOLSNmaker15.exe hex2bin.exeCode Structure DirectoriesCOCode Structure BuildSet EnvironmentKeilC51 Customize Build EC code
26、Iteec.mak iteec.binIteec_bb.mak iteec_bb.binbb_iteec.bin = iteec_bb.bin + iteec.binSet Build EC FirmwareMAKEAll.batCode Structure BuildSet EnviSource Code COREReset Entry PointStartup.a51Crisis RecoveryCORECore_bblock.cHardware DependantChip RegistersInterrupt HandlersHardware Control RoutinesVariab
27、le Data TypesCORE TYPES.HSource Code COREReset Entry Source Code Core_IRQ.COn-CHIP peripherals System interrupt tableInterrupt HandlerTimers (1mS & 150S)Host InterfacesPS/2 PortsI2CEtc.Source Code Core_IRQ.COn-CHISource Code Core_BBlock.CCORECrisis Command HandlerStandard KBC/KBD/AUX Commands Crisis
28、 ModeFlash Commands GPIO settingSource Code Core_BBlock.CCORCOREInitializationRegistersTimers (1mS Timer & 150S Timer)Host InterfaceDevicesHook to OEM Source Code Core_ini.CCORESource Code Core_ini.CSource Code Core_MAIN.CCORENormal Code EntryMain RoutineIdle LoopService RoutinesService FlagsSource
29、Code Core_MAIN.CCORE(Source Code Core_MAIN.C)16 Service Routines:service_unlock - Unlock device transmissionservice_pci Primary Host Interface (0 x60, 0 x64)service_aux_port - Send byte from auxiliary port to Hostservice_1mS 1 millisecond serviceservice_scan Scan Matrixservice_send - Send byte from
30、scanner keyboardservice_pci2 - Secondary Host Interface (0 x62, 0 x66)service_pci3 - Third Host Interfaceservice_core_7 Reservedservice_ext_irq - External IRQservice_core_10, service_core_11 Reservedservice_chk_aux - Check External mouse existenceservice_OEM_0, service_OEM_1, service_OEM_2 - Reserve
31、d(Source Code Core_MAIN.C)16 Source Code Core_port6064.CCOREStandard 8042 CommandsIBM AT & PS/2 8042-CompitableStandard KBC CommandsStandard KBD CommandsStandard AUX CommandsSource Code Core_port6064.CCSource Code Core_ps2.CCOREPS/2 DevicesLock/unlock PS/2 deviceSuspend/Resume PS/2 deviceSend/Get da
32、ta to/From PS/2 deviceSource Code Core_ps2.CCORESource Code Core_scan.CCOREScan Matrix Keyboard8x16 Matrix (Row: 8, Column: 16)Ghost KeyKey Press / Release DebounceSource Code Core_scan.CCOREKeyboard DrawingKeyboard DrawingStandard MatrixStandard Matrix(Source Code PURSCN.C)Scan Matrix KeyboardR - R
33、OW (Scan In)02413567C Column (Scan Out)1514131011129874562310(Source Code PURSCN.C)Scan M(Source Code PURSCN.SRC)Ghost Key 2 (or more) keys pressed on the same ROWR - ROW (Scan In)02413567C Column (Scan Out)1514131011129874562310(Source Code PURSCN.SRC)Ghos(Source Code PURSCN.C)Key Press / Release D
34、ebounceMake?1015 msBreak?Re-checkRe-check1015 ms(Source Code PURSCN.C)Key PrSource Code Core_XLT.CCOREScan Code TranslationR/C InputTranslate to Scan CodeStore into internal key bufferHotkeySource Code Core_XLT.CCORESource Code Core_ACPI.CCOREACPI Command HandlerSCI GenerationSMBus Protocol HandlerA
35、CPI EC Space AccessSource Code Core_ACPI.CCORESource Code Core_SMBusCore_SMB.CCORESMBus ProtocolRead/Write Smbus byteRead/Write Smbus WordRead/Write Smbus BlockSource Code Core_SMBusCore_SMSource Code Core_DAT.CCOREInternal VariablesBITDATAExternal VariablesIDATAXDATACHIP TYPE.HSource Code Core_DAT.
36、CCOREBUILD A PROJECT WITH EC CODE Define GPIOs Setting/variablesBuild Matrix tableSet power sequenceBuild OEM FunctionFiles ModifyFiles ModifyFiles ModifyFiles Modify1. CORE_INIT.C2. OEM_GPIO.C1. OEM_SCANTABS.COEMMAIN.COEMGPIO.COEMGPIO.HOEM_FAN.COEM_BATTERY.COEm_FAN.COEM_LED.C:BUILD A PROJECT WITH EC CODE IT
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 臨床路徑管理規(guī)范
- 工商管理復(fù)習(xí)測(cè)試卷附答案
- 2021-2026年中國(guó)配合飼料市場(chǎng)全面調(diào)研及行業(yè)投資潛力預(yù)測(cè)報(bào)告
- 出租保安用品合同范例
- 雇主責(zé)任險(xiǎn)保險(xiǎn)合同范本
- 住建部 電子合同范本
- 利潤(rùn)核算合同范例
- 鳳崗有機(jī)蔬菜配送合同范例
- 養(yǎng)殖工人聘請(qǐng)合同范例
- 2025年度地下綜合管廊施工勞務(wù)承包合同
- 醫(yī)美注射類知識(shí)培訓(xùn)課件
- 2025年廣電網(wǎng)絡(luò)公司工作計(jì)劃(3篇)
- 2024年全國(guó)統(tǒng)一高考英語(yǔ)試卷(新課標(biāo)Ⅰ卷)含答案
- 2024年認(rèn)證行業(yè)法律法規(guī)及認(rèn)證基礎(chǔ)知識(shí) CCAA年度確認(rèn) 試題與答案
- 2022屆“一本、二本臨界生”動(dòng)員大會(huì)(2023.5)
- 小學(xué)《體育與健康》 人教版 三年級(jí) 乒乓球運(yùn)動(dòng) -乒乓球介紹與球性教學(xué) 第一節(jié)課PPT 課件
- 急性心梗的護(hù)理業(yè)務(wù)學(xué)習(xí)課件
- 導(dǎo)向標(biāo)識(shí)系統(tǒng)設(shè)計(jì)(二)課件
- 聚焦:如何推進(jìn)教育治理體系和治理能力現(xiàn)代化
- 化工儀表自動(dòng)化【第四章】自動(dòng)控制儀表
- 安全生產(chǎn)十大法則及安全管理十大定律
評(píng)論
0/150
提交評(píng)論