ETC UR5HCSPI-06-XX-FA

USAR SPICoderTM 06 UR5HCSPI-06
USAR SPICoderTM 06
Zero-PowerTM Keyboard Encoder
and Power Management IC
Description
The UR5HCSPI-06 keyboard
encoder and power management
IC is designed specifically for
handheld PCs (H/PCs). The off-theshelf UR5HCSPI-06 will readily
work with CPUs designed for
Windows CE®, saving OEMs
significant development time and
money as well as minimizing timeto-market for the new generations
of handheld products.
Three main design features of the
UR5HCSPI-06 make it the ideal
companion for the new generation
of Windows CE® -compatible,
single-chip computers: low-power
consumption; real estate-saving
size; and special keyboard modes.
A Semtech Company
USAR H/PC ICs family
product specifications
Features
• SPI-compatible keyboard encoder
and power management IC with
other interfaces available
• Compatible with Windows CE®
keyboard specification
• Zero-PowerTM — typically
consuming less than 2µA,
between 3-5V
• Offers overall system power
management capabilities
• Compatible with “system-on silicon”
CPUs for H/PCs
• Special keyboard and power
management modes for H/PCs,
including programmable “wake-up”
keys
• Scans, debounces, and encodes
an 8 x 14 matrix and controls
discrete switches and LED
indicators
• Available in smallest 48-pin
package, measuring just 7mm x
7mm with an 0.5mm pitch
• Custom versions available
Applications
• Personal Digital Assistants (PDAs)
• Wearable Computers
• Internet Appliance
• StrongARMTM Handheld PCs
• Windows CE® Platforms
• Web Phones
Pin Assignments
33
34
_ATN
_SS
SCK
MOSI
NC
NC
MISO
WUKO
SW0
C8
C9
C10
23
22
QFP
44
36
NC
C12
C13
GIO0
_IOTEST
Vss
NC
R7
R6
R5
R4
12
11
1
UR5HCSPI-06-FB
44-pin QFP
(0.80 mm pitch)
(10x10 mm)
1
C11/_LID
C12
C13
GIO0
_IOTEST
NC
Vss
R7
R6
R5
R4
R3
TQFP
48
13
UR5HCSPI-06-FA
48-pin QFP
(0.5 mm pitch)
(7x7 mm)
Copyright 1997-2000 USAR Systems, Inc.
All rights reserved.
DOC5-SPI-06-DS-101
24
1
The UR5HCSPI-06 also offers
programmable features for wakeup keys and general purpose I/O
pins.
USAR – A Semtech Company
Datasheet
PWR_OK
NC0
OSC0
OSCI
Vcc
Vss
NC
NC
_RESET
_WKU
C7
C6
25
37
C5
C4
C3
C2
C1
C0
NC
NC
NC
R0
R1
R2
Finally, special keyboard modes
and built-in power management
features allow the USAR
SPICoderTM 06 to operate in
harmony with the power
management modes of Windows
CE®, resulting in more user
flexibility and longer battery life.
PWR_OK
NC0
OSCO
OSCI
Vcc
NC
NC
_RESET
_WKU
Vx
C7
C6
C5
C4
C3
C2
C1
C0
R0
R1
R2
R3
A unique package size of only
7mm x 7mm (the smallest 48-pin
package in the industry) fits the
tight space requirements of H/PCs.
_ATN
_SS
SCK
MOSI
MISO
WUKO
SW0
C8
C9
C10
C11/_LID
“Quasi” Zero-PowerTM consumption
(less than 2µA @ 3V), a must for
H/PCs, provides the host system
with both power management and
I/O flexibility, with almost no battery
drainage.
12
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
Functional Description, Cont
USAR — A Semtech Company
Ordering Code
Package Options
44-pin, Plastic PLCC
44-pin, Plastic QFP
44-pin, Plastic TQFP
Pitch in mm’s
1.27 mm
0.8 mm
0.5 mm
TA=-20° C to +85° C
UR5HCSPI-06-XX-FN
UR5HCSPI-06-XX-FB
UR5HCSPI-06-XX-FA
Note 1: XX=Optional Customization, XXX= Denotes Revision number
*Minimum order quantity for the TQFP may apply
Block Diagram
MISO
R0-R8
MOSI
SCK
SS
SPI
Communication
Channel
Keyboard
Scanner
ATN
GIO0
Keyboard
Matrix
&
Keyboard
State
Control
C0-C13
Programmable
I/O
PWR_OK
WKUP
IOTEST
WKU
System
Monitor
Input
Signals
Power
Management
Unit
LID
WUKO
XSW
SWO
UR5HCSPI-06
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-ds-101
2
LID Latch Monitor
Wake-Up Keys Only Signal
Switch External to Case
Switch
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
Functional Description
The UR5HCSPI-06 consists
functionally of five major sections
(see the Functional Diagram on
page 2). These are the Keyboard
Scanner and State control, the
Programmable I/O, the SPI
Communication Channel, the
System Monitor and the Power
Management unit. All sections
communicate with each other and
operate concurrently.
USAR — A Semtech Company
Pin Definitions
Mnemonic
VCC
VSS
VX
OSCI
OSCO
_RESET
PLCC
44
22
4
43
42
1
MISO
MOSI
SCK
_SS
_IOTEST
_WKU
R0-R4
R5-R7
C0-C5
C6-C7
C8-C9
34
35
36
37
24
2
13-17
19-21
12-7
6-5
31-30
C10
C11/_LID
29
28
C12
C13
GIO0
WUKO
SWO
27
26
25
33
32
_ATN
_PWR_OK
NC
NC0
38
39
3,18
23,40
41
QFP TQFP Type Name and Function
38
41
I
Power Supply: 3-5V
17
42
I
Ground
43
I
Tie to VCC
37
40
I
Oscillator input
36
39
O Oscillator output
41
45
I
Reset: apply 0V to provide orderly
start-up
29
30
O SPI Interface Signals
30
33
I
31
34
I
32
35
I
Slave Select: If not used tie to VSS
18
20
O Wake-Up Control Signals
42
46
I
8-12 10-14
I
Row Data Inputs
13-15 15-17
I
Port provides internal pull-up resistors
7-2
6-1
O Column Select Outputs:
1,44 48-47
O
26-25 27-26
O
Multi-function pins
24
25
I/O C10 & “Wake-Up Keys Only” imput
23
24
I/O C11 & Lid latch detect input
Miscellaneous functions
21
23
I/O C12
20
22
I/O C13
19
21
I/O Programmable I/O
28
29
I
External discrete switch
27
28
I
Discrete switch
Power Management Pins
33
36
O CPU Attention Output
34
37
I
Power OK Input
39-40 7-9,19
No Connects: these pins are unused
16,22 31-32,43-44
35
38
NC0 should be tied to VSS or GND
Note 1: An underscore before a pin mnemonic denotes an active low signal.
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
3
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Pin Descriptions
VCC and VSS
_IOTEST and _WKU
C10/WUKO
VCC and VSS are the power
supply and ground pins. The
UR5HCSPI-06 will operate from a
3-5 Volt power supply. To prevent
noise problems, provide bypass
capacitors and place them as
close as possible to the IC with the
power supply. VX, where available,
should be tied to Vcc.
“Input Output Test” and “Wake Up”
pins control the stop mode exit of
the device. The designer can
connect any number of active low
signals to these two pins through a
17K resistor, in order to force the
device to exit the stop mode. A
sample circuit is shown on page 15
of this document.
OSCI and OSCO
All the signals are “wire-anded.”
When any one of these signals is
not active, it should be floating
(i.e., these signals should be
driven from “open-collector” or
“open-drain” outputs). Other
configurations are possible;
contact USAR.
The C10/WUKO pin acts
alternatively as column scan output
and as an input. As an input, the
pin detects the “Wake-Up Keys
Only” signal, typically provided by
the host CPU to indicate that the
user has turned the unit off. When
the device detects an active high
state on this pin, it feeds this
information into the “Keyboard
State Control” unit, in order to
disable the keyboard and enable
the programmed wake-up keys.
OSCI and OSCO provide the input
and output connections for the onchip oscillator. The oscillator can
be driven by any of the following
circuits:
- Crystal
- Ceramic Resonator
- External Clock Signal
The frequency of the on-chip
oscillator is 2 MHz.
_RESET
A logic zero on the _RESET pin will
force the UR5HCSPI-06 into a
known start-up state. The reset
signal can be supplied by any of
the following circuits:
- RC
- Voltage monitor
- Master system reset
MOSI, MISO, SCK, _SS, _ATN
C11/_LID
R0-R 7
The R0-R7 pins are connected to
the rows of the scanned matrix.
Each pin provides an internal pullup resistor, eliminating the need for
external components.
C0-C9
C0 to C9 are bi-directional pins
connected to the columns of the
scanned matrix. When a column is
selected, the pin outputs an active
low signal. When the column is
de-selected, the pin turns into
high-impedance.
These five signals implement the
SPI interface. The device acts as a
slave on the SPI bus. The _SS
(Slave Select) pin should be tied to
ground if not used by the SPI
master. The _ATN pin is asserted
low each time the UR5HCSPI-06
has a packet ready for delivery.
For a more detailed description,
refer to the SPI Communication
Channel section on page 9.
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
4
The C11/_LID pin acts in a similar
manner to the C10/WUKO. This pin
is typically connected to the LID
latch through a 150K resistor, in
order to detect physical closing of
the device cover. When the pin
detects an active low state in this
input, it feeds this information into
the “Keyboard State Control” unit,
in order to disable keys inside the
case and enable only switches
located physically on the outer
body of the H/PC unit.
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Pin Descriptions, Cont.
The Windows CE® Keyboard
C12, C13 and GIO0
The following illustration shows a typical implementation of a Windows CE®
keyboard.
The USAR SPICoderTM 06 offers
pins C12, C13 and GIO0. C12 and
C13 are used as additional column
pins in order to accommodate
larger-size keyboards, such as the
Fujitsu FKB1406 palmtop
keyboard. GIO0 is a programmable
input/output switch; it can also be
used as a wake-up signal. The
programming of the GIO0 is
explained on page 8 of this
document.
power
_
esc
1!
2@
3#
4$
5%
6^
7&
8*
9(
0)
-
~
`
Q
W
E
R
T
Y
U
I
O
P
=+
tab
shift
A
S
Z
F
D
X
C
G
V
B
alt
ctrl
J
H
N
K
M
; :
L
, <
. >
[{
]}
\ |
' "
/ ?
enter
shift
XSW
The XSW pin is dedicated to an
external switch. This pin is
handled differently than the rest of
the switch matrix and is intended
to be connected to a switch
physically located on the outside of
the unit.
SW0
Windows CE® does not support the following keyboard keys typically
found on desktop and laptop keyboards:
INSERT
SCROLL LOCK
PAUSE
NUM LOCK
Function Keys (F1-F12)
PRINT SCREEN
The SW0 pin is a dedicated input
pin for a switch.
If the keyboard implements the Windows key, the following key
combinations are supported in the Windows CE® environment:
PWR_OK
Key Combination
Result
The PWR_OK is an active low pin
that monitors the battery status of
the unit. When the UR5HCSPI-06
detects a transition from high to
low on this pin, it will immediately
enter the STOP mode, turn the LED
off and remain in this state until the
batteries of the unit are replaced
and the signal is deasserted.
Windows
Windows+K
Windows+I
Windows+C
Windows+E
Windows+R
Windows+H
Ctrl+Windows+A
Open Start Menu
Open Keyboard Tool
Open Stylus Tool
Open Control Panel
Explore the H/PC
Display the Run Dialog Box
Open Windows CE® Help
Select all on desktop
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
5
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
“Ghost” Keys
Keyboard Scanner
In any scanned contact switch
matrix, whenever three keys
defining a rectangle on the switch
matrix are pressed at the same
time, a fourth key positioned on
the fourth corner of the rectangle
is sensed as being pressed. This
is known as the “ghost” or
“phantom” key problem.
The encoder scans a keyboard organized as an 8 row by 14 column matrix
for a maximum of 112 keys. Smaller size matrixes can also be
accommodated by simply leaving unused pins open. The UR5HCSPI-06
provides internal pull-ups for the Row input pins. When active, the encoder
selects one of the column lines (C0-C13) every 512 µS and then reads the
row data lines (R0-R7). A key closure is detected as a zero in the
corresponding position of the matrix.
Actual key presses
A complete scan cycle for the entire keyboard takes approximately 9.2 mS.
Each key found pressed is debounced for a period of 20 mS. Once the
key is verified, the corresponding key code(s) are loaded into the transmit
buffer of the SPI communication channel.
N-Key Rollover
“Ghost”
Key
Figure 1: “Ghost” or “Phantom” Key
Problem
Although the problem cannot be
totally eliminated without using
external hardware, there are
methods to neutralize its negative
effects for most practical
applications. Keys that are
intended to be used in
combinations should be placed in
the same row or column of the
matrix, whenever possible. Shift
Keys (Shift, Alt, Ctrl, Window)
should not reside in the same row
(or column) as any other keys.
The UR5HCSPI-06 has built-in
mechanisms to detect the
presence of “ghost” keys.
USAR – A Semtech Company
Datasheet
In this mode, the code(s) corresponding to each key press are transmitted
to the host system as soon as that key is debounced, independent of the
release of other keys.
When a key is released, the corresponding break code is transmitted to the
host system. There is no limitation to the number of keys that can be held
pressed at the same time. However, two or more key closures, occurring
within a time interval of less than 5mS, will set an error flag and will not be
processed. This feature is to protect against the effects of accidental key
presses.
Data Command Buffer
The UR5HCSPI-06 implements a data buffer, which contains the key
code/command bytes waiting to be transmitted to the host. If the data
buffer is full, the whole buffer will be cleared and an "Initialize" command
will be sent to the host. At the same time, the keyboard will be disabled
until the "Initialize" or "Initialize Complete" command from the host is
received.
Power Management Unit
In most keyboard subsystems, the power consumption is determined by
the use of the LEDs. In these situations, USAR has implemeneted two
modes of operation to minimize power drain. (For more information, see
page 10 on the USAR UR5HCSPI datasheet - doc5-spi-ds-100.pdf.)
However, since the USAR SPICoderTM 06 does not provide LED ouput/input,
this is not a concern.
DOC5-SPI-06-DS-101
6
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Keyboard States
These states of operation refer only
to the keyboard functionality and,
although they are related to power
states, they are also independent
of them.
Exit Conditions: PWR_OK = 0 ->
"Send No Keys"(WUKO=1) AND
(Key Press) -> "Send Wake-Up
Keys Only"(LID = 0) AND
(WUKO=0) AND (Key Press) ->
"Send XSW Key Only"
Description: This is the UR5HCSPI06’s normal state of operation,
accepting and transmitting every
key press to the system. This state
is entered after the power-on and is
sustained while the unit is being
used.
“Send Wake-Up Keys Only”
Entry Conditions: (WUKO=1) AND
(Key or Switch press)
Exit Conditions: Soft Reset ->
“Send All Keys”PWR_OK = 0 ->
“Send No Keys”
Description: This state is entered
when the user turns the unit off. A
signal line driven by the host will
notify the UR5HCSPI-06 about this
state transition. While in this state,
the UR5HCSPI-06 will transmit only
keys programmed to be wake-up
keys to the system. It is not
necessary for the UR5HCSPI-06 to
detect this transition in real time,
since it does not affect any
operation besides buffering
keystrokes.
USAR – A Semtech Company
Datasheet
Send All
Keys
(LID = 1) AND (WUKO=0)
AND Key Press
"Send All Keys"
Entry Conditions: Power on reset,
soft reset, PWR_OK =1,
{(LID=1) AND (WUKO=0)}
(LID = 0) AND (WUK0=0)
AND Key Press
Send
XSW Key
Only
WUKO=1
AND Key Press
WUKO =1
AND Key
Press
(PWR_OK =1)
AND (LID = 0)
AND (WUKO=0)
AND Key Press
Soft Reset
PWR_OK ↓
Send Wake
Up Keys
Only
PWR_OK ↓
(PWR_OK =1)
AND (WUKO=0)
AND (LID=1)
AND Key Press
PWR_OK = 0
PWR_OK ↓
(PWR_OK =1) AND Key Press
AND (WUKO = 1)
Send
No Keys
Figure 2: The UR5HCSPI-06 implements four modes of keyboard and switch operation.
3. While in this state all interrupts
are disabled. The UR5HCSPI-06
will exit this state on the next
interrupt event that detects the
PWR_OK line has been deasserted.e
“Send No Keys"
Entry Conditions: PWR_OK
transition from high to low
Exit Conditions: (PWR_OK = 1)
AND (Matrix key pressed OR
Switch OR _WKUP)
“Send XSW Key Only"
Description: This state is entered
when a PWR_OK signal is asserted
(transition high to low), indicating a
critically low level of battery
voltage. The PWR_OK signal will
cause an interrupt to the
UR5HCSPI-06, which guarantees
that the transition is performed in
real time. While in this state, the
UR5HCSPI-06 will perform as
follows:
1. The UR5HCSPI-06 will enter the
STOP mode for maximum energy
conservation.
2. Stop mode time-out entry will be
shortened to further conserve
energy.
DOC5-SPI-06-DS-101
7
Entry Condition: (LID=0) AND
(WUKO=0) AND (Key Press)
Exit Condition: (LID=1) AND
(WUKO=0) AND (Key Press) ->
“Send All Keys”PWR_OK = 0 ->
“Send No Keys”
(WUKO = 1) AND (Key Press) ->
“Send Wake Up Keys Only”
Description: This state is entered
upon closing the lid of the device.
While in this state, the encoder will
transmit only the XSW key, which is
located outside the unit. This
feature is designed to
accommodate buttons on the
outside of the box, such as a
microphone button, that need to be
used while the lid is closed.
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Key Codes
GIO0 Pin
Key codes range from 01H to 73H
and are arranged as follows:
Make code = column_number * 8 +
row_number + 1
The UR5HCSPI-06 a general purpose pin that can be programmed as
Input, Output, Debounced or Switch Input. The programmable I/O pin can
be configured to the desired mode through a command from the system.
After the I/O pin is configured, the host system can read or write data to it.
If the pin is configured as a Debounced Switch, it will return scan codes.
Break code = Make code OR 80H
Input Mode
Discrete Switches transmit the
following codes:
While in the Input Mode, the GIO0 pin will detect input signals and report
the input status to the system as required.
XSW = 71H
Output Mode
SW0 = 72H
In the Output Mode, the UR5HCSPI-06 will control the output signal level
according to the system command. When the pin is set at Output Mode,
the default output is low.
GIO0 = 73H
Switch Input Mode
Pin Configurations
When prototyping, caution should
be taken to ensure that
programming of the GIO0 pin does
not conflict with the circuit
implemented. A series protection
resistor is recommended to be used
for protection over improper
programming of the pin.
In Switch Input Mode, the UR5HCSPI-06 will generate an individual make
key code when the switch closes (pin goes low), and a break key code
when the switch returns to open (pin goes to high). The switches generate
key codes outside of those generated by the key matrix, from 71H - 73H.
When the switch closes, the USAR SPICoderTM will not fall asleep.
Input
Output
GIX
GIX
After a power-on or soft reset, GIO0
defaults to the Input state.
Circuit
determined by
the specific
application
The drawing to the right illustrates
the suggested interface to the
general purpose input/output pin.
Series
protection
resistor
Circuit
determined by
the specific
application
Switch
150K
_WKU
LED
GIX
_IOTEST
15K
GIX
Wake-up
interrupt
i
Figure 3: The suggested interface to the general purpose
input/output pin
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
8
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
SPI Communication Channel
SPI data transfers can be performed at a maximum clock rate of 500 KHz. When the UR5HCSPI asserts the _ATN
signal to the host Master, the data will have already been loaded into the data register waiting for the clocks from
the master. The Slave Select (SS) line can be tied permanently to Ground if the UR5HCSPI is the only slave device
in the SPI network. One _ATN signal is used per each byte transfer. If the host fails to provide clock signals for
successive bytes in the data packet within 120 mS, the transmission will be aborted and a new session will be
initiated by asserting a new ATN signal. In this case, the whole packet will be re-transmitted.
If the SPI transmission fails 20 times consecutively, the synchronization between the master and slave may be lost.
In this case, the UR5HCSPI will enter the reset state.
The UR5HCSPI implements the SPI communication protocol according to the following diagram:
CPOL = 0 ---------- SCK line idles in low state
CPHA = 1 ---------- SS line is an output enable control
_ATN SIGNAL
SCK (CPOL=0)
_SS
SAMPLE INPUT
DATA OUTPUT
(CPHA=1)
?
MSB
BIT 6
BIT 5
BIT 4
BIT 3
BIT 2
BIT 1
LSB
When the host sends commands to the keyboard, the UR5HCSPI-06 requires that the minimum and maximum
intervals between two successive bytes be 200 µS and 5 mS respectively.
Figure 5: SPI Communication Protocol
_ATN
SCK
_MISO
120ms Max
Figure 6: Transmitting Data Waveforms:
_WKU
125ns Min
SCK
MOSI
MISO
5ms Min, 150ms Max
200us Min
5ms Max
Figure 7: Receiving Data Waveforms
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
9
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Data/Command Buffer
Power Management Unit
The UR5HCSPI-06 implements a
data buffer that contains the key
code/command bytes waiting to be
transmitted to the host. If the data
buffer is full, the whole buffer will
be cleared and an "Initialize"
command will be sent to the host.
At the same time, the keyboard will
be disabled until the "Initialize" or
"Initialize Complete" command from
the host is received.
The UR5HCSPI-06 supports two modes of operation. The following table
lists the typical and maximum supply current (no DC loads) for each mode
at 3.3 Volts (+/- 10%).
Current
RUN
Typical
1.5 1
Max
3.0
Unit
mA
STOP
2.0
20
µA
Description
Entered only while data/commands
are in process and if the LEDs
are blinking
Entered after 125 mS of inactivity if
LEDs islow
Power consumption of the keyboard sub-system will be determined
primarily by the use of the LEDs. While the UR5HCSPI-06 is in the STOP
mode, an active low Wake-Up Output from the Master must be connected
to the edge-sensitive _WKU pin of the UR5HCSPI-06. This signal will be
used to wake up the UR5HCSPI-06 in order to receive data from the Master
host. The Master host will have to wait a minimum of 5 mS prior to
providing clocks to the UR5HCSPI-06. The UR5HCSPI-06 will enter the
STOP mode after a 125 mS period of keypad and/or host communications
inactivity, or anytime the PWR_OK line is asserted low by the host. Note
that while one or more keys are held pressed, the UR5HCSPI-06 will not
enter the STOP mode until every key is released.
Figure 6: The Power States of the UR5HCSPI-06
-
Keyboard
Switch
Input transaction
System wake-up
Stop
After Reset
or 125 mS of
inactivity
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
Run
- After 125 mS of
inactivity and LEDs
are off
10
While processing
current task
and/or LED(s)
are active
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
LRC Calculation, Cont.
Commands from the UR5HCSPI-06 to the Host, Cont.
The following C language function
is an example of an LRC
calculation program. It accepts
two arguments: a pointer to a
buffer and a buffer length. Its
return value is the LRC value for
the specified buffer.
Resend Request
<CONTROL>
80H
<RESEND>
A5H
<LRC>
25H
The UR5HCSPI-06 will send this Resend Request Command to the host
when its command buffer is full, or if it detects either a parity error or an
unknown command during a system command transmission.
char Calculate LRC (char buffer,
size buffer)
{
char LRC;
size_t index;
/*
* Init the LRC using the first two
message bytes.
*/
LRC = buffer [0] ^ buffer [1];
/*
* Update the LRC using the
remainder of the buffer.
*/
for (index = 2; index < buffer; index
++)
LRC ^ = buffer[index];
/*
* If the MSB is set then clear the
MSB and change the next most
significant bit
*/
if (LRC & 0x80)
LRC ^ = 0xC0;
/* * Return the LRC value for the
buffer.*/}
Input/Output Mode Status Report
<CONTROL>
80H
<MODIO>
A7H
<IO NUMBER>
xxH
IO number, 0
<IO MODE>
xxH
IO mode: (0=input; 1=output;
2=switch; 3=LED )
<LRC>
xxH
The UR5HCSPI-06 will send the I/O Mode Status Report to the host when it
receives the I/O Mode Status Request Command from the host, in order to
report the status of the GIO0 pin.
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
Input/Output Data Report
<CONTROL>
80H
<MODIO>
A8H
<IO NUMBER>
xxH
IO number, 0
<IO DATA>
xxH
IO data: ( 0=low, 1=high )
<LRC>
xxH
The UR5HCSPI-06 will send the I/O Data Report to the host when it
receives the I/O Data Request Command from the host.
11
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Commands from the Host to the UR5HCSPI-06
Commands from the Host - Summary
Command Name
Code
Initialize
AOH
Initialization Complete
A1H
Heartbeat Request
A2H
Identification Request
F2H
Resend Request
A5H
Input/Output Mode Modify
A7H
Output Data to I/O pin
A8H
Set Wake-Up Keys
A9H
Description
Causes the UR5HCSPI-06 to enter the power-on state
Issued as a response to the “Initialize Request”
The UR5HCSPI-06 will respond with “Heartbeat Response”
The UR5HCSPI-06 will respond with “Identification Response”
Issued upon error during the reception of a packet
The UR5HCSPI-06 will modify or report the status of the GIO0 pin
The UR5HCSPI-06 will output a signal to the GIO0 pin
Defines which keys are “wake-up” keys
Each command to UR5HCSPI-06 is composed of a sequence of codes. All commands start with <ESC> code
(1BH) and end with the LRC code (bitwise exclusive OR of all bytes).
Commands from the Host to the UR5HCSPI-06 Analytically
Initialize
<ESC>
1BH
<INIT>
A0H
<LRC>
7BH
When the UR5HCSPI-06 receives this command, it will clear all buffers and return to the power-on state.
Initialization Complete
<ESC>
1BH
<INIT COMPLETE>
A1H
<LRC>
7AH
When the UR5HCSPI-06 receives this command, it will enable transmission of keyboard data. Keyboard data
transmission is disabled if the TX output buffer is full (32 bytes). Note that if the transmit data buffer gets full the
encoder will issue an "Initialize Request" to the host.
Heartbeat Request
<ESC>
1BH
<ONLINE>
A2H
<LRC>
79H
When the UR5HCSPI-06 receives this command, it will reply with the Heartbeat Response Report.
Identification Request
<ESC>
<ID>
<LRC>
The UR5HCSPI-06 will reply to
USAR – A Semtech Company
Datasheet
1BH
F2H
29H
this command with the Identification Response Report.
DOC5-SPI-06-DS-101
12
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Commands from the Host to the UR5HCSPI-06, Cont.
Set Wake-Up Keys
<ESC>
1BH
<SETMATRIX>
A9H
<COL0>
xxH
(R7
R6 R5 R4 R3 R2 R1 R0 Bitmap: 0enabled, 1-disabled)
<COL1>
xxH
<COL2>
xxH
<COL3>
xxH
<COL4>
xxH
<COL5>
xxH
<COL6>
xxH
<COL7>
xxH
<COL8>
xxH
<COL9>
xxH
<COL10>
xxH
<COL11>
xxH
<COL12>*
xxH
(*UR5HCSPI-06-06-XX only)
<COL13>*
xxH
(*UR5HCSPI-06-06-XX only)
<SWITCHES>
xxH
(where SWITCHES bit assignments
are = x x x x x GIO0 SW0 XSW)
<LRC>
xxH
I/O Mode Modify
<ESC>
1BH
<MODIO>
A7H
<IO NUMBER>
xxH
IO number: 0
<IO MODE>
xxH
IO mode: ( 0=input, 1=output,
2=switch, 3=LED, 4=current mode state
request)
<LRC>
xxH
When UR5HCSPI-06 receives this command, it will change the I/O pin's
mode accordingly. If the <IO MODE> =4, the UR5HCSPI-06 will send the
I/O Mode Status Report to the host.
Output Data to I/O Pin:
<ESC>
1BH
<MODIO>
A8H
<IO NUMBER>
xxH
IO number: 0
<IO DATA>
xxH
IO data: ( 0=low, 1=high, 2=current
I/O data request)
<LRC>
xxH
When UR5HCSPI-06 receives this command, it will change the value of the
output pin accordingly. If the addressed pin is not configured as an output
pin, the command will be ignored. If <IO DATA> =2, the UR5HCSPI-06 will
respond by issuing the I/O Data Status Report to the host.
The "Set Wake-Up Keys" command
is used to disable specific keys
from waking up the host. Using
this command, the host can set
only a group of keys. For this IC,
data in bytes <COL12> and <COL
13> is not relevant, but these two
bytes must be present in the
packet in order to preserve the
packet structure.
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
13
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Key Map for the Fujitsu FKB1406
0
1
LAlt
`
0
2
\
Columns (C0–C13)
6
7
8
3
4
5
LCtrl
FN
Esc
LSft
1
F1
2
F2
T
Del
9
F9
Y
9
10
11
12
0
F10
U
Pad 4
NmLk
I
Pad 5
+
Bk
Enter
13
BkSp
RShift
PgDn
Rows (R0–R6)
1
TAB
Q
W
Z
CapLk
E
R
O
Pad 6
P
Ins
[
Pause
]
ScrLk
K
Pad 2
L
Pad 3
;
PrtScr
‘
SysReq
PgUp
G
H
J
Pad 1
/
/
Home
Spc
2
3
A
S
D
F
4
X
C
V
B
Pad 0
N
M
,
.
3
F3
4
F4
5
F5
6
F6
7
F7
8
F8
Prog
5
6
End
Keyboard Layout for Fujitsu FKB1406
Esc
@
#
$
%
^
&
1 F2
2 F2
3 F3
4 F4
5 F5
6 F6
7 F7
Q
Del
7
!
Cap
Lock
Fn
Shift
Ctrl
Alt
W
A
E
S
D
Z
X
~
`
:
;
USAR – A Semtech Company
Datasheet
R
C
T
F
V
Y
G
B
*
8
8 F8
U
H
N
J
9 F9
I
4
9
(
)
0 F10
O
5
_
+
- Num = Bk
Lk
*
P
6
Ins
K2 L3
1
M0
<
,
..
>
:
;
{
}
[ Pause
] Scr
Lk
_
+
"
Prt
Scr
'
?
/
/
Sys
Req
Enter
Shift
Home PgUp PgDn
DOC5-SPI-06-DS-101
14
Prog
End
MISO
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
_WKUP
15K
150K
38
18
42
37
GND
NC0
VSS
Vss
PWR_OK
ATN
46
IOTEST
20
OSC1
40
OSC2
39
15
2MHz
R7
R6
R5
R4
R3
R2
R1
R0
XSW
SW0
GIO0
C0
C1
C2
C3
C4
C5
C6
C7
C8
C9
C10/WUKO
C11/LID
C12
C13
WKU
Alternatively a 2MHz CMOS
signal can be tied directly
to OSC1
1MOhm
UR5HCSPI-06-FA
Ceramic resonator circuit
with built in capacitors,
like AVX PBR C-2.00BR
Power OK Signal
Attention Signal 36
Tied to Gnd
if not used
SS
SCK
RESET
PWR_OK
34
Slave Select 35
MOSI
MISO
VDD
_ATN
SCK
33
Vin
45
30
Vout
MOSI
TC54C4302ECB
Alternatively an RC circuit
or Master Reset Signal
can be used
41
Power OK Signal
VCC
29
28
21
6
5
4
3
2
1
48
47
27
26
25
24
23
22
17
16
15
14
13
12
11
10
15K
15K
Tie to Vcc or GND if
not used
1.5M
1.5M
DISCRETE
SWITCHES
COLUMN
OUTPUTS
TO SWITCH
MATRIX
ROW
INPUTS
WUKO
_LID
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Sample Configuration-UR5HCSPI-06-FA
Wake Up Signal
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
Electrical Specifications
Absolute Maximum Ratings
Ratings
Supply Voltage
Input Voltage
Current Drain per Pin
(not including Vss or Vdd)
Operating Temperature
UR5HCSPI-06
Storage Temperature Range
Thermal Characteristics
Characteristic
Thermal Resistance
Plastic
PLCC
Symbol
Vdd
Vin
I
Value
-0.3 to +7.0
Vss -0.3 to Vdd +0.3
25
Unit
V
V
mA
Ta
T low to T high
-40 to +85
-65 to +150
°C
Value
Unit
°C per W
Tstg -
Symbol
Tja
°C
60
70
DC Electrical Characteristics (Vdd=3.3 Vdc +/-10%, Vss=0 Vdc, Temperature range=T low to T high unless otherwise noted)
Characteristic
Symbol
Min
Typ
Max
Unit
Output Voltage (I load<10µA)
Vol
0.1
V
Voh
Vdd–0.1
Output High Voltage (I load=0.8mA)
Voh
Vdd–0.8
V
Output Low Voltage (I load=1.6mA)
Vol:
0.4
V
Input High Voltage
Vih
0.7xVdd
Vdd
V
Input Low Voltage
Vil
Vss
0.2xVdd
V
User Mode Current
Ipp
5
10
mA
Data Retention Mode (0 to 70°C)
Vrm
2.0
V
Supply Current (Run)
Idd
1.53
3.0
mA
(Wait)
0.711
1.0
mA
(Stop)
2.0
20
µA
I/O Ports Hi-Z Leakage Current
Iil
+/-10
µA
Input Current
Iin
+/- 1
µA
I/O Port Capacitance
Cio
8
12
pF
Control Timing (Vdd=3.3 Vdc +/-10%, Vss=0 Vdc, Temperature range=T low to T high unless otherwise noted)
Characteristic
Symbol
Min
Max
Unit
Frequency of Operation
fosc
MHz
Crystal Option
2.0
External Clock Option
dc
2.0
Cycle Time
tcyc
1000
ns
Crystal Oscillator Startup Time
toxov
100
ms
Stop Recovery Startup Time
tilch
100
ms
RESET Pulse Width
trl
8
tcyc
Interrupt Pulse Width Low
tlih
250
ns
Interrupt Pulse Period
tilil
*
tcyc
OSC1 Pulse Width
toh, tol
200
ns
*The minimum period tlil should not be less than the number of cycle times it takes to execute the interrupt service routine plus 21 tcyc.
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
16
USAR SPICoderTM 06 UR5HCSPI-06
USAR H/PC ICs family
product specifications
USAR — A Semtech Company
USAR SPICoderTM Bill of Materials
UR5HCSPI-06-FA
Quantity
3
1
1
2
1
1
Manufacture r
Generic
Generic
Generic
Generic
TELCOM
AVX
Part#
15K
150K
1M
1.5K
TC54VC4302ECB713
TC54VC2702ECB713
PBRC-2.00BR
Description
15K Resistor
150K Resistor
1M Resistor
1.5 Resistors
IC Volt Detector CMOS 4.3V SOT23, for 5V Operation
IC Volt Detector CMOS 2.7V SOT23, for 3.3V Operation
2.00MHZCeramic Resonator with Built in Capacitors, SMT
Revised 7/14/99
USAR – A Semtech Company
Datasheet
DOC5-SPI-06-DS-101
17
A Semtech Company
Description
For sales information
and product literature,
contact:
USAR – A Semtech Company
568 Broadway
New York, NY 10012
[email protected]
http://www.usar.com
212 226 2042 Telephone
212 226 3215 Telefax
In Japan:
Semtech Japan
Tel: 81-45-948-5925
Fax: 81-45-948-5930
In Taiwan:
Semtech Asia/Pacific Sales
Tel: 011-886-2-2748-3380
Fax: 011-886-2-2748-3390
Koryo Electronics Co., Ltd.
Telephone +886-2-2698-1143
E-mail [email protected]
In Korea:
Semtech Korea
Tel: 011-82-2-527-4377
Fax: 011-82-2-527-4376
In Europe
Semtech Limited
Tel: +44-1592-630350
Fax: +44-1592-774781
Copyright 1997-2000 USAR – A Semtech Company. All
rights reserved. SPICoder and Zero-Power are trademarks
of USAR Systems, Inc. USAR and the USAR logo are
registered trademarks of USAR – A Semtech Company. All
other trademarks belong to their respective companies.
INTELLECTUAL PROPERTY DISCLAIMER
This specification is provided "as is" with no warranties
whatsoever including any warranty of merchantability,
fitness for any particular purpose, or any warranty
otherwise arising out of any proposal, specification or
sample.
A license is hereby granted to reproduce and distribute
this specification for internal use only. No other license,
expressed or implied to any other intellectual property
rights is granted or intended hereby. Authors of this
specification disclaim any liability, including liability for
infringement of proprietary rights, relating to the
implementation of information in this specification. Authors
of this specification also do not warrant or represent that
such implementation(s) will not infringe such rights.