Documente Academic
Documente Profesional
Documente Cultură
Sunny
m
Datasheet
.co
Revision 0.1
fix
May 2007
se
.ro
w
w
w
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.
Revision
Revision Description Date
0.1 1. First Release 2007/5/22
CONTENT................................................................................................................0
1. FEATURES ..........................................................................................................2
4.2.4 EGPWU..................................................................................................13
4.2.4.1 EGPWU Functional Descriptions........................................................................... 13
4.2.4.2 EGPWU Registers Descriptions............................................................................. 13
5. ELECTRONIC CHARACTERISTICS.................................................................13
5.1 LA ..................................................................................................................13
5.1.1 lb ............................................................................................................13
5.2 LX ..................................................................................................................13
5.2.1 ly ............................................................................................................13
6. PACKAGING INFORMATION ...........................................................................13
1. Features
1.1 Feature Summary
ENE Serial Bus Interface (ESB)
• An EPBM accepts the ESD control signal and generates the control signal for EPB
devices.
• All inputs equipped with pull-up, high/low active, edge/level trigger selection
• All General Purpose Input pins can be configured to generate interrupts or wake-up
events
b. Cascade mode
The maximum of eight devices
KC3810
Core (The core of ESB device)
REG
(configuration
register
description)
EPBM
GCLK PROT (ENE
(Gate (Protocol Peripheral
Clock) engine) Bus
Master)
CPROT
(Cascade
Protocol
engine)
CAS_DAT
TEST_EN
GPIO0C/
GPIO08/
GPIO0B
GPIO0A
GPIO09
PWM0
17
16
15
14
13
18
1
6
ESB_DAT
RST#
ESB_CLK
GPIO00
GPIO01
GPIO02
Figure 3.1
There are several fields in the packet. Not every field used in the specified packet. For example,
there is no data field in the Read/Interrupt command packet. The following table 3.1 explains the
meaning of fields.
Field Description
S Start field, always be bit zero, means the starting of the packet
CMD Host command to device. There are three command available, Interrupt mode,
read and write command. The detailed commands will be described at latter
section.
Address The address to access the external address. Only the length of bank(16 bytes)
can be access in one external device. The address is defined in the external
chip, so there is no definition or setting for the host side.
Data The data to write into the external device. Only the write command will use the
field. The data field should be keep as 8 bit zero if read command is sent.
E End bit is always be bit one. The bit means the ending of the packet.
Table 3.1
Figure 3.2
Fields for the interrupt command is different from the fields used in the read/write command.
There is no data field for the interrupt command. There are also some special fields dedicated for
the response packet of interrupt from the device. The following table 3.2 describes fields being
used in the packet of the interrupt command.
Field Description
S Start field, always be bit zero, means the starting of the packet
CMD Host command to device. There are three command available, Interrupt mode,
read and write command. Now it's for interrupt command.
ADDR The field put the identical number for the external chip. For example, if there is
one external chip connected, the address should be keeping 8 bit zero.
E End bit is always be bit one. The bit means the ending of the packet.
Table 3.2
Depending on the spec, since the packet format of interrupt from the host changed during the
transmission, the state machine of the device need to take care this and do corresponding state
changes to judge the correctness of the packet length and format.
The following figure 3.3 shows the timing relation of reset protocol. The device client needs to
judge if the host sends the interrupt or reset command.
Figure 3.3
Figure 3.4
Command Description
00b Interrupt query. The behavior is the same as SIRQ of LPC in normal mode.
Quiet mode is N/A at current.
11b Reserved.
Table 3.3
The host also needs to know which device will be connected. The information of locations of
each external device must be set well to make the correct connection between the host and the
device.
Figure 3.5
If there is a read command received from the host, the device will response with normal format
like the above one. If a write command is received, there is needless for the device to response.
Usually, the host will issue read command to verify whether write command success or not. The
following table 3.4 the field description of the response packet from the device.
Field Description
S Start bit. It is 1 bit zero, means the start of the response packet.
E End bit, the 1 bit one, indicating the end of the packet.
Table 3.4
If there have two devices connect with ESB bus. When host issue read command to the one
device. Another one device will waiting for 14 cycles of the ESB clock. The waiting state is the one
device response packet to host.
Figure 3.6
IRQ0~3 are determined by bits F2.2~F2.0 that are Configuration Register
IRQ should be Low if no interrupt happens, otherwise it should be high. ESB data is high if there
is no device existing. There are turn-around (TR) between IRQ0~IRQ3. However, the master or
slave device should not drive ESB data line during the turn-around time.
Figure 3.7
4. Registers Descriptions
All registers in KC3810 GPIO Expander Controller can be accessed via ESB (ENE Serial Bus)
bus by EC/KBC 925/926. ENE’s EC/KBC 925/926 access the KC3810’s registers like its own
internal registers.
4.2.2 EGPIO
4.2.2.1 EGPIO Input / Output Control Structure
GPIOFS
Alt. Output Enable
1
GPIOOD
0
GPIOOE 0
GPIOD 0 OE
OUTPUT PIN
Alt. Output 1
Output Buffer
GPIOFS
4.2.3 EPWM
4.2.3.1 EPWM Functional Descriptions
There are four PWM channels with 8-bit resolution.
The PWM Cycle Length defines the PWM cycle time in setting clock source. The length of PWM
pulse high period is defined by PWM High Period Length register and it should be less than Cycle
Length.
The following shows formula of the PWM cycle and high period length.
N
Cycle = PWM Clock x 2 x (FF+1)
N
High Period Length = PWM Clock x 2 x (High Period +1)
The N is determined by bits 82.3~82.0 that is EPWMHPC. The High period is determined by
register 84~87 that are EPWMHIGH0~EPWMHIGH3.
4.2.4 EGPWU
4.2.4.1 EGPWU Functional Descriptions
Each GPIO with GPI pin can generate event (interrupt or wakeup). The GPI input can be set as
Level or Edge trigger or Change trigger. Polarity bit setting will affect Level and Edge trigger, but
no meaning to Change trigger.
5. Electronic Characteristics
5.1 la
5.1.1 lb
5.2 lx
5.2.1 ly
6. Packaging Information