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.
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.
QTouch Library data memory – 19 bytes, allocated inside the Library
channel_signals – 2 bytes per Sensor, allocated in main.c
channel_references – 2 bytes per Sensor, allocated in main.c
sensor_delta – 2 bytes per Sensor, allocated in main.c
sensor_general_counter – 2 bytes per Sensor, allocated in main.c
sensor_state – 1 byte per Sensor, allocated in main.c
sensor_ndil_counter – 1 byte per Sensor, allocated in main.c
sensor_states – 1 byte, allocated in main.c
Const Data memory for ATtiny20 QTouch Library include the following:
sensor_threshold, 1 byte per Sensor, allocated in main.c
sensor_hyst_threshold, 1 byte per Sensor, allocated in main.c
sensor_recal_threshold, 1 byte per Sensor, allocated in main.c