QMatrix method memory requirement

The Table below captures the Typical Code & Data Memory requirement for the QTouch Library when QMatrix method is used standalone.  

In addition to the Data memory captured in the Table, the QMatrix method requires additional Data Memory that must be provided to the Touch Library for storing the Signals, References, Sensor information and Touch status.  This data memory is provided by the Host Application to the QTouch Library as QMatrix data block.  The size of this Data memory block depends on the Number of Sensors and the Number of Wheel or Slider configured.  The PRIV_QM_DATA_BLK_SIZE macro in touch_api_at32uc3l.h calculates the size of this data memory block.  For example, for the UC3L Evaluation kit Rev2 that has 6 Sensors including 1 Wheel and 5 Buttons, the QMatrix data block memory size is 236 bytes.

Table 1. Typical Code and Data memory for Standalone QMatrix operation

Library

Typical Code with Keys Only

Typical Code when one or more Wheel/Sliders is used

Typical Data Memory

libuc3l-qtouch-iar.r82

5882

7296

278

libuc3l-qtouch-gnu.a

6228

8080

278

Note: This Typical Code memory usage is achieved when only QMatrix Regular API is used in the application.  Usage of QMatrix Helper API would consume additional Code memory.  Also, the Code and Data memory indicated in the Table do not account for Example QMatrix application.