OS-9 for the Prospector P1100 Board Guide
OS-9 for the Prospector P1100 Board Guide
OS-9 for the Prospector P1100 Board Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
GPIO<br />
Each sample contains an x, y coordinate as well as pressure in<strong>for</strong>mation.<br />
The data is <strong>for</strong>matted into a six byte packet as defined in <strong>the</strong> table below.<br />
Each packet contains 10 bits of x, 10 bits of y, and 8 bits of pressure<br />
in<strong>for</strong>mation.<br />
Table B-12 Touch Screen Descriptor Data<br />
Byte number Description<br />
0 sync code - 0x80<br />
1 header:<br />
bit 1: pendown<br />
bit 2: penup<br />
bit 3: penmove (may occur with pendown or penup)<br />
2 bits 0..2: high 3 bits of x<br />
bits 3..6: high 4 bits of pressure<br />
bit 7: 0<br />
3 bits 0..6: low 7 bits of x<br />
bit 7: 0<br />
4 bits 0..2: high 3 bits of y<br />
bits 3..6: low 4 bits of pressure<br />
5 bits 0..6: low bits of y<br />
bit 7: 0<br />
This section of <strong>the</strong> driver has basic GPIO line control, where lines 0..9 are<br />
connected to a 7 segment display or LED. Each line can be controlled with<br />
an _os_write() call. (Refer to <strong>the</strong> UCBHEX program in <strong>the</strong> TEST<br />
directory.)<br />
82 <strong>OS</strong>-9 <strong>for</strong> <strong>the</strong> <strong>Prospector</strong> <strong>P1100</strong> <strong>Board</strong> <strong>Guide</strong>