QTouch Library ATtiny20 code and data memory requirements

The code and data memory requirements for QTouch Library for ATtiny20 devices is captured in the Table below.  The Table indicates these values for the standalone library and not for the entire Example Project application.

Table 1. Table 19 QTouch Library for ATtiny20 Memory requirements

Library

Number of Sensors

Code Memory

Data memory

CStack/RStack

libtiny20-5qt-k-0rs

5

1231 + 15 bytes Const data

70

CStack= 0x1C bytes

RStack= 10

(16 bytes) is the Recommended setting.

libtiny20-5qt-k-0rs

4

1231 + 12 bytes Const data

60

CStack= 0x1C bytes

RStack= 10

(16 bytes) is the Recommended setting.

libtiny20-5qt-k-0rs

3

1231 + 9 bytes Const data

50

CStack= 0x1C bytes

RStack= 10

(16 bytes) is the Recommended setting.

libtiny20-5qt-k-0rs

2

1231+ 6 bytes Const data

40

CStack= 0x1C  bytes

RStack= 10

(16 bytes) is the Recommended setting.

libtiny20-5qt-k-0rs

1

1231 + 3 bytes Const data

30

CStack= 0x1C bytes

RStack= 10

(16 bytes) is the Recommended setting.

Data memory for ATtiny20 QTouch Library include the following.

  1. 1.

    QTouch Library data memory – 19 bytes, allocated inside the Library

  2. 2.

    channel_signals – 2 bytes per Sensor, allocated in main.c

  3. 3.

    channel_references – 2 bytes per Sensor, allocated in main.c

  4. 4.

    sensor_delta – 2 bytes per Sensor, allocated in main.c

  5. 5.

    sensor_general_counter – 2 bytes per Sensor, allocated in main.c

  6. 6.

    sensor_state – 1 byte per Sensor, allocated in main.c

  7. 7.

    sensor_ndil_counter – 1 byte per Sensor, allocated in main.c

  8. 8.

    sensor_states – 1 byte, allocated in main.c

Const Data memory for ATtiny20 QTouch Library include the following:

  1. 1.

    sensor_threshold, 1 byte per Sensor, allocated in main.c

  2. 2.

    sensor_hyst_threshold, 1 byte per Sensor, allocated in main.c

  3. 3.

    sensor_recal_threshold, 1 byte per Sensor, allocated in main.c