EasyManuals Logo
Home>Texas Instruments>Microcontrollers>MSP430

Texas Instruments MSP430 User Manual

Texas Instruments MSP430
413 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #398 background imageLoading...
Page #398 background image
398
{
P1OUT ^= BIT0;
P1OUT |= BIT6;
}
else
{
P1OUT &= ~BIT6;
}
sleep(DELAY);
}
}
The main function is perhaps the smallest one here. Except for the other parts with which by now we
are familiar, there are a few new lines of code. Just before the main loop, the two lines of code right
above it, initialize the capacitive touch sensor. Number 6 in the function TI_CAPT_Update_Baseline
states the number of samples to capture for accurately sensing a touch. If a valid touch is detected,
the LEDs of Launchpad board are toggled.
Demo
Demo video: https://youtu.be/sh8nkoI2XKw.

Table of Contents

Other manuals for Texas Instruments MSP430

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments MSP430 and is the answer not in the manual?

Texas Instruments MSP430 Specifications

General IconGeneral
BrandTexas Instruments
ModelMSP430
CategoryMicrocontrollers
LanguageEnglish

Related product manuals