ITE EC 架构介绍ppt课件.ppt_第1页
ITE EC 架构介绍ppt课件.ppt_第2页
ITE EC 架构介绍ppt课件.ppt_第3页
ITE EC 架构介绍ppt课件.ppt_第4页
ITE EC 架构介绍ppt课件.ppt_第5页
已阅读5页,还剩69页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Speaker:WY,ITE8512,1,WhatstheEC?,EmbeddedControllercomesformACPIstructureHostiscommunicatedECbyLPCinterface.TheI/Oportare60/64and62/66ECintegratedps2device,keyboardmatrix,batterycharger,fancontrol,powersequence,hotkeyfunction,backlight,CPUthermalsensor,systempowerconsumption,etc.,2,SystemStructure,NB,SB,EC,LPC,3,KeyboardControllerOverview,4,ECFeature,ITEEC,PS/2KB/MS,MATRIX,ACPI,Powermanagement,SMBus,KBSMonitor,UART/CIR,PWM,ADC/DAC,ShareBIOS,5,ECPosition,6,ShareBIOSArchitecture,64K16MByte,BIOSROMZone,KBCROMZone,0,64K,Max:16M,64KByte,Max:16M-64KByte,Fullspace16MByte,KBCROMZone,7,BIOS&ECCodePosition,8,Features,IBMAT&PS/28042-CompitableHostInterfacesSupportallstandardHostCommandsACPIEmbeddedControllerInterfaceACPISystemManagementBusInterfacePS/2DevicesScanMatrixKeyboardOEMCustomization,9,FeaturesHostInterface,HostInterfacesPrimaryHostInterface(0 x60,0 x64)HIF18042CommandInterfaceSecondaryHostInterface(0 x62,0 x66)HIF2LogicalHIFACPICommandInterfaceHIF3LogicalHIFSMIAccessThirdHostInterface(0 x68,0 x6C)IBMAT&PS/28042-CompatibleStandardKBCCommands0 x64portStandardKBDCommands-0 x60portStandardAUXCommands0 x64portD4command,10,CommandHandler,11,KeyboardControllerStatusRegister64h,12,FeaturesStandardKBCCommands,Standard64commandlistWrite/ReadKeyboardControllerCommandByte(60h/20h)TheKCCBresidesin8042RAMlocation20h,Address20hdefinedintheIBM8042programmingspecification.IBMstandardcommandset,usecommand20htoreadtheKCCBandcommand60htowriteKCCB.Default:0 x65PS/2MouseNotPresent0 x47PS/2MousePresentControllerCommandByte:Bit7-ReservedBit6-KeyboardTranslateBit5-DisableAuxiliaryDeviceBit4-DisableKeyboardBit3-ReservedBit2-SystemFlagBit1-EnableAuxiliaryInterruptBit0-EnableKeyboardInterrupt,13,FeaturesStandardKBCCommands,OutputBufferWriteCommands:WriteKeyboardOutputBuffer(D2h)WriteAuxiliaryDeviceOutputBuffer(D3h)WritetoAuxiliaryDeviceCommand(D4h)WritetoPS2DevicePulseOutputPortCommands:PulseBothResetandGateA20(FCh)PulseGateA20(FDh)PulseSystemReset(FEh),14,FeaturesStandardKBDCommands,StandardKBD60commandlistSet/ResetStatusIndicatorsCommand(EDh)EchoCommand(EEh)SelectAlternateScanCodesCommand(F0h)ReadIdCommand(F2h)SetTypematicRate/DelayCommand(F3h)EnableCommand(F4h)DefaultDisableCommand(F5h)SetDefaultCommand(F6h)SetKeysCommands(F7h-FDh)ResendCommand(FEh)ResetCommand(FFh),15,FeaturesStandardAUXCommands,StandardPS264_D4commandlistResetScaling(E6h)SetScalingto2:1(E7h)SetResolution(E8h)StatusRequest(E9h)SetStreamMode(EAh)ReadData(EBh)Read/SetWrapMode(ECh/EEh)SetRemoteMode(F0h)ReadDeviceType(F2h)SetSamplingRate(F3h)Enable/DisableAuxiliaryDevice(F4h/F5h)SetDefault(F6h)ResetAuxiliaryDevice(FFh),16,FeaturesCommands,ExtendedControllerCommandsSpecificFunctionalitiesAccessLegacyECSpaceSampleA/DChannelTurnOn/OffLEDsAccessConfigurationTableEtc.,17,FeaturesACPIInterface,EmbeddedControllerInterface(0 x62/0 x66)ACPIfullysupportCommandSet0 x80-ReadECspace0 x81-WriteECspace0 x82-BurstEnable0 x83-BurstDisable0 x84-QuerySCIevent,18,FeaturesPS/2Devices,ThreePS/2PortsOneinternalps2mouse&twoexternalps2device(onekeyboard+onemouse)Port1&Port2Keyboard&PointingDevicesPort3TouchpadDevices(Internal)ActivePS/2MultiplexingHot-plugifExt.auxdeviceisalsoattached,sendcommandtoitbutdonotpassExt.responsetothesystem.,19,FeaturesScanMatrix,AllStandardNotebookPCKeysEasyCustomizationDownloadOEMScanTableinRAMUpdateScanTableinROM,20,FeaturesOEMCustomization,OEM-DefinableHotkeys-Hotkey,QuickbuttonOEM-DefinableSMI/SCIEvents-Batteryevent,SystemBeep,Thermelthrottleevent,etc,21,FirmwareArchitecture,22,FirmwareROMImage,KBC.ROM-64K,0 x1000,23,ECFlowchart,Top-LevelFlowDiagram,24,Firmware-Initialization,25,Firmware-Idle,StandbySetup,EnableInterrupts,Yes,No,Idle(SLEEP),26,FirmwareRuntimeService,27,HowToEnterPowerDownMode,1.Checkconditionforenterpower-downmode2.Disablemodule(reduceleakcurrent)3.Changeallgpiopinfunction(ifneed)(reduceleakcurrent)4.Setwake-uppinfunction5.Setwake-upsource6.Setinterruptsource7.Enterpower-downmodeDeepsleepIRQevent8.Setgpiopintooriginalfuntion9.Enablemodule10.Restoreallgpiopinfunction(ifneed)11.Returntomain_loop,28,UpperLoop,KBC-centric:1byteoutputbuffer,waitforeverfortheSystemtoreadkbd/mouse.Pollallotherinterruptsexpectps/2(KBC/ECHostcommands,Externalpin,Smbus,etc)PS2deviceinactive,29,LowerLoop,Waitforinterrupt(sleep,Idle,wait)Ps2devicesactive.1msTimer-periodicswitchtoUpperLoopEachInterruptswitchtoUpperLoop,30,InterruptsSources,Internal:1.Timerinterrupt(for1mstimer.)External:1.IRQpin(WUxx)2.SMBusinterrupt(forreceivedata)3.Peripheralinterrupt(forPS2devicedatain)4.Databufferinterrupt(forIBF,IBF1andIBF2)5.Keyboardinterrupt(forinternalkeypressed),31,ITE8512MemoryIntroduction,ITE8512MemoryMappingTherearedifferentcommandsforthesememoryarea.,Ram,Internal,00FF,32,CodeStructure,BuildEnvironmentSourceCodeDirectoriesSourceCodeOverview,33,CodeStructureBuildEnvironment,WindowsXPDOSCommandpromptToolsKeilC51ToolsAssembler-ax51.exe(v2.13)Compilerc51.exe(v7.20)Linker-lx51.exe(v3.64)Misc.Toolsh2b.exereplace.exe,34,CodeStructureDirectories,CORECORE_ACPI.CCORE_HOSTIF.CCORE_INIT.CCORE_DATA.CCORE_FLASH.CCORE_IRQ.CCORE_MAIN.CCORE_PS2.CCORE_SCAN.CCORE_PORT6064.CCORE_TIMERS.CCORE_CIR.CCORE_CHIPREGS.COEMDefaultOEMProjectOEM_BATTERY.COEM_LED.COEM_FAN.COEM_SCANTABS.COEM_GPIO.COEM_MAIN.CTOOLSNmaker15.exehex2bin.exe,35,CodeStructureBuild,SetEnvironmentKeilC51CustomizeBuildECcodeIteec.makiteec.binIteec_bb.makiteec_bb.binbb_iteec.bin=iteec_bb.bin+iteec.binSetBuildECFirmwareMAKEAll.bat,36,SourceCodeCORE,ResetEntryPointStartup.a51CrisisRecoveryCORECore_bblock.cHardwareDependantChipRegistersInterruptHandlersHardwareControlRoutinesVariableDataTypesCORETYPES.H,37,SourceCodeCore_IRQ.C,On-CHIPperipheralsSysteminterrupttableInterruptHandlerTimers(1mS&150S)HostInterfacesPS/2PortsI2CEtc.,38,SourceCodeCore_BBlock.C,CORECrisisCommandHandlerStandardKBC/KBD/AUXCommandsCrisisModeFlashCommandsGPIOsetting,39,COREInitializationRegistersTimers(1mSTimer&150STimer)HostInterfaceDevicesHooktoOEM,SourceCodeCore_ini.C,40,SourceCodeCore_MAIN.C,CORENormalCodeEntryMainRoutineIdleLoopServiceRoutinesServiceFlags,41,(SourceCodeCore_MAIN.C),16ServiceRoutines:service_unlock-Unlockdevicetransmissionservice_pciPrimaryHostInterface(0 x60,0 x64)service_aux_port-SendbytefromauxiliaryporttoHostservice_1mS1millisecondserviceservice_scanScanMatrixservice_send-Sendbytefromscannerkeyboardservice_pci2-SecondaryHostInterface(0 x62,0 x66)service_pci3-ThirdHostInterfaceservice_core_7Reservedservice_ext_irq-ExternalIRQservice_core_10,service_core_11Reservedservice_chk_aux-CheckExternalmouseexistenceservice_OEM_0,service_OEM_1,service_OEM_2-Reserved,42,SourceCodeCore_port6064.C,COREStandard8042CommandsIBMAT&PS/28042-CompitableStandardKBCCommandsStandardKBDCommandsStandardAUXCommands,43,SourceCodeCore_ps2.C,COREPS/2DevicesLock/unlockPS/2deviceSuspend/ResumePS/2deviceSend/Getdatato/FromPS/2device,44,SourceCodeCore_scan.C,COREScanMatrixKeyboard8x16Matrix(Row:8,Column:16)GhostKeyKeyPress/ReleaseDebounce,45,KeyboardDrawing,46,StandardMatrix,47,(SourceCodePURSCN.C),ScanMatrixKeyboard,48,(SourceCodePURSCN.SRC),GhostKey2(ormore)keyspressedonthesameROW,49,(SourceCodePURSCN.C),KeyPress/ReleaseDebounce,50,SourceCodeCore_XLT.C,COREScanCodeTranslationR/CInputTranslatetoScanCodeStoreintointernalkeybufferHotkey,51,SourceCodeCore_ACPI.C,COREACPICommandHandlerSCIGenerationSMBusProtocolHandlerACPIECSpaceAccess,52,SourceCodeCore_SMBus,Core_SMB.CCORESMBusProtocolRead/WriteSmbusbyteRead/WriteSmbusWordRead/WriteSmbusBlock,53,SourceCodeCore_DAT.C,COREInternalVariablesBITDATAExternalVariablesIDATAXDATACHIPTY

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论