My captouch project needs tuning. Since CTW( still ) does not work with a uartconnection I am tuning it manually with help of the debugger.
The touch pcb is mounted behind 4mm perspex and 1mm air gap, so i don't have a great signal.
When watching the baselines I noticed that some lines shows a deviation of sometimes 3000 counts when a key was touched, even baselines of other keys went up and down. When this happenes some keys stop working.
By accident I worked with the default thresholdvalues of about 1000 : The deviation of baselines was 300-400 counts, all keys kept working fine.
If i change the TH to my wanted value of 2000 my problem was back, shown here:
0 - 60: TH = 1000 from 60 on TH = 2000
I don't expect the influence of TH values to the baselines.
I played whith settings like filter constants without succes.
I work with SSP1.4 (same problem with 1.3) and R7S12447 and 5 simple keys
I included my stripped project.
Have you already solved this issue? Also, the link to the attached project is broken too.
JBRenesasRulz Forum Moderator
Also, in looking through your ctsu configuration thread your configuration seems alright in that you want it setup for a 4MHz drive. Your thresholds should be roughly 1-3k at that frequency, depending. However, your SDPA frequency might be off. I think your CTSU clock should be 0x02 since your PCLKB is set to 24MHz.