Microchip HT12-100SAs/12ST25 handleiding
Handleiding
Je bekijkt pagina 6 van 18

6
Communication Formats
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
1 1 P X11 X10 X9 Y11 Y10 Y9
2 0 X8 X7 X6 X5 X4 X3 X2
3 0 Y8 Y7 Y6 Y5 Y4 Y3 Y2
4 0 0 0 0 X1 X0 Y1 Y0
Table 1: TSHARC RS232 4-Byte Protocol
Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
1 1 P X11 X10 X9 Y11 Y10 Y9
2 0 X8 X7 X6 X5 X4 X3 X2
3 0 Y8 Y7 Y6 Y5 Y4 Y3 Y2
4 0 0 0 0 X1 X0 Y1 Y0
Table 2: TSHARC PS/2 Protocol
Where:
P - 0 Pen-Up, 1 Pen-Down
X11-X0 - 12 bit X position data
Y11-Y0 - 12 bit Y position data
PU - 0 no Pen-Up, 1 Pen-Up
PD - 0 no Pen-Down, 1 Pen-Down
CK7-CK0 - AAH + 55H + Sum of Bytes 2 through 9
SPI Considerations and Format
The TSHARC-12S controller can be directly connected to a microcontroller or microprocessor via a simple 3 wire
interface. This interface uses an Interrupt Request, Clock, and Data line.
Symbol I/O Description
TIRQ Output t request line. Pulled high when the TSHARC-XXsc has data to transmit
TCLK Input Clock line. Driven by the Host to clock the data out of the TSHARC-XXsc
TDATA Output
Data line. Data is paced on the TDATA line on TCLK↓. Data is read by the host at TCLK↑
Table 3: SPI Interface Descriptions
Data Format
Data is transmitted from the controller as 1 25-bit packet MSB first.
Bit 25 24 23 22 21 20 19 18 17 16 14 13 12
P X11 X10 X9 X8 X7 X6 X5 X4 X3 X2 X1
t
X0
t
Bit 11 10 9 8 7 6 5 4 3 2 1 0
Y11 Y10 Y9 Y8 Y7 Y6 Y5 Y4 Y3 Y2 Y1
t
Y0
t
Table 4: SPI Data Format
Where:
X11 – X0: 12 bit X position data
Y11 – Y0: 12 bit Y position data
P : 1 for Pendown, 0 for Penup
The TSHARC-XXsc controllers operate in a stream mode. While the user is touching the screen data is continuously
transmitted until the user lifts up the pen. At Penup only one packet is sent indicating Penup, no more data is transmitted
until the screen is touched again.
Timing Requirements
Figure 1: SPI Packet Timing Diagram.
Bekijk gratis de handleiding van Microchip HT12-100SAs/12ST25, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
Merk | Microchip |
Model | HT12-100SAs/12ST25 |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 5179 MB |