Possible to adjust current for touchread on teensy 3.6?

Status
Not open for further replies.

fishy1

Member
Been doing some reading around and can't figure out why there isn't a defined current for the 3.6 teensy board - as there is for MK20DX128 and MK20DX256. Anyone know if it's just an oversight or if it's not possible to change current or some other reason? Trying to measure values quickly in a noisy environment where resolution is not too important and being able to increase current seems like an easy possible improvement.

Thanks all!

https://github.com/PaulStoffregen/cores/blob/master/teensy3/touch.c

Relevant bit:
Code:
#elif defined(__MK66FX1M0__)
#define NSCAN     9
#define PRESCALE  2
static const uint8_t pin2tsi[] = {
//0    1    2    3    4    5    6    7    8    9
  9,  10, 255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255,  13,   0,   6,   8,   7,
255, 255,  14,  15, 255, 255, 255, 255, 255,  11,
 12, 255, 255, 255, 255, 255, 255, 255, 255, 255
};
 
Looks like in kinetis.h line 755, there is a #define HAS_KINETIS_TSI_LITE which leads to using a fixed value for TSI_GENCS_EXTCHRG(3) in touch.c, line 100. Not sure if this is a bug or a feature... Paul?
 
Status
Not open for further replies.
Back
Top