This EE Times article describes the electrical design of touchscreens as well the mathematics of calibration.