TWR-K60N512-KEIL Freescale Semiconductor, TWR-K60N512-KEIL Datasheet - Page 162

no-image

TWR-K60N512-KEIL

Manufacturer Part Number
TWR-K60N512-KEIL
Description
K60N512 Keil Tower Kit
Manufacturer
Freescale Semiconductor
Series
Kinetisr
Type
MCUr

Specifications of TWR-K60N512-KEIL

Rohs Compliant
YES
Contents
4 Boards, Documentation, DVD
Peak Reflow Compatible (260 C)
Yes
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
Freescale Tower System, K60N512
TSI configuration
17.4.1 Configuration Example
The following example uses the four electrodes from the Kinetis Tower board. The
application detects touches. These touches turn on and off the LEDs below the electrodes.
Baseline is not tracked but measured initially and assumed to be constant. Baseline
tracking is critical in applications where the environment is susceptible to change.
Because this example is intended to be simple, baseline tracking has not been
implemented.
162
2. Configure the general control and status register (GENCS)—Configure the number
3. Configure the scan control register (SCANC)—Allows you to define the current that
4. Configure the pin enable register (PEN)—The 16 lowest bits of this 32-bit register
5. Configure the thresholds (THRESHLDx)—These registers configure each the low
6. Enable the TSI module (TSIEN)—Enabling the module is relinquished to the end of
the TSI with the multiplexing bits in the PORTA pin control register (PCR). All
other TSI pins are enabled by default.
of scans, prescaler (which is a multiplier for the number of scans). Additionally, it is
possible to enable the continuous scan mode (STM bit) as well as TSI interrupts,
error detection, low power mode and whether the end of scan or out of range
interrupts are requested. When using low power modes it is also important to define
what low power reference clock is used (LPCLKS) and the scanning interval for low
power mode (LPSCNITV).
charges the electrodes and the internal reference (EXTCHRG and REFCHRG) as
well as the delta voltage (DELVOL) that is applied to both. The other critical
configuration for SCANC is the scanning period, which is dependent on the active
mode clock (AMCLKCS), the clock prescaler (AMPSC), and the clock modulo
(SMOD). An internal counter counts the number of reference clock cycles as they are
output from the prescaler to the SMOD value. If SMOD is configured as zero, the
module scans continuously without stopping after an end of scan.
enables each of the electrodes in active mode. The low power mode scanning
electrode is configured with bits 16 to 19.
and high 16-bit thresholds for the 16 electrodes. The low 16 bits configure the high
threshold, and the high 16 bits configure the low threshold. The high threshold sets
the OUTRGF bit when the capacitance measurement goes above that value and the
low threshold sets it when the capacitance goes below that value. The most common
use case is to use these as an alarm for drastic changes to the capacitance or to wake-
up the module from low power mode.
the configuration, after everything else is set.
Kinetis Quick Reference User Guide, Rev. 0, 11/2010
Freescale Semiconductor

Related parts for TWR-K60N512-KEIL