Specifications

Touch Controllers Reference Guide48
Format Raw
Syntax: <SOH>FR<CR>
Description: Returns the signal level (amount of touch) of each of the four
touchscreen corners in digital format. The returned values are not
corrected for offset and stray values. However, you can obtain the
offset and stray values using the Get Parameter Block command. For
more information, refer to the description of the Get Parameter Block
command later in this chapter.
The Format Raw data is a 7-byte packet that includes 1 status byte and
6 bytes of binary corner data. The data format for the packet is fixed
in order to provide the most efficient transfer of data. The first byte of
each packet always has its high bit (Bit 7) set to provide
synchronization with the host system. Each corner value is 10 bits,
which are delivered in 2 bytes, and has a range of 0 to 1023.
To use the Format Raw command, the controller and host system must
be in an 8-bit data communication mode. The Format Raw command
returns a negative response if the controller is in 7-bit format. Also,
TouchPen controllers must be in Pen Only mode or Finger Only mode
before executing the Format Raw command.
To terminate Format Raw, issue a Reset command. The controller
may return several bytes of data between the time you issue a Reset
command and the controller receives it. You can either scan the data
stream for the Reset acknowledgment, or you can ignore the response
to the first Reset command and then issue a second Reset after
approximately 10 seconds has passed.
Use the Format Raw command for diagnostics. Use Format Tablet for
standard touchscreen operation.