[AKD4160-A] AKD4160-A Evaluation board Rev.0 for AK4160 GENERAL DESCRIPTION The AKD4160-A is an evaluation board for the AK4160, which is 16-channel capacitive touch sensor with a low operating voltage and a low operating power. Since the AKD4160-A has a I2C serial I/F, it is possible to control the AK4160 by writing and reading registers, and operate kinds of touch pad with a capacitor sensor connector on the AKD4160-A, ■ Ordering guide AKD4160-A --- Evaluation board for AK4160 (Cable for connecting with an USB port and control software is packed with this.) FUNCTION • I2C serial I/F • Cap Sensor Connector • Touch Pad Operations VDD VSS Control Port PORT4 PORT1 I2C I/F AK4160 Touch Pad OPTIONAL PORT2 CS IRQnN Figure 1. AKD4160 Block Diagram * Circuit diagram and PCB layout are attached at the end of this manual. <KM104501> 2010/11 -1- [AKD4160-A] BOARD OUTLINE CHART ■ Outline Chart Figure 2. AKD4160-A Outline Chart ■ Comment (1) VDD, VSS, IFVDD, IFVSS Connect power supply with these pins. (2) SW1 The tactile switch for AK4160’s reset. (3) PORT1 Control port. Connect the bundled cable into this port. (4) PORT2 This Port is for I/O of IRQ interrupt and input of reset pin. (5) PORT3 This Port is for testing GPIO functions of IRQ pins. (6) PORT4 This is a connector for the touch pad connection. Connect the touch pad “16 PAD” or “8PAD+8LED” into this port. <KM104501> 2010/11 -2- [AKD4160-A] ■ Operation sequence (1) Power supply lines. <Default> Jumper pin setting. JP2 VDD (Short) The power supply lines’ connection. Name VDD IFVDD VSS IFVSS Color Red Orange Black Black Voltage 1.71∼3.6V(typ=1.8V) typ=3.3V 0V 0V Comments Power supply for VDD of AK4160. Power supply for digital logic circuits. AK4160’s GND. Digital logic circuits’ GND. Table 1. Set up of power supply lines * Each supply line should be distributed from the power supply unit. (2) Set up the evaluation mode and jumper pins. (See the followings.) <KM104501> 2010/11 -3- [AKD4160-A] ■ Evaluation mode When evaluating the functions of the AK4160, it is necessary to connect a touch pad board with the PORT4. Regarding pin assignment of PORT4, refer to Figure 4 or circuit diagrams in this manual. As for the AK4160’s register definitions, refer to the datasheet of the AK4160. (1) 16-channel Touch Switch <Default> Capacitive touch sensors up to 16 channels are available for touch switch. Connect the touch pad board “16PAD” with the PORT4. Set up the registers of AK4160 with the “akd4160-a.exe” by loading the register file “ak4160_16ch Touch Switch.akr” which is included in the CD. (Refer to Page 8) (2) 8-channel Touch Switch and 8-channel LED Display Maximum 8 channels out of the 16-channel capacitive touch sensors can be configured to LED drives. GPIOn (n=0∼7) outputs the status of terminal CSn. (Table 2) Connect the touch pad board “8PAD+8LED” with the PORT4. Set up the registers of AK4160 with the “akd4160-a.exe” by loading the register file “ak4160_8ch Touch Switch & 8ch LED Display.akr” which is included in the CD. (Refer to Page 8) No. CSn Status GPIOn Output 1 CS0 GPIO0 2 CS1 GPIO1 3 CS2 GPIO2 4 CS3 GPIO3 5 CS4 GPIO4 6 CS5 GPIO5 7 CS6 GPIO6 8 CS7 GPIO7 Table 2. The correspondence of GPIOn outputs and CSn status <KM104501> 2010/11 -4- [AKD4160-A] ■ Other Jumper Pins set up Main Board [JP1] (GND): OPEN: SHORT: Analog ground and Digital ground Separated. Common. <Default> [JP4] (I/O): A-B: B-A: Selection of U4 (74AVC4T245)’s operation A data to B bus when IRQ / GPIO is used as input. <Default> B data to A bus when IRQ / GPIO is used as output. [JP5] (AD0): OPEN: SHORT: Device address bit 0’s setting on I2C-bus Mode AD0 bit is fixed to “H”. AD0 bit is fixed to “L”. <Default> [JP6] (AD1): OPEN: SHORT: Device address bit 1’s setting on I2C-bus Mode AD1 bit is fixed to “H”. AD1 bit is fixed to “L”. <Default> [JP7] (IRQ0N): H: L: Interrupt I/O pin 0’s setting IRQ0N pin is pulled up. IRQ0N pin is pulled down. <Default> [JP8] (IRQ1N): H: L: Interrupt I/O pin 1’s setting IRQ1N pin is pulled up. IRQ1N pin is pulled down. <Default> [JP9] (IRQ2N): H: L: Interrupt I/O pin 2’s setting IRQ2N pin is pulled up. IRQ2N pin is pulled down. <Default> [JP10] (3.3V): OPEN: SHORT: Power supply short When the voltage of IFVDD and VDD is different. <Default> When the voltage of IFVDD and VDD is the same. ■ The function of the Switch [SW1] (RSTN): A push button switch for reset control of the AK4160. Keep pushing SW1 if continuous reset is needed. <KM104501> 2010/11 -5- [AKD4160-A] ■ Serial Control The AKD4160 can be connected with an USB port. Connect PORT1 (Control Port) with a PC by the USB box packed with the AKD4160. PORT1 SDA(ACK) SDA SCL AKD4160 Connect USB PC USB box Control Port Figure 3. Connect of the USB box ■ Pin Assignment of Cap Sensor Connector VDD PORT4 GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5 GPIO6 GPIO7 CS7 CS6 CS5 CS4 CS3 CS2 CS1 CS0 CS Figure 4. Cap Sensor Connector Pin Assign ∗ Descriptions of external circuits, application circuits, software and other related information contained in this document are provided only to illustrate the operation and application examples of the semiconductor products. You are fully responsible for the incorporation of these external circuits, application circuits, software and other related information in the design of your equipments. AKM assumes no responsibility for any losses incurred by you or third parties arising from the use of this information herein. AKM assumes no liability for infringement of any patent, intellectual property, or other rights in the application or use of such information contained herein. <KM104501> 2010/11 -6- [AKD4160-A] CONTROL SOFTWARE MANUAL ■ Evaluation Board and Control Soft Settings 1. Set an evaluation board properly. 2. Connect PORT1 (Control Port) with a PC by the USB box packed with the AKD4160. (Please install the driver in the CD-ROM when using this control software is used on Windows 2000/XP/Vista. Please refer “Installation Manual of Control Software Driver by AKM device control software”. In case of running on Windows95/98/ME, the driver install is not needed. In case of Windows Vista/7, open the property of the control soft, and set the compatibility to “Windows XP”. This control software does not operate on Windows NT.) 3. Continue to evaluation by following steps. ■ Operation Screen 1. Start up the control program, and the operation screen is shown below. Figure 5. Operation Screen of Control Soft <KM104501> 2010/11 -7- [AKD4160-A] ■ Operation Overview Register map and testing tool can be controlled by this control soft. These controls are selected by upper tabs. Buttons which are frequently used such as register initializing button “Write Default”, are located outside of the switching tab window. Refer to the “■ Dialog Boxes” for details of each dialog box setting. 1. [Port Reset]: For when connecting to USB I/F board (AKDUSBIF-B) Click this button after the control soft starts up when connecting USB I/F board (AKDUSBIF-B). 2. [Write Default]: Register Initializing When the device is reset by a hardware reset, use this button to initialize the registers. 3. [All Write]: Executing write commands for all registers displayed. 4. [All Read]: Executing read commands for all registers displayed. 5. [Save]: Saving current register settings to a file. 6. [Load]: Executing data write from a saved file. 7. [All Reg Write]: “All Reg Write” dialog box is popped up. 8. [Data R/W]: “Data R/W” dialog box is popped up. 9. [Sequence]: “Sequence” dialog box is popped up. 10. [Sequence(File)]: “Sequence(File)” dialog box is popped up. 11. [Read]: Reading current register settings and display on to the Register area (on the right of the main window). This is different from [All Read] button, it does not reflect to a register map, only displaying hexadecimal. <KM104501> 2010/11 -8- [AKD4160-A] ■ Tab Functions 1. [REG]: Register Map This tab is for a register writing and reading. Each bit on the register map is a push-button switch. Button Down indicates “H” or “1” and the bit name is in red (when read only it is in deep red). Button Up indicates “L” or “0” and the bit name is in blue (when read only it is in gray) Grayout registers are Read Only registers. They can not be controlled. The registers which is not defined in the datasheet are indicated as “---”. Figure 6. Register Map example <KM104501> 2010/11 -9- [AKD4160-A] [Write]: Data Writing Dialog It is for when changing two or more bits on the same address at the same time. Click [Write] button located on the right of the each corresponded address for a pop-up dialog box. When checking the checkbox, the register will be “H” or “1”, when not checking the register will be “L” or ”0”. Click [OK] to write setting value to the registers, or click [Cancel] to cancel this setting. Figure 7. Register wring dialog example [Read]: Data Read Click [Read] button located on the right of the each corresponded address to execute register reading. After register reading, the display will be updated regarding to the register status. Button Down indicates “H” or “1” and the bit name is in red (when read only it is in deep red). Button Up indicates “L” or “0” and the bit name is in blue (when read only it is in gray) Please be care that button statuses will be changed by Read command. <KM104501> 2010/11 - 10 - [AKD4160-A] 2. [Tool]: Testing Tools This tab screen is for evaluation testing tool. Click buttons for each testing tool. Figure 8. Repeat Test & Loop Setting <KM104501> 2010/11 - 11 - [AKD4160-A] ■ Dialog Boxes 1. [All Req Write]: All Req Write dialog box Click [All Reg Write] button in the main window to open register setting files. Register setting files saved by [SAVE] button can be applied. Figure 9. [All Reg Write] Window [Open (left)]: Selecting a register setting file (*.akr). [Write]: Executing register writing. [Write All]: Executing all register writings. Writings are executed in descending order. [Help]: Help window is popped up. [Save]: Saving the register setting file assignment. The file name is “*.mar”. [Open (right)]: Opening a saved register setting file assignment “*. mar”. [Close]: Closing the dialog box and finish the process. *Operating Suggestions (1) Those files saved by [Save] button and opened by [Open] button on the right of the dialog “*.mar” should be stored in the same folder. (2) When register settings are changed by [Save] button in the main window, re-read the file to reflect new register settings. <KM104501> 2010/11 - 12 - [AKD4160-A] 2. [Data R/W]: Data R/W Dialog Box Click the [Data R/W] button in the main window for data read/write dialog box. Data write is available to specified address. Figure 10. [Data R/W] Window Address Box: Input data address in hexadecimal numbers for data writing. Data Box: Input data in hexadecimal numbers. Mask Box: Input mask data in hexadecimal numbers. This is “AND” processed input data. [Write]: Writing to the address specified by “Address” box. [Read]: Reading from the address specified by “Address” box. The result will be shown in the Read Data Box in hexadecimal numbers. [Close]: Closing the dialog box and finish the process. Data writing can be cancelled by this button instead of [Write] button. *The register map will be updated after executing [Write] or [Read] commands. <KM104501> 2010/11 - 13 - [AKD4160-A] 3. [Sequence]: Sequence Dialog Box Click [Sequence] button to open register sequence setting dialog box. Register sequence can be set in this dialog box. Figure 11. [Sequence] Window Sequence Setting Set register sequence by following process bellow. (1)Select a command Use [Select] pull-down box to choose commands. Corresponding boxes will be valid. < Select Pull-down menu > · No_use: Not using this address · Register: Register writing · Reg(Mask): Register writing (Masked) · Interval: Taking an interval · Stop: Pausing the sequence · End: Finishing the sequence (1) Input sequence [Address]: Data address [Data]: Writing data [Mask]: Mask [Data] box data is ANDed with [Mask] box data. This is the actual writing data. When Mask = 0x00, current setting is hold. When Mask = 0xFF, the 8bit data which is set in the [Data] box is written. When Mask =0x0F, lower 4bit data which is set in the [Data] box is written. Upper 4bit is hold to current setting. <KM104501> 2010/11 - 14 - [AKD4160-A] [ Interval ]: Interval time Valid boxes for each process command are shown bellow. · No_use: None · Register: [Address], [Data], [Interval] · Reg(Mask): [Address], [Data], [Mask], [Interval] · Interval: [Interval] · Stop: None · End: None Control Buttons The function of Control Button is shown bellow. [Start]: Executing the sequence [Help]: Opening a help window [Save]: Saving sequence settings as a file. The file name is “*.aks”. [Open]: Opening a sequence setting file “*.aks”. [Close]: Closing the dialog box and finish the process. Stop of the sequence When “Stop” is selected in the sequence, processing is paused and it starts again when [Start] button is clicked. Restarting step number is shown in the “Start Step” box. When finishing the process until the end of sequence, “Start Step” will return to “1”. The sequence can be started from any step by writing the step number to the “Start Step” box. Write “1” to the “Start Step” box and click [Start] button, when restarting the process from the beginning. <KM104501> 2010/11 - 15 - [AKD4160-A] 4. [Sequence(File)]: Sequence Setting File Dialog Box Click [Sequence(File)] button to open sequence setting file dialog box. Those files saved in the “Sequence setting dialog” can be applied in this dialog. Figure 12. [Sequence(File)] Window [Open (left)]: Opening a sequence setting file (*.aks). [Start]: Executing the sequence setting. [Start All]: Executing all sequence settings. Sequences are executed in descending order. [Help]: Pop up the help window. [Save]: Saving sequence setting file assignment. The file name is “*.mas”. [Open(right)]: Opening a saved sequence setting file assignment “*. mas”. [Close]: Closing the dialog box and finish the process. *Operating Suggestions (1) Those files saved by [Save] button and opened by [Open] button on the right of the dialog “*.mas” should be stored in the same folder. (2) When “Stop” is selected in the sequence the process will be paused and a pop-up message will appear. Click “OK” to continue the process. <KM104501> 2010/11 - 16 - [AKD4160-A] REVISION HISTORY Date (yy/mm/dd) 10/11/05 10/11/26 10/11/26 10/11/26 Manual Revision KM104500 KM104501 KM104501 KM104501 Board Revision 0 0 0 0 Reason Page Contents First Edition 6 8 12 Figure.4 add Figure.6 change Figure.8 change IMPORTANT NOTICE z These products and their specifications are subject to change without notice. When you consider any use or application of these products, please make inquiries the sales office of Asahi Kasei Microdevices Corporation (AKM) or authorized distributors as to current status of the products. z Descriptions of external circuits, application circuits, software and other related information contained in this document are provided only to illustrate the operation and application examples of the semiconductor products. You are fully responsible for the incorporation of these external circuits, application circuits, software and other related information in the design of your equipments. AKM assumes no responsibility for any losses incurred by you or third parties arising from the use of these information herein. AKM assumes no liability for infringement of any patent, intellectual property, or other rights in the application or use of such information contained herein. z Any export of these products, or devices or systems containing them, may require an export license or other official approval under the law and regulations of the country of export pertaining to customs and tariffs, currency exchange, or strategic materials. z AKM products are neither intended nor authorized for use as critical componentsNote1) in any safety, life support, or other hazard related device or systemNote2), and AKM assumes no responsibility for such use, except for the use approved with the express written consent by Representative Director of AKM. As used here: Note1) A critical component is one whose failure to function or perform may reasonably be expected to result, whether directly or indirectly, in the loss of the safety or effectiveness of the device or system containing it, and which must therefore meet very high standards of performance and reliability. Note2) A hazard related device or system is one designed or intended for life support or maintenance of safety or for applications in medicine, aerospace, nuclear energy, or other fields, in which its failure to function or perform may reasonably be expected to result in loss of life or in significant injury or damage to person or property. z It is the responsibility of the buyer or distributor of AKM products, who distributes, disposes of, or otherwise places the product with a third party, to notify such third party in advance of the above content and conditions, and the buyer or distributor agrees to assume any and all responsibility and liability for and hold AKM harmless from any and all claims arising from the use of said product in the absence of such notification. <KM104501> 2010/11 - 17 - 5 4 3 2 1 IFVDD R5 R6 10k 10k VDD IFVDD PORT1 51 IFVDD 1B2 2A1 2B1 11 7 2A2 2B2 10 2 1DIR 3 2DIR 15 1OE 14 2OE 1 8 SCL VDD VCCAVCCB 16 GND 9 GND VDD C8 0.1u 1A 2A 3A 4A 5A 6A 1Y 2Y 3Y 4Y 5Y 6Y 2 4 6 8 10 12 1 51 + 1 IRQ2N AD0 5 2B2 10 R19 5 AD1 AD1 6 SDA 6 L R25 H TEST8 RSTN C4 0.01u 100k L CS10/GPIO5 23 CS11/GPIO4 24 22 CS4 16 CS3 15 CS4 6 CS3 CS CS3 CS2 14 CS1 13 CS0 RREF 7pin_1 VSS TEST9 RREF CS0 CS1 CS2 R3 100k 1 VREG AD0 RSTN 2 100k 7 R22 1 R21 6 SW1 100k CN2 7pin_1 A AD1 JP5 AD0 JP6 AD1 RSTN IRQ2N CS0 CS1 CS2 Title <Title> Size A3 Date: 5 B CS4 TEST10 TEST11 TEST12 TEST13 TEST14 VDD IFVDD IRQ2N CS5 5 C3 5 9 GND VDD 12 GND JP9 CS12/GPIO3 SDA 4 8 C11 0.1u IRQ1N 100k CS5 17 TEST15 7 11 16 JP8 IRQ1N 25 AD1 0.047u VCCAVCCB H CS5 TEST16 7pin_1 1 IRQ0N R24 CS6 4 7 JP7 A 26 SCL 3 CS6 7 VDD L CS7 18 TEST7 SDA R28 1k 100k CS6 GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5 GPIO6 GPIO7 CS7 CS6 CS5 CS4 CS3 CS2 CS1 CS0 2 CS7 19 TEST17 R4 IRQ0N AK4160 AD0 3 2OE 4 PORT4 GPIO7 TEST18 VSS 1OE 14 CS7 10 15 IRQ2N/GPIOC 2 2DIR 3 1 GPIO7 20 TEST6 51 100k 3 C10 0.1u 11 5 GPIO6 TEST19 VREG 1DIR 2B1 SCL SCL 51 CS8/GPIO7 TEST5 51 R18 IRQ1N/GPIOB 9 R27 2A2 2 12 2 RSTN A-B 2A1 7 1B2 4 GPIO6 21 TEST20 8 6 IRQ2N 1A2 CS9/GPIO6 TEST4 AD0 IRQ1N IRQ0N/GPIOA VDD CN3 TEST21 TEST3 3 IRQ0N C TEST2 IRQ1N R17 1 CS13/GPIO2 TEST1 CS14/GPIO1 CN1 IRQ0N IRQ1N IRQ2N U4 74AVC4T245 4 1A1 1B1 13 TEST28 TEST27 TEST26 TEST25 TEST24 TEST23 TEST22 27 U1 GND 2 H GPIO5 VDD GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5 Optional R23 GPIO4 Vcc IRQ0N RSTN R13 100 IRQ0N R14 100 R15 IRQ1N 100 R16 IRQ2N 100 C1 0.01u 1u C2 PORT2 IFVDD GPIO3 RSTN R20 74LVC07 100k GPIO2 7pin_1 CS15/GPIO0 14 C9 0.1u 7 IFVDD B-A GPIO1 U3 1 3 5 9 11 13 C JP4 I/O GPIO0 CN4 1k IRQ B D JP2 VDD R12 IRQ0N IRQ1N IRQ2N JP1 GND 10k 9 7 5 3 1 + C6 51 SDA R26 10 8 6 4 2 47u + C5 R11 IFVDD PORT3 3.3V 47u 12 6 C7 0.1u 51 7 R9 CTRL 1A2 R10 6 5 U2 74AVC4T245 1A1 1B1 13 5 4 4 470 470 3 R7 R8 2 SCL SDA SDA(ACK) 28 D JP10 9 7 5 3 1 VDD 10 8 6 4 2 4 3 2 Document Number <Doc> AKD4160-A MAIN Thursday, September 30, 2010 Sheet 1 Rev 0 1 of 1 5 4 3 2 1 D D VDD PORT5 GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5 GPIO6 GPIO7 CS7 CS6 CS5 CS4 CS3 CS2 CS1 CS0 C GPIO3 GPIO2 GPIO1 GPIO0 GPIO7 GPIO6 GPIO5 GPIO4 CS4 CS5 CS6 CS7 CS0 CS1 CS2 CS3 12 13 14 15 8 9 10 11 C 4 0 5 6 1 2 7 3 CS_PAD1 B B A A Title <Title> Size A4 Date: 5 4 3 2 AKD4160-A-Touch Pad Document Number <Doc> Rev 0 16 PAD Wednesday, September 08, 2010 Sheet 1 1 of 1 5 4 3 2 1 D D TP0 LED0 1 GPIO0 VR0 2 TP1 LED1 1 GPIO1 2 VDD TP2 1k VR2 TP3 1k VR3 TP4 1k VR4 TP5 1k LED2 1 GPIO2 2 PORT6 LED3 1 GPIO3 GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 GPIO5 GPIO6 GPIO7 CS7 CS6 CS5 CS4 CS3 CS2 CS1 CS0 C 2 LED4 1 GPIO4 CS4 CS5 CS6 CS0 CS1 CS2 2 C LED5 CS7 1 GPIO5 CS4 CS5 CS6 CS7 CS0 CS1 CS2 CS3 VR5 2 TP6 1k VR6 TP7 1k LED6 CS3 1 GPIO6 2 LED7 1 GPIO7 1k VR1 VR7 2 1k CS_PAD2 B B A A Title <Title> Size A4 Date: 5 4 3 2 AKD4160-A-Touch Pad Document Number <Doc> Rev 0 8PAD & 8LED Wednesday, September 08, 2010 Sheet 1 1 of 1