Professional Documents
Culture Documents
1
Points to Note when Designing
Touch Switches
2
Points to Note for Routing
Materials
Routing
Grounding
Interface Reservation
3
Points to Note for Materials
PCB Materials
Single, double, multiple layer PCB or FPCB
Board Materials
Isolating materials such as ABS
Board
plastic, glass, acrylic etc.
Platinoid
PCB
Electrode Materials
Routing
Metals such as PCB copper plating,
springs etc.
Electrode Shape
Round, square, polygon etc. Board
Metal
Spring
PCB
Routing
4
Layout Notes
The routing of the Touch IC power (VDD, GND) must be independent.
The power lines must be decoupled with filter capacitors (e.g. 0.1uF,
10uF) before reaching the IC.
Maintain a ground plane for the power lines if possible and have the
GND routing area > VDD routing area.
The touch key routing should be managed first and should be kept as
short as possible.
The distance between two linked routings should be double the wire
width.
Touch keys related to different touch modules (ex. key1 and key5)
should avoid parallel routing.
The touch key routing should avoid high frequency signal lines or be
separated with a ground wire.
The touch key routing should use as few through holes(Via) as possible.
5
Points to Note for Grounding
Unit : mm
1 mm = 39.37 mil
6
Interface Reservation
Reserve the ICP or I2C interface in advance
Reserve the ICP interface : For on board writing and sensitivity
adjustment
Reserve the serial communication interface : For signal detection
Reserve I2C interface : parameter adjustment and signal detection
7
Points to Note in the Software Package
Initialization
_SCAN _TOUCH_KEY
=0 _SCAN_CYCLEF
=1
_GET_KEY_BITMAP
Key pressed ? =1
Key function
=0
Cycle ended
9
System Parameter Setting
IC Select
Select which part no. IC to use
Both BS83 and BS85 are available
System Frequency Setting
The default system frequency software setting is 8MHz
8 / 12 / 16MHz are all available
I/O or Touch Key Setting
Most I/O ports are pin-shared with touch key input pins
Only Input or Output or touch inputs can be selected
10
Software Package Resource Setting
11
Software Package Parameter Adjustment
Software Package Parameter Adjustments
Sampling Time : Longer sampling times will result in
improved key discernments
Maximum On Time : Prevents keys from remaining in an
erroneous touch status
Calibration Time : Time setting for environmental
calibration
Debounce Times : The touch key decision time
One Key Active : Only one key will be accepted at any time
Key Threshold : The touch key sensitivity setting
12
Software Package Program Calling
The time to call the signal procedure “_SCAN_TOUCH_KEY”
The _SCAN_TOUCH_KEY procedure must be called from within
the main program and not from within a subroutine so as to
prevent stack overflows.
Time to read the key value
After each “key-scan” cycle is implemented, a signal bit
“_SCAN_CYCLEF” will be generated which means the actual key
output value and also the time needed to read it.
User Configuration
It is necessary to return to the main cycle after the key value has
been issued and the corresponding function has been executed.
To avoid single loop delays that will influence the response speed
of the touch key.
13
Points to Note when Using the e-Link
Programming Function
Power supplied by the e-Link and the target board power
supply must be removed before programming.
Parameter Adjustment
The power supply can be selected using the HXT Editor
configuration to be sourced from the e-Link, 5V or 3.3V, or from
an external supply.
Signal detection - Power isolated mode
When signal detection is executed, the target board power can
be chosen to monitor real signals.
14