
~
·-
'
'"'"'~
...
,
;.,,
(..,,.&.~o..-
,~
...
-c.!
..
:::.,~~
3.5 GRAPHIC TABLET/TOUCH SCREEN specification
3.5.1
Data rate
Baudrate: 1200 baud.
3.5.2
Data
flow
During
normal
operation
(RTS
asserted):
• Data
is
sent
to the CD-i player via
RXD.
•
The
4 byte data packet
is
sent
to the
CD
-i player continuously
when
the graphic tablet
mouse
or
pen
is
on
the tablet's active
area.
1 • If the
mouse
or
pen
is
not
on
the active area, the graphic
tablet
should
not
send
any
data.
• Every time a
button
changes
state
(buttonl,
button2
and
/
or
pendown),
a 4 byte data
packet
is
sent
to the CD-i player.
• An
on
going data
packet
transmission
should
not
be
interrupted by a
button
state
change
or
a
mouse/pen
position
change.
3.5.3
Data
format
• 1 startbit (SD.
• 7 databits
(LSB
first).
• 2 stopbits (SP).
_J
1°1
112131415151 r
ST
SP
SPST
3.6 CD-i KEYBOARD specification
3.6.1
Data rate
Baudrate: 1200 baud.
3.6.2
Data
flow
• Data flow during normal operation:
• Every time there
is
a keyboard button state
change
the
keyboard
sends
its current state (last
pressed
key
code
or
release key
code
and
the special key (•) status) in a 2
byte data
packet
to the CD-i player via pin 2
of
the
connector.
(•) special keys: Shift, Capslock, Supershift
and
Control.
• If there
is
no
button
state
change
, the
keyboard
should
not
send
any 2 byte keyboard data to the CD-i player.
• If
one
or
more
of
the special keys are
pressed
or
released, the keyboard
sends
the 2 byte data
packet
with its current special key status, extension bits = 1
and
Key-code = $00.
• Every time a key
is
released
(no
buttons pressed), the
keyboard
sends
the following data:
S3-S0:
0000
Ml-MO:
01
K7-K0:
00000000
This gives the following result: first byte $82
second
$00.
3.6.3
Data format:
d7
1st 1
2nd
0
_J
I
DI
1
I21 31 415I
6I
7 I r
ST
SPST
d6
S3
K6
dS
S2
KS
cl4
Sl
K4
d3
so
K3
d2
Ml
K2
ell d0
MO
K7
Kl
KO
d6
dS
d4 d3 d2
dl
d0
Byte 0 1
btl
bt2
X9
XS
X7
X6
Byte 1 0
pd
0
Y9
YS
\;
Y6
Byte 2 0
XS
X4
X3
X:2
Xl
XO
Byte 3 0
YS
Y4
Y3 Y2
YI
YO
•
btl
=
buttonl
: 1 =
pressed
0 = not pressed.
• bt2 = button2 : 1 =
pre
s
sed
0 = not pressed.
•
pd
=
pen
down
:1 =
mouse
/
pen
0 =
mouse
.'
pen
on
active area not
on
active area.
For tablets with switches built into the
pen
, these switches will
be
identified as follows:
(FFGB: A VII.2-18) switch
1:
in
tip
of
pen
switch2:
on
side
of
pen.
Switch 1
and
switch 2 are equivalent to buttons 1
and
2
respectively.
•
X9
..
X0:
• 10 bit
abso
lute horizontal position.
• Outermost left position: S000.
•
Outermost
right position:
$3FF.
•
Y9
..
Y0:
• 10 bit absolute vertical position.
• Outermost
upper
position: $000.
• Outermost
lower
position:
S3FF.
Note: for touch
screen
btl
is
equa
l to bt2
and
pen
down
is not
relevant.
•
S0-S3:
Status
of
the special keys :
•
SO:
Shift
buttonls)
pressed
when
set.
• Sl: CapsLock =
on
when
set.
•
S2:
Supershift
button(
s)
pressed
when
set.
•
S3:
Control button(s)
pressed
when
set.
•
MO-Ml:
Extension bits :
• 0 0: Standard Character set (Green Book).
• 0 1 : Character
set
1 (if the keycode =
S00
then
only
special keys
are
pressed
.
• 1
0:
Character
set
2 (Future use).
• 1
1:
Character set 3 (Future use).
•
K0-K7
Key-code. According to
char
acter set
ISO
8859-1
or
an
extended
character set
depending
on
the
J\10
and
:-.11
bits.
• Data Range
(M&K
bits):
• $000 -S0FF: Standard character set (FFGB VI-3).
• $100 : Keycode if key released Keycode for special
key(s) status.
•
$101
-
SlFF:
Character set
l.
• $200
~
$2FF: Character set 2 (Future use).
• $300 -
S3FF
: Character set 3 (Future use).
• Function
CAPSLOCK
:
• Capslock only affects the alphabetical
keYs.
• Capslock = off:
normal=
lo\\·
er
case lS61-S-..\) shifred=
upper
case ($-il-SSA).
• Capslock = on: normal =
upper
case (541-SSA) shifted=
lower case (S61-S7A).
13