Specification - Willow Technologies

Specification - Willow Technologies
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Product Description
The KX23H is a smart sensor hub system consisting of a tri-axis +/-2g,
+/-4g or +/-8g silicon micromachined accelerometer and a highperformance ARM 32-bit Cortex™-M0 CPU core with 128 kbyte flash
memory and 16 kbyte RAM.
The accelerometer sense element is fabricated using Kionix’s proprietary
plasma micromachining process technology. Acceleration sensing is
based on the principle of a differential capacitance arising from
acceleration-induced motion of the sense element, which further utilizes
common mode cancellation to decrease errors from process variation,
temperature, and environmental stress.
The sense element is
hermetically sealed at the wafer level by bonding a second silicon lid wafer to the device using a glass
frit. A separate ASIC device packaged with the sense element provides signal conditioning, and
intelligent user-programmable application algorithms.
The device can collect the inputs from external accelerometers, gyroscopes, compasses, pressure and
other sensors through the master I2C interface. The onboard ARM 32-bit Cortex™-M0 CPU can offload, and in some instances replace, the system application processor by performing computations on
data extracted from all external input sensors, making the KX23H the ideal sensor hub microcontroller
and accelerometer combination by reducing total system power consumption.
Features




CPU
— 32-bit RISC CPU (ARM Cortex™-M0)
— Maximum Operating Frequency 32MHz
— Serial Wire Debug (SWD) port support
Internal memory
— 128-kByte Built-in Flash ROM for application program
— 16-kByte SRAM
Interrupt controller
— Non-maskable interrupt: 1 source
— Maskable interrupt: 21 sources (TBD)
Timer / Counter
— 8-bit auto-reload timer x 8channels
— 16-bit pulse width modulation(PWM) x 1channel
— Watchdog timer (WDT) x 1channel
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 1 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief













PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Slave interface
— I2C interface with master function
Host interface
— Serial I2C interface with slave function
— Interrupt to a host processor
— 512Byte FIFO RAM
General-purpose I/O port
— 7-bit input/output port x 1channel
— External Interrupt function
Arithmetic circuit
— Root and Division operations support
Flash Programming Function
— Hardware remap function
— ISP(In System Programming)
Power management
— Low power mode and high performance mode support
— High-speed and Low-speed clock gear function
— Sleep mode and SleepDeep mode
Input clock
— 32.768 kHz (External clock input)
Power supply voltage
— Digital I/O section: 1.7V to 1.9V
— Accelerometer section: 1.7V to 3.6V
Power consumption
— High-speed operation (32MHz operation): 5.0mA
— SleepDeep Mode: 2.5uA
Operating frequency
— High-speed clock: 32 MHz (generated by internal FLL from input clock)
— Low-speed clock: 32.768 kHz
Accelerometer
— User-selectable g Range and Output Data Rate
— Digital High-Pass Filter Outputs
— Embedded FIFO/FILO buffer
— Low Power Consumption with FlexSet™ Performance Optimization
— Enhanced integrated Directional Tap/Double-TapTM, and Device-orientation Algorithms
— User-configurable wake-up function
Operating temperature
— -40°C to +80°C (Ambient temperature)
Package
— 3 x 3 x 0.9 mm LGA, 16-pin
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 2 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Table of Contents
PRODUCT DESCRIPTION ....................................................................................................................................................................1
FEATURES .........................................................................................................................................................................................1
TABLE OF CONTENTS .........................................................................................................................................................................3
FUNCTIONAL DIAGRAM ....................................................................................................................................................................4
INTERNAL WIRING FUNCTIONAL DIAGRAM ..................................................................................................................................................... 4
ACCELEROMETER FUNCTIONAL DIAGRAM ....................................................................................................................................................... 6
MCU FUNCTIONAL DIAGRAM ...................................................................................................................................................................... 5
PRODUCT SPECIFICATION HIGHLIGHTS .............................................................................................................................................6
ELECTRICAL ............................................................................................................................................................................................... 7
ACCELEROMETER MECHANICAL .................................................................................................................................................................... 9
ENVIRONMENTAL CONSIDERATIONS ............................................................................................................................................................ 10
MCU TERMINOLOGY................................................................................................................................................................................ 11
ACCELEROMETER TERMINOLOGY................................................................................................................................................................. 12
MCU FUNCTIONALITY .............................................................................................................................................................................. 13
ACCELEROMETER FUNCTIONALITY ............................................................................................................................................................... 14
PRODUCT APPLICATION SCHEMATIC ............................................................................................................................................................ 15
DEVELOPMENT APPLICATION SCHEMATIC ..................................................................................................................................................... 16
PACKAGE DIMENSIONS AND ORIENTATION ................................................................................................................................................... 17
KX23H INTERFACE ........................................................................................................................................................................... 19
2
I C OPERATION AND BUS ADDRESS ............................................................................................................................................................. 19
2
EXTERNAL HOST I C SERIAL INTERFACE ........................................................................................................................................................ 19
2
EXTERNAL SLAVE I C SERIAL INTERFACE ....................................................................................................................................................... 20
SERIAL WIRE DEBUG (SWD) PORT.............................................................................................................................................................. 21
FIRMWARE UPDATE WITH BRMP AND RESET_N ......................................................................................................................................... 21
CLOCK INPUT .......................................................................................................................................................................................... 22
KX23H ACCELEROMETER EMBEDDED APPLICATIONS ...................................................................................................................... 23
ORIENTATION DETECTION FEATURE ............................................................................................................................................................. 23
MOTION INTERRUPT FEATURE DESCRIPTION ................................................................................................................................................. 23
DIRECTIONAL TAP DETECTION FEATURE DESCRIPTION ..................................................................................................................................... 23
SAMPLE BUFFER FEATURE DESCRIPTION ....................................................................................................................................................... 23
REVISION HISTORY .......................................................................................................................................................................... 24
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 3 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Functional Diagram
Internal Wiring Functional Diagram
SCL_S
SDA_S
SWD
PA0
GND
PA3
VDDL
SWC
SCL_M
SDA_M
SCL
SDA
GND
INT2
CLK
TRIG
VDD
Accelerometer
INT1
BRMP
PA1
PA2
VDD
MCU
IO VDD
RESET_N
PA6
Package
nCS
ADDR
The MCU is mated with a 3-axis MEMS accelerometer with a separate ASIC device to provide all of the signal
conditioning and communication with the sensor. Special note:


Accelerometer output INT2 and TRIG signals feed directly to the MCU and stay internal to the KX23H
32.768MHz external clock is required for MCU operation
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 4 of 24
PART NUMBER:
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
KX23H-1035
Rev. 0.1
Nov-14
MCU Functional Diagram
SWD
SWC
BRMP
CPU
(Cortex-M0)
Program
Memory
(Flash) 128kB
General
-Purpose I/O
PA0 to PA6
7-bit 1ch
RAM 16kB
NVIC
(Cortex-M0)
Timer
8-bit 8ch
HOST IF
(I2C)
SDA_S
SCL_S
*1
INT0_S
I2C (Master)
2ch
SDA0_M,
SCL0_M,
WDT 1ch
CLK
Clock
Controller
RESET_N
Reset
Controller
Arithmetic
Circuit
Regulator
VDD
VDDL
GND
1. INT0_S (PA6) secondary function as interrupt to Host Processor
*1 Secondary function
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 5 of 24
PART NUMBER:
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
KX23H-1035
Rev. 0.1
Nov-14
Accelerometer Functional Diagram
X
Accel
Y
Accel
Amplifier
ADC
Z
Accel
DSP
FIFO buffer
I 2 C Interface
Power
Vdd
GND IO Vdd
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
SDA
SCL ADDR
TRIG INT1 INT2
© 2014 Kionix – All Rights Reserved
Page 6 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Product Specification Highlights
Electrical
Absolute Maximum Ratings
(GND=0V)
Parameter
Symbol
Condition
Rating
Unit
VDD
Ta=25°C
-0.3 to +4.6
V
AVDD
Ta=25°C
-0.5 to +3.63
V
VDDL
Ta=25°C
-0.3 to +1.8
V
VIN
Ta=25°C
-0.3 to VDD+0.3
V
Output current
IOUT
Ta=25°C
-10 to +10
mA
Power dissipation
PD
Ta=25°C
0.8
W
Power supply voltage
(Digital I/O)
Power supply voltage
(Analog)
Power supply voltage
(Digital CORE)
Input voltage
Ta=25°C
2000
V
I2C Communication Rate
Fast
400
kHz
I2C Communication Rate
Standard
100
kHz
―
-55 to +150
°C
ESD - HBM
Storage temperature
TSTG
Recommended Operating Conditions
(GND=0V)
Parameter
Digital Power supply
Analog Power supply
Input clock frequency
Ambient temperature
VDDL pin external
capacitance
Symbol
Condition
Min.
Typ.
Max.
Unit
VDD
AVDD
fCLK
Ta
―
―
―
―
1.8
2.5
32.768
25
―
1.9
3.6
33.095
85
Typ +
50%
V
V
kHz
°C
CL0
1.7
1.7
32.441
-40
Typ –
50%
2.2
μF
Operating Conditions of Flash Memory
(GND=0V)
Parameter
Power supply voltage
Operating temperature
Rewrite count
Data retention
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
Symbol
Condition
Range
Unit
VDD
TOP
CEP
YDR
―
―
―
―
1.7 to 1.9
-40 to +85
1000
10
V
°C
times
years
© 2014 Kionix – All Rights Reserved
Page 7 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Electrical Characteristics MCU
(VDD=1.7 to 1.9V, GND=0V, Ta=-40 to +85°C)
Parameter
Symbol
Power consumption
(SleepDeep)
Power consumption (Lowspeed operation)
Power consumption (Highspeed operation)
Power consumption
(At reset)
Condition
1
Min.
Typ.
Max.
Unit
―
2.5
120
μA
IDD
CPU stop
IDD
CPU 32.768kHz operation
―
0.5
0.7
mA
IDD
CPU 32MHz operation
―
5.0
6.5
mA
Resetting pins
―
0.4
0.6
mA
IDD-R
1. The low-speed clock operates, and only the high-speed clock (FLL) stops
Electrical Characteristics Accelerometer
(AVDD=2.5V, GND=0V, Ta=-40 to +85°C)
Parameter
Symbol
Power consumption (Full)
IDD
Condition
Full Power Mode (RES = 1)
1
Min.
Typ.
Max.
Unit
―
145
―
μA
Power consumption (Low)
IDD
Low Power Mode (RES = 0)
―
10
―
μA
Power consumption
(Standby)
IDD
Standby
―
0.9
―
μA
2.0
20
650
ms
2
Start Up Time
Power Up Time
3
10
I2C Communication Rate
Output Data Rate (ODR)
4
ODR
0.781
50
ms
400
kHz
25600
Hz
Bandwidth (-3dB)
5
BW
RES = 0
800
Hz
Bandwidth (-3dB)
5
BW
RES = 1
ODR/2
Hz
1. Current varies with Output Data Rate (ODR=50Hz is 10μA) and with Noise level settings.
Contact Kionix Engineering for additional details on FlexSet™ Performance Optimization.
2. Start up time is from PC1 set to valid outputs. Time varies with Output Data Rate (ODR=50Hz is
~20ms)
3. Power up time is from Vdd valid to device boot completion.
2
4. User selectable through I C
5. User selectable and dependent on ODR and RES.
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 8 of 24
PART NUMBER:
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
KX23H-1035
Rev. 0.1
Nov-14
Mechanical - Accelerometer
(AVDD=2.5V, GND=0V, Ta=-40 to +85°C)
Parameters
Condition
Min.
Typ.
Max.
±90
Zero-g Offset
―
±25
Zero-g Offset
Variation from RT over Temp.
0.2
1
Sensitivity
Sensitivity
1,2
(Buffer 8-bit mode)
Unit
mg
mg/ºC
GSEL1=0, GSEL0=0 (± 2g)
15565
16384
17203
counts/g
GSEL1=0, GSEL0=1 (± 4g)
7782
8192
8602
counts/g
GSEL1=1, GSEL0=0 (± 8g)
3891
4096
4301
counts/g
GSEL1=0, GSEL0=0 (± 2g)
61
64
67
counts/g
GSEL1=0, GSEL0=1 (± 4g)
30
32
34
counts/g
GSEL1=1, GSEL0=0 (± 8g)
15
16
17
counts/g
Sensitivity
Variation from RT over Temp.
Self Test
Output change on Activiation
0.01
0.35
0.5
%/ºC
0.65
g
Mechanical
3
Resonance (-3dB)
―
3500 (xy)
1800 (z)
Non-Linearity
―
0.6
% of FS
―
2
%
(RMS at 50Hz with low-pass
filter = ODR/9)
0.75
Cross Axis Sensitivity
Noise
4
1.
2.
3.
4.
Hz
mg
2
Resolution and acceleration ranges are user selectable via I C.
Sensitivity is proportional to BRES in BUF_CNTRL2.
Resonance as defined by the dampened mechanical sensor.
Noise varies with Output Data Rate (ODR) and Current Consumption settings. Contact
Kionix Engineering for additional details on FlexSet™ Performance Optimization.
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 9 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Environmental Considerations
Caution: ESD Sensitive and Mechanical Shock Sensitive Component, improper handling
can cause permanent damage to the device.
This product conforms to Directive 2002/95/EC of the European Parliament and of the
Council of the European Union (RoHS). Specifically, this product does not contain lead,
mercury, cadmium, hexavalent chromium, polybrominated biphenyls (PBB), or
polybrominated diphenyl ethers (PBDE) above the maximum concentration values (MCV) by
weight in any of its homogenous materials. Homogenous materials are "of uniform
composition throughout."
HF
This product is halogen-free per IEC 61249-2-21. Specifically, the materials used in this
product contain a maximum total halogen content of 1500 ppm with less than 900-ppm
bromine and less than 900-ppm chlorine.
Soldering
Soldering recommendations are available upon request or from www.kionix.com.
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 10 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
MCU Terminology
32-bit RISC CPU (ARM Cortex™-M0)
Microprocessor licensed from ARM . It is a 32-bit processor for small size and low power consumption
applications and has a 3-stage pipeline configuration. It implements the ARMv6-M architecture, and
operates with 16-bit Thumb instructions and Thumb-2 instructions. For details, see "Cortex-M0
Technical Reference Manual","Cortex-M0 User Guide".
Serial Wire Debug SWD
2 pin JTAG port that is ideal for connection to configurable debug tools that provide complete software
development environment microcontroller devices such as IDE/Debugger, ARM C/C++ Compiler, and
middleware components.
Host Interface
Communication between the host processor and the KX23H is done via the Slave I2C pins SDA_S and
SCL_S of the KX23H. An interrupt (INT0_S) between the host processor and the KX23H can be
routed through PA6.
Slave Interface
Connection of external sensors and the internal accelerometer to the Master I2C pins SDA_M and
SCL_M of the KX23H.
Interrupts
Internal MCU interrupt control logic will respond to an interrupt to wake from low power modes.
GPIO
The MCU is capable of interacting with up to 5 GPIO pins. These are general purpose input/output
pins that can be acted on by program software.
PWM
GPIO pin PA0 is also configurable as a channel for PWM (Pulse Width Modulation).
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 11 of 24
PART NUMBER:
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
KX23H-1035
Rev. 0.1
Nov-14
Accelerometer Terminology
g
A unit of acceleration equal to the acceleration of gravity at the earth's surface.
m
1g  9.8 2
s
One thousandth of a g (0.0098 m/ s2) is referred to as 1 milli-g (1 mg).
Sensitivity
The sensitivity of an accelerometer is the change in output per unit of input acceleration at nominal Vdd
and temperature. The term is essentially the gain of the sensor expressed in counts per g (counts/g) or
LSB’s per g (LSB/g). Occasionally, sensitivity is expressed as a resolution, i.e. milli-g per LSB
(mg/LSB) or milli-g per count (mg/count). Sensitivity for a given axis is determined by measurements of
the formula:
Sensitivit y 
Output @ 1g  Output @ 1g 
2g
The sensitivity tolerance describes the range of sensitivities that can be expected from a large
population of sensors at room temperature and over life. When the temperature deviates from room
temperature (25ºC), the sensitivity will vary by the amount shown in Error! Reference source not
found..
Zero-g offset
Zero-g offset or 0-g offset describes the actual output of the accelerometer when no acceleration is
applied. Ideally, the output would always be in the middle of the dynamic range of the sensor (content
of the OUTX, OUTY, OUTZ registers = 00h, expressed as a 2’s complement number). However,
because of mismatches in the sensor, calibration errors, and mechanical stress, the output can deviate
from 00h. This deviation from the ideal value is called 0-g offset. The zero-g offset tolerance describes
the range of 0-g offsets of a population of sensors over the operating temperature range.
Self-test
Self-test allows a functional test of the sensor without applying a physical acceleration to it. When
activated, an electrostatic force is applied to the sensor, simulating an input acceleration. The sensor
outputs respond accordingly. If the output signals change within the amplitude specified in Error!
Reference source not found., then the sensor is working properly and the parameters of the interface
chip are within the defined specifications.
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 12 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
MCU Functionality
Sensor Hub
The KX23H can be programmed for a variety of uses, including an intelligent Sensor Hub that can
collect internal accelerometer samples as well as external sensor input.
Internal Memeory
There are two areas of memory withing the MCU, 128kB of Flash ROM for user program space, and
16kB of SRAM for program function access.
Power Modes
The MCU operates at a 1.8V nominal voltage with internal regulation and supports low power mode by
the WFI instruction of Cortex®-M0. It also supports sleep mode selection by using SleepDeep. The
KX23H does not support the return from the sleep mode by an event. Therefore, the WFE (Wait For
Event) instruction cannot be used
External reset
Release reset
System reset
mode
External reset
Software reset
Program
operation
mode
External reset
WFI
SleepDeep
Interrupt
Sleep mode
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 13 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Accelerometer Functionality
Sense element
The sense element is fabricated using Kionix’s proprietary plasma micromachining process technology.
This process technology allows Kionix to create mechanical silicon structures which are essentially
mass-spring systems that move in the direction of the applied acceleration. Acceleration sensing is
based on the principle of a differential capacitance arising from the acceleration-induced motion.
Capacitive plates on the moving mass move relative to fixed capacitive plates anchored to the
substrate. The sense element is hermetically sealed at the wafer level by bonding a second silicon lid
wafer to the device using a glass frit.
ASIC interface
A separate ASIC device packaged with the sense element provides all of the signal conditioning and
communication with the sensor. The complete measurement chain is composed by a low-noise
capacitance to voltage amplifier which converts the differential capacitance of the MEMS sensor into
an analog voltage that is sent through an analog-to-digital converter. The acceleration data may be
accessed through the I2C digital communications provided by the ASIC. In addition, the ASIC contains
all of the logic to allow the user to choose data rates, g-ranges, filter settings, and interrupt logic. Plus,
there are two programmable state machines which allow the user to create unique embedded functions
based on changes in acceleration.
Factory calibration
Kionix trims the offset and sensitivity of each accelerometer by adjusting gain (sensitivity) and 0-g
offset trim codes stored in non volatile memory (OTP). Additionally, all functional register default
values are also programmed into the non volatile memory. Every time the device is turned on or a
software reset command is issued, the trimming parameters and default register values are
downloaded into the volatile registers to be used during active operation. This allows the device to
function without further calibration.
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 14 of 24
PART NUMBER:
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
KX23H-1035
Rev. 0.1
Nov-14
BRMP
PA3
AVDD
Product Application Schematic
16
15
14
VDD
R2
C1
R1
VDD
1
13
SWD
2
12
C2
SWC
3
SCL_S
RESET_N
C3
KX23H
10
CLK
5
9
6
7
8
PA6
4
INT_A
SCL_M
SDA_S
11
SDA_M
Table 1. KX23H Pin Descriptions
Pin
Name
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
VDD
SWD
SWC
SCL_S
RESET_N
SDA_S
PA2/INT1
PA6/INT0_S
SDA0_M
CLK
SCL0_M
GND
VDDL
AVDD
PA3
BRMP
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
Description
The power supply input for the digital communication bus.
Serial IO data of debug port
Serial Clock of debug port
2
Slave I C serial clock
System reset input
2
Slave I C serial data
Accel interrupt
GPIO/Host interrupt
2
Master I C serial data (Accel SDA)
External 32.768kHz clock input
2
Master I C serial clock (Accel SCL)
Ground
Internal voltage regulator
Power supply input for the accelerometer
GPIO
Remap control input
© 2014 Kionix – All Rights Reserved
Page 15 of 24
PART NUMBER:
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
KX23H-1035
Rev. 0.1
Nov-14
Development Application Schematic
1.8V
AVDD
C1
Debug
connector
VREF
GND
TMS/SWDIO
TCK/SWCLK
nSRST
HST_RS OC
(FromTN
host)
KX23H
C2
1.8V
R1-3
SDA_S
SCL_S
INT0_S
SDA_S
SCL_S
PA6
VDD
VDDL
C3
Host
interface
MCU
GND
SWD
SWC
RESET_N
Reset
switch
1.8V
PA3
PA2/INT1
PA1/INT2
PA0/TRIG
General-purpose port
1.8V
BRMP
Remapping
control switch
32.768 kHz
oscillator
R4-5
VPP
open
SDA0_M
SCL0_M
CLK
Example of Development Application Circuit of KX23H
I2C interface
for internal
Accelerometer
and external
sensor hub
components
Recommended Values of Circuit Constants
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
Symbol
Recommended value
C1
0.1uF
C2
1.0uF
C3
2.2uF
R1-3
10k
R4-5
2.2k
© 2014 Kionix – All Rights Reserved
Page 16 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Package Dimensions and Orientation
Dimensions
3 x 3 x 0.9 mm LGA
All dimensions and tolerances conform to ASME Y14.5M-1994
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 17 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Orientation
KX23H
+Z
+X
+Y
When device is accelerated in +X, +Y or +Z direction, the corresponding output will increase.
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 18 of 24
PART NUMBER:
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
KX23H-1035
Rev. 0.1
Nov-14
KX23H Interface
I2C Operation and Bus Address
The Kionix KX23H smart sensor hub has the ability to communicate over two I2C digital serial interfaces in
master and slave modes. This allows for easy system integration by eliminating analog-to-digital converter
requirements and by providing direct communication with system micro-controllers and external sensors.
I2C is a two-wire serial interface that contains a Serial Clock (SCL) line and a Serial Data (SDA) line. SCL is a
serial clock that is provided by the Master, but can be held low by any Slave device, putting the Master into a
wait condition. SDA is a bi-directional line used to transmit and receive data to and from the interface. Data is
transmitted MSB (Most Significant Bit) first in 8-bit per byte format, and the number of bytes transmitted per
transfer is unlimited. The I2C bus is considered free when both lines are high. Transactions on the I2C bus
begin after the Master transmits a start condition (S), which is defined as a high-to-low transition on the data
line while the SCL line is held high. The bus is considered busy after this condition. The next byte of data
transmitted after the start condition contains the Slave Address (SAD) in the seven MSBs (Most Significant
Bits), and the LSB (Least Significant Bit) tells whether the Master will be receiving data ‘1’ from the Slave or
transmitting data ‘0’ to the Slave. When a Slave Address is sent, each device on the bus compares the seven
MSBs with its internally stored address. If they match, the device considers itself addressed by the Master.
The I2C interface is compliant with fast mode and standard mode I2C protocols.
External Host I2C Serial Interface
KX23H has the ability to communicate on an I2C bus as a slave device. In this case, I2C is used for
synchronous serial communication between a Master device and the SCL_S/SDA_S pins of the KX23H. The
Master, typically a micro controller, provides the serial clock signal and addresses Slave devices on the bus.
The KX23H MCU always operates as a Slave device over the SCL_S/SDA_S pins during standard MasterSlave I2C operation. The KX23H I2C slave address can be set by the internal registers with the initial value of
17h. The below figure shows an I2C connection example.
1.8V
KX23H
2.2k
2.2k
Host processor
SDA_S
SDA
SCL_S
PA6(INT0_S)
SCL
INT
Example of Connection with the Host Processor Using I2C
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 19 of 24
PART NUMBER:
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
KX23H-1035
Rev. 0.1
Nov-14
External Slave I2C Serial Interface
KX23H has the ability to communicate on an I2C bus as a Master device. In this case, I2C is used for
synchronous serial communication between a Slave device and the SCL_M/SDA_M pins of the KX23H. The
Slave, typically sensors, must have it’s own unique address on the bus. The KX23H MCU always operates as
a Master device over the SCL_M/SDA_M pins during standard Master-Slave I2C operation. The Slave
Address associated with the KX23H internal accelerometer is 1Eh. Of special note, the internal accelerometer
is a Slave on the SCL_M/SDA_M pins along with other optional external sensors as shown in the figure below.
KX23H
Internal
Accel
addr 1Eh
SDA
SCL
Application
Processor
SDA_S
SDA_M
SCL_S
SCL_M
SDA
Sensor 2
SCL
SDA
Sensor 3
SCL
Example of System Level I2C Connection
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 20 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Serial Wire Debug (SWD) port
KX23H implements a SW-DP (serial wire debug port) as the debug interface.
[Note] The timer and WDT clock are stopped at break in the debugger.
1.8V
Debug Connector
10k
10k
10k
KX23H
SWD_IO
SWD
SWC_IO
nSRST
SWC
RESET_N
Reset
switch
Connection with Debug Connector
Firmware Update with BRMP and RESET_N
With KX23H, remapping to the dedicated boot loader program is required to update the firmware. The
remapping can be performed in one of two ways: through software that does not require any additional
curcuitry, or forcing it by entering an appropriate sequence to the external pin as shown below. To begin the
remapping sequence using the external pin, set RESET_N to logic Low, then set BRMP pin to logic High.
1.8V
Host processor
KX23H
I/O port
BRMP
RESET_N
I/O port
Example of Circuit to Perform Firmware Update by External Pin
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 21 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Clock Input
KX23H requires an external 32.768 kHz clock to the CLK pin.
32.768 kHz
Oscillator
KX23H
CLK
External Clock Input Pin
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 22 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
KX23H Accelerometer Embedded Applications
Orientation Detection Feature
The orientation detection feature of the KX23H will report changes in face up, face down, +/- vertical and +/horizontal orientation. This intelligent embedded algorithm considers very important factors that provide
accurate orientation detection from low cost tri-axis accelerometers. Factors such as: hysteresis, device
orientation angle and delay time are utilized inside the KX23H
Motion Interrupt Feature Description
The Motion interrupt feature of the KX23H reports qualified changes in the high-pass filtered acceleration
based on the Wake Up (ATH) threshold. If the high-pass filtered acceleration on any axis is greater than the
user-defined wake up threshold (ATH), the device has transitioned from an inactive state to an active state.
When configured in the unlatched mode, the KX23H will report when the motion event finished and the device
has returned to an inactive state.
Directional Tap Detection Feature Description
The Directional Tap Detection feature of the KX23H recognizes single and double tap inputs and reports the
acceleration axis and direction that each tap occurred. Eight performance parameters, as well as a userselectable ODR are used to configure the KX23H for a desired tap detection response.
Sample Buffer Feature Description
The Sample Buffer feature of the KX23H accumulates and outputs acceleration samples of the internal
accelerometer. There are 4 buffer modes available, and samples can be accumulated at either low (8-bit) or
high (16-bit) resolution.
FIFO Mode - Sample collection stops when the buffer is full. Data is reported with the oldest byte of
the oldest sample first.
Stream Mode - Sample collection continues when the buffer is full; older data is discarded to make
room for newer data. Data is reported with the oldest sample first (uses FIFO read pointer).
Trigger Mode - Wheen a physical interrupt is caused by one of the digital engines or when a logic high
signal occurs on the TRIG pin, the trigger event is asserted and a user specified samples prior to the
event are retained. Sample collection continues until the buffer is full. Data is reported with the oldest
sample first (uses FIFO read pointer).
FILO Mode - Sample collection continues when the buffer is full; older data is discarded to make room
for newer data. Data is reported with the newest byte of the newest sample first.
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 23 of 24
± 2g / 4g / 8g Tri-axis Digital
Accelerometer with Embedded
Sensor Hub Specifications Brief
PART NUMBER:
KX23H-1035
Rev. 0.1
Nov-14
Revision History
REVISION DESCRIPTION
0.1
Product Brief Initial Release
DATE
Nov-2014
"Kionix" is a registered trademark of Kionix, Inc. Products described herein are protected by patents issued or pending. No license is granted by implication or otherwise
under any patent or other rights of Kionix. The information contained herein is believed to be accurate and reliable but is not guaranteed. Kionix does not assume
responsibility for its use or distribution. Kionix also reserves the right to change product specifications or discontinue this product at any time without prior notice. This
publication supersedes and replaces all information previously supplied.
36 Thornwood Dr. – Ithaca, NY 14850
tel: 607-257-1080 – fax:607-257-1146
www.kionix.com - info@kionix.com
© 2014 Kionix – All Rights Reserved
Page 24 of 24
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising