English
Language : 

MEC1322 Datasheet, PDF (119/456 Pages) Microchip Technology – Keyboard and Embedded Controller for Notebook PC
MEC1322
some operations as a result. When it is completed processing the packet, the EC can inform the Host, either
through a message in the EC-to-Host channel or by triggering an event such as an SMI directly. If return results
are required, the EC can write the results into the Read/Write region, which the Host can read directly when it is
informed that the EC has completed processing. Depending on the command, the operations could entail update
of virtual registers in the 32-bit internal address space, reads of any register in the EC address space, or writes of
any register in the EC address space. Because there are two regions that are defined by the base registers, the
memory used for the communication packet does not have to be contiguous with a set of virtual registers.
Because there are two Embedded Memory Interface memory regions, the Embedded Memory Interface cannot be used
for more than two of these functions at a time. The Host can request that the EC switch from one function to another
through the use of the Host-to-EC mailbox register.
The Application ID Register is provided to help software applications track ownership of an Embedded Memory Inter-
face. An application can write the register with its Application ID, then immediately read it back. If the read value is not
the same as the value written, then another application has ownership of the interface.
Note:
The protocol used to pass commands back and forth through the Embedded Memory Interface Registers
Interface is left to the System designer. Microchip can provide an application example of working code in
which the host uses the Embedded Memory Interface registers to gain access to all of the EC registers.
9.9 Runtime Registers
The registers listed in the Runtime Register Summary table are for a single instance of the EMI. The addresses of each
register listed in this table are defined as a relative offset to the host “Base Address” defined in the Runtime Register
Base Address Table.
TABLE 9-5: RUNTIME REGISTER BASE ADDRESS TABLE
Block Instance
Instance
Number
Host
Address Space
Base Address (Note 9-1)
EMI
EMI
Note 9-1
0
EC
32-bit internal
400F_0000h
address space
0
LPC
I/O
Programmed BAR
The Base Address indicates where the first register can be accessed in a particular address space
for a block instance.
TABLE 9-6:
Offset
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
RUNTIME REGISTER SUMMARY
Register Name (Mnemonic)
HOST-to-EC Mailbox Register
EC-to-HOST Mailbox Register
EC Address LSB Register
EC Address MSB Register
EC Data Byte 0 Register
EC Data Byte 1 Register
EC Data Byte 2 Register
EC Data Byte 3 Register
Interrupt Source LSB Register
Interrupt Source MSB Register
Interrupt Mask LSB Register
Interrupt Mask MSB Register
Application ID Register
 2014 - 2015 Microchip Technology Inc.
DS00001719D-page 119