• AVR Freaks

Helpful ReplyHot!CS mtouch appears as output instead of input

Author
Aybood
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/11/16 07:27:47
  • Location: 0
  • Status: offline
2020/01/29 06:53:44 (permalink)
0

CS mtouch appears as output instead of input

Hi,
This is my first project with mtouch library (ver. 2.70), i followed the guide in https://microchipdeveloper.com/touch:sensor-pin-manager , but the library shows me in pin manager that the CS pin is declared as output which is different from the guide and doesn't make sense to me, because if this should be the sensor reading pin, then should be input.
I have tried to downgrade the library version and i found that before 2.60 the cs was declared as input like the guide.
 
So i want to understand the sense of declaring a sensor input as output? or should i use the 2.50 library version?
 
I have attached 2 screensht of the pin manager of the 2 library versions
 
Thanks

Attached Image(s)

#1
du00000001
Just Some Member
  • Total Posts : 4021
  • Reward points : 0
  • Joined: 2016/05/03 13:52:42
  • Location: Germany
  • Status: offline
Re: CS mtouch appears as output instead of input 2020/01/29 07:38:53 (permalink) ☄ Helpfulby Aybood 2020/01/29 08:01:04
5 (2)
I'd attribute this to a typo resp. some misunderstanding, as CS is basically bidirectional: output to put some charge to the sensor, input to measure the resulting voltage. So both attributes do not really fit. But it's the drivers's duty to switch between in- and output configuration.

PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)
#2
Aybood
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2017/11/16 07:27:47
  • Location: 0
  • Status: offline
Re: CS mtouch appears as output instead of input 2020/01/29 08:00:52 (permalink)
0
Ok Thank u :)
#3
XiangGao
Senior Member
  • Total Posts : 57
  • Reward points : 0
  • Joined: 2016/07/07 15:54:59
  • Location: 0
  • Status: offline
Re: CS mtouch appears as output instead of input 2020/01/30 10:05:55 (permalink)
0
Yes, the pin manager is nothing but an initialization.
 
The sensor pin actually switches between input and output during the measurement. When the sensor is not scanning(more than 50% of the time), the sensor is output low for noise immunity and radiated emission purposes.
#4
Jump to:
© 2020 APG vNext Commercial Version 4.5