Electronic Components Datasheet Search
  English  ▼

X  

SWRU318 Datasheet(PDF) 29 Page - Texas Instruments

Part # SWRU318
Description  CC2543-CC2544 Development Kit User?셲 Guide
PDF  36 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TI1 [Texas Instruments]
Direct Link  http://www.ti.com
Logo TI1 - Texas Instruments

SWRU318 Datasheet(HTML) 29 Page - Texas Instruments

Back Button SWRU318 Datasheet HTML 25Page - Texas Instruments SWRU318 Datasheet HTML 26Page - Texas Instruments SWRU318 Datasheet HTML 27Page - Texas Instruments SWRU318 Datasheet HTML 28Page - Texas Instruments SWRU318 Datasheet HTML 29Page - Texas Instruments SWRU318 Datasheet HTML 30Page - Texas Instruments SWRU318 Datasheet HTML 31Page - Texas Instruments SWRU318 Datasheet HTML 32Page - Texas Instruments SWRU318 Datasheet HTML 33Page - Texas Instruments Next Button
Zoom Inzoom in Zoom Outzoom out
 29 / 36 page
background image
swru318
29/31
A.7 Write Software
At this point, the project is configured and you can write your first lines of code. We will show a small
blinking LED example.
In the project, create a new file that you save as blinky.c. Type the following code:
#include <ioCC2543.h>
int main(void)
{
int i;
// Set P1.0 of CC2543 as output
P1DIR |= 0x01;
// Toggle P1.0
for(;;)
{
P1_0 ^= 1;
for(i = 0; i < 10000; i++)
{
asm("NOP");
}
}
}
The code will toggle P1.0 quickly.
Add the file to the project by right clicking the project
and selecting Add “blinky.c”.
You are now ready to compile and download the code to the target!



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com