Oeka Kids tablet: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Create the page, pointing to Q's description in the forum.)
 
(Adding the information from the forum topic.)
Line 1: Line 1:
This page is a stub. The best information we have on the Oeka Kids tablet is currently in [http://nesdev.parodius.com/bbs/viewtopic.php?p=19454#19454 the forum]
This page is a stub. The best information we have on the Oeka Kids tablet is currently in [http://nesdev.parodius.com/bbs/viewtopic.php?p=19454#19454 the forum]. As such, this information '''may be incorrect''', but it seems to be a working implementation.
 
=== Input ($4016 write) ===
 
7  bit  0
---- ----
xxxx xxAS
        ||
        |+- Strobe (0 = Latch, 1 = Read back)
        +-- Advance to next bit
 
To advance to the next bit, set A to 0 and then to 1. Bits can only be read while S is set to 1.
 
=== Output ($4017 read) ===
 
7  bit  0
---- ----
xxxx xDSx
      ||
      |+-- 0 if strobe is 1, 1 otherwise.
      +--- (Inverted) Serial data if strobe is 1, 0 if strobe is 0.
 
The serial data is returned ''most significant bit first'', and inverted.
 
$4017.2
    ^
    |  <-- <-- <-- <--
    XXXXXXXXYYYYYYYYBA
    ||||||||||||||||||
    |||||||||||||||||+- Click
    ||||||||||||||||+-- Stylus is touching tablet
    ||||||||++++++++--- Stylus Y, scaled to 0-255
    ++++++++----------- Stylus X, scaled to 0-239

Revision as of 06:01, 22 May 2012

This page is a stub. The best information we have on the Oeka Kids tablet is currently in the forum. As such, this information may be incorrect, but it seems to be a working implementation.

Input ($4016 write)

7  bit  0
---- ----
xxxx xxAS
       ||
       |+- Strobe (0 = Latch, 1 = Read back)
       +-- Advance to next bit

To advance to the next bit, set A to 0 and then to 1. Bits can only be read while S is set to 1.

Output ($4017 read)

7  bit  0
---- ----
xxxx xDSx
      ||
      |+-- 0 if strobe is 1, 1 otherwise.
      +--- (Inverted) Serial data if strobe is 1, 0 if strobe is 0.

The serial data is returned most significant bit first, and inverted.

$4017.2
   ^
   |  <-- <-- <-- <--
   XXXXXXXXYYYYYYYYBA
   ||||||||||||||||||
   |||||||||||||||||+- Click
   ||||||||||||||||+-- Stylus is touching tablet
   ||||||||++++++++--- Stylus Y, scaled to 0-255
   ++++++++----------- Stylus X, scaled to 0-239