Advertisement
Advertisement
NT1080
8-bit Microcontroller
Nuvoton Touch Key Series
NT1080
Datasheet
The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
Nuvoton is providing this document only for reference purposes of NuMicro microcontroller based system design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation. www.nuvoton.com
Oct 26, 2015 Page 1 of 22 Rev 1.0
NT1080
Table of Contents
1 General Description
.............................................................................. 4
2 Features
............................................................................................ 5
3 Pin Diagram
....................................................................................... 6
4 Capacitive Touch Key
............................................................................ 7
............................................................................................ 7
Sensor Pad and Ground for PCB Layout
.......................................................... 7
...................................................................................... 8
5 I
C Interface
....................................................................................... 9
.............................................................................................. 9
......................................................................................... 9
...................................................................................... 10
............................................................................................. 10
6 I
C Data Definition
.............................................................................. 11
..................................................................................... 11
......................................................................... 12
.......................................................................... 12
......................................................................... 12
............................................................... 12
Address 0x04: System Control Bits
............................................................... 12
Address 0x06: Output Mode Settings
............................................................. 13
Address 0x07: Enable Sense Pin
................................................................. 14
......................................................................... 14
......................................................................... 14
....................................................................... 14
Address 0x0F: Calibration Delay
.................................................................. 14
............................................................................... 14
.......................................................................... 14
........................................................................ 15
Address 0x20~0x27 : Trigger Level
.............................................................. 15
Address 0x40~0x4F : Sensor Value
.............................................................. 15
7 GPIO
.............................................................................................. 16
8 Reference Schematic
.......................................................................... 18
Oct 26, 2015 Page 2 of 22 Rev 1.0
NT1080
9 Electrical Characteristics
....................................................................... 19
........................................................................ 19
....................................................................... 19
10 Package Dimension
............................................................................ 20
............................................................................ 20
11 REVISION HISTORY
........................................................................... 21
Oct 26, 2015 Page 3 of 22 Rev 1.0
NT1080
1
GENERAL DESCRIPTION
The Nuvoton touch key series, NT1080, supports 8 capacitive touch keys and 8 corresponding output channels with excellent anti-impulse noise and anti-electromagnetic noise ability. The
NT1080 supports many functions, such as single key, multi-key and toggle mode. Meanwhile, an external host MCU can control the NT1080 through the I²C bus easily.
Oct 26, 2015 Page 4 of 22 Rev 1.0
2 FEATURES
Support 8 capacitive touch keys and 8 corresponding output channels
Output modes:
GPIO
I²C
Water resistant or water-droplet operation
Operating at water resistant without error operation
Key lock function
Resist electromagnetic immunity
Resist mobile phone electromagnetic immunity
Resist 5W walky-talky electromagnetic immunity (> 2 cm)
Multiple touch key output selection
Single touch key/ multi-keys function selectable
Toggle function
Low active/high active output
Key lock function
I²C parameter settings
Touch key trigger level for each key
Touch key de-bounce for each key
Auto calibration interval
Operating voltage: 2.4V~5.5V
Operating current: 1.8mA~2.3mA
Operating temperature: -40 ℃ ~85 ℃
Touch key response time: 32 ms
NT1080
Oct 26, 2015 Page 5 of 22 Rev 1.0
NT1080
3
PIN DIAGRAM
SEN1
OUT1
OUT2
-RST
V
SS
OUT5/SDA
OUT6/SCL
5
6
3
4
1
2
7
8
9
10
20 PIN
20
19
18
17
16
15
14
13
12
11
SEN2
SEN3
SEN4
SEN5
SEN6
V
DD
SEN7
SEN8
OUT8
OUT7
Figure 3-1 TSSOP20 Pin Diagram
10
11
12
13
14
15
16
17
18
19
20
7
8
9
No.
1
2
3
4
5
6
Oct 26, 2015
SEN8
SEN7
V
DD
SEN6
SEN5
SEN4
SEN3
SEN2
Pin Name Description
SEN1
OUT1
OUT2
-RST
Touch key-1 input pin.
Touch key-1 output pin.
Touch key-2 output pin.
IC reset pin.
V
SS
Ground pin.
SEL Output mode selection pin.
(Connected to V
SS
: GPIO output, Connected to V
DD
: I
2
C output)
OUT3/-ACT Touch key-3 output pin / Touch key active indicator when selecting
I
2
C output
OUT4
OUT5/SDA
OUT6/SCL
OUT7
OUT8
Touch key-4 output pin.
Touch key-5 output pin / Data pin of I²C bus when selecting I²C output. ( I²C : write touch key parameter only)
Touch key-6 output pin/ Clock pin of I²C bus when selecting I²C output. (I²C : write touch key parameter only)
Touch key-7 output pin.
Touch key-8 output pin.
Touch key-8 input pin.
Touch key-7 input pin.
Power supply pin.
Touch key-6 input pin.
Touch key-5 input pin.
Touch key-4 input pin.
Touch key-3 input pin.
Touch key-2 input pin.
Table 3-1 Pin Description
Page 6 of 22 Rev 1.0
NT1080
4
CAPACITIVE TOUCH KEY
4.1
Input Circuit
Each capacitive touch key needs to connected with one resistor as shown in Figure 4-1. It is
strongly recommended that the resistor value is 100 kΩ. At the same time, all the resistors need to be kept as close to sensor pad as possible during PCB layout.
Touch
Pad
SENn
100K
Figure 4-1 Touch Key Reference Circuit
4.2
Sensor Pad and Ground for PCB Layout
The size of sensor pad, using circular shape with diameter equal or greater than 8mm is recommended. Actually, sensor pad could be any kinds of shape, but fulfilling finger size is suitable.
Extra ground-net around sensor pads is not needed for PCB artwork. However, ground-net along
sensor pad to chip is alternative. Figure 4-2 shows that the PCB line width of sensor pad to chip
should be 0.254mm (10mil) or less and to keep distance with ground at least 1mm. The other layer of PCB could implement ground-net for PCB artwork to block noise interfering with signal line. All the subsidiary components need to be kept as close to sensor pad as possible at PCB layout.
Meanwhile, touch key chip (NT1080) and touch pad located in the PCB board would be better.
0.254mm(10mil)
GND
Sensor
Pad
>1mm
>1mm
GND
Figure 4-2 Sensor Pad and Ground-Net
As shown in Figure 4-3, a spring attached with metal-panel can be used to act as sensor pads. It is
recommended that metal-panel (ring) should be adhered to the inside of cover to be an effective sensing area. If user wants to add a LED in the middle of sensor pad, the measure of sensor area should be increased to compensate the hollowing part and keeping the same sensitivity.
Oct 26, 2015 Page 7 of 22 Rev 1.0
NT1080
Figure 4-3 Spring with Solid Metal Plane/Ring
4.3
Sensor Pad Size
The size of sensor pad plays a great role in determining thickness of panel. The greater area of
sensor pad is, and the deeper touch signal could be detected. Table 4-1 shows the relation with
thickness and panel thickness.
Size of Sensor Pad
8 mm X 8 mm
10 mm X 10 mm
15 mm X 15 mm
20 mm X 20 mm
Panel Thickness
(Recommended Value)
2.0 mm
3.0 mm
4.5 mm
6.0 mm
Table 4-1 Sensor Pas and Corresponding Panel Thickness
Oct 26, 2015 Page 8 of 22 Rev 1.0
NT1080
5
I
2
C INTERFACE
The maximum speed of I
2
C serial interface could be up to 400Kbps and it will not send any signal in an active way to main controller since it is I
2
C slave. The I
2
C interface is not working in normal operation time. To enter I
2
C serial mode, user must connect V
DD
to SEL pin and then make chip
I power-on. User could easily set the touch related parameter and adjust the sensitivity by using the
2
C interface.
The I
2
C transmission provides three modes: byte-write, random-read and continual-read.
5.1
Byte-Write
The data protocol includes 3 bytes from master writing data to salve. The first byte for Device
address, the second byte for Memory address and the third byte is for the write data. Figure 5-1
shows the detail about byte-write action.
SDA
SCL
Byte1 Device address Byte2 Memory address Byte3 Data
Figure 5-1 Byte-write Mode
In normal times, SDA and SCL will be kept as logic 1. For the start signal, SDA will change to logic
0 first then SCL to logic 0 as well. When transmitting, data is prepared on SDA signal and then SCL will change to logic 1. Slave reads the byte data based on the rising edge of SCL signal. Slave will send logic 0 on the 9th clock signal to indicate receiving the byte data. For the stop signal, master device will change SCL to logic 1 and then SDA to 1, when the transmission of 3 bytes of information are finished.
5.2
Random-Read
This is a 4-byte data combination when Master reads Slave. Figure 5-2 shows that the first byte is
used as device address and write-status; the second byte is used as memory address; the third byte is used as device address and read-status and the fourth byte is used as Slave output data with Master keeping sending the SCL clock signal.
SDA
SCL
Byte1 Device address Byte2 Memory address
Oct 26, 2015
Byte3 Device address
Figure 5-2 Random-Read Mode
Page 9 of 22
Byte4 Data
Rev 1.0
NT1080
After finishing 2nd byte data transmission, Start signal is needed before sending next 3rd byte data.
SCL signal will change to logic 0 when 3rd byte data transmission is done. SCL signal will be released till 4 th
output data is ready. The first host could send logic 1 on SCL and monitor SCL changing to logic 1 to receive 1 st
bit. Note that Master should send a logic 1, NACK signal, on the
9th clock signal of the 4th byte.
5.3
Continual-Read
This is a 4-byte data combination when Master continually reads Slave. Figure 5-3 shows that the
first byte as device address and write-status; the second byte as memory address; the third byte as device address and read-status. From the fourth byte, Slave will keep output data with Master keeping sending ACK and SCL clock signal. The memory address will be automatically increased.
SDA
SCL
…
...
Byte1 Device address Byte2 Memory address Byte3 Device address Byte4 Data 1 Byte Data n
Figure 5-3 Continual-Read Mode
5.4
I
2
C Circuit
The pins of I
2
C are SDA and SCL with Open-Drain mode which requires pull-high resistor on the I
2
C bus.
VDD
R
UP
R
UP
SDA
SCL
SDA SCL
Host
SDA SCL
Nu-Touch
SDA SCL
Other Device
Figure 5-4 I
2
C Bus Connection
Oct 26, 2015 Page 10 of 22 Rev 1.0
NT1080
6
I
2
C DATA DEFINITION
6.1
Memory Address
Table 6-1 shows the memory address of I
2
C starting from 0x00~0x4F with specific function on each address.
R: Read only, R/W: Read / Write, (B)R: Must be set “Build” bit, and user can read only.
(B)R/W: Must be set to “Build” bit, and user can read and write.
Address R/W Description Default
0x00
0x01
0x02
0x03
R
R
Product no.
Shows how many buttons supported.
R Version no.
R/W I
2
C Device address
Bit7 Bit6 Bit5
A7 A6 A5
Bit4
A4
Bit3
A3
Bit2
A2
Bit1
A1
Bit0
0
0x81
0x08
0x31
0x60
0x04 0x08
0x06
0x07
0x0C
0x0D
0x0E
0x0F
0x10
R/W
Bit7
Reset
Bit6
X
Bit5
X
System control
Bit4
X
Bit3 Bit2 Bit1 Bit0
Auto Calibrate X Build
R/W Output mode
Bit7
Multi
Bit6
Toggle
Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Act-
High
0 Lock En-
Any
0 0
(B)R/W Sense pin Enable
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Sen8 Sen7 Sen6 Sen5 Sen4 Sen3 Sen2 Sen1
(B)R/W De-Bounce (Range: 1~7)
(B)R/W Plus Times (Range: 15~127)
(B)R/W Sensor Cycle (Range: 3~15)
(B)R/W Calibration Delay (Range: 7~63)
R Status
Bit7
Any-
Act
Bit6
B-
Change
Bit5
0
Bit4
0
Bit3
0
Bit2
0
Bit1
0
Bit0
0
0x00
0xFF
0x03
0x32
0x07
0x32
0x00
Oct 26, 2015 Page 11 of 22 Rev 1.0
NT1080
0x11 R Key Status
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Sen8 Sen7 Sen6 Sen5 Sen4 Sen3 Sen2 Sen1
0x15 R/W LED Control
Bit7
OUT8
Bit6
OUT7
Bit5
0
Bit4
0
Bit3
OUT4
Bit2
0
Bit1 Bit0
OUT2 OUT1
0x20~0x27 (B)R/W Trigger Level (Range: 3~63)
0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27
Sen1 Sen2 Sen3 Sen4 Sen5 Sen6 Sen7 Sen8
0x40~0x4F (B)R Sensor Value
0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47
Sen1-
H
Sen1-
L
Sen2-
H
Sen2-
L
Sen3-
H
Sen3-
L
Sen4-
H
Sen4-
L
0x48 0x49 0x4A 0x4B 0x4C 0x4D 0x4E 0x4F
Sen5-
H
Sen5-
L
Sen6-
H
Sen6-
L
Sen7-
H
Sen7-
L
Sen8-
H
Sen8-
L
0x00
0x00
0x12
0x0000
Table 6-1 I
2
C Memory Address Definition and Description
6.2
Address 0x00: Product No.
Product identification using
6.3
Address 0x01: Button No.
Product identification using
6.4
Address 0x02: Version No.
Product identification using
6.5
Address 0x03: I
2
C Device Address
The default address is 0x60, including read/write 8-bit address. The device address could be changed by the I
2
C interface. When changing the device address, the latest device address must be used in next read/write action.
6.6
Address 0x04: System Control Bits
Bit7
Reset
Bit6
X
Bit5
X
Bit4
X
Reset:
Bit3 Bit2
Auto Calibrate
Bit1
X
Bit0
Build
Software reset.
Chip could be reset by writing “1” to become default value. This bit will
Oct 26, 2015 Page 12 of 22 Rev 1.0
NT1080
Auto:
Calibrate:
Build: be automatically changed back to “0” when chip reset is done.
Auto Calibration.
Write “1” to this bit and chip will automatically refer the value in address
“0x0F” to execute new calibration delay time function.
Calibration enabled.
User could set this bit to enable calibration procedure and this bit will return to “0” when finishing the calibration. This bit is valid when “Auto” bit is “0”.
Test mode.
1 = Read related sensor parameter and data to provide test and analysis function.
0 = Hide some parameter which has nothing to do with operation action to prevent parameter being changed accidentally.
6.7
Address 0x06: Output Mode Settings
Bit7
Multi
Bit6 Bit5
Toggle Act-High
Bit4
0
Bit3
Lock
Multi:
Toggle:
Act-High:
Lock:
En-Any:
Bit2
En-Any
Bit1
0
Bit0
0
Multi-key output.
1 = Output multi-key status simultaneously
0 = Output the key status with greatest signal
Switch mode.
1 = GPIO is set to output signal in latch way to simulate like a switch.
Press to active and then press to inactive.
This bit is active when “Display” is set as “0” and “Dout_0” as “1”. The high/low level will be decided by the “Act-High” setting.
High level action.
1 = GPIO output high level.
0 = GPIO output low level.
This bit is active when “Display” is set as “0” and “Dout_0” as “1”.
Lock.
1 = If two or more keys are triggered, all output will be locked and no any output signal happened.
Enable -Act pin.
1 = Enable -Act pin function. Any pressed key will make -Act pin output low level signal. -Act pin will return to high level when no key is pressed.
Oct 26, 2015 Page 13 of 22 Rev 1.0
NT1080
6.8
Address 0x07: Enable Sense Pin
Bit7
Sen8
Bit6
Sen7
Bit5
Sen6
Bit4
Sen5
Sen8~Sen1:
Bit3
Sen4
Enable Sense Pin.
1 = Enable corresponding key
0 = Disable corresponding key
Bit2
Sen3
Bit1
Sen2
Bit0
Sen1
6.9
Address 0x0C: De-Bounce
The value is from 1 to 7. Set this parameter to prevent key output bouncing. Key will react slower with less chance happening bouncing when set this value higher.
6.10
Address 0x0D: Plus Times
The value is from 15 to 127. The captures data will be more stable and key react slower if set this value higher.
6.11
Address 0x0E: Sensor Cycle
The value is from 3 to 15. The captures data will be more stable and key react slower if set this value higher.
6.12
Address 0x0F: Calibration Delay
The value is from 7 to 63. It defines how long chip will do re-calibration process again.
This bit is valid if “Auto” bit is set to “1”.
6.13
Address 0x10: Status.
Bit7 Bit6
Any-Act B-Change
Bit5
0
Any-Act:
B-Change:
Bit4
0
Bit3
0
Bit2
0
Bit1
0
Bit0
0
This bit will be set to “1” if any key is pressed.
It will be cleared to “0” if all key are released.
This bit will be set to “1” if any key status is changed.
It will be cleared to “0” if no key status is changed whether key is pressed or not.
6.14
Address 0x11: Key status
Bit7
Sen8
Bit6
Sen7
Bit5
Sen6
Sen8~Sen1:
Bit4
Sen5
Bit3
Sen4
Bit2
Sen3
Bit1
Sen2
Bit0
Sen1
1 = Corresponding key is pressed.
0 = Corresponding key is released.
Reading status here will ignore the setting in OUTPUT MODE
Oct 26, 2015 Page 14 of 22 Rev 1.0
NT1080
6.15
Address 0x15: LED Control
Bit7
OUT8
Bit6
OUT7
Bit5
0
OUT8~OUT1:
Bit4
0
Bit3
OUT4
Bit2
0
Corresponding to pin OUT8~OUT1.
1 = Pin output high.
0 = Pin output low.
Bit1
OUT2
Bit0
OUT1
6.16
Address 0x20~0x27 : Trigger Level
The value is from 3 to 63. This bit is to set trigger level individually to eliminate the sensitivity difference on each touch key sensor. The lower value user set will get higher sensitivity but lower stability.
Address 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27
Sensor Sen1 Sen2 Sen3 Sen4 Sen5 Sen6 Sen7 Sen8
6.17
Address 0x40~0x4F : Sensor Value
The value shows the reading sampling result which is from 0 to 1023. The data format is MSB first, then LSB.
Address 0x40
Sensor
Sen1-
High
Address 0x48
Sensor
Sen5-
High
0x41
Sen1-
Low
0x49
Sen5-
Low
0x42
Sen2-
High
0x4A
Sen6-
High
0x43
Sen2-
Low
0x4B
Sen6-
Low
0x44
Sen3-
High
0x4C
Sen7-
High
0x45
Sen3-
Low
0x4D
Sen7-
Low
0x46
Sen4-
High
0x4E
Sen8-
High
0x47
Sen4-
Low
0x4F
Sen8-
Low
Oct 26, 2015 Page 15 of 22 Rev 1.0
NT1080
7 GPIO
Each GPIO has the corresponding touch key output. For example, the OUTn pin corresponds to the
SENn pin. Figure 7-1 shows all the output pins in Open-Drain mode. Figure 7-2 shows that it is
easy to connect the system with the voltage lower than V
DD
and it is convenient to achieve analog output mode via a resistor ladder. Add a pull-high resistor to perform active-high state. There are many kinds of output modes related to address 0x06 settings. Table 7-1 shows the detailed settings on relationship of each bit.
V
DD
Output
N
Figure 7-1 Open-Drain
V
DD
OUT1
Vo
OUT2
Open-
Drain
OUT3
OUT4
OUT5
Figure 7-2 Resistor-voltage Divider Output
Application
Single key, output low level (when active)
Single key, output high level
Multi key, output low level
Multi key, output high level
Single key, switch, output low level
Single key, switch, output high level
Multi Toggle Act-High
0 0 0
0
1
0
0
1
0
1
0
0
0
1
1
1
0
1
Lock
0
0
0
0
0
0
Oct 26, 2015 Page 16 of 22 Rev 1.0
Multi key, switch, output low level
Multi key, switch, output high level
Single key, output low level, Lock
Single key, output high level, Lock
Single key, switch, output low level, Lock
Single key, switch, output high level, Lock
1
1
0
0
0
0
Table 7-1 GPIO Function Settings
1
1
0
0
1
1
0
1
0
1
0
1
0
0
1
1
1
1
NT1080
Oct 26, 2015 Page 17 of 22 Rev 1.0
8 REFERENCE SCHEMATIC
V
DD
Key
1
100K SEN
1
Key
2
100K
Key
3
100K
SEN
2
SEN
3
0.1u
V
DD
OUT
1
OUT
2
OUT3/-
ACT
OUT
4
OUT5/SD
A
Key
4
100K
Key
5
100K
Key
6
100K
SEN
4
SEN
NT1080
OUT6/SC
5
L
OUT
7
SEN
6
OUT
8
Key
7
100K SEN
7
SEL
Key
8
100K SEN
8
-RST
V
SS
33R
3K3
3K3
V
DD
V
DD
100R
10u
V
DD
V
DD
V
DD
V
DD
10u
SDA
SCL
NT1080
Oct 26, 2015 Page 18 of 22 Rev 1.0
9 ELECTRICAL CHARACTERISTICS
9.1
Absolute Maximum Ratings
Parameter
Operating Temperature
Storage Temperature
V
DD to V
SS
voltage
Other pin to V
SS
voltage
9.2
DC Electrical Characteristics
Parameter
Operating Voltage
Operating Current
Input Low Voltage
Input High Voltage
Output Low
Voltage (GPIO)
Symbol
V
DD
I
DD
V
IL
V
IH
V
OL1
Condition
---
V
DD
= 5V
V
DD
= 3V
2.4V<V
DD
<5.5
2.4V<V
DD
<5.5
V
DD
= 4.5V,
I
OL
= 20mA
Range
-40 to +85
-55 to +150
-0.3 to +6.5
-0.3 to (V
DD
+0.3)
Unit
C
C
V
V
Min.
2.4
-
-
-0.5
0.7V
DD
-
Typ.
-
2.30
1.93
-
-
-
Max.
5.5
-
-
0.3V
DD
V
DD
+0.5
0.45
Unit
V mA mA
V
V
V
NT1080
Oct 26, 2015 Page 19 of 22 Rev 1.0
10
PACKAGE DIMENSION
10.1
TSSOP20 – 4.4X6.5mm
NT1080
Oct 26, 2015 Page 20 of 22 Rev 1.0
11 REVISION HISTORY
Date Revision
2015.10.26 1.0
Description
Preliminary version
NT1080
Oct 26, 2015 Page 21 of 22 Rev 1.0
NT1080
Important Notice
Nuvoton Products are neither intended nor warranted for usage in systems or equipment, any malfunction or failure of which may cause loss of human life, bodily injury or severe property damage. Such applications are deemed, “Insecure Usage”.
Insecure usage includes, but is not limited to: equipment for surgical implementation, atomic energy control instruments, airplane or spaceship instruments, the control or operation of dynamic, brake or safety systems designed for vehicular use, traffic signal instruments, all types of safety devices, and other applications intended to support or sustain life.
All Insecure Usage shall be made at customer’s risk, and in the event that third parties lay claims to Nuvoton as a result of customer’s Insecure Usage, customer shall indemnify the damages and liabilities thus incurred by Nuvoton.
Oct 26, 2015 Page 22 of 22 Rev 1.0
Download
Advertisement